![JAR search and dependency download from the Maven repository](/logo.png)
static.angular2-all.umd.js Maven / Gradle / Ivy
var ng=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){e.core=n(2),e.platformBrowser=n(84),e.platformBrowserDynamic=n(431),e.forms=n(424),e.router=n(462),e.http=n(429),e.rxjs=n(475)},function(t,e,n){"use strict";var r=n(31),i=n(146),o=n(679),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(i.add(r?r.call(i,this):this._subscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i=n.subscribe(function(e){if(i)try{t(e)}catch(n){r(n),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();e.Observable=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(291)),r(n(422)),r(n(29));var i=n(181);e.createPlatform=i.createPlatform,e.assertPlatform=i.assertPlatform,e.disposePlatform=i.disposePlatform,e.getPlatform=i.getPlatform,e.coreBootstrap=i.coreBootstrap,e.coreLoadAndBootstrap=i.coreLoadAndBootstrap,e.PlatformRef=i.PlatformRef,e.ApplicationRef=i.ApplicationRef,e.enableProdMode=i.enableProdMode,e.lockRunMode=i.lockRunMode,e.isDevMode=i.isDevMode,e.createPlatformFactory=i.createPlatformFactory;var o=n(107);e.APP_ID=o.APP_ID,e.PACKAGE_ROOT_URL=o.PACKAGE_ROOT_URL,e.PLATFORM_INITIALIZER=o.PLATFORM_INITIALIZER,e.APP_BOOTSTRAP_LISTENER=o.APP_BOOTSTRAP_LISTENER;var s=n(180);e.APP_INITIALIZER=s.APP_INITIALIZER,e.ApplicationInitStatus=s.ApplicationInitStatus,r(n(423)),r(n(421)),r(n(410));var a=n(278);e.DebugElement=a.DebugElement,e.DebugNode=a.DebugNode,e.asNativeElements=a.asNativeElements,e.getDebugNode=a.getDebugNode,r(n(193)),r(n(404)),r(n(418)),r(n(417));var u=n(403);e.APPLICATION_COMMON_PROVIDERS=u.APPLICATION_COMMON_PROVIDERS,e.ApplicationModule=u.ApplicationModule;var c=n(118);e.wtfCreateScope=c.wtfCreateScope,e.wtfLeave=c.wtfLeave,e.wtfStartTimeRange=c.wtfStartTimeRange,e.wtfEndTimeRange=c.wtfEndTimeRange;var p=n(3);e.Type=p.Type;var l=n(70);e.EventEmitter=l.EventEmitter;var f=n(10);e.ExceptionHandler=f.ExceptionHandler,e.WrappedException=f.WrappedException,e.BaseException=f.BaseException,r(n(397)),r(n(274));var h=n(179);e.AnimationPlayer=h.AnimationPlayer;var d=n(299);e.SanitizationService=d.SanitizationService,e.SecurityContext=d.SecurityContext},function(t,e){(function(t){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function r(t){return t.name?t.name:typeof t}function i(t){return void 0!==t&&null!==t}function o(t){return void 0===t||null===t}function s(t){return"boolean"==typeof t}function a(t){return"number"==typeof t}function u(t){return"string"==typeof t}function c(t){return"function"==typeof t}function p(t){return c(t)}function l(t){return"object"==typeof t&&null!==t}function f(t){return l(t)&&Object.getPrototypeOf(t)===j}function h(t){return i(t)&&c(t.then)}function d(t){return Array.isArray(t)}function v(t){return t instanceof e.Date&&!isNaN(t.valueOf())}function y(){}function m(t){if("string"==typeof t)return t;if(void 0===t||null===t)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function g(t){return t}function _(t,e){return t}function b(t,e){return t[e]}function w(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function E(t){return t}function S(t){return o(t)?null:t}function C(t){return o(t)?!1:t}function P(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function O(t){console.log(t)}function A(t){console.warn(t)}function T(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var s=r.shift();o=o.hasOwnProperty(s)&&i(o[s])?o[s]:o[s]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function x(){if(o(K))if(i(D.Symbol)&&i(Symbol.iterator))K=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;et?-1:t>e?1:0},t}();e.StringWrapper=F;var B=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}();e.StringJoiner=B;var U=function(t){function e(e){t.call(this),this.message=e}return V(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.NumberParseError=U;var W=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new U("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new U("Invalid integer literal when parsing "+t+" in base "+e)},t.parseFloat=function(t){return parseFloat(t)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}();e.NumberWrapper=W,e.RegExp=L.RegExp;var H=function(){function t(){}return t.create=function(t,e){return void 0===e&&(e=""),e=e.replace(/g/g,""),new L.RegExp(t,e+"g")},t.firstMatch=function(t,e){return t.lastIndex=0,t.exec(e)},t.test=function(t,e){return t.lastIndex=0,t.test(e)},t.matcher=function(t,e){return t.lastIndex=0,{re:t,input:e}},t.replaceAll=function(t,e,n){var r=t.exec(e),i="";t.lastIndex=0;for(var o=0;r;)i+=e.substring(o,r.index),i+=n(r),o=r.index+r[0].length,t.lastIndex=o,r=t.exec(e);return i+=e.substring(o)},t}();e.RegExpWrapper=H;var G=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=G;var z=function(){function t(){}return t.apply=function(t,e){return t.apply(null,e)},t.bind=function(t,e){return t.bind(e)},t}();e.FunctionWrapper=z,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=O,e.warn=A;var q=function(){function t(){}return t.parse=function(t){return L.JSON.parse(t)},t.stringify=function(t){return L.JSON.stringify(t,null,2)},t}();e.Json=q;var $=function(){function t(){}return t.create=function(t,n,r,i,o,s,a){return void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),new e.Date(t,n-1,r,i,o,s,a)},t.fromISOString=function(t){return new e.Date(t)},t.fromMillis=function(t){return new e.Date(t)},t.toMillis=function(t){return t.getTime()},t.now=function(){return new e.Date},t.toJson=function(t){return t.toJSON()},t}();e.DateWrapper=$,e.setValueOnPath=T;var K=null;e.getSymbolIterator=x,e.evalExpression=R,e.isPrimitive=I,e.hasConstructor=M,e.escape=N,e.escapeRegExp=k}).call(e,function(){return this}())},function(t,e){(function(t){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function r(t){return t.name?t.name:typeof t}function i(t){return void 0!==t&&null!==t}function o(t){return void 0===t||null===t}function s(t){return"boolean"==typeof t}function a(t){return"number"==typeof t}function u(t){return"string"==typeof t}function c(t){return"function"==typeof t}function p(t){return c(t)}function l(t){return"object"==typeof t&&null!==t}function f(t){return l(t)&&Object.getPrototypeOf(t)===j}function h(t){return i(t)&&c(t.then)}function d(t){return Array.isArray(t)}function v(t){return t instanceof e.Date&&!isNaN(t.valueOf())}function y(){}function m(t){if("string"==typeof t)return t;if(void 0===t||null===t)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function g(t){return t}function _(t,e){return t}function b(t,e){return t[e]}function w(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function E(t){return t}function S(t){return o(t)?null:t}function C(t){return o(t)?!1:t}function P(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function O(t){console.log(t)}function A(t){console.warn(t)}function T(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var s=r.shift();o=o.hasOwnProperty(s)&&i(o[s])?o[s]:o[s]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function x(){if(o(K))if(i(D.Symbol)&&i(Symbol.iterator))K=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;et?-1:t>e?1:0},t}();e.StringWrapper=F;var B=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}();e.StringJoiner=B;var U=function(t){function e(e){t.call(this),this.message=e}return V(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.NumberParseError=U;var W=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new U("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new U("Invalid integer literal when parsing "+t+" in base "+e)},t.parseFloat=function(t){return parseFloat(t)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}();e.NumberWrapper=W,e.RegExp=L.RegExp;var H=function(){function t(){}return t.create=function(t,e){return void 0===e&&(e=""),e=e.replace(/g/g,""),new L.RegExp(t,e+"g")},t.firstMatch=function(t,e){return t.lastIndex=0,t.exec(e)},t.test=function(t,e){return t.lastIndex=0,t.test(e)},t.matcher=function(t,e){return t.lastIndex=0,{re:t,input:e}},t.replaceAll=function(t,e,n){var r=t.exec(e),i="";t.lastIndex=0;for(var o=0;r;)i+=e.substring(o,r.index),i+=n(r),o=r.index+r[0].length,t.lastIndex=o,r=t.exec(e);return i+=e.substring(o)},t}();e.RegExpWrapper=H;var G=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=G;var z=function(){function t(){}return t.apply=function(t,e){return t.apply(null,e)},t.bind=function(t,e){return t.bind(e)},t}();e.FunctionWrapper=z,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=O,e.warn=A;var q=function(){function t(){}return t.parse=function(t){return L.JSON.parse(t)},t.stringify=function(t){return L.JSON.stringify(t,null,2)},t}();e.Json=q;var $=function(){function t(){}return t.create=function(t,n,r,i,o,s,a){return void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),new e.Date(t,n-1,r,i,o,s,a)},t.fromISOString=function(t){return new e.Date(t)},t.fromMillis=function(t){return new e.Date(t)},t.toMillis=function(t){return t.getTime()},t.now=function(){return new e.Date},t.toJson=function(t){return t.toJSON()},t}();e.DateWrapper=$,e.setValueOnPath=T;var K=null;e.getSymbolIterator=x,e.evalExpression=R,e.isPrimitive=I,e.hasConstructor=M,e.escape=N,e.escapeRegExp=k}).call(e,function(){return this}())},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(149),o=n(26),s=n(147),a=n(473),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!n){this.destination=a.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.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.isUnsubscribed||(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[s.$$rxSubscriber]=function(){return this},e}(o.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parent=e;var s,a=this;i.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,o=n.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parent;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parent;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parent;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){throw this.unsubscribe(),n}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parent;this._context=null,this._parent=null,t.unsubscribe()},e}(u)},function(t,e){(function(t){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function r(t){return t.name?t.name:typeof t}function i(t){return void 0!==t&&null!==t}function o(t){return void 0===t||null===t}function s(t){return"boolean"==typeof t}function a(t){return"number"==typeof t}function u(t){return"string"==typeof t}function c(t){return"function"==typeof t}function p(t){return c(t)}function l(t){return"object"==typeof t&&null!==t}function f(t){return l(t)&&Object.getPrototypeOf(t)===j}function h(t){return i(t)&&c(t.then)}function d(t){return Array.isArray(t)}function v(t){return t instanceof e.Date&&!isNaN(t.valueOf())}function y(){}function m(t){if("string"==typeof t)return t;if(void 0===t||null===t)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function g(t){return t}function _(t,e){return t}function b(t,e){return t[e]}function w(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function E(t){return t}function S(t){return o(t)?null:t}function C(t){return o(t)?!1:t}function P(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function O(t){console.log(t)}function A(t){console.warn(t)}function T(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var s=r.shift();o=o.hasOwnProperty(s)&&i(o[s])?o[s]:o[s]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function x(){if(o(K))if(i(D.Symbol)&&i(Symbol.iterator))K=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;et?-1:t>e?1:0},t}();e.StringWrapper=F;var B=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}();e.StringJoiner=B;var U=function(t){function e(e){t.call(this),this.message=e}return V(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.NumberParseError=U;var W=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new U("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new U("Invalid integer literal when parsing "+t+" in base "+e)},t.parseFloat=function(t){return parseFloat(t)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}();e.NumberWrapper=W,e.RegExp=L.RegExp;var H=function(){function t(){}return t.create=function(t,e){return void 0===e&&(e=""),e=e.replace(/g/g,""),new L.RegExp(t,e+"g")},t.firstMatch=function(t,e){return t.lastIndex=0,t.exec(e)},t.test=function(t,e){return t.lastIndex=0,t.test(e)},t.matcher=function(t,e){return t.lastIndex=0,{re:t,input:e}},t.replaceAll=function(t,e,n){var r=t.exec(e),i="";t.lastIndex=0;for(var o=0;r;)i+=e.substring(o,r.index),i+=n(r),o=r.index+r[0].length,t.lastIndex=o,r=t.exec(e);return i+=e.substring(o)},t}();e.RegExpWrapper=H;var G=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=G;var z=function(){function t(){}return t.apply=function(t,e){return t.apply(null,e)},t.bind=function(t,e){return t.bind(e)},t}();e.FunctionWrapper=z,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=O,e.warn=A;var q=function(){function t(){}return t.parse=function(t){return L.JSON.parse(t)},t.stringify=function(t){return L.JSON.stringify(t,null,2)},t}();e.Json=q;var $=function(){function t(){}return t.create=function(t,n,r,i,o,s,a){return void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),new e.Date(t,n-1,r,i,o,s,a)},t.fromISOString=function(t){return new e.Date(t)},t.fromMillis=function(t){return new e.Date(t)},t.toMillis=function(t){return t.getTime()},t.now=function(){return new e.Date},t.toJson=function(t){return t.toJSON()},t}();e.DateWrapper=$,e.setValueOnPath=T;var K=null;e.getSymbolIterator=x,e.evalExpression=R,e.isPrimitive=I,e.hasConstructor=M,e.escape=N,e.escapeRegExp=k}).call(e,function(){return this}())},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){if(a.isPresent(t))for(var n=0;n-1?(t.splice(n,1),!0):!1},t.clear=function(t){t.length=0},t.isEmpty=function(t){return 0==t.length},t.fill=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=null),t.fill(e,n,null===r?t.length:r)},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;nr&&(n=o,r=s)}}return n},t.flatten=function(t){var e=[];return r(t,e),e},t.addAll=function(t,e){for(var n=0;nf&&!l.isUnsubscribed;f++)l.next(e[f]);l.isUnsubscribed||l.complete()}else{if(s.isPromise(e))return e.then(function(t){l.isUnsubscribed||(l.next(t),l.complete())},function(t){return l.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),l;if("function"==typeof e[u.$$iterator]){for(var d=0,v=e;d1;){var s=r.shift();o=o.hasOwnProperty(s)&&i(o[s])?o[s]:o[s]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function x(){if(o(K))if(i(D.Symbol)&&i(Symbol.iterator))K=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;et?-1:t>e?1:0},t}();e.StringWrapper=F;var B=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}();e.StringJoiner=B;var U=function(t){function e(e){t.call(this),this.message=e}return V(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.NumberParseError=U;var W=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new U("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new U("Invalid integer literal when parsing "+t+" in base "+e)},t.parseFloat=function(t){return parseFloat(t)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}();e.NumberWrapper=W,e.RegExp=L.RegExp;var H=function(){function t(){}return t.create=function(t,e){return void 0===e&&(e=""),e=e.replace(/g/g,""),new L.RegExp(t,e+"g")},t.firstMatch=function(t,e){return t.lastIndex=0,t.exec(e)},t.test=function(t,e){return t.lastIndex=0,t.test(e)},t.matcher=function(t,e){return t.lastIndex=0,{re:t,input:e}},t.replaceAll=function(t,e,n){var r=t.exec(e),i="";t.lastIndex=0;for(var o=0;r;)i+=e.substring(o,r.index),i+=n(r),o=r.index+r[0].length,t.lastIndex=o,r=t.exec(e);return i+=e.substring(o)},t}();e.RegExpWrapper=H;var G=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=G;var z=function(){function t(){}return t.apply=function(t,e){return t.apply(null,e)},t.bind=function(t,e){return t.bind(e)},t}();e.FunctionWrapper=z,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=O,e.warn=A;var q=function(){function t(){}return t.parse=function(t){return L.JSON.parse(t)},t.stringify=function(t){return L.JSON.stringify(t,null,2)},t}();e.Json=q;var $=function(){function t(){}return t.create=function(t,n,r,i,o,s,a){return void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),new e.Date(t,n-1,r,i,o,s,a)},t.fromISOString=function(t){return new e.Date(t)},t.fromMillis=function(t){return new e.Date(t)},t.toMillis=function(t){return t.getTime()},t.now=function(){return new e.Date},t.toJson=function(t){return t.toJSON()},t}();e.DateWrapper=$,e.setValueOnPath=T;var K=null;e.getSymbolIterator=x,e.evalExpression=R,e.isPrimitive=I,e.hasConstructor=M,e.escape=N,e.escapeRegExp=k}).call(e,function(){return this}())},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(1),o=n(5),s=n(26),a=n(476),u=n(147),c=n(357),p=n(224),l=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n,this.observers=[],this.isUnsubscribed=!1,this.isStopped=!1,this.hasErrored=!1,this.dispatching=!1,this.hasCompleted=!1,this.source=n}return r(e,t),e.prototype.lift=function(t){var n=new e(this.destination||this,this);return n.operator=t,n},e.prototype.add=function(t){return s.Subscription.prototype.add.call(this,t)},e.prototype.remove=function(t){s.Subscription.prototype.remove.call(this,t)},e.prototype.unsubscribe=function(){s.Subscription.prototype.unsubscribe.call(this)},e.prototype._subscribe=function(t){if(this.source)return this.source.subscribe(t);if(!t.isUnsubscribed){if(this.hasErrored)return t.error(this.errorValue);if(this.hasCompleted)return t.complete();this.throwIfUnsubscribed();var e=new a.SubjectSubscription(this,t);return this.observers.push(t),e}},e.prototype._unsubscribe=function(){this.source=null,this.isStopped=!0,this.observers=null,this.destination=null},e.prototype.next=function(t){this.throwIfUnsubscribed(),this.isStopped||(this.dispatching=!0,this._next(t),this.dispatching=!1,this.hasErrored?this._error(this.errorValue):this.hasCompleted&&this._complete())},e.prototype.error=function(t){this.throwIfUnsubscribed(),this.isStopped||(this.isStopped=!0,this.hasErrored=!0,this.errorValue=t,this.dispatching||this._error(t))},e.prototype.complete=function(){this.throwIfUnsubscribed(),this.isStopped||(this.isStopped=!0,this.hasCompleted=!0,this.dispatching||this._complete())},e.prototype.asObservable=function(){var t=new f(this);return t},e.prototype._next=function(t){this.destination?this.destination.next(t):this._finalNext(t)},e.prototype._finalNext=function(t){for(var e=-1,n=this.observers.slice(0),r=n.length;++e-1?(t.splice(n,1),!0):!1},t.clear=function(t){t.length=0},t.isEmpty=function(t){return 0==t.length},t.fill=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=null),t.fill(e,n,null===r?t.length:r)},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;nr&&(n=o,r=s)}}return n},t.flatten=function(t){var e=[];return r(t,e),e},t.addAll=function(t,e){for(var n=0;n1;){var s=r.shift();o=o.hasOwnProperty(s)&&i(o[s])?o[s]:o[s]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function x(){if(o(K))if(i(D.Symbol)&&i(Symbol.iterator))K=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;et?-1:t>e?1:0},t}();e.StringWrapper=F;var B=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}();e.StringJoiner=B;var U=function(t){function e(e){t.call(this),this.message=e}return V(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.NumberParseError=U;var W=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new U("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new U("Invalid integer literal when parsing "+t+" in base "+e)},t.parseFloat=function(t){return parseFloat(t)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}();e.NumberWrapper=W,e.RegExp=L.RegExp;var H=function(){function t(){}return t.create=function(t,e){return void 0===e&&(e=""),e=e.replace(/g/g,""),new L.RegExp(t,e+"g")},t.firstMatch=function(t,e){return t.lastIndex=0,t.exec(e)},t.test=function(t,e){return t.lastIndex=0,t.test(e)},t.matcher=function(t,e){return t.lastIndex=0,{re:t,input:e}},t.replaceAll=function(t,e,n){var r=t.exec(e),i="";t.lastIndex=0;for(var o=0;r;)i+=e.substring(o,r.index),i+=n(r),o=r.index+r[0].length,t.lastIndex=o,r=t.exec(e);return i+=e.substring(o)},t}();e.RegExpWrapper=H;var G=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=G;var z=function(){function t(){}return t.apply=function(t,e){return t.apply(null,e)},t.bind=function(t,e){return t.bind(e)},t}();e.FunctionWrapper=z,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=O,e.warn=A;var q=function(){function t(){}return t.parse=function(t){return L.JSON.parse(t)},t.stringify=function(t){return L.JSON.stringify(t,null,2)},t}();e.Json=q;var $=function(){function t(){}return t.create=function(t,n,r,i,o,s,a){return void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),new e.Date(t,n-1,r,i,o,s,a)},t.fromISOString=function(t){return new e.Date(t)},t.fromMillis=function(t){return new e.Date(t)},t.toMillis=function(t){return t.getTime()},t.now=function(){return new e.Date},t.toJson=function(t){return t.toJSON()},t}();e.DateWrapper=$,e.setValueOnPath=T;var K=null;e.getSymbolIterator=x,e.evalExpression=R,e.isPrimitive=I,e.hasConstructor=M,e.escape=N,e.escapeRegExp=k}).call(e,function(){return this}())},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){var e=h.CssSelector.parse(t.selector)[0].getMatchingElementTemplate();return B.create({type:new V({runtime:Object,name:t.type.name+"_Host",moduleUrl:t.type.moduleUrl,isHost:!0}),template:new F({template:e,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:u.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function i(t){var e=new D;return t.forEach(function(t){e.get(t)||e.add(t,t)}),e.keys()}function o(t){return f.isPresent(t)?t:[]}function s(t){return f.isStringMap(t)&&f.isPresent(t.name)&&f.isPresent(t.filePath)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n(2),c=n(17),p=n(7),l=n(14),f=n(4),h=n(175),d=n(68),v=n(23),y=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/g,m=new Object,g=function(){function t(){}return Object.defineProperty(t.prototype,"identifier",{get:function(){return l.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runtimeCacheKey",{get:function(){return l.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assetCacheKey",{get:function(){return l.unimplemented()},enumerable:!0,configurable:!0}),t.prototype.equalsTo=function(t){return l.unimplemented()},t}();e.CompileMetadataWithIdentifier=g;var _=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}();e.CompileAnimationEntryMetadata=_;var b=function(){function t(){}return t}();e.CompileAnimationStateMetadata=b;var w=function(t){function e(e,n){t.call(this),this.stateNameExpr=e,this.styles=n}return a(e,t),e}(b);e.CompileAnimationStateDeclarationMetadata=w;var E=function(t){function e(e,n){t.call(this),this.stateChangeExpr=e,this.steps=n}return a(e,t),e}(b);e.CompileAnimationStateTransitionMetadata=E;var S=function(){function t(){}return t}();e.CompileAnimationMetadata=S;var C=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.steps=e}return a(e,t),e}(S);e.CompileAnimationKeyframesSequenceMetadata=C;var P=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.offset=e,this.styles=n}return a(e,t),e}(S);e.CompileAnimationStyleMetadata=P;var O=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null),t.call(this),this.timings=e,this.styles=n}return a(e,t),e}(S);e.CompileAnimationAnimateMetadata=O;var A=function(t){function e(e){void 0===e&&(e=null),t.call(this),this.steps=e}return a(e,t),e}(S);e.CompileAnimationWithStepsMetadata=A;var T=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return a(e,t),e}(A);e.CompileAnimationSequenceMetadata=T;var x=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return a(e,t),e}(A);e.CompileAnimationGroupMetadata=x;var R=function(){function t(t){var e=void 0===t?{}:t,n=e.runtime,r=e.name,i=e.moduleUrl,o=e.prefix,s=e.value;this._assetCacheKey=m,this.runtime=n,this.name=r,this.prefix=o,this.moduleUrl=i,this.value=s}return Object.defineProperty(t.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runtimeCacheKey",{get:function(){return this.identifier.runtime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assetCacheKey",{get:function(){if(this._assetCacheKey===m)if(f.isPresent(this.moduleUrl)&&f.isPresent(d.getUrlScheme(this.moduleUrl))){var t=c.reflector.importUri({filePath:this.moduleUrl,name:this.name});this._assetCacheKey=this.name+"|"+t}else this._assetCacheKey=null;return this._assetCacheKey},enumerable:!0,configurable:!0}),t.prototype.equalsTo=function(t){var e=this.runtimeCacheKey,n=this.assetCacheKey;return f.isPresent(e)&&e==t.runtimeCacheKey||f.isPresent(n)&&n==t.assetCacheKey},t}();e.CompileIdentifierMetadata=R;var I=function(){function t(t){var e=void 0===t?{}:t,n=e.isAttribute,r=e.isSelf,i=e.isHost,o=e.isSkipSelf,s=e.isOptional,a=e.isValue,u=e.query,c=e.viewQuery,p=e.token,l=e.value;this.isAttribute=f.normalizeBool(n),this.isSelf=f.normalizeBool(r),this.isHost=f.normalizeBool(i),this.isSkipSelf=f.normalizeBool(o),this.isOptional=f.normalizeBool(s),this.isValue=f.normalizeBool(a),this.query=u,this.viewQuery=c,this.token=p,this.value=l}return t}();e.CompileDiDependencyMetadata=I;var M=function(){function t(t){var e=t.token,n=t.useClass,r=t.useValue,i=t.useExisting,o=t.useFactory,s=t.deps,a=t.multi;this.token=e,this.useClass=n,this.useValue=r,this.useExisting=i,this.useFactory=o,this.deps=f.normalizeBlank(s),this.multi=f.normalizeBool(a)}return t}();e.CompileProviderMetadata=M;var N=function(t){function e(e){var n=e.runtime,r=e.name,i=e.moduleUrl,s=e.prefix,a=e.diDeps,u=e.value;t.call(this,{runtime:n,name:r,prefix:s,moduleUrl:i,value:u}),this.diDeps=o(a)}return a(e,t),e}(R);e.CompileFactoryMetadata=N;var k=function(){function t(t){var e=t.value,n=t.identifier,r=t.identifierIsInstance;this.value=e,this.identifier=n,this.identifierIsInstance=f.normalizeBool(r)}return Object.defineProperty(t.prototype,"runtimeCacheKey",{get:function(){return f.isPresent(this.identifier)?this.identifier.runtimeCacheKey:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assetCacheKey",{get:function(){return f.isPresent(this.identifier)?this.identifier.assetCacheKey:this.value},enumerable:!0,configurable:!0}),t.prototype.equalsTo=function(t){var e=this.runtimeCacheKey,n=this.assetCacheKey;return f.isPresent(e)&&e==t.runtimeCacheKey||f.isPresent(n)&&n==t.assetCacheKey},Object.defineProperty(t.prototype,"name",{get:function(){return f.isPresent(this.value)?v.sanitizeIdentifier(this.value):this.identifier.name},enumerable:!0,configurable:!0}),t}();e.CompileTokenMetadata=k;var D=function(){function t(){this._valueMap=new Map,this._values=[],this._tokens=[]}return t.prototype.add=function(t,e){var n=this.get(t);if(f.isPresent(n))throw new l.BaseException("Cannot overwrite in a CompileIdentifierMap! Token: "+t.identifier.name);this._tokens.push(t),this._values.push(e);var r=t.runtimeCacheKey;f.isPresent(r)&&this._valueMap.set(r,e);var i=t.assetCacheKey;f.isPresent(i)&&this._valueMap.set(i,e)},t.prototype.get=function(t){var e,n=t.runtimeCacheKey,r=t.assetCacheKey;return f.isPresent(n)&&(e=this._valueMap.get(n)),f.isBlank(e)&&f.isPresent(r)&&(e=this._valueMap.get(r)),e},t.prototype.keys=function(){return this._tokens},t.prototype.values=function(){return this._values},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t}();e.CompileIdentifierMap=D;var V=function(t){function e(e){var n=void 0===e?{}:e,r=n.runtime,i=n.name,s=n.moduleUrl,a=n.prefix,u=n.isHost,c=n.value,p=n.diDeps,l=n.lifecycleHooks;t.call(this,{runtime:r,name:i,moduleUrl:s,prefix:a,value:c}),this.isHost=f.normalizeBool(u),this.diDeps=o(p),this.lifecycleHooks=o(l)}return a(e,t),e}(R);e.CompileTypeMetadata=V;var L=function(){function t(t){var e=void 0===t?{}:t,n=e.selectors,r=e.descendants,i=e.first,o=e.propertyName,s=e.read;this.selectors=n,this.descendants=f.normalizeBool(r),this.first=f.normalizeBool(i),this.propertyName=o,this.read=s}return t}();e.CompileQueryMetadata=L;var j=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n,this.styles=o(r),this.styleUrls=o(i)}return t}();e.CompileStylesheetMetadata=j;var F=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,r=e.template,i=e.templateUrl,s=e.styles,a=e.styleUrls,u=e.externalStylesheets,c=e.animations,h=e.ngContentSelectors,d=e.interpolation;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.styles=o(s),this.styleUrls=o(a),this.externalStylesheets=o(u),this.animations=f.isPresent(c)?p.ListWrapper.flatten(c):[],this.ngContentSelectors=f.isPresent(h)?h:[],f.isPresent(d)&&2!=d.length)throw new l.BaseException("'interpolation' should have a start and an end symbol.");this.interpolation=d}return t}();e.CompileTemplateMetadata=F;var B=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,p=e.hostListeners,l=e.hostProperties,f=e.hostAttributes,h=e.providers,d=e.viewProviders,v=e.queries,y=e.viewQueries,m=e.entryComponents,g=e.viewDirectives,_=e.viewPipes,b=e.template;this.type=n,this.isComponent=r,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=p,this.hostProperties=l,this.hostAttributes=f,this.providers=o(h),this.viewProviders=o(d),this.queries=o(v),this.viewQueries=o(y),this.entryComponents=o(m),this.viewDirectives=o(g),this.viewPipes=o(_),this.template=b}return t.create=function(e){var n=void 0===e?{}:e,r=n.type,i=n.isComponent,o=n.selector,s=n.exportAs,a=n.changeDetection,u=n.inputs,c=n.outputs,l=n.host,h=n.providers,d=n.viewProviders,m=n.queries,g=n.viewQueries,_=n.entryComponents,b=n.viewDirectives,w=n.viewPipes,E=n.template,S={},C={},P={};f.isPresent(l)&&p.StringMapWrapper.forEach(l,function(t,e){var n=f.RegExpWrapper.firstMatch(y,e);f.isBlank(n)?P[e]=t:f.isPresent(n[1])?C[n[1]]=t:f.isPresent(n[2])?S[n[2]]=t:f.isPresent(n[3])&&(C[n[3]]=t)});var O={};f.isPresent(u)&&u.forEach(function(t){var e=v.splitAtColon(t,[t,t]);O[e[0]]=e[1]});var A={};return f.isPresent(c)&&c.forEach(function(t){var e=v.splitAtColon(t,[t,t]);A[e[0]]=e[1]}),new t({type:r,isComponent:f.normalizeBool(i),selector:o,exportAs:s,changeDetection:a,inputs:O,outputs:A,hostListeners:S,hostProperties:C,hostAttributes:P,providers:h,viewProviders:d,queries:m,viewQueries:g,entryComponents:_,viewDirectives:b,viewPipes:w,template:E})},Object.defineProperty(t.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runtimeCacheKey",{get:function(){return this.type.runtimeCacheKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assetCacheKey",{get:function(){return this.type.assetCacheKey},enumerable:!0,configurable:!0}),t.prototype.equalsTo=function(t){return this.type.equalsTo(t.identifier)},t}();e.CompileDirectiveMetadata=B,e.createHostComponentMeta=r;var U=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.name,i=e.pure;this.type=n,this.name=r,this.pure=f.normalizeBool(i)}return Object.defineProperty(t.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runtimeCacheKey",{get:function(){return this.type.runtimeCacheKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assetCacheKey",{get:function(){return this.type.assetCacheKey},enumerable:!0,configurable:!0}),t.prototype.equalsTo=function(t){return this.type.equalsTo(t.identifier)},t}();e.CompilePipeMetadata=U;var W=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.providers,i=e.declaredDirectives,s=e.exportedDirectives,a=e.declaredPipes,u=e.exportedPipes,c=e.entryComponents,p=e.bootstrapComponents,l=e.importedModules,f=e.exportedModules,h=e.schemas,d=e.transitiveModule;this.type=n,this.declaredDirectives=o(i),this.exportedDirectives=o(s),this.declaredPipes=o(a),this.exportedPipes=o(u),this.providers=o(r),this.entryComponents=o(c),this.bootstrapComponents=o(p),this.importedModules=o(l),this.exportedModules=o(f),this.schemas=o(h),this.transitiveModule=d}return Object.defineProperty(t.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runtimeCacheKey",{get:function(){return this.type.runtimeCacheKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assetCacheKey",{get:function(){return this.type.assetCacheKey},enumerable:!0,configurable:!0}),t.prototype.equalsTo=function(t){return this.type.equalsTo(t.identifier)},t}();e.CompileNgModuleMetadata=W;var H=function(){function t(t,e,n,r,i){var o=this;this.modules=t,this.providers=e,this.entryComponents=n,this.directives=r,this.pipes=i,this.directivesSet=new Set,this.pipesSet=new Set,r.forEach(function(t){return o.directivesSet.add(t.type.runtime)}),i.forEach(function(t){return o.pipesSet.add(t.type.runtime)})}return t}();e.TransitiveCompileNgModuleMetadata=H,e.removeIdentifierDuplicates=i,e.isStaticSymbol=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){if(a.isPresent(t))for(var n=0;n-1?(t.splice(n,1),!0):!1},t.clear=function(t){t.length=0},t.isEmpty=function(t){return 0==t.length},t.fill=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=null),t.fill(e,n,null===r?t.length:r)},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;nr&&(n=o,r=s)}}return n},t.flatten=function(t){var e=[];return r(t,e),e},t.addAll=function(t,e){for(var n=0;n-1?(t.splice(n,1),!0):!1},t.clear=function(t){t.length=0},t.isEmpty=function(t){return 0==t.length},t.fill=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=null),t.fill(e,n,null===r?t.length:r)},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;nr&&(n=o,r=s)}}return n},t.flatten=function(t){var e=[];return r(t,e),e},t.addAll=function(t,e){for(var n=0;n1;){var s=r.shift();o=o.hasOwnProperty(s)&&i(o[s])?o[s]:o[s]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function x(){if(o(K))if(i(D.Symbol)&&i(Symbol.iterator))K=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;et?-1:t>e?1:0},t}();e.StringWrapper=F;var B=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}();e.StringJoiner=B;var U=function(t){function e(e){t.call(this),this.message=e}return V(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.NumberParseError=U;var W=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new U("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new U("Invalid integer literal when parsing "+t+" in base "+e)},t.parseFloat=function(t){return parseFloat(t)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}();e.NumberWrapper=W,e.RegExp=L.RegExp;var H=function(){function t(){}return t.create=function(t,e){return void 0===e&&(e=""),e=e.replace(/g/g,""),new L.RegExp(t,e+"g")},t.firstMatch=function(t,e){return t.lastIndex=0,t.exec(e)},t.test=function(t,e){return t.lastIndex=0,t.test(e)},t.matcher=function(t,e){return t.lastIndex=0,{re:t,input:e}},t.replaceAll=function(t,e,n){var r=t.exec(e),i="";t.lastIndex=0;for(var o=0;r;)i+=e.substring(o,r.index),i+=n(r),o=r.index+r[0].length,t.lastIndex=o,r=t.exec(e);return i+=e.substring(o)},t}();e.RegExpWrapper=H;var G=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=G;var z=function(){function t(){}return t.apply=function(t,e){return t.apply(null,e)},t.bind=function(t,e){return t.bind(e)},t}();e.FunctionWrapper=z,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=O,e.warn=A;var q=function(){function t(){}return t.parse=function(t){return L.JSON.parse(t)},t.stringify=function(t){return L.JSON.stringify(t,null,2)},t}();e.Json=q;var $=function(){function t(){}return t.create=function(t,n,r,i,o,s,a){return void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),new e.Date(t,n-1,r,i,o,s,a)},t.fromISOString=function(t){return new e.Date(t)},t.fromMillis=function(t){return new e.Date(t)},t.toMillis=function(t){return t.getTime()},t.now=function(){return new e.Date},t.toJson=function(t){return t.toJSON()},t}();e.DateWrapper=$,e.setValueOnPath=T;var K=null;e.getSymbolIterator=x,e.evalExpression=R,e.isPrimitive=I,e.hasConstructor=M,e.escape=N,e.escapeRegExp=k}).call(e,function(){return this}())},function(t,e){"use strict";e.errorObject={e:{}}},function(t,e,n){"use strict";var r=n(52),i=n(354),o=n(149),s=n(27),a=n(25),u=n(353),c=function(){function t(t){this.isUnsubscribed=!1,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.isUnsubscribed){this.isUnsubscribed=!0;var n=this,c=n._unsubscribe,p=n._subscriptions;if(this._subscriptions=null,o.isFunction(c)){var l=s.tryCatch(c).call(this);l===a.errorObject&&(e=!0,(t=t||[]).push(a.errorObject.e))}if(r.isArray(p))for(var f=-1,h=p.length;++f-1?(t.splice(n,1),!0):!1},t.clear=function(t){t.length=0},t.isEmpty=function(t){return 0==t.length},t.fill=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=null),t.fill(e,n,null===r?t.length:r)},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;nr&&(n=o,r=s)}}return n},t.flatten=function(t){var e=[];return r(t,e),e},t.addAll=function(t,e){for(var n=0;ne?{maxlength:{requiredLength:e,actualLength:r.length}}:null}},t.pattern=function(e){return function(n){if(p.isPresent(t.required(n)))return null;var r=new RegExp("^"+e+"$"),i=n.value;return r.test(i)?null:{pattern:{requiredPattern:"^"+e+"$",actualValue:i}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(p.isBlank(t))return null;var e=t.filter(p.isPresent);return 0==e.length?null:function(t){return s(i(t,e))}},t.composeAsync=function(t){if(p.isBlank(t))return null;var e=t.filter(p.isPresent);return 0==e.length?null:function(t){var n=o(t,e).map(r);return l.PromiseWrapper.all(n).then(s)}},t}();e.Validators=f},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(83),o=n(48),s=n(11),a=n(87),u=n(210);e.PRIMITIVE=String;var c=function(){function t(t){this._renderStore=t}return t.prototype.serialize=function(t,n){var i=this;if(!s.isPresent(t))return null;if(s.isArray(t))return t.map(function(t){return i.serialize(t,n)});if(n==e.PRIMITIVE)return t;if(n==p)return this._renderStore.serialize(t);if(n===r.RenderComponentType)return this._serializeRenderComponentType(t);if(n===r.ViewEncapsulation)return s.serializeEnum(t);if(n===u.LocationType)return this._serializeLocation(t);throw new o.BaseException("No serializer for "+n.toString())},t.prototype.deserialize=function(t,n,a){var c=this;if(!s.isPresent(t))return null;if(s.isArray(t)){var l=[];return t.forEach(function(t){return l.push(c.deserialize(t,n,a))}),l}if(n==e.PRIMITIVE)return t;if(n==p)return this._renderStore.deserialize(t);if(n===r.RenderComponentType)return this._deserializeRenderComponentType(t);if(n===r.ViewEncapsulation)return i.VIEW_ENCAPSULATION_VALUES[t];if(n===u.LocationType)return this._deserializeLocation(t);throw new o.BaseException("No deserializer for "+n.toString())},t.prototype._serializeLocation=function(t){return{href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:t.origin}},t.prototype._deserializeLocation=function(t){return new u.LocationType(t.href,t.protocol,t.host,t.hostname,t.port,t.pathname,t.search,t.hash,t.origin)},t.prototype._serializeRenderComponentType=function(t){return{id:t.id,templateUrl:t.templateUrl,slotCount:t.slotCount,encapsulation:this.serialize(t.encapsulation,r.ViewEncapsulation),styles:this.serialize(t.styles,e.PRIMITIVE)}},t.prototype._deserializeRenderComponentType=function(t){return new r.RenderComponentType(t.id,t.templateUrl,t.slotCount,this.deserialize(t.encapsulation,r.ViewEncapsulation),this.deserialize(t.styles,e.PRIMITIVE),{})},t.decorators=[{type:r.Injectable}],t.ctorParameters=[{type:a.RenderStore}],t}();e.Serializer=c;var p=function(){function t(){}return t}();e.RenderStoreObject=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var i=n(2),o=n(226),s=n(240);r(n(240)),r(n(227)),r(n(359)),r(n(226)),r(n(361));var a=n(163);e.NgLocalization=a.NgLocalization;var u=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{declarations:[o.COMMON_DIRECTIVES,s.COMMON_PIPES],exports:[o.COMMON_DIRECTIVES,s.COMMON_PIPES]}]}],t}();e.CommonModule=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(12),o=n(63),s=n(73),a=n(6),u=n(1);e.Observable=u.Observable;var c=n(12);e.Subject=c.Subject;var p=n(237);e.PromiseCompleter=p.PromiseCompleter,e.PromiseWrapper=p.PromiseWrapper;var l=function(){function t(){}return t.setTimeout=function(t,e){return a.global.setTimeout(t,e)},t.clearTimeout=function(t){a.global.clearTimeout(t)},t.setInterval=function(t,e){return a.global.setInterval(t,e)},t.clearInterval=function(t){a.global.clearInterval(t)},t}();e.TimerWrapper=l;var f=function(){function t(){}return t.subscribe=function(t,e,n,r){return void 0===r&&(r=function(){}),n="function"==typeof n&&n||a.noop,r="function"==typeof r&&r||a.noop,t.subscribe({next:e,error:n,complete:r})},t.isObservable=function(t){return!!t.subscribe},t.hasSubscribers=function(t){return t.observers.length>0},t.dispose=function(t){t.unsubscribe()},t.callNext=function(t,e){t.emit(e)},t.callEmit=function(t,e){t.emit(e)},t.callError=function(t,e){t.error(e)},t.callComplete=function(t){t.complete()},t.fromPromise=function(t){return o.PromiseObservable.create(t)},t.toPromise=function(t){return s.toPromise.call(t)},t}();e.ObservableWrapper=f;var h=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.next=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};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(i.Subject);e.EventEmitter=h},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return p.isPromise(t)?t:u.ObservableWrapper.toPromise(t)}function i(t,e){return e.map(function(e){return e(t)})}function o(t,e){return e.map(function(e){return e(t)})}function s(t){var e=t.reduce(function(t,e){return p.isPresent(e)?c.StringMapWrapper.merge(t,e):t},{});return c.StringMapWrapper.isEmpty(e)?null:e}var a=n(2),u=n(37),c=n(22),p=n(6),l=n(237);e.NG_VALIDATORS=new a.OpaqueToken("NgValidators"),e.NG_ASYNC_VALIDATORS=new a.OpaqueToken("NgAsyncValidators");var f=function(){function t(){}return t.required=function(t){return p.isBlank(t.value)||p.isString(t.value)&&""==t.value?{required:!0}:null},t.minLength=function(e){return function(n){if(p.isPresent(t.required(n)))return null;var r=n.value;return r.lengthe?{maxlength:{requiredLength:e,actualLength:r.length}}:null}},t.pattern=function(e){return function(n){if(p.isPresent(t.required(n)))return null;var r=new RegExp("^"+e+"$"),i=n.value;return r.test(i)?null:{pattern:{requiredPattern:"^"+e+"$",actualValue:i}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(p.isBlank(t))return null;var e=t.filter(p.isPresent);return 0==e.length?null:function(t){return s(i(t,e))}},t.composeAsync=function(t){if(p.isBlank(t))return null;var e=t.filter(p.isPresent);return 0==e.length?null:function(t){var n=o(t,e).map(r);return l.PromiseWrapper.all(n).then(s)}},t}();e.Validators=f},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(53),o=n(6),s=function(t){function e(e,n){t.call(this,"Invalid argument '"+n+"' for pipe '"+o.stringify(e)+"'")}return r(e,t),e}(i.BaseException);e.InvalidPipeArgumentException=s},function(t,e,n){"use strict";/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var r=n(4),i=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return r.isPresent(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url},t}();e.ParseLocation=i;var o=function(){function t(t,e){this.content=t,this.url=e}return t}();e.ParseSourceFile=o;var s=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}();e.ParseSourceSpan=s,function(t){t[t.WARNING=0]="WARNING",t[t.FATAL=1]="FATAL"}(e.ParseErrorLevel||(e.ParseErrorLevel={}));var a=e.ParseErrorLevel,u=function(){function t(t,e,n){void 0===n&&(n=a.FATAL),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.file.content,e=this.span.start.offset,n="",i="";if(r.isPresent(e)){e>t.length-1&&(e=t.length-1);for(var o=e,s=0,a=0;100>s&&e>0&&(e--,s++,"\n"!=t[e]||3!=++a););for(s=0,a=0;100>s&&o]"+t.substring(this.span.start.offset,o+1);n=' ("'+u+'")'}return this.span.details&&(i=", "+this.span.details),""+this.msg+n+": "+this.span.start+i},t}();e.ParseError=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e,n){void 0===n&&(n=null);var r=[];return e.forEach(function(e){var o=e.visit(t,n);i.isPresent(o)&&r.push(o)}),r}var i=n(4),o=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}();e.TextAst=o;var s=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}();e.BoundTextAst=s;var a=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}();e.AttrAst=a;var u=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}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}();e.BoundElementPropertyAst=u;var c=function(){function t(t,e,n,r){this.name=t,this.target=e,this.handler=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return i.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),t}();e.BoundEventAst=c;var p=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}();e.ReferenceAst=p;var l=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}();e.VariableAst=l;var f=function(){function t(t,e,n,r,i,o,s,a,u,c,p){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=p}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}();e.ElementAst=f;var h=function(){function t(t,e,n,r,i,o,s,a,u,c){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.children=a,this.ngContentIndex=u,this.sourceSpan=c}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}();e.EmbeddedTemplateAst=h;var d=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}();e.BoundDirectivePropertyAst=d;var v=function(){function t(t,e,n,r,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}();e.DirectiveAst=v;var y=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}();e.ProviderAst=y,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"}(e.ProviderAstType||(e.ProviderAstType={}));var m=(e.ProviderAstType,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}());e.NgContentAst=m,function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.Animation=4]="Animation"}(e.PropertyBindingType||(e.PropertyBindingType={}));e.PropertyBindingType;e.templateVisitAll=r},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){}return t}();e.MessageBus=n},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";e.PRIMARY_OUTLET="primary"},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(253),i=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(n){return n?(r.assertInterpolationSymbols("interpolation",n),new t(n[0],n[1])):e.DEFAULT_INTERPOLATION_CONFIG},t}();e.InterpolationConfig=i,e.DEFAULT_INTERPOLATION_CONFIG=new i("{{","}}")},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(195),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(i.AbstractControlDirective);e.ControlContainer=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){var n=l.ListWrapper.clone(e.path);return n.push(t),n}function i(t,e){h.isBlank(t)&&s(e,"Cannot find control with"),h.isBlank(e.valueAccessor)&&s(e,"No value accessor for form control with"),t.validator=d.Validators.compose([t.validator,e.validator]),t.asyncValidator=d.Validators.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.updateValue(n,{emitModelToViewChange:!1})}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()})}function o(t,e){h.isBlank(t)&&s(e,"Cannot find control with"),t.validator=d.Validators.compose([t.validator,e.validator]),t.asyncValidator=d.Validators.composeAsync([t.asyncValidator,e.asyncValidator])}function s(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new f.BaseException(e+" "+n)}function a(t){return h.isPresent(t)?d.Validators.compose(t.map(m.normalizeValidator)):null}function u(t){return h.isPresent(t)?d.Validators.composeAsync(t.map(m.normalizeAsyncValidator)):null}function c(t,e){if(!l.StringMapWrapper.contains(t,"model"))return!1;var n=t.model;return n.isFirstChange()?!0:!h.looseIdentical(e,n.currentValue)}function p(t,e){if(h.isBlank(e))return null;var n,r,i;return e.forEach(function(e){h.hasConstructor(e,y.DefaultValueAccessor)?n=e:h.hasConstructor(e,v.CheckboxControlValueAccessor)||h.hasConstructor(e,g.NumberValueAccessor)||h.hasConstructor(e,b.SelectControlValueAccessor)||h.hasConstructor(e,w.SelectMultipleControlValueAccessor)||h.hasConstructor(e,_.RadioControlValueAccessor)?(h.isPresent(r)&&s(t,"More than one built-in value accessor matches form control with"),r=e):(h.isPresent(i)&&s(t,"More than one custom value accessor matches form control with"),i=e)}),h.isPresent(i)?i:h.isPresent(r)?r:h.isPresent(n)?n:(s(t,"No valid value accessor for form control with"),null)}var l=n(30),f=n(59),h=n(19),d=n(34),v=n(121),y=n(122),m=n(425),g=n(198),_=n(124),b=n(125),w=n(126);e.controlPath=r,e.setUpControl=i,e.setUpFormContainer=o,e.composeValidators=a,e.composeAsyncValidators=u,e.isPropertyUpdated=c,e.selectValueAccessor=p},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";!function(t){t[t.Get=0]="Get",t[t.Post=1]="Post",t[t.Put=2]="Put",t[t.Delete=3]="Delete",t[t.Options=4]="Options",t[t.Head=5]="Head",t[t.Patch=6]="Patch"}(e.RequestMethod||(e.RequestMethod={}));e.RequestMethod;!function(t){t[t.Unsent=0]="Unsent",t[t.Open=1]="Open",t[t.HeadersReceived=2]="HeadersReceived",t[t.Loading=3]="Loading",t[t.Done=4]="Done",t[t.Cancelled=5]="Cancelled"}(e.ReadyState||(e.ReadyState={}));e.ReadyState;!function(t){t[t.Basic=0]="Basic",t[t.Cors=1]="Cors",t[t.Default=2]="Default",t[t.Error=3]="Error",t[t.Opaque=4]="Opaque"}(e.ResponseType||(e.ResponseType={}));e.ResponseType;!function(t){t[t.NONE=0]="NONE",t[t.JSON=1]="JSON",t[t.FORM=2]="FORM",t[t.FORM_DATA=3]="FORM_DATA",t[t.TEXT=4]="TEXT",t[t.BLOB=5]="BLOB",t[t.ARRAY_BUFFER=6]="ARRAY_BUFFER"}(e.ContentType||(e.ContentType={}));e.ContentType;!function(t){t[t.Text=0]="Text",t[t.Json=1]="Json",t[t.ArrayBuffer=2]="ArrayBuffer",t[t.Blob=3]="Blob"}(e.ResponseContentType||(e.ResponseContentType={}));e.ResponseContentType},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return new TypeError(t)}function i(){throw new c("unimplemented")}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(325),a=n(326),u=n(326);e.ExceptionHandler=u.ExceptionHandler;var c=function(t){function e(e){void 0===e&&(e="--"),t.call(this,e),this.message=e,this.stack=new Error(e).stack}return o(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.BaseException=c;var p=function(t){function e(e,n,r,i){t.call(this,e),this._wrapperMessage=e,this._originalException=n,this._originalStack=r,this._context=i,this._wrapperStack=new Error(e).stack}return o(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return a.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.message},e}(s.BaseWrappedException);e.WrappedException=p,e.makeTypeError=r,e.unimplemented=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(){return new E(new S([],{}),{},null)}function i(t,e,n){return n?o(t.root,e.root):s(t.root,e.root)}function o(t,e){if(!c(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!o(t.children[n],e.children[n]))return!1}return!0}function s(t,e){return a(t,e,e.segments)}function a(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return c(r,n)?e.hasChildren()?!1:!0:!1}if(t.segments.length===n.length){if(!c(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!s(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return c(t.segments,r)&&t.children[b.PRIMARY_OUTLET]?a(t.children[b.PRIMARY_OUTLET],e,o):!1}function u(t,e){if(t.length!==e.length)return!1;for(var n=0;n0?n+"("+r.join("//")+")":""+n}if(t.hasChildren()&&!e){var i=p(t,function(e,n){return n===b.PRIMARY_OUTLET?[f(t.children[b.PRIMARY_OUTLET],!1)]:[n+":"+f(e,!1)]});return l(t)+"/("+i.join("//")+")"}return l(t)}function h(t){return""+encodeURIComponent(t.path)+d(t.parameters)}function d(t){return y(t).map(function(t){return";"+encodeURIComponent(t.first)+"="+encodeURIComponent(t.second)}).join("")}function v(t){var e=y(t).map(function(t){return encodeURIComponent(t.first)+"="+encodeURIComponent(t.second)});return e.length>0?"?"+e.join("&"):""}function y(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(new A(n,t[n]));return e}function m(t){T.lastIndex=0;var e=T.exec(t);return e?e[0]:""}function g(t){x.lastIndex=0;var e=T.exec(t);return e?e[0]:""}function _(t){R.lastIndex=0;var e=R.exec(t);return e?e[0]:""}var b=n(43),w=n(71);e.createEmptyUrlTree=r,e.containsTree=i;var E=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return t.prototype.toString=function(){return(new O).serialize(this)},t}();e.UrlTree=E;var S=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,w.forEach(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return l(this)},t}();e.UrlSegmentGroup=S;var C=function(){function t(t,e){this.path=t,this.parameters=e}return t.prototype.toString=function(){return h(this)},t}();e.UrlSegment=C,e.equalSegments=u,e.equalPath=c,e.mapChildrenIntoArray=p;var P=function(){function t(){}return t}();e.UrlSerializer=P;var O=function(){function t(){}return t.prototype.parse=function(t){var e=new I(t);return new E(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+f(t.root,!0),n=v(t.queryParams),r=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURIComponent(t.fragment):"";return""+e+n+r},t}();e.DefaultUrlSerializer=O,e.serializePaths=l,e.serializePath=h;var A=function(){function t(t,e){this.first=t,this.second=e}return t}(),T=/^[^\/\(\)\?;=]+/,x=/^[^=\?]+/,R=/^[^\?]+/,I=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new S([],{}):new S([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[b.PRIMARY_OUTLET]=new S(t,e)),n},t.prototype.parseSegments=function(){var t=m(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new C(decodeURIComponent(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURIComponent(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=m(this.remaining);if(e){this.capture(e);var n="true";if(this.peekStartsWith("=")){this.capture("=");var r=m(this.remaining);r&&(n=r,this.capture(n))}t[decodeURIComponent(e)]=decodeURIComponent(n)}},t.prototype.parseQueryParam=function(t){var e=g(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=_(this.remaining);r&&(n=r,this.capture(n))}t[decodeURIComponent(e)]=decodeURIComponent(n)}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=m(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=b.PRIMARY_OUTLET);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[b.PRIMARY_OUTLET]:new S([],o),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}()},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(1),o=n(216),s=n(51),a=n(64),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;return n>=r?void i.complete():(i.next(e[n]),void(i.isUnsubscribed||(t.index=n+1,this.schedule(t))))},e.prototype._subscribe=function(t){var n=0,r=this.array,i=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:n,count:i,subscriber:t});for(var s=0;i>s&&!t.isUnsubscribed;s++)t.next(r[s]);t.complete()},e}(i.Observable);e.ArrayObservable=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(1),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;return n?n.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(i.Observable);e.EmptyObservable=o},function(t,e){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return new TypeError(t)}function i(){throw new c("unimplemented")}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(234),a=n(235),u=n(235);e.ExceptionHandler=u.ExceptionHandler;var c=function(t){function e(e){void 0===e&&(e="--"),t.call(this,e),this.message=e,this.stack=new Error(e).stack}return o(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.BaseException=c;var p=function(t){function e(e,n,r,i){t.call(this,e),this._wrapperMessage=e,this._originalException=n,this._originalStack=r,this._context=i,this._wrapperStack=new Error(e).stack}return o(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return a.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.message},e}(s.BaseWrappedException);e.WrappedException=p,e.makeTypeError=r,e.unimplemented=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(53),o=n(152),s=function(t){function e(){t.apply(this,arguments),this.name=null,this.valueAccessor=null}return r(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),e}(o.AbstractControlDirective);e.NgControl=s},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[];return e.forEach(function(e){var i=e.visit(t,n);i&&r.push(i)}),r}var r=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}();e.Text=r;var i=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}();e.Expansion=i;var o=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}();e.ExpansionCase=o;var s=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}();e.Attribute=s;var a=function(){function t(t,e,n,r,i,o){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}();e.Element=a;var u=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}();e.Comment=u,e.visitAll=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(3),i=function(){function t(t){this.token=t}return t.prototype.toString=function(){return"@Inject("+r.stringify(this.token)+")"},t}();e.InjectMetadata=i;var o=function(){function t(){}return t.prototype.toString=function(){return"@Optional()"},t}();e.OptionalMetadata=o;var s=function(){function t(){}return Object.defineProperty(t.prototype,"token",{get:function(){return null},enumerable:!0,configurable:!0}),t}();e.DependencyMetadata=s;var a=function(){function t(){}return t}();e.InjectableMetadata=a;var u=function(){function t(){}return t.prototype.toString=function(){return"@Self()"},t}();e.SelfMetadata=u;var c=function(){function t(){}return t.prototype.toString=function(){return"@SkipSelf()"},t}();e.SkipSelfMetadata=c;var p=function(){function t(){}return t.prototype.toString=function(){return"@Host()"},t}();e.HostMetadata=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(59),o=n(195),s=function(t){function e(){t.apply(this,arguments),this.name=null,this.valueAccessor=null}return r(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),e}(o.AbstractControlDirective);e.NgControl=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(12),o=n(63),s=n(73),a=n(19),u=n(1);e.Observable=u.Observable;var c=n(12);e.Subject=c.Subject;var p=n(306);e.PromiseCompleter=p.PromiseCompleter,e.PromiseWrapper=p.PromiseWrapper;var l=function(){function t(){}return t.setTimeout=function(t,e){return a.global.setTimeout(t,e)},t.clearTimeout=function(t){a.global.clearTimeout(t)},t.setInterval=function(t,e){return a.global.setInterval(t,e)},t.clearInterval=function(t){a.global.clearInterval(t)},t}();e.TimerWrapper=l;var f=function(){function t(){}return t.subscribe=function(t,e,n,r){return void 0===r&&(r=function(){}),n="function"==typeof n&&n||a.noop,r="function"==typeof r&&r||a.noop,t.subscribe({next:e,error:n,complete:r})},t.isObservable=function(t){return!!t.subscribe},t.hasSubscribers=function(t){return t.observers.length>0},t.dispose=function(t){t.unsubscribe()},t.callNext=function(t,e){t.emit(e)},t.callEmit=function(t,e){t.emit(e)},t.callError=function(t,e){t.error(e)},t.callComplete=function(t){t.complete()},t.fromPromise=function(t){return o.PromiseObservable.create(t)},t.toPromise=function(t){return s.toPromise.call(t)},t}();e.ObservableWrapper=f;var h=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.next=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};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(i.Subject);e.EventEmitter=h},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return new TypeError(t)}function i(){throw new c("unimplemented")}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(304),a=n(305),u=n(305);e.ExceptionHandler=u.ExceptionHandler;var c=function(t){function e(e){void 0===e&&(e="--"),t.call(this,e),this.message=e,this.stack=new Error(e).stack}return o(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.BaseException=c;var p=function(t){function e(e,n,r,i){t.call(this,e),this._wrapperMessage=e,this._originalException=n,this._originalStack=r,this._context=i,this._wrapperStack=new Error(e).stack}return o(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return a.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.message},e}(s.BaseWrappedException);e.WrappedException=p,e.makeTypeError=r,e.unimplemented=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(21),o=n(48);e.EVENT_MANAGER_PLUGINS=new r.OpaqueToken("EventManagerPlugins");var s=function(){function t(t,e){var n=this;this._zone=e,t.forEach(function(t){return t.manager=n}),this._plugins=i.ListWrapper.reversed(t)}return t.prototype.addEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){for(var e=this._plugins,n=0;n0},t.dispose=function(t){t.unsubscribe()},t.callNext=function(t,e){t.emit(e)},t.callEmit=function(t,e){t.emit(e)},t.callError=function(t,e){t.error(e)},t.callComplete=function(t){t.complete()},t.fromPromise=function(t){return o.PromiseObservable.create(t)},t.toPromise=function(t){return s.toPromise.call(t)},t}();e.ObservableWrapper=f;var h=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.next=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};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(i.Subject);e.EventEmitter=h},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){var n=i(t,e),r=new u.BehaviorSubject([new p.UrlSegment("",{})]),o=new u.BehaviorSubject({}),s=new u.BehaviorSubject({}),a=new u.BehaviorSubject({}),l=new u.BehaviorSubject(""),v=new d(r,o,s,c.PRIMARY_OUTLET,e,n.root);return v.snapshot=n.root,new h(new f.TreeNode(v,[]),a,l,n)}function i(t,e){var n={},r={},i={},o="",s=new y([],n,r,c.PRIMARY_OUTLET,e,null,t.root,-1,v.empty);return new m("",new f.TreeNode(s,[]),i,o)}function o(t){var e=t.children.length>0?" { "+t.children.map(o).join(", ")+" } ":"";return""+t.value+e}function s(t){t.snapshot?(l.shallowEqual(t.snapshot.params,t._futureSnapshot.params)||(t.params.next(t._futureSnapshot.params),t.data.next(t._futureSnapshot.data)),l.shallowEqualArrays(t.snapshot.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),t.snapshot=t._futureSnapshot):(t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data))}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n(141),c=n(43),p=n(49),l=n(71),f=n(213),h=function(t){function e(e,n,r,i){t.call(this,e),this.queryParams=n,this.fragment=r,this.snapshot=i}return a(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(f.Tree);e.RouterState=h,e.createEmptyState=r;var d=function(){function t(t,e,n,r,i,o){this.url=t,this.params=e,this.data=n,this.outlet=r,this.component=i,this._futureSnapshot=o}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();e.ActivatedRoute=d;var v=function(){function t(t,e){this.parent=t,this.current=e,this.resolvedData={}}return Object.defineProperty(t.prototype,"flattenedResolvedData",{get:function(){return this.parent?l.merge(this.parent.flattenedResolvedData,this.resolvedData):this.resolvedData},enumerable:!0,configurable:!0}),Object.defineProperty(t,"empty",{get:function(){return new t(null,{})},enumerable:!0,configurable:!0}),t}();e.InheritedResolve=v;var y=function(){function t(t,e,n,r,i,o,s,a,u){this.url=t,this.params=e,this.data=n,this.outlet=r,this.component=i,this._routeConfig=o,this._urlSegment=s,this._lastPathIndex=a,this._resolve=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}();e.ActivatedRouteSnapshot=y;var m=function(t){function e(e,n,r,i){t.call(this,n),this.url=e,this.queryParams=r,this.fragment=i}return a(e,t),e.prototype.toString=function(){return o(this._root)},e}(f.Tree);e.RouterStateSnapshot=m,e.advanceActivatedRoute=s},function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.isUnsubscribed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.isUnsubscribed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(31),a=n(1),u=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return void 0===n&&(n=null),new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.isUnsubscribed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.isUnsubscribed||(t.next(n),t.complete())},function(e){t.isUnsubscribed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.isUnsubscribed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.isUnsubscribed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.isUnsubscribed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);e.PromiseObservable=u},function(t,e){"use strict";function n(t){return t&&"function"==typeof t.schedule}e.isScheduler=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){var n=l.ListWrapper.clone(e.path);return n.push(t),n}function i(t,e){h.isBlank(t)&&s(e,"Cannot find control with"),h.isBlank(e.valueAccessor)&&s(e,"No value accessor for form control with"),t.validator=d.Validators.compose([t.validator,e.validator]),t.asyncValidator=d.Validators.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.updateValue(n,{emitModelToViewChange:!1}),t.markAsDirty()}),t.registerOnChange(function(t){return e.valueAccessor.writeValue(t)}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()})}function o(t,e){h.isBlank(t)&&s(e,"Cannot find control with"),t.validator=d.Validators.compose([t.validator,e.validator]),t.asyncValidator=d.Validators.composeAsync([t.asyncValidator,e.asyncValidator])}function s(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name",new f.BaseException(e+" "+n)}function a(t){return h.isPresent(t)?d.Validators.compose(t.map(m.normalizeValidator)):null}function u(t){return h.isPresent(t)?d.Validators.composeAsync(t.map(m.normalizeAsyncValidator)):null}function c(t,e){if(!l.StringMapWrapper.contains(t,"model"))return!1;var n=t.model;return n.isFirstChange()?!0:!h.looseIdentical(e,n.currentValue)}function p(t,e){if(h.isBlank(e))return null;var n,r,i;return e.forEach(function(e){h.hasConstructor(e,y.DefaultValueAccessor)?n=e:h.hasConstructor(e,v.CheckboxControlValueAccessor)||h.hasConstructor(e,g.NumberValueAccessor)||h.hasConstructor(e,b.SelectControlValueAccessor)||h.hasConstructor(e,w.SelectMultipleControlValueAccessor)||h.hasConstructor(e,_.RadioControlValueAccessor)?(h.isPresent(r)&&s(t,"More than one built-in value accessor matches form control with"),r=e):(h.isPresent(i)&&s(t,"More than one custom value accessor matches form control with"),i=e)}),h.isPresent(i)?i:h.isPresent(r)?r:h.isPresent(n)?n:(s(t,"No valid value accessor for form control with"),null)}var l=n(22),f=n(53),h=n(6),d=n(38),v=n(94),y=n(95),m=n(360),g=n(160),_=n(96),b=n(97),w=n(161);e.controlPath=r,e.setUpControl=i,e.setUpControlGroup=o,e.composeValidators=a,e.composeAsyncValidators=u,e.isPropertyUpdated=c,e.selectValueAccessor=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(14),o=n(18),s=function(){function t(t){var e=void 0===t?{}:t,n=e.renderTypes,i=void 0===n?new u:n,o=e.defaultEncapsulation,s=void 0===o?r.ViewEncapsulation.Emulated:o,a=e.genDebugInfo,c=e.logBindingUpdate,p=e.useJit,l=void 0===p?!0:p,f=e.deprecatedPlatformDirectives,h=void 0===f?[]:f,d=e.deprecatedPlatformPipes,v=void 0===d?[]:d;this.renderTypes=i,this.defaultEncapsulation=s,this._genDebugInfo=a,this._logBindingUpdate=c,this.useJit=l,this.platformDirectives=h,this.platformPipes=v}return Object.defineProperty(t.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?r.isDevMode():this._genDebugInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logBindingUpdate",{get:function(){return void 0===this._logBindingUpdate?r.isDevMode():this._logBindingUpdate},enumerable:!0,configurable:!0}),t}();e.CompilerConfig=s;var a=function(){function t(){}return Object.defineProperty(t.prototype,"renderer",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderText",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderElement",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderComment",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderEvent",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),t}();e.RenderTypes=a;var u=function(){function t(){this.renderer=o.Identifiers.Renderer,this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return t}();e.DefaultRenderTypes=u},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(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 r(t){return null===t?null:n(t)[0]}function i(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"}(e.TagContentType||(e.TagContentType={}));e.TagContentType;e.splitNsName=n,e.getNsPrefix=r,e.mergeNsAndName=i,e.NAMED_ENTITIES={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:""}},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(){return new d}function i(){return new d(h)}function o(t){var e=a(t);return e&&e[v.Scheme]||""}function s(t,e,n,r,i,o,s){var a=[];return f.isPresent(t)&&a.push(t+":"),f.isPresent(n)&&(a.push("//"),f.isPresent(e)&&a.push(e+"@"),a.push(n),f.isPresent(r)&&a.push(":"+r)),f.isPresent(i)&&a.push(i),f.isPresent(o)&&a.push("?"+o),f.isPresent(s)&&a.push("#"+s),a.join("")}function a(t){return f.RegExpWrapper.firstMatch(y,t)}function u(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function c(t){var e=t[v.Path];return e=f.isBlank(e)?"":u(e),t[v.Path]=e,s(t[v.Scheme],t[v.UserInfo],t[v.Domain],t[v.Port],e,t[v.QueryData],t[v.Fragment])}function p(t,e){var n=a(encodeURI(e)),r=a(t);if(f.isPresent(n[v.Scheme]))return c(n);n[v.Scheme]=r[v.Scheme];for(var i=v.Scheme;i<=v.Port;i++)f.isBlank(n[i])&&(n[i]=r[i]);if("/"==n[v.Path][0])return c(n);var o=r[v.Path];f.isBlank(o)&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[v.Path],n[v.Path]=o,c(n)}var l=n(2),f=n(4),h="asset:";e.createUrlResolverWithoutPackagePrefix=r,e.createOfflineCompileUrlResolver=i,e.DEFAULT_PACKAGE_URL_PROVIDER={provide:l.PACKAGE_ROOT_URL,useValue:"/"};var d=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;f.isPresent(t)&&t.length>0&&(n=p(t,n));var r=a(n),i=this._packagePrefix;if(f.isPresent(i)&&f.isPresent(r)&&"package"==r[v.Scheme]){var o=r[v.Path];if(this._packagePrefix!==h)return i=f.StringWrapper.stripRight(i,"/"),o=f.StringWrapper.stripLeft(o,"/"),i+"/"+o;var s=o.split(/\//);n="asset:"+s[0]+"/lib/"+s.slice(1).join("/")}return n},t.decorators=[{type:l.Injectable}],t.ctorParameters=[{type:void 0,decorators:[{type:l.Inject,args:[l.PACKAGE_ROOT_URL]}]}],t}();e.UrlResolver=d,e.getUrlScheme=o;var v,y=f.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");!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"}(v||(v={}))},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){if(a.isBlank(e))return c.NULL_EXPR;var n=a.resolveEnumToken(t.runtime,e);return c.importExpr(new s.CompileIdentifierMetadata({name:t.name+"."+n,moduleUrl:t.moduleUrl,runtime:e}))}var i=n(2),o=n(17),s=n(20),a=n(4),u=n(18),c=n(13),p=function(){function t(){}return t.fromValue=function(t){return r(u.Identifiers.ViewType,t)},t.HOST=t.fromValue(o.ViewType.HOST),t.COMPONENT=t.fromValue(o.ViewType.COMPONENT),t.EMBEDDED=t.fromValue(o.ViewType.EMBEDDED),t}();e.ViewTypeEnum=p;var l=function(){function t(){}return t.fromValue=function(t){return r(u.Identifiers.ViewEncapsulation,t)},t.Emulated=t.fromValue(i.ViewEncapsulation.Emulated),t.Native=t.fromValue(i.ViewEncapsulation.Native),t.None=t.fromValue(i.ViewEncapsulation.None),t}();e.ViewEncapsulationEnum=l;var f=function(){function t(){}return t.fromValue=function(t){return r(u.Identifiers.ChangeDetectionStrategy,t)},t.OnPush=t.fromValue(i.ChangeDetectionStrategy.OnPush),t.Default=t.fromValue(i.ChangeDetectionStrategy.Default),t}();e.ChangeDetectionStrategyEnum=f;var h=function(){function t(){}return t.fromValue=function(t){return r(u.Identifiers.ChangeDetectorStatus,t)},t.CheckOnce=t.fromValue(o.ChangeDetectorStatus.CheckOnce),t.Checked=t.fromValue(o.ChangeDetectorStatus.Checked),t.CheckAlways=t.fromValue(o.ChangeDetectorStatus.CheckAlways),t.Detached=t.fromValue(o.ChangeDetectorStatus.Detached),t.Errored=t.fromValue(o.ChangeDetectorStatus.Errored),t.Destroyed=t.fromValue(o.ChangeDetectorStatus.Destroyed),t}();e.ChangeDetectorStatusEnum=h;var d=function(){function t(){}return t.viewUtils=c.variable("viewUtils"),t.parentInjector=c.variable("parentInjector"),t.declarationEl=c.variable("declarationEl"),t}();e.ViewConstructorVars=d;var v=function(){function t(){}return t.renderer=c.THIS_EXPR.prop("renderer"),t.projectableNodes=c.THIS_EXPR.prop("projectableNodes"),t.viewUtils=c.THIS_EXPR.prop("viewUtils"),t}();e.ViewProperties=v;var y=function(){function t(){}return t.event=c.variable("$event"),t}();e.EventHandlerVars=y;var m=function(){function t(){}return t.token=c.variable("token"),t.requestNodeIndex=c.variable("requestNodeIndex"),t.notFoundResult=c.variable("notFoundResult"),t}();e.InjectMethodVars=m;var g=function(){function t(){}return t.throwOnChange=c.variable("throwOnChange"),t.changes=c.variable("changes"),t.changed=c.variable("changed"),t.valUnwrapper=c.variable("valUnwrapper"),t}();e.DetectChangesVars=g},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(12),o=n(63),s=n(73),a=n(3),u=n(1);e.Observable=u.Observable;var c=n(12);e.Subject=c.Subject;var p=n(409);e.PromiseCompleter=p.PromiseCompleter,e.PromiseWrapper=p.PromiseWrapper;var l=function(){function t(){}return t.setTimeout=function(t,e){return a.global.setTimeout(t,e)},t.clearTimeout=function(t){a.global.clearTimeout(t)},t.setInterval=function(t,e){return a.global.setInterval(t,e)},t.clearInterval=function(t){a.global.clearInterval(t)},t}();e.TimerWrapper=l;var f=function(){function t(){}return t.subscribe=function(t,e,n,r){return void 0===r&&(r=function(){}),n="function"==typeof n&&n||a.noop,r="function"==typeof r&&r||a.noop,t.subscribe({next:e,error:n,complete:r})},t.isObservable=function(t){return!!t.subscribe},t.hasSubscribers=function(t){return t.observers.length>0},t.dispose=function(t){t.unsubscribe()},t.callNext=function(t,e){t.emit(e)},t.callEmit=function(t,e){t.emit(e)},t.callError=function(t,e){t.error(e)},t.callComplete=function(t){t.complete()},t.fromPromise=function(t){return o.PromiseObservable.create(t)},t.toPromise=function(t){return s.toPromise.call(t)},t}();e.ObservableWrapper=f;var h=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.next=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};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(i.Subject);e.EventEmitter=h},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n0?t[0]:null}function a(t){return t.length>0?t[t.length-1]:null}function u(t){return t.reduce(function(t,e){return t&&e},!0)}function c(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function p(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function l(t,e){var n=[],r={};return p(t,function(t,i){i===m.PRIMARY_OUTLET&&n.push(e(i,t).map(function(t){return r[i]=t,t}))}),p(t,function(t,i){i!==m.PRIMARY_OUTLET&&n.push(e(i,t).map(function(t){return r[i]=t,t}))}),n.length>0?y.of.apply(void 0,n).concatAll().last().map(function(t){return r}):y.of(r)}function f(t){return t.mergeAll().every(function(t){return t===!0})}function h(t){return t instanceof d.Observable?t:t instanceof Promise?v.fromPromise(t):y.of(t)}n(214),n(337);var d=n(1),v=n(143),y=n(91),m=n(43);e.shallowEqualArrays=r,e.shallowEqual=i,e.flatten=o,e.first=s,e.last=a,e.and=u,e.merge=c,e.forEach=p,e.waitForMap=l,e.andObservables=f,e.wrapIntoObservable=h},function(t,e,n){"use strict";function r(t){var e;return e="function"==typeof t?t:function(){return t},new i.ConnectableObservable(this,e)}var i=n(342);e.multicast=r},function(t,e,n){"use strict";function r(t){var e=this;if(t||(i.root.Rx&&i.root.Rx.config&&i.root.Rx.config.Promise?t=i.root.Rx.config.Promise:i.root.Promise&&(t=i.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})}var i=n(31);e.toPromise=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(152),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(i.AbstractControlDirective);e.ControlContainer=o},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){}return t}();e.ElementSchemaRegistry=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e,n){if(e===n)return t;for(var r=p.THIS_EXPR,i=e;i!==n&&c.isPresent(i.declarationElement.view);)i=i.declarationElement.view,r=r.prop("parent");if(i!==n)throw new u.BaseException("Internal error: Could not calculate a property in a parent view: "+t);if(t instanceof p.ReadPropExpr){var o=t;(n.fields.some(function(t){return t.name==o.name})||n.getters.some(function(t){return t.name==o.name}))&&(r=r.cast(n.classType))}return p.replaceVarInExpression(p.THIS_EXPR.name,r,t)}function i(t,e){var n=[f.createDiTokenExpression(t)];return e&&n.push(p.NULL_EXPR),p.THIS_EXPR.prop("parentInjector").callMethod("get",n)}function o(t,e){return"viewFactory_"+t.type.name+e}function s(t){for(var e=[],n=p.literalArr([]),r=0;r0&&(n=n.callMethod(p.BuiltinMethod.ConcatArray,[p.literalArr(e)]),e=[]),n=n.callMethod(p.BuiltinMethod.ConcatArray,[i])):e.push(i)}return e.length>0&&(n=n.callMethod(p.BuiltinMethod.ConcatArray,[p.literalArr(e)])),n}function a(t,e,n,r){r.fields.push(new p.ClassField(n.name,null));var i=e0){var r=t.substring(0,e),i=t.substring(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){t=r(t);var n=this._headersMap.get(t),i=s.isListLikeIterable(n)?n:[];i.push(e),this._headersMap.set(t,i)},t.prototype["delete"]=function(t){this._headersMap["delete"](r(t))},t.prototype.forEach=function(t){this._headersMap.forEach(t)},t.prototype.get=function(t){return s.ListWrapper.first(this._headersMap.get(r(t)))},t.prototype.has=function(t){return this._headersMap.has(r(t))},t.prototype.keys=function(){return s.MapWrapper.keys(this._headersMap)},t.prototype.set=function(t,e){var n=[];if(s.isListLikeIterable(e)){var i=e.join(",");n.push(i)}else n.push(e);this._headersMap.set(r(t),n)},t.prototype.values=function(){return s.MapWrapper.values(this._headersMap)},t.prototype.toJSON=function(){var t={};return this._headersMap.forEach(function(e,n){var i=[];s.iterateListLike(e,function(t){return i=s.ListWrapper.concat(i,t.split(","))}),t[r(n)]=i}),t},t.prototype.getAll=function(t){var e=this._headersMap.get(r(t));return s.isListLikeIterable(e)?e:[]},t.prototype.entries=function(){throw new i.BaseException('"entries" method is not implemented on Headers class')},t}();e.Headers=a},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){}return t}();e.ConnectionBackend=n;var r=function(){function t(){}return t}();e.Connection=r;var i=function(){function t(){}return t}();e.XSRFStrategy=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2);e.RenderDebugInfo=r.__core_private__.RenderDebugInfo,e.wtfInit=r.__core_private__.wtfInit,e.ReflectionCapabilities=r.__core_private__.ReflectionCapabilities,e.VIEW_ENCAPSULATION_VALUES=r.__core_private__.VIEW_ENCAPSULATION_VALUES,e.DebugDomRootRenderer=r.__core_private__.DebugDomRootRenderer,e.reflector=r.__core_private__.reflector,e.NoOpAnimationPlayer=r.__core_private__.NoOpAnimationPlayer,e.AnimationPlayer=r.__core_private__.AnimationPlayer,e.AnimationSequencePlayer=r.__core_private__.AnimationSequencePlayer,e.AnimationGroupPlayer=r.__core_private__.AnimationGroupPlayer,e.AnimationKeyframe=r.__core_private__.AnimationKeyframe,e.AnimationStyles=r.__core_private__.AnimationStyles,e.prepareFinalAnimationStyles=r.__core_private__.prepareFinalAnimationStyles,e.balanceAnimationKeyframes=r.__core_private__.balanceAnimationKeyframes,e.flattenStyles=r.__core_private__.flattenStyles,e.clearStyles=r.__core_private__.clearStyles,e.collectAndResolveStyles=r.__core_private__.collectAndResolveStyles},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var i=n(133);e.BROWSER_APP_PROVIDERS=i.BROWSER_APP_PROVIDERS,e.BROWSER_PLATFORM_PROVIDERS=i.BROWSER_PLATFORM_PROVIDERS,e.BROWSER_SANITIZATION_PROVIDERS=i.BROWSER_SANITIZATION_PROVIDERS,e.BrowserModule=i.BrowserModule,e.browserPlatform=i.browserPlatform,e.platformBrowser=i.platformBrowser;var o=n(134);e.BrowserPlatformLocation=o.BrowserPlatformLocation;var s=n(440);e.Title=s.Title;var a=n(442);e.disableDebugTools=a.disableDebugTools,e.enableDebugTools=a.enableDebugTools;var u=n(135);e.AnimationDriver=u.AnimationDriver;var c=n(443);e.By=c.By;var p=n(85);e.DOCUMENT=p.DOCUMENT;var l=n(60);e.EVENT_MANAGER_PLUGINS=l.EVENT_MANAGER_PLUGINS,e.EventManager=l.EventManager;var f=n(208);e.HAMMER_GESTURE_CONFIG=f.HAMMER_GESTURE_CONFIG,e.HammerGestureConfig=f.HammerGestureConfig;var h=n(327);e.DomSanitizationService=h.DomSanitizationService;var d=n(86);e.ClientMessageBroker=d.ClientMessageBroker,e.ClientMessageBrokerFactory=d.ClientMessageBrokerFactory,e.FnArg=d.FnArg,e.UiArguments=d.UiArguments;var v=n(35);e.PRIMITIVE=v.PRIMITIVE;var y=n(88);e.ReceivedMessage=y.ReceivedMessage,e.ServiceMessageBroker=y.ServiceMessageBroker,e.ServiceMessageBrokerFactory=y.ServiceMessageBrokerFactory,r(n(42));var m=n(456);e.WORKER_APP_LOCATION_PROVIDERS=m.WORKER_APP_LOCATION_PROVIDERS;var g=n(453);e.WORKER_UI_LOCATION_PROVIDERS=g.WORKER_UI_LOCATION_PROVIDERS,r(n(461)),r(n(460)),r(n(437))},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2);e.DOCUMENT=new r.OpaqueToken("DocumentToken")},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(61),s=n(21),a=n(11),u=n(42),c=n(35),p=function(){function t(){}return t}();e.ClientMessageBrokerFactory=p;var l=function(t){function e(e,n){t.call(this),this._messageBus=e,this._serializer=n}return r(e,t),e.prototype.createMessageBroker=function(t,e){return void 0===e&&(e=!0),this._messageBus.initChannel(t,e),new h(this._messageBus,this._serializer,t)},e.decorators=[{type:i.Injectable}],e.ctorParameters=[{type:u.MessageBus},{type:c.Serializer}],e}(p);e.ClientMessageBrokerFactory_=l;var f=function(){function t(){}return t}();e.ClientMessageBroker=f;var h=function(t){function e(e,n,r){var i=this;t.call(this),this.channel=r,this._pending=new Map,this._sink=e.to(r),this._serializer=n;var s=e.from(r);o.ObservableWrapper.subscribe(s,function(t){return i._handleMessage(t)})}return r(e,t),e.prototype._generateMessageId=function(t){for(var e=a.stringify(a.DateWrapper.toMillis(a.DateWrapper.now())),n=0,r=t+e+a.stringify(n);a.isPresent(this._pending[r]);)r=""+t+e+n,n++;return r},e.prototype.runOnService=function(t,e){var n=this,r=[];a.isPresent(t.args)&&t.args.forEach(function(t){null!=t.type?r.push(n._serializer.serialize(t.value,t.type)):r.push(t.value)});var i,s=null;if(null!=e){var u=o.PromiseWrapper.completer();s=this._generateMessageId(t.method),this._pending.set(s,u),o.PromiseWrapper.catchError(u.promise,function(t,e){a.print(t),u.reject(t,e)}),i=o.PromiseWrapper.then(u.promise,function(t){return null==n._serializer?t:n._serializer.deserialize(t,e)})}else i=null;var c={method:t.method,args:r};return null!=s&&(c.id=s),o.ObservableWrapper.callEmit(this._sink,c),i},e.prototype._handleMessage=function(t){var e=new d(t);if(a.StringWrapper.equals(e.type,"result")||a.StringWrapper.equals(e.type,"error")){var n=e.id;this._pending.has(n)&&(a.StringWrapper.equals(e.type,"result")?this._pending.get(n).resolve(e.value):this._pending.get(n).reject(e.value,null),this._pending["delete"](n))}},e}(f);e.ClientMessageBroker_=h;var d=function(){function t(t){this.type=s.StringMapWrapper.get(t,"type"),this.id=this._getValueIfPresent(t,"id"),this.value=this._getValueIfPresent(t,"value")}return t.prototype._getValueIfPresent=function(t,e){return s.StringMapWrapper.contains(t,e)?s.StringMapWrapper.get(t,e):null},t}(),v=function(){function t(t,e){this.value=t,this.type=e}return t}();e.FnArg=v;var y=function(){function t(t,e){this.method=t,this.args=e}return t}();e.UiArguments=y},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=function(){function t(){this._nextIndex=0,this._lookupById=new Map,this._lookupByObject=new Map}return t.prototype.allocateId=function(){return this._nextIndex++},t.prototype.store=function(t,e){this._lookupById.set(e,t),this._lookupByObject.set(t,e)},t.prototype.remove=function(t){var e=this._lookupByObject.get(t);this._lookupByObject["delete"](t),this._lookupById["delete"](e)},t.prototype.deserialize=function(t){return null==t?null:this._lookupById.has(t)?this._lookupById.get(t):null},t.prototype.serialize=function(t){return null==t?null:this._lookupByObject.get(t)},t.decorators=[{type:r.Injectable}],t.ctorParameters=[],t}();e.RenderStore=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(61),s=n(21),a=n(11),u=n(42),c=n(35),p=function(){function t(){}return t}();e.ServiceMessageBrokerFactory=p;var l=function(t){function e(e,n){t.call(this),this._messageBus=e,this._serializer=n}return r(e,t),e.prototype.createMessageBroker=function(t,e){return void 0===e&&(e=!0),this._messageBus.initChannel(t,e),new h(this._messageBus,this._serializer,t)},e.decorators=[{type:i.Injectable}],e.ctorParameters=[{type:u.MessageBus},{type:c.Serializer}],e}(p);e.ServiceMessageBrokerFactory_=l;var f=function(){function t(){}return t}();e.ServiceMessageBroker=f;var h=function(t){function e(e,n,r){var i=this;t.call(this),this._serializer=n,this.channel=r,this._methods=new s.Map,this._sink=e.to(r);var a=e.from(r);o.ObservableWrapper.subscribe(a,function(t){return i._handleMessage(t)})}return r(e,t),e.prototype.registerMethod=function(t,e,n,r){var i=this;this._methods.set(t,function(t){for(var o=t.args,u=null===e?0:e.length,c=s.ListWrapper.createFixedSize(u),p=0;u>p;p++){var l=o[p];c[p]=i._serializer.deserialize(l,e[p])}var f=a.FunctionWrapper.apply(n,c);a.isPresent(r)&&a.isPresent(f)&&i._wrapWebWorkerPromise(t.id,f,r)})},e.prototype._handleMessage=function(t){var e=new d(t);this._methods.has(e.method)&&this._methods.get(e.method)(e)},e.prototype._wrapWebWorkerPromise=function(t,e,n){var r=this;o.PromiseWrapper.then(e,function(e){o.ObservableWrapper.callEmit(r._sink,{type:"result",value:r._serializer.serialize(e,n),id:t})})},e}(f);e.ServiceMessageBroker_=h;var d=function(){function t(t){this.method=t.method,this.args=t.args,this.id=t.id,this.type=t.type}return t}();e.ReceivedMessage=d},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){var n=t.pathFromRoot(e).filter(function(t){var n=t._routeConfig;return n&&n._loadedConfig&&t!==e});return n.length>0?n[n.length-1]._routeConfig._loadedConfig:null}function i(t){E.shallowEqual(t.snapshot.queryParams,t.queryParams.value)||t.queryParams.next(t.snapshot.queryParams),t.snapshot.fragment!==t.fragment.value&&t.fragment.next(t.snapshot.fragment)}function o(t){return t?t.children.reduce(function(t,e){return t[e.value.outlet]=e,t},{}):{}}function s(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw e.outlet===b.PRIMARY_OUTLET?new Error("Cannot find primary outlet to load '"+r+"'"):new Error("Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}n(215),n(339),n(338),n(340),n(335);var a=n(2),u=n(12),c=n(217),p=n(91),l=n(463),f=n(464),h=n(465),d=n(466),v=n(467),y=n(468),m=n(139),g=n(90),_=n(62),b=n(43),w=n(49),E=n(71),S=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}();e.NavigationStart=S;var C=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}();e.NavigationEnd=C;var P=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}();e.NavigationCancel=P;var O=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}();e.NavigationError=O;var A=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}();e.RoutesRecognized=A;var T=function(){function t(t,e,n,r,i,o,s,a){this.rootComponentType=t,this.resolver=e,this.urlSerializer=n,this.outletMap=r,this.location=i,this.injector=o,this.navigationId=0,this.navigated=!1,this.resetConfig(a),this.routerEvents=new u.Subject,this.currentUrlTree=w.createEmptyUrlTree(),this.configLoader=new m.RouterConfigLoader(s),this.currentRouterState=_.createEmptyState(this.currentUrlTree,this.rootComponentType)}return t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),this.navigateByUrl(this.location.path(!0))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.resetConfig=function(t){f.validateConfig(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription.unsubscribe()},t.prototype.createUrlTree=function(t,e){var n=void 0===e?{}:e,r=n.relativeTo,i=n.queryParams,o=n.fragment,s=n.preserveQueryParams,a=n.preserveFragment,u=r?r:this.routerState.root,c=s?this.currentUrlTree.queryParams:i,p=a?this.currentUrlTree.fragment:o;return d.createUrlTree(u,this.currentUrlTree,t,c,p)},t.prototype.navigateByUrl=function(t){if(t instanceof w.UrlTree)return this.scheduleNavigation(t,!1);var e=this.urlSerializer.parse(t);return this.scheduleNavigation(e,!1)},t.prototype.navigate=function(t,e){return void 0===e&&(e={}),this.scheduleNavigation(this.createUrlTree(t,e),!1)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof w.UrlTree)return w.containsTree(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return w.containsTree(this.currentUrlTree,n,e)},t.prototype.scheduleNavigation=function(t,e){var n=this,r=++this.navigationId;return this.routerEvents.next(new S(r,this.serializeUrl(t))),Promise.resolve().then(function(i){return n.runNavigate(t,e,r)})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url);return t.currentUrlTree.toString()!==n.toString()?t.scheduleNavigation(n,e.pop):null}))},t.prototype.runNavigate=function(t,e,n){var r=this;return n!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new P(n,this.serializeUrl(t))),Promise.resolve(!1)):new Promise(function(i,o){var s,a,u,c,f=r.currentRouterState,d=r.currentUrlTree;l.applyRedirects(r.injector,r.configLoader,t,r.config).mergeMap(function(t){return c=t,v.recognize(r.rootComponentType,r.config,c,r.serializeUrl(c))}).mergeMap(function(e){return r.routerEvents.next(new A(n,r.serializeUrl(t),r.serializeUrl(c),e)),y.resolve(r.resolver,e)}).map(function(t){return h.createRouterState(t,r.currentRouterState)}).map(function(t){s=t,u=new I(s.snapshot,r.currentRouterState.snapshot,r.injector),u.traverse(r.outletMap)}).mergeMap(function(t){return u.checkGuards()}).mergeMap(function(t){return t?u.resolveData().map(function(){return t}):p.of(t)}).forEach(function(i){if(!i||n!==r.navigationId)return r.routerEvents.next(new P(n,r.serializeUrl(t))),void(a=!1);if(r.currentUrlTree=c,r.currentRouterState=s,new M(s,f).activate(r.outletMap),!e){var o=r.urlSerializer.serialize(c);r.location.isCurrentPathEqualTo(o)?r.location.replaceState(o):r.location.go(o)}a=!0}).then(function(){r.navigated=!0,r.routerEvents.next(new C(n,r.serializeUrl(t),r.serializeUrl(c))),i(a)},function(e){r.currentRouterState=f,r.currentUrlTree=d,r.routerEvents.next(new O(n,r.serializeUrl(t),e)),o(e)})})},t}();e.Router=T;var x=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),R=function(){function t(t,e){this.component=t,this.route=e}return t}(),I=function(){function t(t,e,n){this.future=t,this.curr=e,this.injector=n,this.checks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;return 0===this.checks.length?p.of(!0):c.from(this.checks).map(function(e){if(e instanceof x)return E.andObservables(c.from([t.runCanActivate(e.route),t.runCanActivateChild(e.path)]));if(e instanceof R){var n=e;return t.runCanDeactivate(n.component,n.route)}throw new Error("Cannot be reached")}).mergeAll().every(function(t){return t===!0})},t.prototype.resolveData=function(){var t=this;return 0===this.checks.length?p.of(null):c.from(this.checks).mergeMap(function(e){return e instanceof x?t.runResolve(e.route):p.of(null)}).reduce(function(t,e){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,s=o(e);t.children.forEach(function(t){i.traverseRoutes(t,s[t.value.outlet],n,r.concat([t.value])),delete s[t.value.outlet]}),E.forEach(s,function(t,e){return i.deactivateOutletAndItChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;o&&i._routeConfig===o._routeConfig?(E.shallowEqual(i.params,o.params)||this.checks.push(new R(s.component,o),new x(r)),i.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(o&&(o.component?this.deactivateOutletAndItChildren(o,s):this.deactivateOutletMap(n)),this.checks.push(new x(r)),i.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.deactivateOutletAndItChildren=function(t,e){e&&e.isActivated&&(this.deactivateOutletMap(e.outletMap),this.checks.push(new R(e.component,t)))},t.prototype.deactivateOutletMap=function(t){var e=this;E.forEach(t._outlets,function(t){t.isActivated&&e.deactivateOutletAndItChildren(t.activatedRoute.snapshot,t)})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;if(!n||0===n.length)return p.of(!0);var r=c.from(n).map(function(n){var r=e.getToken(n,t,e.future);return r.canActivate?E.wrapIntoObservable(r.canActivate(t,e.future)):E.wrapIntoObservable(r(t,e.future))});return E.andObservables(r)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return E.andObservables(c.from(r).map(function(t){var r=c.from(t.guards).map(function(t){var r=e.getToken(t,t.node,e.future);return r.canActivateChild?E.wrapIntoObservable(r.canActivateChild(n,e.future)):E.wrapIntoObservable(r(n,e.future))});return E.andObservables(r)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;return r&&0!==r.length?c.from(r).map(function(r){var i=n.getToken(r,e,n.curr);return i.canDeactivate?E.wrapIntoObservable(i.canDeactivate(t,e,n.curr)):E.wrapIntoObservable(i(t,e,n.curr))}).mergeAll().every(function(t){return t===!0}):p.of(!0)},t.prototype.runResolve=function(t){var e=t._resolve;return this.resolveNode(e.current,t).map(function(n){return e.resolvedData=n,t.data=E.merge(t.data,e.flattenedResolvedData),null})},t.prototype.resolveNode=function(t,e){var n=this;return E.waitForMap(t,function(t,r){var i=n.getToken(r,e,n.future);return i.resolve?E.wrapIntoObservable(i.resolve(e,n.future)):E.wrapIntoObservable(i(e,n.future))})},t.prototype.getToken=function(t,e,n){var i=r(n,e),o=i?i.injector:this.injector;return o.get(t)},t}(),M=function(){function t(t,e){this.futureState=t,this.currState=e}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;_.advanceActivatedRoute(this.futureState.root),this.activateChildRoutes(e,n,t),i(this.futureState)},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=o(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),delete i[t.value.outlet]}),E.forEach(i,function(t,e){return r.deactivateOutletAndItChildren(n._outlets[e])})},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(_.advanceActivatedRoute(r),r.component){var o=s(n,t.value);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,n);else{if(i)if(i.component){var o=s(n,t.value);this.deactivateOutletAndItChildren(o)}else this.deactivateOutletMap(n);if(r.component){_.advanceActivatedRoute(r);var o=s(n,t.value),a=new g.RouterOutletMap;this.placeComponentIntoOutlet(a,r,o),this.activateChildRoutes(t,null,a)}else _.advanceActivatedRoute(r),this.activateChildRoutes(t,null,n)}},t.prototype.placeComponentIntoOutlet=function(t,e,n){var i=[{provide:_.ActivatedRoute,useValue:e},{provide:g.RouterOutletMap,useValue:t}],o=r(this.futureState.snapshot,e.snapshot),s=null,u=null;o&&(s=o.factoryResolver,u=o.injector,i.push({provide:a.ComponentFactoryResolver,useValue:s})),n.activate(e,s,u,a.ReflectiveInjector.resolve(i),t)},t.prototype.deactivateOutletAndItChildren=function(t){t&&t.isActivated&&(this.deactivateOutletMap(t.outletMap),t.deactivate())},t.prototype.deactivateOutletMap=function(t){var e=this;E.forEach(t._outlets,function(t){return e.deactivateOutletAndItChildren(t)})},t}()},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}();e.RouterOutletMap=n},function(t,e,n){"use strict";var r=n(50);e.of=r.ArrayObservable.of},function(t,e,n){"use strict";var r=n(31),i=r.root.Symbol;if("function"==typeof i)i.iterator?e.$$iterator=i.iterator:"function"==typeof i["for"]&&(e.$$iterator=i["for"]("iterator"));else if(r.root.Set&&"function"==typeof(new r.root.Set)["@@iterator"])e.$$iterator="@@iterator";else if(r.root.Map)for(var o=Object.getOwnPropertyNames(r.root.Map.prototype),s=0;s=this.length?g.$EOF:_.StringWrapper.charCodeAt(this.input,this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,i=this.index;n<=g.$SPACE;){if(++i>=e){n=g.$EOF;break}n=_.StringWrapper.charCodeAt(t,i)}if(this.peek=n,this.index=i,i>=e)return null;if(p(n))return this.scanIdentifier();if(g.isDigit(n))return this.scanNumber(i);var o=i;switch(n){case g.$PERIOD:return this.advance(),g.isDigit(this.peek)?this.scanNumber(o):r(o,g.$PERIOD);case g.$LPAREN:case g.$RPAREN:case g.$LBRACE:case g.$RBRACE:case g.$LBRACKET:case g.$RBRACKET:case g.$COMMA:case g.$COLON:case g.$SEMICOLON:return this.scanCharacter(o,n);case g.$SQ:case g.$DQ:return this.scanString();case g.$HASH:case g.$PLUS:case g.$MINUS:case g.$STAR:case g.$SLASH:case g.$PERCENT:case g.$CARET:return this.scanOperator(o,_.StringWrapper.fromCharCode(n));case g.$QUESTION:return this.scanComplexOperator(o,"?",g.$PERIOD,".");case g.$LT:case g.$GT:return this.scanComplexOperator(o,_.StringWrapper.fromCharCode(n),g.$EQ,"=");case g.$BANG:case g.$EQ:return this.scanComplexOperator(o,_.StringWrapper.fromCharCode(n),g.$EQ,"=",g.$EQ,"=");case g.$AMPERSAND:return this.scanComplexOperator(o,"&",g.$AMPERSAND,"&");case g.$BAR:return this.scanComplexOperator(o,"|",g.$BAR,"|");case g.$NBSP:for(;g.isWhitespace(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+_.StringWrapper.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),r(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),s(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var a=e;return this.peek==n&&(this.advance(),a+=r),_.isPresent(i)&&this.peek==i&&(this.advance(),a+=o),s(t,a)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();f(this.peek);)this.advance();var e=this.input.substring(t,this.index);return w.indexOf(e)>-1?o(t,e):i(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(g.isDigit(this.peek));else if(this.peek==g.$PERIOD)e=!1;else{if(!h(this.peek))break;if(this.advance(),d(this.peek)&&this.advance(),!g.isDigit(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index),r=e?_.NumberWrapper.parseIntAutoRadix(n):_.NumberWrapper.parseFloat(n);return u(t,r)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n,r=this.index,i=this.input;this.peek!=e;)if(this.peek==g.$BACKSLASH){null==n&&(n=new _.StringJoiner),n.add(i.substring(r,this.index)),this.advance();var o;if(this.peek==g.$u){var s=i.substring(this.index+1,this.index+5);try{o=_.NumberWrapper.parseInt(s,16)}catch(u){return this.error("Invalid unicode escape [\\u"+s+"]",0)}for(var c=0;5>c;c++)this.advance()}else o=y(this.peek),this.advance();n.add(_.StringWrapper.fromCharCode(o)),r=this.index}else{if(this.peek==g.$EOF)return this.error("Unterminated quote",0);this.advance()}var p=i.substring(r,this.index);this.advance();var l=p;return null!=n&&(n.add(p),l=n.toString()),a(t,l)},t.prototype.error=function(t,e){var n=this.index+e;return c(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}();e.isIdentifier=l,e.isQuote=v},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){var e=a.escapeRegExp(t.start)+"([\\s\\S]*?)"+a.escapeRegExp(t.end);return a.RegExpWrapper.create(e,"g")}var i=n(2),o=n(166),s=n(7),a=n(4),u=n(44),c=n(169),p=n(101),l=function(){function t(t,e){this.strings=t,this.expressions=e}return t}();e.SplitInterpolation=l;var f=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}();e.TemplateBindingParseResult=f;var h=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=u.DEFAULT_INTERPOLATION_CONFIG),this._checkNoInterpolation(t,e,n);var r=this._lexer.tokenize(this._stripComments(t)),i=new d(t,e,r,!0,this.errors).parseChain();return new c.ASTWithSource(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=u.DEFAULT_INTERPOLATION_CONFIG);var r=this._parseBindingAst(t,e,n);return new c.ASTWithSource(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=u.DEFAULT_INTERPOLATION_CONFIG);var r=this._parseBindingAst(t,e,n);return v.check(r)||this._reportError("Host binding expression can only contain field access and constants",t,e),new c.ASTWithSource(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new c.ParserError(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(a.isPresent(r))return r;this._checkNoInterpolation(t,e,n);var i=this._lexer.tokenize(this._stripComments(t));return new d(t,e,i,!1,this.errors).parseChain()},t.prototype._parseQuote=function(t,e){if(a.isBlank(t))return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!p.isIdentifier(r))return null;var i=t.substring(n+1);return new c.Quote(new c.ParseSpan(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e){var n=this._lexer.tokenize(t);return new d(t,e,n,!1,this.errors).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=u.DEFAULT_INTERPOLATION_CONFIG);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o0?c.push(f):this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,p,n)+" in",e)}return new l(s,c)},t.prototype.wrapLiteralPrimitive=function(t,e){return new c.ASTWithSource(new c.LiteralPrimitive(new c.ParseSpan(0,a.isBlank(t)?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return a.isPresent(e)?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;e>i;i++)r+=i%2===0?t[i]:""+n.start+t[i]+n.end;return r.length},t.decorators=[{type:i.Injectable}],t.ctorParameters=[{type:p.Lexer}],t}();e.Parser=h;var d=function(){function t(t,e,n,r,i){this.input=t,this.location=e,this.tokens=n,this.parseAction=r,this.errors=i,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":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new c.Binary(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==p.TokenType.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new c.Binary(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==p.TokenType.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new c.Binary(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==p.TokenType.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new c.Binary(this.span(t),e,new c.LiteralPrimitive(new c.ParseSpan(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new c.PrefixNot(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(o.$PERIOD))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(o.$LBRACKET)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(o.$RBRACKET),this.optionalOperator("=")){var n=this.parseConditional();t=new c.KeyedWrite(this.span(t.span.start),t,e,n)}else t=new c.KeyedRead(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(o.$LPAREN))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(o.$RPAREN),t=new c.FunctionCall(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(o.$LPAREN)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(o.$RPAREN),e}if(this.next.isKeywordNull()||this.next.isKeywordUndefined())return this.advance(),new c.LiteralPrimitive(this.span(t),null);if(this.next.isKeywordTrue())return this.advance(),new c.LiteralPrimitive(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new c.LiteralPrimitive(this.span(t),!1);if(this.optionalCharacter(o.$LBRACKET)){this.rbracketsExpected++;var n=this.parseExpressionList(o.$RBRACKET);return this.rbracketsExpected--,this.expectCharacter(o.$RBRACKET),new c.LiteralArray(this.span(t),n)}if(this.next.isCharacter(o.$LBRACE))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new c.ImplicitReceiver(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new c.LiteralPrimitive(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new c.LiteralPrimitive(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new c.EmptyExpr(this.span(t))):(this.error("Unexpected token "+this.next),new c.EmptyExpr(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(o.$COMMA));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(o.$LBRACE),!this.optionalCharacter(o.$RBRACE)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(o.$COLON),e.push(this.parsePipe())}while(this.optionalCharacter(o.$COMMA));this.rbracesExpected--,this.expectCharacter(o.$RBRACE)}return new c.LiteralMap(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(o.$LPAREN)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(o.$RPAREN),this.rparensExpected--;var s=this.span(n);return e?new c.SafeMethodCall(s,t,r,i):new c.MethodCall(s,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new c.EmptyExpr(this.span(n))):new c.SafePropertyRead(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new c.EmptyExpr(this.span(n));var a=this.parseConditional();return new c.PropertyWrite(this.span(n),t,r,a)}return new c.PropertyRead(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(o.$RPAREN))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(o.$COMMA));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index0&&t[t.length-1]===e}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(4),s=n(7),a=n(55),u=n(372),c=n(40),p=n(67),l=n(44),f=function(t){function e(e,n,r){t.call(this,n,r),this.elementName=e}return i(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(c.ParseError);e.TreeError=f;var h=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}();e.ParseTreeResult=h;var d=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=l.DEFAULT_INTERPOLATION_CONFIG);var i=u.tokenize(t,e,this._getTagDefinition,n,r),o=new v(i.tokens,this._getTagDefinition).build();return new h(o.rootNodes,i.errors.concat(o.errors))},t}();e.Parser=d;var v=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!==u.TokenType.EOF;)this._peek.type===u.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===u.TokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===u.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===u.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===u.TokenType.TEXT||this._peek.type===u.TokenType.RAW_TEXT||this._peek.type===u.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===u.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new h(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index0)return this._errors=this._errors.concat(s.errors),null;var p=new c.ParseSourceSpan(e.sourceSpan.start,i.sourceSpan.end),l=new c.ParseSourceSpan(n.sourceSpan.start,i.sourceSpan.end);return new a.ExpansionCase(e.parts[0],s.rootNodes,p,e.sourceSpan,l)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[u.TokenType.EXPANSION_CASE_EXP_START];;){if((this._peek.type===u.TokenType.EXPANSION_FORM_START||this._peek.type===u.TokenType.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===u.TokenType.EXPANSION_CASE_EXP_END){if(!r(n,u.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(f.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===u.TokenType.EXPANSION_FORM_END){if(!r(n,u.TokenType.EXPANSION_FORM_START))return this._errors.push(f.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===u.TokenType.EOF)return this._errors.push(f.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();o.isPresent(n)&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new a.Text(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=s.ListWrapper.last(this._elementStack);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===u.TokenType.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===u.TokenType.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==p.getNsPrefix(i)||s.isVoid||this._errors.push(f.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===u.TokenType.TAG_OPEN_END&&(this._advance(),o=!1);var l=this._peek.sourceSpan.start,h=new c.ParseSourceSpan(t.sourceSpan.start,l),d=new a.Element(i,r,[],h,h,null);this._pushElement(d),o&&(this._popElement(i),d.endSourceSpan=h)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=s.ListWrapper.last(this._elementStack);this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,u=r.container;if(o.isPresent(i)&&n.requireExtraParent(i.name)){var c=new a.Element(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,u,c)}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(f.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this._errors.push(f.create(e,t.sourceSpan,'Unexpected closing tag "'+t.parts[1]+'"'))},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return s.ListWrapper.splice(this._elementStack,e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=p.mergeNsAndName(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="";if(this._peek.type===u.TokenType.ATTR_VALUE){var i=this._advance();r=i.parts[0],n=i.sourceSpan.end}return new a.Attribute(e,r,new c.ParseSourceSpan(t.sourceSpan.start,n))},t.prototype._getParentElement=function(){return this._elementStack.length>0?s.ListWrapper.last(this._elementStack):null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:s.ListWrapper.last(this._elementStack),container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();o.isPresent(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 o.isBlank(t)&&(t=this.getTagDefinition(e).implicitNamespacePrefix,o.isBlank(t)&&o.isPresent(n)&&(t=p.getNsPrefix(n.name))),p.mergeNsAndName(t,e)},t}()},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t.trim().split(/\s+/g)}function i(t,e){var n=new _.CssSelector,i=v.splitNsName(t)[1];n.setElement(i);for(var o=0;o0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw new p.BaseException("Template parse errors:\n"+c)}return s.templateAst},t.prototype.tryParse=function(t,e,n,r,i,o){var s;t.template&&(s=m.InterpolationConfig.fromArray(t.template.interpolation));var a,u=this._htmlParser.parse(e,o,!0,s),p=u.errors;if(0==p.length){var l=O.expandNodes(u.rootNodes);p.push.apply(p,l.errors),u=new d.ParseTreeResult(l.nodes,p)}if(u.rootNodes.length>0){var f=h.removeIdentifierDuplicates(n),v=h.removeIdentifierDuplicates(r),y=new A.ProviderViewContext(t,u.rootNodes[0].sourceSpan),_=new U(y,f,v,i,this._exprParser,this._schemaRegistry);a=S.visitAll(_,u.rootNodes,q),p.push.apply(p,_.errors.concat(y.errors))}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,p),p.length>0?new F(a,p):(c.isPresent(this.transforms)&&this.transforms.forEach(function(t){a=g.templateVisitAll(t,a)}),new F(a,p))},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 j('Reference "#'+r+'" is defined several times',t.sourceSpan,y.ParseErrorLevel.FATAL);e.push(i)}})})},t.decorators=[{type:s.Injectable}],t.ctorParameters=[{type:f.Parser},{type:b.ElementSchemaRegistry},{type:d.HtmlParser},{type:a.Console},{type:Array,decorators:[{type:s.Optional},{type:s.Inject,args:[e.TEMPLATE_TRANSFORMS]}]}],t}();e.TemplateParser=B;var U=function(){function t(t,e,n,r,i,o){var s=this;this.providerViewContext=t,this._schemas=r,this._exprParser=i,this._schemaRegistry=o,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new _.SelectorMatcher;var a=t.component.template;c.isPresent(a)&&c.isPresent(a.interpolation)&&(this._interpolationConfig={start:a.interpolation[0],end:a.interpolation[1]}),u.ListWrapper.forEachWithIndex(e,function(t,e){var n=_.CssSelector.parse(t.selector);s.selectorMatcher.addSelectables(n,t),s.directivesIndex.set(t,e)}),this.pipesByName=new Map,n.forEach(function(t){return s.pipesByName.set(t.name,t)})}return t.prototype._reportError=function(t,e,n){void 0===n&&(n=y.ParseErrorLevel.FATAL),this.errors.push(new j(t,e,n))},t.prototype._reportParserErors=function(t,e){for(var n=0,r=t;na.MAX_INTERPOLATION_VALUES)throw new p.BaseException("Only support at most "+a.MAX_INTERPOLATION_VALUES+" interpolation values!");return r}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportParserErors(r.errors,e),!r||r.ast instanceof l.EmptyExpr?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseBinding=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseBinding(t,n,this._interpolationConfig);return r&&this._reportParserErors(r.errors,e),this._checkPipes(r,e),r}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseTemplateBindings=function(t,e){var n=this,r=e.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,r);return this._reportParserErors(i.errors,e),i.templateBindings.forEach(function(t){c.isPresent(t.expression)&&n._checkPipes(t.expression,e)}),i.warnings.forEach(function(t){n._reportError(t,e,y.ParseErrorLevel.WARNING)}),i.templateBindings}catch(o){return this._reportError(""+o,e),[]}},t.prototype._checkPipes=function(t,e){var n=this;if(c.isPresent(t)){var r=new K;t.visit(r),r.pipes.forEach(function(t){n.pipesByName.has(t)||n._reportError("The pipe '"+t+"' could not be found",e)})}},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(L),r=this._parseInterpolation(t.value,t.sourceSpan);return c.isPresent(r)?new g.BoundTextAst(r,n,t.sourceSpan):new g.TextAst(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new g.AttrAst(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=t.name,o=w.preparseElement(t);if(o.type===w.PreparsedElementType.SCRIPT||o.type===w.PreparsedElementType.STYLE)return null;if(o.type===w.PreparsedElementType.STYLESHEET&&E.isStyleUrlResolvable(o.hrefAttr))return null;var s=[],a=[],u=[],p=[],l=[],f=[],h=[],d=[],y=[],m=!1,b=[],C=v.splitNsName(r.toLowerCase())[1],P=C==x;t.attrs.forEach(function(t){var e=n._parseAttr(P,t,s,a,l,f,u,p),r=n._parseInlineTemplateBinding(t,d,h,y);r&&m&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),e||r||(b.push(n.visitAttribute(t,null)),s.push([t.name,t.value])),r&&(m=!0)});var O=i(r,s),T=this._parseDirectives(this.selectorMatcher,O),R=[],I=this._createDirectiveAsts(P,t.name,T,a,u,t.sourceSpan,R),M=this._createElementPropertyAsts(t.name,a,I).concat(l),N=e.isTemplateElement||m,k=new A.ProviderElementContext(this.providerViewContext,e.providerContext,N,I,b,R,t.sourceSpan),D=S.visitAll(o.nonBindable?$:this,t.children,z.create(P,I,P?e.providerContext:k));k.afterElement();var V,L=c.isPresent(o.projectAs)?_.CssSelector.parse(o.projectAs)[0]:O,j=e.findNgContentIndex(L);if(o.type===w.PreparsedElementType.NG_CONTENT)c.isPresent(t.children)&&t.children.length>0&&this._reportError(" element cannot have content. must be immediately followed by ",t.sourceSpan),V=new g.NgContentAst(this.ngContentCount++,m?null:j,t.sourceSpan);else if(P)this._assertAllEventsPublishedByDirectives(I,f),this._assertNoComponentsNorElementBindingsOnTemplate(I,M,t.sourceSpan),V=new g.EmbeddedTemplateAst(b,f,R,p,k.transformedDirectiveAsts,k.transformProviders,k.transformedHasViewContainer,D,m?null:j,t.sourceSpan);else{this._assertOnlyOneComponent(I,t.sourceSpan);var F=m?null:e.findNgContentIndex(L);V=new g.ElementAst(r,b,M,f,R,k.transformedDirectiveAsts,k.transformProviders,k.transformedHasViewContainer,D,m?null:F,t.sourceSpan)}if(m){var B=i(x,d),U=this._parseDirectives(this.selectorMatcher,B),W=this._createDirectiveAsts(!0,t.name,U,h,[],t.sourceSpan,[]),H=this._createElementPropertyAsts(t.name,h,W);this._assertNoComponentsNorElementBindingsOnTemplate(W,H,t.sourceSpan);var G=new A.ProviderElementContext(this.providerViewContext,e.providerContext,e.isTemplateElement,W,[],[],t.sourceSpan);G.afterElement(),V=new g.EmbeddedTemplateAst([],[],[],y,G.transformedDirectiveAsts,G.transformProviders,G.transformedHasViewContainer,[V],j,t.sourceSpan)}return V},t.prototype._parseInlineTemplateBinding=function(t,e,n,r){var i=null;if(this._normalizeAttributeName(t.name)==R)i=t.value;else if(t.name.startsWith(I)){var o=t.name.substring(I.length);i=0==t.value.length?o:o+" "+t.value}if(c.isPresent(i)){for(var s=this._parseTemplateBindings(i,t.sourceSpan),a=0;a elements is deprecated. Use "let-" instead!',e.sourceSpan,y.ParseErrorLevel.WARNING),this._parseVariable(h,p,e.sourceSpan,a)):(this._reportError('"var-" on non elements is deprecated. Use "ref-" instead!',e.sourceSpan,y.ParseErrorLevel.WARNING),this._parseReference(h,p,e.sourceSpan,s))}else if(c.isPresent(l[3]))if(t){var h=l[8];this._parseVariable(h,p,e.sourceSpan,a)}else this._reportError('"let-" is only supported on template elements.',e.sourceSpan);else if(c.isPresent(l[4])){var h=l[8];this._parseReference(h,p,e.sourceSpan,s)}else c.isPresent(l[5])?this._parseEvent(l[8],p,e.sourceSpan,n,o):c.isPresent(l[6])?(this._parsePropertyOrAnimation(l[8],p,e.sourceSpan,n,r,i),this._parseAssignmentEvent(l[8],p,e.sourceSpan,n,o)):c.isPresent(l[7])?("@"==u[0]&&c.isPresent(p)&&p.length>0&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is deprecated. Use [@prop]="exp" instead!',e.sourceSpan,y.ParseErrorLevel.WARNING),this._parseAnimation(l[8],p,e.sourceSpan,n,i)):c.isPresent(l[9])?(this._parsePropertyOrAnimation(l[9],p,e.sourceSpan,n,r,i),this._parseAssignmentEvent(l[9],p,e.sourceSpan,n,o)):c.isPresent(l[10])?this._parsePropertyOrAnimation(l[10],p,e.sourceSpan,n,r,i):c.isPresent(l[11])&&this._parseEvent(l[11],p,e.sourceSpan,n,o);else f=this._parsePropertyInterpolation(u,p,e.sourceSpan,n,r);return f||this._parseLiteralAttr(u,p,e.sourceSpan,r),f},t.prototype._normalizeAttributeName=function(t){return t.toLowerCase().startsWith("data-")?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 g.VariableAst(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 G(t,e,n))},t.prototype._parsePropertyOrAnimation=function(t,e,n,r,i,o){"@"==t[0]?this._parseAnimation(t.substr(1),e,n,r,o):this._parsePropertyAst(t,this._parseBinding(e,n),n,r,i)},t.prototype._parseAnimation=function(t,e,n,r,i){c.isPresent(e)&&0!=e.length||(e="null");var o=this._parseBinding(e,n);r.push([t,o.source]),i.push(new g.BoundElementPropertyAst(t,g.PropertyBindingType.Animation,s.SecurityContext.NONE,o,null,n))},t.prototype._parsePropertyInterpolation=function(t,e,n,r,i){var o=this._parseInterpolation(e,n);return c.isPresent(o)?(this._parsePropertyAst(t,o,n,r,i),!0):!1},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new H(t,e,!1,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseEvent=function(t,e,n,r,i){var o=C.splitAtColon(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new g.BoundEventAst(a,s,u,n))},t.prototype._parseLiteralAttr=function(t,e,n,r){r.push(new H(t,this._exprParser.wrapLiteralPrimitive(e,""),!0,n))},t.prototype._parseDirectives=function(t,e){var n=this,r=u.ListWrapper.createFixedSize(this.directivesIndex.size);return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e}),r.filter(function(t){return c.isPresent(t)})},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s){var a=this,p=new Set,l=null,f=n.map(function(t){var n=new y.ParseSourceSpan(o.start,o.end,"Directive "+t.type.name);t.isComponent&&(l=t);var u=[],c=[],f=[];return a._createDirectiveHostPropertyAsts(e,t.hostProperties,n,u),a._createDirectiveHostEventAsts(t.hostListeners,n,c),a._createDirectivePropertyAsts(t.inputs,r,f),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new g.ReferenceAst(e.name,P.identifierToken(t.type),e.sourceSpan)),p.add(e.name))}),new g.DirectiveAst(t,f,u,c,n)});return i.forEach(function(e){if(e.value.length>0)u.SetWrapper.has(p,e.name)||a._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(c.isBlank(l)){var n=null;t&&(n=P.identifierToken(P.Identifiers.TemplateRef)),s.push(new g.ReferenceAst(e.name,n,e.sourceSpan))}}),f},t.prototype._createDirectiveHostPropertyAsts=function(t,e,n,r){var i=this;c.isPresent(e)&&u.StringMapWrapper.forEach(e,function(e,o){var s=i._parseBinding(e,n);r.push(i._createElementPropertyAst(t,o,s,n))})},t.prototype._createDirectiveHostEventAsts=function(t,e,n){var r=this;c.isPresent(t)&&u.StringMapWrapper.forEach(t,function(t,i){r._parseEvent(i,t,e,[],n)})},t.prototype._createDirectivePropertyAsts=function(t,e,n){if(c.isPresent(t)){var r=new Map;e.forEach(function(t){var e=r.get(t.name);(c.isBlank(e)||e.isLiteral)&&r.set(t.name,t)}),u.StringMapWrapper.forEach(t,function(t,e){var i=r.get(t);c.isPresent(i)&&n.push(new g.BoundDirectivePropertyAst(e,i.name,i.expression,i.sourceSpan))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[],o=new Map;return n.forEach(function(t){t.inputs.forEach(function(t){o.set(t.templateName,t)})}),e.forEach(function(e){!e.isLiteral&&c.isBlank(o.get(e.name))&&i.push(r._createElementPropertyAst(t,e.name,e.expression,e.sourceSpan))}),i},t.prototype._createElementPropertyAst=function(t,e,n,r){var i,o,a,u=null,c=e.split(N);if(1===c.length){var p=c[0];if("@"==p[0])o=p.substr(1),i=g.PropertyBindingType.Animation,a=s.SecurityContext.NONE,this._reportError('Assigning animation triggers within host data as attributes such as "@prop": "exp" is deprecated. Use "[@prop]": "exp" instead!',r,y.ParseErrorLevel.WARNING);else if(o=this._schemaRegistry.getMappedPropName(p),a=this._schemaRegistry.securityContext(t,o),i=g.PropertyBindingType.Property,!this._schemaRegistry.hasProperty(t,o,this._schemas)){var l="Can't bind to '"+o+"' since it isn't a known property of '"+t+"'.";-1!==t.indexOf("-")&&(l+="\n1. If '"+t+"' is an Angular component and it has '"+o+"' 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.schema' of this component to suppress this message.\n")),this._reportError(l,r)}}else if(c[0]==k){o=c[1],o.toLowerCase().startsWith("on")&&this._reportError("Binding to event attribute '"+o+"' is disallowed "+("for security reasons, please use ("+o.slice(2)+")=..."),r),a=this._schemaRegistry.securityContext(t,this._schemaRegistry.getMappedPropName(o));var f=o.indexOf(":");if(f>-1){var h=o.substring(0,f),d=o.substring(f+1);o=v.mergeNsAndName(h,d)}i=g.PropertyBindingType.Attribute}else c[0]==D?(o=c[1],i=g.PropertyBindingType.Class,a=s.SecurityContext.NONE):c[0]==V?(u=c.length>2?c[2]:null,o=c[1],i=g.PropertyBindingType.Style,a=s.SecurityContext.STYLE):(this._reportError("Invalid property name '"+e+"'",r),i=null,a=null);return new g.BoundElementPropertyAst(o,i,a,n,u,r)},t.prototype._findComponentDirectiveNames=function(t){var e=[];return t.forEach(function(t){var n=t.directive.type.name;t.directive.isComponent&&e.push(n)}),e},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component: "+n.join(","),e)},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 "directives" section.',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){u.StringMapWrapper.forEach(t.directive.outputs,function(t){r.add(t)})}),e.forEach(function(t){(c.isPresent(t.target)||!u.SetWrapper.has(r,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 "directives" section.',t.sourceSpan)})},t}(),W=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=w.preparseElement(t);if(n.type===w.PreparsedElementType.SCRIPT||n.type===w.PreparsedElementType.STYLE||n.type===w.PreparsedElementType.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),o=i(t.name,r),s=e.findNgContentIndex(o),a=S.visitAll(this,t.children,q);return new g.ElementAst(t.name,S.visitAll(this,t.attrs),[],[],[],[],[],!1,a,s,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new g.AttrAst(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(L);return new g.TextAst(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),H=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.isLiteral=n,this.sourceSpan=r}return t}(),G=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}();e.splitClasses=r;var z=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 _.SelectorMatcher,o=null,s=n.find(function(t){return t.directive.isComponent});if(c.isPresent(s))for(var a=s.directive.template.ngContentSelectors,u=0;u0?e[0]:null},t}(),q=new z(!0,new _.SelectorMatcher,null,null),$=new W,K=function(t){function e(){t.apply(this,arguments),this.pipes=new Set}return o(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.add(t.name),t.exp.visit(this),this.visitAll(t.args,e),null},e}(l.RecursiveAstVisitor);e.PipeCollector=K},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(252),o=n(66),s=n(267),a=n(269),u=n(396),c=n(271),p=n(271);e.ComponentFactoryDependency=p.ComponentFactoryDependency,e.ViewFactoryDependency=p.ViewFactoryDependency;var l=function(){function t(t,e,n){this.statements=t,this.viewFactoryVar=e,this.dependencies=n}return t}();e.ViewCompileResult=l;var f=function(){function t(t){this._genConfig=t,this._animationCompiler=new i.AnimationCompiler}return t.prototype.compileComponent=function(t,e,n,r){var i=[],o=this._animationCompiler.compileComponent(t,e),p=[];o.map(function(t){p.push(t.statesMapStatement),p.push(t.fnStatement)});var f=new a.CompileView(t,this._genConfig,r,n,o,0,s.CompileElement.createNull(),[]);return c.buildView(f,e,i),u.bindView(f,e),c.finishView(f,p),new l(p,f.viewFactory.name,i)},t.decorators=[{type:r.Injectable}],t.ctorParameters=[{type:o.CompilerConfig}],t}();e.ViewCompiler=f},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(){return""+i()+i()+i()}function i(){return o.StringWrapper.fromCharCode(97+o.Math.floor(25*o.Math.random()))}var o=n(3),s=n(29);e.APP_ID=new s.OpaqueToken("AppId"),e._appIdRandomProviderFactory=r,e.APP_ID_RANDOM_PROVIDER={provide:e.APP_ID,useFactory:r,deps:[]},e.PLATFORM_INITIALIZER=new s.OpaqueToken("Platform Initializer"),e.APP_BOOTSTRAP_LISTENER=new s.OpaqueToken("appBootstrapListener"),e.PACKAGE_ROOT_URL=new s.OpaqueToken("Application Packages Root URL")},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(182),i=n(275),o=n(276),s=n(277),a=n(109);e.SimpleChange=a.SimpleChange,e.UNINITIALIZED=a.UNINITIALIZED,e.ValueUnwrapper=a.ValueUnwrapper,e.WrappedValue=a.WrappedValue,e.devModeEqual=a.devModeEqual,e.looseIdentical=a.looseIdentical;var u=n(405);e.ChangeDetectorRef=u.ChangeDetectorRef;var c=n(110);e.CHANGE_DETECTION_STRATEGY_VALUES=c.CHANGE_DETECTION_STRATEGY_VALUES,e.ChangeDetectionStrategy=c.ChangeDetectionStrategy,e.ChangeDetectorStatus=c.ChangeDetectorStatus,e.isDefaultChangeDetectionStrategy=c.isDefaultChangeDetectionStrategy;var p=n(182);e.CollectionChangeRecord=p.CollectionChangeRecord,e.DefaultIterableDifferFactory=p.DefaultIterableDifferFactory;var l=n(182);e.DefaultIterableDiffer=l.DefaultIterableDiffer;var f=n(275);e.DefaultKeyValueDifferFactory=f.DefaultKeyValueDifferFactory,e.KeyValueChangeRecord=f.KeyValueChangeRecord;var h=n(276);e.IterableDiffers=h.IterableDiffers;var d=n(277);e.KeyValueDiffers=d.KeyValueDiffers,e.keyValDiff=[new i.DefaultKeyValueDifferFactory],e.iterableDiff=[new r.DefaultIterableDifferFactory],e.defaultIterableDiffers=new o.IterableDiffers(e.iterableDiff),e.defaultKeyValueDiffers=new s.KeyValueDiffers(e.keyValDiff)},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return i.isListLikeIterable(t)&&i.isListLikeIterable(e)?i.areIterablesEqual(t,e,r):i.isListLikeIterable(t)||o.isPrimitive(t)||i.isListLikeIterable(e)||o.isPrimitive(e)?o.looseIdentical(t,e):!0}var i=n(15),o=n(3),s=n(3);e.looseIdentical=s.looseIdentical,e.UNINITIALIZED={toString:function(){return"CD_INIT_VALUE"}},e.devModeEqual=r;var a=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}();e.WrappedValue=a;var u=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof a?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}();e.ValueUnwrapper=u;var c=function(){function t(t,e){this.previousValue=t,this.currentValue=e}return t.prototype.isFirstChange=function(){return this.previousValue===e.UNINITIALIZED},t}();e.SimpleChange=c},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return i.isBlank(t)||t===o.Default}var i=n(3);!function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(e.ChangeDetectionStrategy||(e.ChangeDetectionStrategy={}));var o=e.ChangeDetectionStrategy;!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"}(e.ChangeDetectorStatus||(e.ChangeDetectorStatus={}));var s=e.ChangeDetectorStatus;e.CHANGE_DETECTION_STRATEGY_VALUES=[o.OnPush,o.Default],e.CHANGE_DETECTOR_STATUS_VALUES=[s.CheckOnce,s.Checked,s.CheckAlways,s.Detached,s.Errored,s.Destroyed],e.isDefaultChangeDetectionStrategy=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(112),i=n(3),o=function(){function t(){}return t.prototype.log=function(t){i.print(t)},t.prototype.warn=function(t){i.warn(t)},t.decorators=[{type:r.Injectable}],t}();e.Console=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(119),i=n(56);e.Inject=r.makeParamDecorator(i.InjectMetadata),e.Optional=r.makeParamDecorator(i.OptionalMetadata),e.Injectable=r.makeDecorator(i.InjectableMetadata),e.Self=r.makeParamDecorator(i.SelfMetadata),e.Host=r.makeParamDecorator(i.HostMetadata),e.SkipSelf=r.makeParamDecorator(i.SkipSelfMetadata)},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t.__forward_ref__=r,t.toString=function(){return o.stringify(this())},t}function i(t){return o.isFunction(t)&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===r?t():t}var o=n(3);e.forwardRef=r,e.resolveForwardRef=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(10),i=n(3),o=new Object;e.THROW_IF_NOT_FOUND=o;var s=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=o),e===o)throw new r.BaseException("No provider for "+i.stringify(t)+"!");return e},t}(),a=function(){function t(){}return t.prototype.get=function(t,e){return r.unimplemented()},t.THROW_IF_NOT_FOUND=o,t.NULL=new s,t}();e.Injector=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(3),s=function(t){function e(e){t.call(this,"No component factory found for "+o.stringify(e)),this.component=e}return r(e,t),e}(i.BaseException);e.NoComponentFactoryError=s;var a=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw new s(t)},t}(),u=function(){function t(){}return t.NULL=new a,t}();e.ComponentFactoryResolver=u;var c=function(){function t(t,e){this._parent=e,this._factories=new Map;for(var n=0;ni;i++)n[i]=r>i?t[i]:M}else n=t;return n}function s(t,e,n,r,i,o,s,u,c,p,l,f,h,d,v,y,m,g,_,b){switch(t){case 1:return e+a(n)+r;case 2:return e+a(n)+r+a(i)+o;case 3:return e+a(n)+r+a(i)+o+a(s)+u;case 4:return e+a(n)+r+a(i)+o+a(s)+u+a(c)+p;case 5:return e+a(n)+r+a(i)+o+a(s)+u+a(c)+p+a(l)+f;case 6:return e+a(n)+r+a(i)+o+a(s)+u+a(c)+p+a(l)+f+a(h)+d;case 7:return e+a(n)+r+a(i)+o+a(s)+u+a(c)+p+a(l)+f+a(h)+d+a(v)+y;case 8:return e+a(n)+r+a(i)+o+a(s)+u+a(c)+p+a(l)+f+a(h)+d+a(v)+y+a(m)+g;case 9:return e+a(n)+r+a(i)+o+a(s)+u+a(c)+p+a(l)+f+a(h)+d+a(v)+y+a(m)+g+a(_)+b;default:throw new P.BaseException("Does not support more than 9 expressions")}}function a(t){return null!=t?t.toString():""}function u(t,e,n){if(t){if(!w.devModeEqual(e,n))throw new R.ExpressionChangedAfterItHasBeenCheckedException(e,n,null);return!1}return!O.looseIdentical(e,n)}function c(t,e){return t}function p(t){var e,n=E.UNINITIALIZED;return function(r){return O.looseIdentical(n,r)||(n=r,e=t(r)),e}}function l(t){var e,n=E.UNINITIALIZED,r=E.UNINITIALIZED;return function(i,o){return O.looseIdentical(n,i)&&O.looseIdentical(r,o)||(n=i,r=o,e=t(i,o)),e}}function f(t){var e,n=E.UNINITIALIZED,r=E.UNINITIALIZED,i=E.UNINITIALIZED;return function(o,s,a){return O.looseIdentical(n,o)&&O.looseIdentical(r,s)&&O.looseIdentical(i,a)||(n=o,r=s,i=a,e=t(o,s,a)),e}}function h(t){var e,n,r,i,o;return n=r=i=o=E.UNINITIALIZED,function(s,a,u,c){return O.looseIdentical(n,s)&&O.looseIdentical(r,a)&&O.looseIdentical(i,u)&&O.looseIdentical(o,c)||(n=s,r=a,i=u,o=c,e=t(s,a,u,c)),e}}function d(t){var e,n,r,i,o,s;return n=r=i=o=s=E.UNINITIALIZED,function(a,u,c,p,l){return O.looseIdentical(n,a)&&O.looseIdentical(r,u)&&O.looseIdentical(i,c)&&O.looseIdentical(o,p)&&O.looseIdentical(s,l)||(n=a,r=u,i=c,o=p,s=l,e=t(a,u,c,p,l)),e}}function v(t){var e,n,r,i,o,s,a;return n=r=i=o=s=a=E.UNINITIALIZED,function(u,c,p,l,f,h){return O.looseIdentical(n,u)&&O.looseIdentical(r,c)&&O.looseIdentical(i,p)&&O.looseIdentical(o,l)&&O.looseIdentical(s,f)&&O.looseIdentical(a,h)||(n=u,r=c,i=p,o=l,s=f,a=h,e=t(u,c,p,l,f,h)),e}}function y(t){var e,n,r,i,o,s,a,u;return n=r=i=o=s=a=u=E.UNINITIALIZED,function(c,p,l,f,h,d,v){return O.looseIdentical(n,c)&&O.looseIdentical(r,p)&&O.looseIdentical(i,l)&&O.looseIdentical(o,f)&&O.looseIdentical(s,h)&&O.looseIdentical(a,d)&&O.looseIdentical(u,v)||(n=c,r=p,i=l,o=f,s=h,a=d,u=v,e=t(c,p,l,f,h,d,v)),e}}function m(t){var e,n,r,i,o,s,a,u,c;return n=r=i=o=s=a=u=c=E.UNINITIALIZED,function(p,l,f,h,d,v,y,m){return O.looseIdentical(n,p)&&O.looseIdentical(r,l)&&O.looseIdentical(i,f)&&O.looseIdentical(o,h)&&O.looseIdentical(s,d)&&O.looseIdentical(a,v)&&O.looseIdentical(u,y)&&O.looseIdentical(c,m)||(n=p,r=l,i=f,o=h,s=d,a=v,u=y,c=m,e=t(p,l,f,h,d,v,y,m)),e}}function g(t){var e,n,r,i,o,s,a,u,c,p;return n=r=i=o=s=a=u=c=p=E.UNINITIALIZED,function(l,f,h,d,v,y,m,g,_){return O.looseIdentical(n,l)&&O.looseIdentical(r,f)&&O.looseIdentical(i,h)&&O.looseIdentical(o,d)&&O.looseIdentical(s,v)&&O.looseIdentical(a,y)&&O.looseIdentical(u,m)&&O.looseIdentical(c,g)&&O.looseIdentical(p,_)||(n=l,r=f,i=h,o=d,s=v,a=y,u=m,c=g,p=_,e=t(l,f,h,d,v,y,m,g,_)),e}}function _(t){var e,n,r,i,o,s,a,u,c,p,l;return n=r=i=o=s=a=u=c=p=l=E.UNINITIALIZED,function(f,h,d,v,y,m,g,_,b,w){return O.looseIdentical(n,f)&&O.looseIdentical(r,h)&&O.looseIdentical(i,d)&&O.looseIdentical(o,v)&&O.looseIdentical(s,y)&&O.looseIdentical(a,m)&&O.looseIdentical(u,g)&&O.looseIdentical(c,_)&&O.looseIdentical(p,b)&&O.looseIdentical(l,w)||(n=f,r=h,i=d,o=v,s=y,a=m,u=g,c=_,p=b,l=w,e=t(f,h,d,v,y,m,g,_,b,w)),e}}var b=n(107),w=n(108),E=n(109),S=n(112),C=n(15),P=n(10),O=n(3),A=n(192),T=n(299),x=n(188),R=n(189),I=function(){function t(t,e,n){this._renderer=t,this._appId=e,this._nextCompTypeId=0,this.sanitizer=n}return t.prototype.createRenderComponentType=function(t,e,n,r,i){return new A.RenderComponentType(this._appId+"-"+this._nextCompTypeId++,t,e,n,r,i)},t.prototype.renderComponent=function(t){return this._renderer.renderComponent(t)},t.decorators=[{type:S.Injectable}],t.ctorParameters=[{type:A.RootRenderer},{type:void 0,decorators:[{type:S.Inject,args:[b.APP_ID]}]},{type:T.SanitizationService}],t}();e.ViewUtils=I,e.flattenNestedViewRenderNodes=r;var M=[];e.ensureSlotCount=o,e.MAX_INTERPOLATION_VALUES=9,e.interpolate=s,e.checkBinding=u,e.castByValue=c,e.EMPTY_ARRAY=[],e.EMPTY_MAP={},e.pureProxy1=p,e.pureProxy2=l,e.pureProxy3=f,e.pureProxy4=h,e.pureProxy5=d,e.pureProxy6=v,e.pureProxy7=y,e.pureProxy8=m,e.pureProxy9=g,e.pureProxy10=_},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return null}var i=n(419);e.wtfEnabled=i.detectWTF(),e.wtfCreateScope=e.wtfEnabled?i.createScope:function(t,e){return r},e.wtfLeave=e.wtfEnabled?i.leave:function(t,e){return e},e.wtfStartTimeRange=e.wtfEnabled?i.startTimeRange:function(t,e){return null},e.wtfEndTimeRange=e.wtfEnabled?i.endTimeRange:function(t){return null}},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return c.isFunction(t)&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function i(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c.stringify(t)+" as constructor");if(c.isFunction(t))return t;if(t instanceof Array){var n=t,i=n.length-1,o=t[i];if(!c.isFunction(o))throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c.stringify(o)+"'");if(i!=o.length)throw new Error("Number of annotations ("+i+") does not match number of arguments ("+o.length+") in the function: "+c.stringify(o));for(var s=[],a=0,u=n.length-1;u>a;a++){var p=[];s.push(p);var f=n[a];if(f instanceof Array)for(var h=0;h\n ')},t.decorators=[{type:r.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[e.RADIO_VALUE_ACCESSOR]}]}],t.ctorParameters=[{type:r.Renderer},{type:r.ElementRef},{type:c},{type:r.Injector}],t.propDecorators={name:[{type:r.Input}],formControlName:[{type:r.Input}],value:[{type:r.Input}]},t}();e.RadioControlValueAccessor=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return a.isBlank(t)?""+e:(a.isPrimitive(e)||(e="Object"),a.StringWrapper.slice(t+": "+e,0,50))}function i(t){return t.split(":")[0]}var o=n(2),s=n(30),a=n(19),u=n(33);e.SELECT_VALUE_ACCESSOR={provide:u.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return c}),multi:!0};var c=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this.value=t;var e=r(this._getOptionId(t),t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=s.MapWrapper.keys(this._optionMap);e-1)})}},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;on;n++)e[n]=t.charCodeAt(n);return e.buffer}var s=n(129),a=n(24),u=n(47);e.normalizeMethodName=r,e.isSuccess=function(t){return t>=200&&300>t},e.getResponseURL=i,e.stringToArrayBuffer=o;var c=n(24);e.isJsObject=c.isJsObject},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){void 0===t&&(t="");var e=new o.Map;if(t.length>0){var n=t.split("&");n.forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,";").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var o=n(205),s=n(24),a=function(){function t(){}return t.prototype.encodeKey=function(t){return i(t)},t.prototype.encodeValue=function(t){return i(t)},t}();e.QueryEncoder=a;var u=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new a),this.rawParams=t,this.queryEncoder=e,this.paramsMap=r(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return o.isListLikeIterable(e)?o.ListWrapper.first(e):null},t.prototype.getAll=function(t){var e=this.paramsMap.get(t);return s.isPresent(e)?e:[]},t.prototype.set=function(t,e){var n=this.paramsMap.get(t),r=s.isPresent(n)?n:[];o.ListWrapper.clear(r),r.push(e),this.paramsMap.set(t,r)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n),i=s.isPresent(r)?r:[];o.ListWrapper.clear(i),i.push(t[0]),e.paramsMap.set(n,i)})},t.prototype.append=function(t,e){var n=this.paramsMap.get(t),r=s.isPresent(n)?n:[];r.push(e),this.paramsMap.set(t,r)},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n),i=s.isPresent(r)?r:[],o=0;o1;){var s=r.shift();o=o.hasOwnProperty(s)&&i(o[s])?o[s]:o[s]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function x(){if(o(K))if(i(D.Symbol)&&i(Symbol.iterator))K=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;et?-1:t>e?1:0},t}();e.StringWrapper=F;var B=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}();e.StringJoiner=B;var U=function(t){function e(e){t.call(this),this.message=e}return V(e,t),e.prototype.toString=function(){return this.message},e}(Error);e.NumberParseError=U;var W=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new U("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new U("Invalid integer literal when parsing "+t+" in base "+e)},t.parseFloat=function(t){return parseFloat(t)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}();e.NumberWrapper=W,e.RegExp=L.RegExp;var H=function(){function t(){}return t.create=function(t,e){return void 0===e&&(e=""),e=e.replace(/g/g,""),new L.RegExp(t,e+"g")},t.firstMatch=function(t,e){return t.lastIndex=0,t.exec(e)},t.test=function(t,e){return t.lastIndex=0,t.test(e)},t.matcher=function(t,e){return t.lastIndex=0,{re:t,input:e}},t.replaceAll=function(t,e,n){var r=t.exec(e),i="";t.lastIndex=0;for(var o=0;r;)i+=e.substring(o,r.index),i+=n(r),o=r.index+r[0].length,t.lastIndex=o,r=t.exec(e);return i+=e.substring(o)},t}();e.RegExpWrapper=H;var G=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=G;var z=function(){function t(){}return t.apply=function(t,e){return t.apply(null,e)},t.bind=function(t,e){return t.bind(e)},t}();e.FunctionWrapper=z,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=O,e.warn=A;var q=function(){function t(){}return t.parse=function(t){return L.JSON.parse(t)},t.stringify=function(t){return L.JSON.stringify(t,null,2)},t}();e.Json=q;var $=function(){function t(){}return t.create=function(t,n,r,i,o,s,a){return void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),new e.Date(t,n-1,r,i,o,s,a)},t.fromISOString=function(t){return new e.Date(t)},t.fromMillis=function(t){return new e.Date(t)},t.toMillis=function(t){return t.getTime()},t.now=function(){return new e.Date},t.toJson=function(t){return t.toJSON()},t}();e.DateWrapper=$,e.setValueOnPath=T;var K=null;e.getSymbolIterator=x,e.evalExpression=R,e.isPrimitive=I,e.hasConstructor=M,e.escape=N,e.escapeRegExp=k}).call(e,function(){return this}())},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(){f.BrowserDomAdapter.makeCurrent(),c.wtfInit(),d.BrowserGetTestability.init()}function i(){return new u.ExceptionHandler(y.getDOM())}function o(){return y.getDOM().defaultDoc()}function s(){return y.getDOM().supportsWebAnimation()?new l.WebAnimationsDriver:p.AnimationDriver.NOOP}var a=n(36),u=n(2),c=n(83),p=n(135),l=n(445),f=n(320),h=n(134),d=n(321),v=n(322),y=n(16),m=n(136),g=n(85),_=n(207),b=n(60),w=n(208),E=n(323),S=n(137),C=n(327);e.INTERNAL_BROWSER_PLATFORM_PROVIDERS=[{provide:u.PLATFORM_INITIALIZER,useValue:r,multi:!0},{provide:a.PlatformLocation,useClass:h.BrowserPlatformLocation}],e.BROWSER_PLATFORM_PROVIDERS=[u.PLATFORM_COMMON_PROVIDERS,e.INTERNAL_BROWSER_PLATFORM_PROVIDERS],e.BROWSER_SANITIZATION_PROVIDERS=[{provide:u.SanitizationService,useExisting:C.DomSanitizationService},{provide:C.DomSanitizationService,useClass:C.DomSanitizationServiceImpl}],e.BROWSER_APP_PROVIDERS=[],e.platformBrowser=u.createPlatformFactory(u.platformCore,"browser",e.INTERNAL_BROWSER_PLATFORM_PROVIDERS),e.browserPlatform=e.platformBrowser,e.initDomAdapter=r,e._exceptionHandler=i,e._document=o,e._resolveDefaultAnimationDriver=s;var P=function(){function t(){}return t.decorators=[{type:u.NgModule,args:[{providers:[e.BROWSER_SANITIZATION_PROVIDERS,{provide:u.ExceptionHandler,useFactory:i,deps:[]},{provide:g.DOCUMENT,useFactory:o,deps:[]},{provide:b.EVENT_MANAGER_PLUGINS,useClass:_.DomEventsPlugin,multi:!0},{provide:b.EVENT_MANAGER_PLUGINS,useClass:E.KeyEventsPlugin,multi:!0},{provide:b.EVENT_MANAGER_PLUGINS,useClass:w.HammerGesturesPlugin,multi:!0},{provide:w.HAMMER_GESTURE_CONFIG,useClass:w.HammerGestureConfig},{provide:m.DomRootRenderer,useClass:m.DomRootRenderer_},{provide:u.RootRenderer,useExisting:m.DomRootRenderer},{provide:S.SharedStylesHost,useExisting:S.DomSharedStylesHost},{provide:p.AnimationDriver,useFactory:s},S.DomSharedStylesHost,u.Testability,b.EventManager,v.ELEMENT_PROBE_PROVIDERS],exports:[a.CommonModule,u.ApplicationModule]}]}],t}();e.BrowserModule=P},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(36),o=n(2),s=n(16),a=n(439),u=function(t){function e(){t.call(this),this._init()}return r(e,t),e.prototype._init=function(){this._location=s.getDOM().getLocation(),this._history=s.getDOM().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return s.getDOM().getBaseHref()},e.prototype.onPopState=function(t){s.getDOM().getGlobalEventTarget("window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){s.getDOM().getGlobalEventTarget("window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){a.supportsState()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){a.supportsState()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.decorators=[{type:o.Injectable}],e.ctorParameters=[],e}(i.PlatformLocation);e.BrowserPlatformLocation=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(83),i=function(){function t(){}return t.prototype.animate=function(t,e,n,i,o,s){return new r.NoOpAnimationPlayer},t}(),o=function(){function t(){}return t.NOOP=new i,t}();e.AnimationDriver=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){var n=m.getDOM().parentElement(t);if(e.length>0&&h.isPresent(n)){var r=m.getDOM().nextSibling(t);if(h.isPresent(r))for(var i=0;i0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeAllSubscriber=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(31),o=n(26),s=function(t){function e(e,n){t.call(this),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.execute=function(){if(this.isUnsubscribed)this.error=new Error("executing a cancelled action");else try{this.work(this.state)}catch(t){this.unsubscribe(),this.error=t}},e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this.isUnsubscribed?this:this._schedule(t,e)},e.prototype._schedule=function(t,e){var n=this;void 0===e&&(e=0),this.state=t,this.pending=!0;var r=this.id;return null!=r&&this.delay===e?this:(this.delay=e,null!=r&&(this.id=null,i.root.clearInterval(r)),this.id=i.root.setInterval(function(){n.pending=!1;var t=n,e=t.id,r=t.scheduler;r.actions.push(n),r.flush(),n.pending===!1&&null!=e&&(n.id=null,i.root.clearInterval(e))},e),this)},e.prototype._unsubscribe=function(){this.pending=!1;var t=this,e=t.id,n=t.scheduler,r=n.actions,o=r.indexOf(this);null!=e&&(this.id=null,i.root.clearInterval(e)),-1!==o&&r.splice(o,1),this.work=null,this.state=null,this.scheduler=null},e}(o.Subscription);e.FutureAction=s},function(t,e,n){"use strict";var r=n(31),i=r.root.Symbol;"function"==typeof i?i.observable?e.$$observable=i.observable:("function"==typeof i["for"]?e.$$observable=i["for"]("observable"):e.$$observable=i("observable"),i.observable=e.$$observable):e.$$observable="@@observable"},function(t,e,n){"use strict";var r=n(31),i=r.root.Symbol;e.$$rxSubscriber="function"==typeof i&&"function"==typeof i["for"]?i["for"]("rxSubscriber"):"@@rxSubscriber"},function(t,e){"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}e.isDate=n},function(t,e){"use strict";function n(t){return"function"==typeof t}e.isFunction=n},function(t,e,n){(function(t,r){function i(t,e){this._id=t,this._clearFn=e}var o=n(471).nextTick,s=Function.prototype.apply,a=Array.prototype.slice,u={},c=0;e.setTimeout=function(){return new i(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new i(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=c++,r=arguments.length<2?!1:a.call(arguments,1);return u[n]=!0,o(function(){u[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete u[t]}}).call(e,n(150).setImmediate,n(150).clearImmediate)},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(22),o=n(6),s=new Object,a=!1,u=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e}return t.prototype.create=function(){this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._viewContainerRef.clear()},t}();e.SwitchView=u;var c=function(){function t(){this._useDefault=!1,this._valueViews=new Map,this._activeViews=[]}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._emptyAllActiveViews(),this._useDefault=!1;var e=this._valueViews.get(t);o.isBlank(e)&&(this._useDefault=!0,e=o.normalizeBlank(this._valueViews.get(s))),this._activateViews(e),this._switchValue=t},enumerable:!0,configurable:!0}),t.prototype._onCaseValueChanged=function(t,e,n){this._deregisterView(t,n),this._registerView(e,n),t===this._switchValue?(n.destroy(),i.ListWrapper.remove(this._activeViews,n)):e===this._switchValue&&(this._useDefault&&(this._useDefault=!1,this._emptyAllActiveViews()),n.create(),this._activeViews.push(n)),0!==this._activeViews.length||this._useDefault||(this._useDefault=!0,this._activateViews(this._valueViews.get(s)))},t.prototype._emptyAllActiveViews=function(){for(var t=this._activeViews,e=0;e')},n.decorators=[{type:i.Directive,args:[{selector:"[ngFormModel]",providers:[e.formDirectiveProvider],inputs:["form: ngFormModel"],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],n.ctorParameters=[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[c.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[c.NG_ASYNC_VALIDATORS]}]}],n}(p.ControlContainer);e.NgFormModel=h},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(37),s=n(98),a=n(38),u=n(32),c=n(54),p=n(65);e.formControlBinding={provide:c.NgControl,useExisting:i.forwardRef(function(){return l})};var l=function(t){function n(e,n,r){t.call(this),this._validators=e,this._asyncValidators=n,this._control=new s.Control,this._added=!1,this.update=new o.EventEmitter,this.valueAccessor=p.selectValueAccessor(this,r)}return r(n,t),n.prototype.ngOnChanges=function(t){this._added||(p.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1}),this._added=!0),p.isPropertyUpdated(t,this.viewModel)&&(this._control.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return p.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return p.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,o.ObservableWrapper.callEmit(this.update,t)},n.decorators=[{type:i.Directive,args:[{selector:"[ngModel]:not([ngControl]):not([ngFormControl])",providers:[e.formControlBinding],inputs:["model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],n.ctorParameters=[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[u.NG_VALUE_ACCESSOR]}]}],n}(c.NgControl);e.NgModel=l},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=n(32);e.NUMBER_VALUE_ACCESSOR={provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return s}),multi:!0};var s=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=i.isBlank(t)?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:i.NumberWrapper.parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.decorators=[{type:r.Directive,args:[{selector:"input[type=number][ngControl],input[type=number][ngFormControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[e.NUMBER_VALUE_ACCESSOR]}]}],t.ctorParameters=[{type:r.Renderer},{type:r.ElementRef}],t}();e.NumberValueAccessor=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return a.isBlank(t)?""+e:(a.isString(e)&&(e="'"+e+"'"),a.isPrimitive(e)||(e="Object"),a.StringWrapper.slice(t+": "+e,0,50))}function i(t){return t.split(":")[0]}var o=n(2),s=n(22),a=n(6),u=n(32),c={provide:u.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return p}),multi:!0},p=(function(){function t(){}return t}(),function(){function t(){this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=this;if(this.value=t,null!=t){var n=t,r=n.map(function(t){return e._getOptionId(t)});this._optionMap.forEach(function(t,e){t._setSelected(r.indexOf(e.toString())>-1)})}},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o-1?r:n.getPluralCategory(t)}var r=function(){function t(){}return t}();e.NgLocalization=r,e.getPluralCategory=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return t.length>0&&e.startsWith(t)?e.substring(t.length):e}function i(t){return/\/index.html$/g.test(t)?t.substring(0,t.length-11):t}var o=n(2),s=n(37),a=n(99),u=function(){function t(e){var n=this;this._subject=new o.EventEmitter,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(i(r)),this._platformStrategy.onPopState(function(t){s.ObservableWrapper.callEmit(n._subject,{url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,i(e)))},t.prototype.prepareExternalUrl=function(t){return t.length>0&&!t.startsWith("/")&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),s.ObservableWrapper.subscribe(this._subject,t,e,n)},t.normalizeQueryParams=function(t){return t.length>0&&"?"!=t.substring(0,1)?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return/\/$/g.test(t)&&(t=t.substring(0,t.length-1)),t},t.decorators=[{type:o.Injectable}],t.ctorParameters=[{type:a.LocationStrategy}],t}();e.Location=u},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){}return Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t}();e.PlatformLocation=n},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP}function r(t){return e.$0<=t&&t<=e.$9}function i(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z}function o(t){return t>=e.$a&&t<=e.$f||t>=e.$A&&t<=e.$F||r(t)}e.$EOF=0,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=n,e.isDigit=r,e.isAsciiLetter=i,e.isAsciiHexDigit=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return new o.CompileDirectiveMetadata({type:t.type,isComponent:t.isComponent,selector:t.selector,exportAs:t.exportAs,changeDetection:t.changeDetection,inputs:t.inputs,outputs:t.outputs,hostListeners:t.hostListeners,hostProperties:t.hostProperties,hostAttributes:t.hostAttributes,providers:t.providers,viewProviders:t.viewProviders,queries:t.queries,viewQueries:t.viewQueries,entryComponents:t.entryComponents,template:e})}var i=n(2),o=n(20),s=n(66),a=n(7),u=n(14),c=n(4),p=n(55),l=n(103),f=n(44),h=n(264),d=n(265),v=n(68),y=n(23),m=n(178),g=function(){function t(t,e,n,r){this._xhr=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._xhrCache=new Map}return t.prototype.clearCache=function(){this._xhrCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._xhrCache["delete"](t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._xhrCache["delete"](t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._xhrCache.get(t);return e||(e=this._xhr.get(t),this._xhrCache.set(t,e)),e},t.prototype.normalizeDirective=function(t){var e=this;if(!t.isComponent)return new y.SyncAsyncResult(t,Promise.resolve(t));var n,i=null;if(c.isPresent(t.template.template))i=this.normalizeTemplateSync(t.type,t.template),n=Promise.resolve(i);else{if(!t.template.templateUrl)throw new u.BaseException("No template specified for component "+t.type.name);n=this.normalizeTemplateAsync(t.type,t.template)}if(i&&0===i.styleUrls.length){var o=r(t,i);return new y.SyncAsyncResult(o,Promise.resolve(o))}return new y.SyncAsyncResult(null,n.then(function(t){return e.normalizeExternalStylesheets(t)}).then(function(e){return r(t,e)}))},t.prototype.normalizeTemplateSync=function(t,e){return this.normalizeLoadedTemplate(t,e,e.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t,e){var n=this,r=this._urlResolver.resolve(t.moduleUrl,e.templateUrl);return this._fetch(r).then(function(i){return n.normalizeLoadedTemplate(t,e,i,r)})},t.prototype.normalizeLoadedTemplate=function(t,e,n,r){var s=f.InterpolationConfig.fromArray(e.interpolation),a=this._htmlParser.parse(n,t.name,!1,s);if(a.errors.length>0){var l=a.errors.join("\n");throw new u.BaseException("Template parse errors:\n"+l)}var h=this.normalizeStylesheet(new o.CompileStylesheetMetadata({styles:e.styles,styleUrls:e.styleUrls,moduleUrl:t.moduleUrl})),d=new _;p.visitAll(d,a.rootNodes);var v=this.normalizeStylesheet(new o.CompileStylesheetMetadata({styles:d.styles,styleUrls:d.styleUrls,moduleUrl:r})),y=h.styles.concat(v.styles),m=h.styleUrls.concat(v.styleUrls),g=e.encapsulation;return c.isBlank(g)&&(g=this._config.defaultEncapsulation),g===i.ViewEncapsulation.Emulated&&0===y.length&&0===m.length&&(g=i.ViewEncapsulation.None),new o.CompileTemplateMetadata({encapsulation:g,template:n,templateUrl:r,styles:y,styleUrls:m,externalStylesheets:e.externalStylesheets,ngContentSelectors:d.ngContentSelectors,animations:e.animations,interpolation:e.interpolation})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new o.CompileTemplateMetadata({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var i=n.normalizeStylesheet(new o.CompileStylesheetMetadata({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})).then(function(t){return a.MapWrapper.values(e)})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.styleUrls.filter(h.isStyleUrlResolvable).map(function(n){return e._urlResolver.resolve(t.moduleUrl,n)}),r=t.styles.map(function(r){var i=h.extractStyleUrls(e._urlResolver,t.moduleUrl,r);return n.push.apply(n,i.styleUrls),i.style});return new o.CompileStylesheetMetadata({styles:r,styleUrls:n,moduleUrl:t.moduleUrl})},t.decorators=[{type:i.Injectable}],t.ctorParameters=[{type:m.XHR},{type:v.UrlResolver},{type:l.HtmlParser},{type:s.CompilerConfig}],t}();e.DirectiveNormalizer=g;var _=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=d.preparseElement(t);switch(n.type){case d.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case d.PreparsedElementType.STYLE:var r="";t.children.forEach(function(t){t instanceof p.Text&&(r+=t.value)}),this.styles.push(r);break;case d.PreparsedElementType.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,p.visitAll(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},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.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t}()},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t instanceof i.DirectiveMetadata}var i=n(2),o=n(17),s=n(7),a=n(14),u=n(4),c=n(23),p=function(){function t(t){void 0===t&&(t=o.reflector),this._reflector=t}return t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(i.resolveForwardRef(t));if(u.isPresent(n)){var o=n.find(r);if(u.isPresent(o)){var s=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,s,t)}}if(e)throw new a.BaseException("No Directive annotation found on "+u.stringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n){var r=[],o=[],a={},c={};return s.StringMapWrapper.forEach(e,function(t,e){t.forEach(function(t){if(t instanceof i.InputMetadata)u.isPresent(t.bindingPropertyName)?r.push(e+": "+t.bindingPropertyName):r.push(e);else if(t instanceof i.OutputMetadata)u.isPresent(t.bindingPropertyName)?o.push(e+": "+t.bindingPropertyName):o.push(e);else if(t instanceof i.HostBindingMetadata)u.isPresent(t.hostPropertyName)?a["["+t.hostPropertyName+"]"]=e:a["["+e+"]"]=e;else if(t instanceof i.HostListenerMetadata){var n=u.isPresent(t.args)?t.args.join(", "):"";a["("+t.eventName+")"]=e+"("+n+")"}else t instanceof i.QueryMetadata&&(c[e]=t)})}),this._merge(t,r,o,a,c,n)},t.prototype._extractPublicName=function(t){return c.splitAtColon(t,[null,t])[1].trim()},t.prototype._merge=function(t,e,n,r,o,c){var p,l=this;if(u.isPresent(t.inputs)){var f=t.inputs.map(function(t){return l._extractPublicName(t)});e.forEach(function(t){var e=l._extractPublicName(t);if(f.indexOf(e)>-1)throw new a.BaseException("Input '"+e+"' defined multiple times in '"+u.stringify(c)+"'")}),p=t.inputs.concat(e)}else p=e;var h;if(u.isPresent(t.outputs)){var d=t.outputs.map(function(t){return l._extractPublicName(t)});n.forEach(function(t){var e=l._extractPublicName(t);if(d.indexOf(e)>-1)throw new a.BaseException("Output event '"+e+"' defined multiple times in '"+u.stringify(c)+"'")}),h=t.outputs.concat(n)}else h=n;var v=u.isPresent(t.host)?s.StringMapWrapper.merge(t.host,r):r,y=u.isPresent(t.queries)?s.StringMapWrapper.merge(t.queries,o):o;return t instanceof i.ComponentMetadata?new i.ComponentMetadata({selector:t.selector,inputs:p,outputs:h,host:v,exportAs:t.exportAs,moduleId:t.moduleId,queries:y,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,directives:t.directives,pipes:t.pipes,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new i.DirectiveMetadata({selector:t.selector,inputs:p,outputs:h,host:v,exportAs:t.exportAs,queries:y,providers:t.providers})},t.decorators=[{type:i.Injectable}],t.ctorParameters=[{type:o.ReflectorReader}],t}();e.DirectiveResolver=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(7),o=n(4),s=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}();e.ParserError=s;var a=function(){function t(t,e){this.start=t,this.end=e}return t}();e.ParseSpan=a;var u=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}();e.AST=u;var c=function(t){function e(e,n,r,i){t.call(this,e),this.prefix=n,this.uninterpretedExpression=r,this.location=i}return r(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}(u);e.Quote=c;var p=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(u);e.EmptyExpr=p;var l=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(u);e.ImplicitReceiver=l;var f=function(t){function e(e,n){t.call(this,e),this.expressions=n}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(u);e.Chain=f;var h=function(t){function e(e,n,r,i){t.call(this,e),this.condition=n,this.trueExp=r,this.falseExp=i}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(u);e.Conditional=h;var d=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(u);e.PropertyRead=d;var v=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.value=i}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(u);e.PropertyWrite=v;var y=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(u);e.SafePropertyRead=y;var m=function(t){function e(e,n,r){t.call(this,e),this.obj=n,this.key=r}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(u);e.KeyedRead=m;var g=function(t){function e(e,n,r,i){t.call(this,e),this.obj=n,this.key=r,this.value=i}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(u);e.KeyedWrite=g;var _=function(t){function e(e,n,r,i){t.call(this,e),this.exp=n,this.name=r,this.args=i}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(u);e.BindingPipe=_;var b=function(t){function e(e,n){t.call(this,e),this.value=n}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(u);e.LiteralPrimitive=b;var w=function(t){function e(e,n){t.call(this,e),this.expressions=n}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(u);e.LiteralArray=w;var E=function(t){function e(e,n,r){t.call(this,e),this.keys=n,this.values=r}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(u);e.LiteralMap=E;var S=function(t){function e(e,n,r){t.call(this,e),this.strings=n,this.expressions=r}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(u);e.Interpolation=S;var C=function(t){function e(e,n,r,i){t.call(this,e),this.operation=n,this.left=r,this.right=i}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(u);e.Binary=C;var P=function(t){function e(e,n){t.call(this,e),this.expression=n}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(u);e.PrefixNot=P;var O=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(u);e.MethodCall=O;var A=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(u);e.SafeMethodCall=A;var T=function(t){function e(e,n,r){t.call(this,e),this.target=n,this.args=r}return r(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(u);e.FunctionCall=T;var x=function(t){function e(e,n,r,i){t.call(this,new a(0,o.isBlank(n)?0:n.length)),this.ast=e,this.source=n,this.location=r,this.errors=i}return r(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}(u);e.ASTWithSource=x;var R=function(){function t(t,e,n,r){this.key=t,this.keyIsVar=e,this.name=n,this.expression=r}return t}();e.TemplateBinding=R;var I=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}();e.RecursiveAstVisitor=I;var M=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new S(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new b(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new d(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new v(t.span,t.receiver.visit(this),t.name,t.value)},t.prototype.visitSafePropertyRead=function(t,e){return new y(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new O(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new A(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new T(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new w(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new E(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new C(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new P(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new h(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new _(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new m(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new g(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=i.ListWrapper.createFixedSize(t.length),n=0;n0?r:"package:"+r+O.MODULE_SUFFIX}return t.importUri(e)}function c(t,e){return O.visitValue(t,new T,e)}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=n(2),f=n(17),h=n(7),d=n(253),v=n(20),y=n(66),m=n(168),g=n(14),_=n(4),b=n(18),w=n(384),E=n(172),S=n(174),C=n(75),P=n(68),O=n(23),A=function(){function t(t,e,n,r,i,o,s){void 0===s&&(s=f.reflector),this._ngModuleResolver=t,this._directiveResolver=e,this._pipeResolver=n,this._config=r,this._console=i,this._schemaRegistry=o,this._reflector=s,this._directiveCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0}return t.prototype.sanitizeTokenName=function(t){var e=_.stringify(t);if(e.indexOf("(")>=0){var n=this._anonymousTypes.get(t);_.isBlank(n)&&(this._anonymousTypes.set(t,this._anonymousTypeIndex++),n=this._anonymousTypes.get(t)),e="anonymous_token_"+n+"_"}return O.sanitizeIdentifier(e)},t.prototype.clearCacheFor=function(t){this._directiveCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear()},t.prototype.clearCache=function(){this._directiveCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear()},t.prototype.getAnimationEntryMetadata=function(t){var e=this,n=t.definitions.map(function(t){return e.getAnimationStateMetadata(t)});return new v.CompileAnimationEntryMetadata(t.name,n)},t.prototype.getAnimationStateMetadata=function(t){if(t instanceof l.AnimationStateDeclarationMetadata){var e=this.getAnimationStyleMetadata(t.styles);return new v.CompileAnimationStateDeclarationMetadata(t.stateNameExpr,e)}return t instanceof l.AnimationStateTransitionMetadata?new v.CompileAnimationStateTransitionMetadata(t.stateChangeExpr,this.getAnimationMetadata(t.steps)):null},t.prototype.getAnimationStyleMetadata=function(t){return new v.CompileAnimationStyleMetadata(t.offset,t.styles)},t.prototype.getAnimationMetadata=function(t){var e=this;if(t instanceof l.AnimationStyleMetadata)return this.getAnimationStyleMetadata(t);if(t instanceof l.AnimationKeyframesSequenceMetadata)return new v.CompileAnimationKeyframesSequenceMetadata(t.steps.map(function(t){return e.getAnimationStyleMetadata(t)}));if(t instanceof l.AnimationAnimateMetadata){var n=this.getAnimationMetadata(t.styles);return new v.CompileAnimationAnimateMetadata(t.timings,n)}if(t instanceof l.AnimationWithStepsMetadata){var r=t.steps.map(function(t){return e.getAnimationMetadata(t)});return t instanceof l.AnimationGroupMetadata?new v.CompileAnimationGroupMetadata(r):new v.CompileAnimationSequenceMetadata(r)}return null},t.prototype.getDirectiveMetadata=function(t,e){var n=this;void 0===e&&(e=!0),t=l.resolveForwardRef(t);var r=this._directiveCache.get(t);if(_.isBlank(r)){var s=this._directiveResolver.resolve(t,e);if(!s)return null;var c=null,p=null,f=[],h=a(t),y=[],m=[],b=[],w=s.selector;if(s instanceof l.ComponentMetadata){var E=s;d.assertArrayOfStrings("styles",E.styles),d.assertInterpolationSymbols("interpolation",E.interpolation);var S=_.isPresent(E.animations)?E.animations.map(function(t){return n.getAnimationEntryMetadata(t)}):null;d.assertArrayOfStrings("styles",E.styles),d.assertArrayOfStrings("styleUrls",E.styleUrls),c=new v.CompileTemplateMetadata({encapsulation:E.encapsulation,template:E.template,templateUrl:E.templateUrl,styles:E.styles,styleUrls:E.styleUrls,animations:S,interpolation:E.interpolation}),p=E.changeDetection,_.isPresent(s.viewProviders)&&(f=this.getProvidersMetadata(o(t,s.viewProviders,"viewProviders"),[])),h=u(this._reflector,t,E),E.entryComponents&&(b=i(E.entryComponents).map(function(t){return n.getTypeMetadata(t,a(t))})),E.directives&&(y=i(E.directives).map(function(e){if(!e)throw new g.BaseException("Unexpected directive value '"+e+"' on the View of component '"+_.stringify(t)+"'");return n.getTypeMetadata(e,a(e))})),E.pipes&&(m=i(E.pipes).map(function(e){if(!e)throw new g.BaseException("Unexpected pipe value '"+e+"' on the View of component '"+_.stringify(t)+"'");return n.getTypeMetadata(e,a(e))})),w||(w=this._schemaRegistry.getDefaultComponentElementName())}else if(!w)throw new g.BaseException("Directive "+_.stringify(t)+" has no selector, please add it!");var C=[];_.isPresent(s.providers)&&(C=this.getProvidersMetadata(o(t,s.providers,"providers"),b));var P=[],O=[];_.isPresent(s.queries)&&(P=this.getQueriesMetadata(s.queries,!1,t),O=this.getQueriesMetadata(s.queries,!0,t)),r=v.CompileDirectiveMetadata.create({selector:w,exportAs:s.exportAs,isComponent:_.isPresent(c),type:this.getTypeMetadata(t,h),template:c,changeDetection:p,inputs:s.inputs,outputs:s.outputs,host:s.host,providers:C,viewProviders:f,queries:P,viewQueries:O,viewDirectives:y,viewPipes:m,entryComponents:b}),this._directiveCache.set(t,r)}return r},t.prototype.getNgModuleMetadata=function(t,e){var n=this;void 0===e&&(e=!0),t=l.resolveForwardRef(t);var r=this._ngModuleCache.get(t);if(!r){var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var u=[],c=[],p=[],f=[],h=[],d=[],y=[],m=[],b=[],w=[];o.imports&&i(o.imports).forEach(function(e){var r;if(s(e))r=e;else if(e&&e.ngModule){var i=e;r=i.ngModule,i.providers&&y.push.apply(y,n.getProvidersMetadata(i.providers,m))}if(!r)throw new g.BaseException("Unexpected value '"+_.stringify(e)+"' imported by the module '"+_.stringify(t)+"'");h.push(n.getNgModuleMetadata(r,!1))}),o.exports&&i(o.exports).forEach(function(e){if(!s(e))throw new g.BaseException("Unexpected value '"+_.stringify(e)+"' exported by the module '"+_.stringify(t)+"'");var r,i,o;if(r=n.getDirectiveMetadata(e,!1))c.push(r);else if(i=n.getPipeMetadata(e,!1))f.push(i);else{if(!(o=n.getNgModuleMetadata(e,!1)))throw new g.BaseException("Unexpected value '"+_.stringify(e)+"' exported by the module '"+_.stringify(t)+"'");d.push(o)}});var E=this._getTransitiveNgModuleMetadata(h,d);o.declarations&&i(o.declarations).forEach(function(e){if(!s(e))throw new g.BaseException("Unexpected value '"+_.stringify(e)+"' declared by the module '"+_.stringify(t)+"'");var r,i;if(r=n.getDirectiveMetadata(e,!1))n._addDirectiveToModule(r,t,E,u,!0);else{if(!(i=n.getPipeMetadata(e,!1)))throw new g.BaseException("Unexpected value '"+_.stringify(e)+"' declared by the module '"+_.stringify(t)+"'");n._addPipeToModule(i,t,E,p,!0)}}),o.providers&&y.push.apply(y,this.getProvidersMetadata(o.providers,m)),o.entryComponents&&m.push.apply(m,i(o.entryComponents).map(function(t){return n.getTypeMetadata(t,a(t))})),o.bootstrap&&b.push.apply(b,i(o.bootstrap).map(function(t){return n.getTypeMetadata(t,a(t))})),m.push.apply(m,b),o.schemas&&w.push.apply(w,i(o.schemas)),(S=E.entryComponents).push.apply(S,m),(C=E.providers).push.apply(C,y),r=new v.CompileNgModuleMetadata({type:this.getTypeMetadata(t,a(t)),providers:y,entryComponents:m,bootstrapComponents:b,schemas:w,declaredDirectives:u,exportedDirectives:c,declaredPipes:p,exportedPipes:f,importedModules:h,exportedModules:d,transitiveModule:E}),E.modules.push(r),this._verifyModule(r),this._ngModuleCache.set(t,r)}return r;var S,C},t.prototype.addComponentToModule=function(t,e){var n=this.getNgModuleMetadata(t),r=this.getDirectiveMetadata(e,!1);this._addDirectiveToModule(r,n.type.runtime,n.transitiveModule,n.declaredDirectives),n.transitiveModule.entryComponents.push(r.type),n.entryComponents.push(r.type),this._verifyModule(n)},t.prototype._verifyModule=function(t){var e=this;t.exportedDirectives.forEach(function(e){if(!t.transitiveModule.directivesSet.has(e.type.runtime))throw new g.BaseException("Can't export directive "+_.stringify(e.type.runtime)+" from "+_.stringify(t.type.runtime)+" as it was neither declared nor imported!")}),t.exportedPipes.forEach(function(e){if(!t.transitiveModule.pipesSet.has(e.type.runtime))throw new g.BaseException("Can't export pipe "+_.stringify(e.type.runtime)+" from "+_.stringify(t.type.runtime)+" as it was neither declared nor imported!")}),t.entryComponents.forEach(function(n){t.transitiveModule.directivesSet.has(n.runtime)||(e._addDirectiveToModule(e.getDirectiveMetadata(n.runtime),t.type.runtime,t.transitiveModule,t.declaredDirectives),e._console.warn("NgModule "+_.stringify(t.type.runtime)+" uses "+_.stringify(n.runtime)+' via "entryComponents" but it was neither declared nor imported! This warning will become an error after final.'))}),t.declaredDirectives.forEach(function(n){e._getTransitiveViewDirectivesAndPipes(n,t)})},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);if(n&&n!==e)throw new g.BaseException("Type "+_.stringify(t)+" is part of the declarations of 2 modules: "+_.stringify(n)+" and "+_.stringify(e)+"!");this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveViewDirectivesAndPipes=function(t,e){var n=this;if(t.isComponent){var r=function(t){var r=n.getPipeMetadata(t);n._addPipeToModule(r,e.type.runtime,e.transitiveModule,e.declaredPipes)},i=function(t){var r=n.getDirectiveMetadata(t);n._addDirectiveToModule(r,e.type.runtime,e.transitiveModule,e.declaredDirectives)&&n._getTransitiveViewDirectivesAndPipes(r,e)};t.viewPipes&&t.viewPipes.forEach(function(t){return r(t.runtime)}),t.viewDirectives&&t.viewDirectives.forEach(function(t){return i(t.runtime)}),t.entryComponents.forEach(function(r){e.transitiveModule.directivesSet.has(r.runtime)||(n._console.warn("Component "+_.stringify(t.type.runtime)+" in NgModule "+_.stringify(e.type.runtime)+" uses "+_.stringify(r.runtime)+' via "entryComponents" but it was neither declared nor imported into the module! This warning will become an error after final.'),i(r.runtime))})}},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=r(t.concat(e),!0),o=i(n.map(function(t){return t.providers})),s=i(n.map(function(t){return t.entryComponents})),a=r(t,!1),u=i(a.map(function(t){return t.exportedDirectives})),c=i(a.map(function(t){return t.exportedPipes}));return new v.TransitiveCompileNgModuleMetadata(n,o,s,u,c)},t.prototype._addDirectiveToModule=function(t,e,n,r,i){return void 0===i&&(i=!1),i||!n.directivesSet.has(t.type.runtime)?(n.directivesSet.add(t.type.runtime),n.directives.push(t),r.push(t),this._addTypeToModule(t.type.runtime,e),!0):!1},t.prototype._addPipeToModule=function(t,e,n,r,i){return void 0===i&&(i=!1),i||!n.pipesSet.has(t.type.runtime)?(n.pipesSet.add(t.type.runtime),n.pipes.push(t),r.push(t),this._addTypeToModule(t.type.runtime,e),!0):!1},t.prototype.getTypeMetadata=function(t,e,n){return void 0===n&&(n=null),t=l.resolveForwardRef(t),new v.CompileTypeMetadata({name:this.sanitizeTokenName(t),moduleUrl:e,runtime:t,diDeps:this.getDependenciesMetadata(t,n),lifecycleHooks:f.LIFECYCLE_HOOKS_VALUES.filter(function(e){return w.hasLifecycleHook(e,t)})})},t.prototype.getFactoryMetadata=function(t,e,n){return void 0===n&&(n=null),t=l.resolveForwardRef(t),new v.CompileFactoryMetadata({name:this.sanitizeTokenName(t),moduleUrl:e,runtime:t,diDeps:this.getDependenciesMetadata(t,n)})},t.prototype.getPipeMetadata=function(t,e){void 0===e&&(e=!0),t=l.resolveForwardRef(t);var n=this._pipeCache.get(t);if(_.isBlank(n)){var r=this._pipeResolver.resolve(t,e);if(!r)return null;n=new v.CompilePipeMetadata({type:this.getTypeMetadata(t,a(t)),name:r.name,pure:r.pure}),this._pipeCache.set(t,n)}return n},t.prototype.getDependenciesMetadata=function(t,e){var n=this,r=!1,i=_.isPresent(e)?e:this._reflector.parameters(t);_.isBlank(i)&&(i=[]);var o=i.map(function(e){var i=!1,o=!1,a=!1,u=!1,c=!1,p=null,f=null,h=null;return _.isArray(e)?e.forEach(function(t){t instanceof l.HostMetadata?o=!0:t instanceof l.SelfMetadata?a=!0:t instanceof l.SkipSelfMetadata?u=!0:t instanceof l.OptionalMetadata?c=!0:t instanceof l.AttributeMetadata?(i=!0,h=t.attributeName):t instanceof l.QueryMetadata?t.isViewQuery?f=t:p=t:t instanceof l.InjectMetadata?h=t.token:s(t)&&_.isBlank(h)&&(h=t)}):h=e,_.isBlank(h)?(r=!0,null):new v.CompileDiDependencyMetadata({isAttribute:i,isHost:o,isSelf:a,isSkipSelf:u,isOptional:c,query:_.isPresent(p)?n.getQueryMetadata(p,null,t):null,viewQuery:_.isPresent(f)?n.getQueryMetadata(f,null,t):null,token:n.getTokenMetadata(h)})});if(r){var a=o.map(function(t){return t?_.stringify(t.token):"?"}).join(", ");throw new g.BaseException("Can't resolve all parameters for "+_.stringify(t)+": ("+a+").")}return o},t.prototype.getTokenMetadata=function(t){t=l.resolveForwardRef(t);var e;return e=_.isString(t)?new v.CompileTokenMetadata({value:t}):new v.CompileTokenMetadata({identifier:new v.CompileIdentifierMetadata({runtime:t,name:this.sanitizeTokenName(t),moduleUrl:a(t)})})},t.prototype.getProvidersMetadata=function(t,e){var n=this,r=[];return t.forEach(function(t){t=l.resolveForwardRef(t),f.isProviderLiteral(t)&&(t=f.createProvider(t));var i;if(_.isArray(t))i=n.getProvidersMetadata(t,e);else if(t instanceof l.Provider){var o=n.getTokenMetadata(t.token);o.equalsTo(b.identifierToken(b.Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS))?e.push.apply(e,n._getEntryComponentsFromProvider(t)):i=n.getProviderMetadata(t)}else{if(!s(t))throw new g.BaseException("Invalid provider - only instances of Provider and Type are allowed, got: "+_.stringify(t));i=n.getTypeMetadata(t,a(t))}i&&r.push(i)}),r},t.prototype._getEntryComponentsFromProvider=function(t){var e=this,n=[],r=[];if(t.useFactory||t.useExisting||t.useClass)throw new g.BaseException("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!");if(!t.multi)throw new g.BaseException("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!");return c(t.useValue,r),r.forEach(function(t){var r=e.getDirectiveMetadata(t.runtime,!1);r&&n.push(r.type)}),n},t.prototype.getProviderMetadata=function(t){var e,n=null,r=null;return _.isPresent(t.useClass)?(n=this.getTypeMetadata(t.useClass,a(t.useClass),t.dependencies),e=n.diDeps):_.isPresent(t.useFactory)&&(r=this.getFactoryMetadata(t.useFactory,a(t.useFactory),t.dependencies),e=r.diDeps),new v.CompileProviderMetadata({token:this.getTokenMetadata(t.token),useClass:n,useValue:c(t.useValue,[]),useFactory:r,useExisting:_.isPresent(t.useExisting)?this.getTokenMetadata(t.useExisting):null,deps:e,multi:t.multi})},t.prototype.getQueriesMetadata=function(t,e,n){var r=this,i=[];return h.StringMapWrapper.forEach(t,function(t,o){t.isViewQuery===e&&i.push(r.getQueryMetadata(t,o,n))}),i},t.prototype.getQueryMetadata=function(t,e,n){var r,i=this;if(t.isVarBindingQuery)r=t.varBindings.map(function(t){return i.getTokenMetadata(t)});else{if(!_.isPresent(t.selector))throw new g.BaseException("Can't construct a query for the property \""+e+'" of "'+_.stringify(n)+"\" since the query selector wasn't defined.");r=[this.getTokenMetadata(t.selector)]}return new v.CompileQueryMetadata({selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:_.isPresent(t.read)?this.getTokenMetadata(t.read):null})},t.decorators=[{type:l.Injectable}],t.ctorParameters=[{type:E.NgModuleResolver},{type:m.DirectiveResolver},{type:S.PipeResolver},{type:y.CompilerConfig},{type:f.Console},{type:C.ElementSchemaRegistry},{type:f.ReflectorReader}],t}();e.CompileMetadataResolver=A;var T=function(t){function e(){t.apply(this,arguments)}return p(e,t),e.prototype.visitOther=function(t,e){var n;return n=v.isStaticSymbol(t)?new v.CompileIdentifierMetadata({name:t.name,moduleUrl:t.filePath,runtime:t}):new v.CompileIdentifierMetadata({runtime:t}),e.push(n),n},e}(O.ValueTransformer)},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(17),o=n(20),s=n(4),a=n(18),u=n(13),c=n(260),p=n(40),l=n(261),f=n(23),h=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}();e.ComponentFactoryDependency=h;var d=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}();e.NgModuleCompileResult=d;var v=function(){function t(){}return t.prototype.compile=function(t,e){var n=s.isPresent(t.type.moduleUrl)?"in NgModule "+t.type.name+" in "+t.type.moduleUrl:"in NgModule "+t.type.name,r=new p.ParseSourceFile("",n),i=new p.ParseSourceSpan(new p.ParseLocation(r,null,null,null),new p.ParseLocation(r,null,null,null)),c=[],f=[],v=t.transitiveModule.entryComponents.map(function(e){var n=new o.CompileIdentifierMetadata({name:e.name});return t.bootstrapComponents.indexOf(e)>-1&&f.push(n),c.push(new h(e,n)),n}),m=new y(t,v,f,i),g=new l.NgModuleProviderAnalyzer(t,e,i);g.parse().forEach(function(t){return m.addProvider(t)});var _=m.build(),b=t.type.name+"NgFactory",w=u.variable(b).set(u.importExpr(a.Identifiers.NgModuleFactory).instantiate([u.variable(_.name),u.importExpr(t.type)],u.importType(a.Identifiers.NgModuleFactory,[u.importType(t.type)],[u.TypeModifier.Const]))).toDeclStmt(null,[u.StmtModifier.Final]);return new d([_,w],b,c)},t.decorators=[{type:r.Injectable}],t}();e.NgModuleCompiler=v;var y=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this._instances=new o.CompileIdentifierMap,this._fields=[],this._createStmts=[],this._destroyStmts=[],this._getters=[]}return t.prototype.addProvider=function(t){var e=this,n=t.providers.map(function(t){return e._getProviderValue(t)}),r="_"+t.token.name+"_"+this._instances.size,o=this._createProviderProperty(r,t,n,t.multiProvider,t.eager);-1!==t.lifecycleHooks.indexOf(i.LifecycleHooks.OnDestroy)&&this._destroyStmts.push(o.callMethod("ngOnDestroy",[]).toStmt()),this._instances.add(t.token,o)},t.prototype.build=function(){var t=this,e=this._instances.keys().map(function(e){var n=t._instances.get(e);return new u.IfStmt(g.token.identical(f.createDiTokenExpression(e)),[new u.ReturnStatement(n)])}),n=[new u.ClassMethod("createInternal",[],this._createStmts.concat(new u.ReturnStatement(this._instances.get(a.identifierToken(this._ngModuleMeta.type)))),u.importType(this._ngModuleMeta.type)),new u.ClassMethod("getInternal",[new u.FnParam(g.token.name,u.DYNAMIC_TYPE),new u.FnParam(g.notFoundResult.name,u.DYNAMIC_TYPE)],e.concat([new u.ReturnStatement(g.notFoundResult)]),u.DYNAMIC_TYPE),new u.ClassMethod("destroyInternal",[],this._destroyStmts)],r=new u.ClassMethod(null,[new u.FnParam(m.parent.name,u.importType(a.Identifiers.Injector))],[u.SUPER_EXPR.callFn([u.variable(m.parent.name),u.literalArr(this._entryComponentFactories.map(function(t){return u.importExpr(t)})),u.literalArr(this._bootstrapComponentFactories.map(function(t){return u.importExpr(t)}))]).toStmt()]),i=this._ngModuleMeta.type.name+"Injector";return new u.ClassStmt(i,u.importExpr(a.Identifiers.NgModuleInjector,[u.importType(this._ngModuleMeta.type)]),this._fields,this._getters,r,n)},t.prototype._getProviderValue=function(t){var e,n=this;if(s.isPresent(t.useExisting))e=this._getDependency(new o.CompileDiDependencyMetadata({token:t.useExisting}));else if(s.isPresent(t.useFactory)){var r=s.isPresent(t.deps)?t.deps:t.useFactory.diDeps,i=r.map(function(t){return n._getDependency(t)});e=u.importExpr(t.useFactory).callFn(i)}else if(s.isPresent(t.useClass)){var r=s.isPresent(t.deps)?t.deps:t.useClass.diDeps,i=r.map(function(t){return n._getDependency(t)});e=u.importExpr(t.useClass).instantiate(i,u.importType(t.useClass))}else e=c.convertValueToOutputAst(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,i){var o,a;if(r?(o=u.literalArr(n),a=new u.ArrayType(u.DYNAMIC_TYPE)):(o=n[0],a=n[0].type),s.isBlank(a)&&(a=u.DYNAMIC_TYPE),i)this._fields.push(new u.ClassField(t,a)),this._createStmts.push(u.THIS_EXPR.prop(t).set(o).toStmt());else{var c="_"+t;this._fields.push(new u.ClassField(c,a));var p=[new u.IfStmt(u.THIS_EXPR.prop(c).isBlank(),[u.THIS_EXPR.prop(c).set(o).toStmt()]),new u.ReturnStatement(u.THIS_EXPR.prop(c))];this._getters.push(new u.ClassGetter(t,p,a))}return u.THIS_EXPR.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=u.literal(t.value)),t.isSkipSelf||(t.token&&(t.token.equalsTo(a.identifierToken(a.Identifiers.Injector))||t.token.equalsTo(a.identifierToken(a.Identifiers.ComponentFactoryResolver)))&&(e=u.THIS_EXPR),s.isBlank(e)&&(e=this._instances.get(t.token))),s.isBlank(e)){var n=[f.createDiTokenExpression(t.token)];t.isOptional&&n.push(u.NULL_EXPR),e=m.parent.callMethod("get",n)}return e},t}(),m=function(){function t(){}return t.parent=u.THIS_EXPR.prop("parent"),t}(),g=function(){function t(){}return t.token=u.variable("token"),t.notFoundResult=u.variable("notFoundResult"),t}()},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t instanceof i.NgModuleMetadata}var i=n(2),o=n(17),s=n(14),a=n(4),u=function(){function t(t){void 0===t&&(t=o.reflector),this._reflector=t}return t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(t).find(r);if(a.isPresent(n))return n;if(e)throw new s.BaseException("No NgModule metadata found for '"+a.stringify(t)+"'.");return null},t.decorators=[{type:i.Injectable}],t.ctorParameters=[{type:o.ReflectorReader}],t}();e.NgModuleResolver=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){if(s.isBlank(t))return null;var n=s.StringWrapper.replaceAllMapped(t,u,function(t){return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return"'"+n+"'"}function i(t){for(var e="",n=0;t>n;n++)e+=" ";return e}var o=n(14),s=n(4),a=n(13),u=/'|\\|\n|\r|\$/g;e.CATCH_ERROR_VAR=a.variable("error"),e.CATCH_STACK_VAR=a.variable("stack");var c=function(){function t(){}return t}();e.OutputEmitter=c;var p=function(){function t(t){this.indent=t,this.parts=[]}return t}(),l=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new p(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t){void 0===t&&(t=""),this.print(t,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e){void 0===e&&(e=!1),t.length>0&&this._currentLine.parts.push(t),e&&this._lines.push(new p(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){var t=this._lines;return 0===t[t.length-1].parts.length&&(t=t.slice(0,t.length-1)),t.map(function(t){return t.parts.length>0?i(t.indent)+t.parts.join(""):""}).join("\n")},t}();e.EmitterVisitorContext=l;var f=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print("return "),t.value.visitExpression(this,e),e.println(";"),null},t.prototype.visitIfStmt=function(t,e){e.print("if ("),t.condition.visitExpression(this,e),e.print(") {");var n=s.isPresent(t.falseCase)&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(" "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(" ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println("} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println("}"),null},t.prototype.visitThrowStmt=function(t,e){return e.print("throw "),t.error.visitExpression(this,e),e.println(";"),null},t.prototype.visitCommentStmt=function(t,e){var n=t.comment.split("\n");return n.forEach(function(t){e.println("// "+t)}),null},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),e.print(t.name+" = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("] = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),t.receiver.visitExpression(this,e),e.print("."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return s.isPresent(t.builtin)&&(n=this.getBuiltinMethodName(t.builtin),s.isBlank(n))?null:(e.print("."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(")"),null)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitReadVarExpr=function(t,n){var r=t.name;if(s.isPresent(t.builtin))switch(t.builtin){case a.BuiltinVar.Super:r="super";break;case a.BuiltinVar.This:r="this";break;case a.BuiltinVar.CatchError:r=e.CATCH_ERROR_VAR.name;break;case a.BuiltinVar.CatchStack:r=e.CATCH_STACK_VAR.name;break;default:throw new o.BaseException("Unknown builtin variable "+t.builtin)}return n.print(r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print("new "),t.classExpr.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return s.isString(n)?e.print(r(n,this._escapeDollarInStrings)):s.isBlank(n)?e.print("null"):e.print(""+n),null},t.prototype.visitConditionalExpr=function(t,e){return e.print("("),t.condition.visitExpression(this,e),e.print("? "),t.trueCase.visitExpression(this,e),e.print(": "),t.falseCase.visitExpression(this,e),e.print(")"),null},t.prototype.visitNotExpr=function(t,e){return e.print("!"),t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case a.BinaryOperator.Equals:n="==";break;case a.BinaryOperator.Identical:n="===";break;case a.BinaryOperator.NotEquals:n="!=";break;case a.BinaryOperator.NotIdentical:n="!==";break;case a.BinaryOperator.And:n="&&";break;case a.BinaryOperator.Or:n="||";break;case a.BinaryOperator.Plus:n="+";break;case a.BinaryOperator.Minus:n="-";break;case a.BinaryOperator.Divide:n="/";break;case a.BinaryOperator.Multiply:n="*";break;case a.BinaryOperator.Modulo:n="%";break;case a.BinaryOperator.Lower:n="<";break;case a.BinaryOperator.LowerEquals:n="<=";break;case a.BinaryOperator.Bigger:n=">";break;case a.BinaryOperator.BiggerEquals:n=">=";break;default:throw new o.BaseException("Unknown operator "+t.operator)}return e.print("("),t.lhs.visitExpression(this,e),e.print(" "+n+" "),t.rhs.visitExpression(this,e),e.print(")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("."),e.print(t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print("[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print("]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,i=t.entries.length>1;return e.print("{",i),e.incIndent(),this.visitAllObjects(function(t){e.print(r(t[0],n._escapeDollarInStrings)+": "),t[1].visitExpression(n,e)},t.entries,e,",",i),e.decIndent(),e.print("}",i),null},t.prototype.visitAllExpressions=function(t,e,n,r){var i=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(i,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,i){void 0===i&&(i=!1);for(var o=0;o0&&n.print(r,i),t(e[o]);i&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();e.AbstractEmitterVisitor=f,e.escapeSingleQuoteString=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t instanceof i.PipeMetadata}var i=n(2),o=n(17),s=n(14),a=n(4),u=function(){function t(t){void 0===t&&(t=o.reflector),this._reflector=t}return t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(i.resolveForwardRef(t));if(a.isPresent(n)){var o=n.find(r);if(a.isPresent(o))return o}if(e)throw new s.BaseException("No Pipe decorator found on "+a.stringify(t));return null},t.decorators=[{type:i.Injectable}],t.ctorParameters=[{type:o.ReflectorReader}],t}();e.PipeResolver=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(7),i=n(14),o=n(4),s="",a=o.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),u=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){for(var n,s=[],u=function(t,e){e.notSelectors.length>0&&o.isBlank(e.element)&&r.ListWrapper.isEmpty(e.classNames)&&r.ListWrapper.isEmpty(e.attrs)&&(e.element="*"),t.push(e)},c=new t,p=o.RegExpWrapper.matcher(a,e),l=c,f=!1;o.isPresent(n=o.RegExpMatcherWrapper.next(p));){if(o.isPresent(n[1])){if(f)throw new i.BaseException("Nesting :not is not allowed in a selector");f=!0,l=new t,c.notSelectors.push(l)}if(o.isPresent(n[2])&&l.setElement(n[2]),o.isPresent(n[3])&&l.addClassName(n[3]),o.isPresent(n[4])&&l.addAttribute(n[4],n[5]),o.isPresent(n[6])&&(f=!1,l=c),o.isPresent(n[7])){if(f)throw new i.BaseException("Multiple selectors in :not are not supported");u(s,c),c=l=new t}}return u(s,c),s},t.prototype.isElementSelector=function(){return o.isPresent(this.element)&&r.ListWrapper.isEmpty(this.classNames)&&r.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=o.isPresent(this.element)?this.element:"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=s),this.attrs.push(t),e=o.isPresent(e)?e.toLowerCase():s,this.attrs.push(e)},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t="";if(o.isPresent(this.element)&&(t+=this.element),o.isPresent(this.classNames))for(var e=0;e0&&(t+="="+r),t+="]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}();e.CssSelector=u;var c=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;r0&&(o.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var r=c.createNotMatcher(this.notSelectors);n=!r.match(t,null)}return n&&o.isPresent(e)&&(o.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(o.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}();e.SelectorContext=l},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){var e="styles";return t&&(e+="_"+t.type.name),e}var i=n(2),o=n(20),s=n(13),a=n(391),u=n(68),c="%COMP%",p="_nghost-"+c,l="_ngcontent-"+c,f=function(){function t(t,e,n){this.moduleUrl=t,this.isShimmed=e,this.valuePlaceholder=n}return t}();e.StylesCompileDependency=f;var h=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}();e.StylesCompileResult=h;var d=function(){function t(t,e,n,r,i){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}();e.CompiledStylesheet=d;var v=function(){function t(t){this._urlResolver=t,this._shadowCss=new a.ShadowCss}return t.prototype.compileComponent=function(t){var e=this,n=[],r=this._compileStyles(t,new o.CompileStylesheetMetadata({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:t.type.moduleUrl}),!0);return t.template.externalStylesheets.forEach(function(r){var i=e._compileStyles(t,r,!1);n.push(i)}),new h(r,n)},t.prototype._compileStyles=function(t,e,n){for(var a=this,u=t.template.encapsulation===i.ViewEncapsulation.Emulated,c=e.styles.map(function(t){return s.literal(a._shimIfNeeded(t,u))}),p=[],l=0;l0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new _.BaseException("The module "+b.stringify(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)}},e.decorators=[{type:C.Injectable}],e.ctorParameters=[{type:C.Injector}],e}(N);e.PlatformRef_=k;var D=function(){function t(){}return Object.defineProperty(t.prototype,"injector",{get:function(){return _.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zone",{get:function(){return _.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTypes",{get:function(){return _.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"components",{get:function(){return _.unimplemented()},enumerable:!0,configurable:!0}),t}();e.ApplicationRef=D;var V=function(t){function e(e,n,r,i,s,a,u,c){var p=this;t.call(this),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=a,this._testabilityRegistry=u,this._testability=c,this._bootstrapListeners=[],this._disposeListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=o(),m.ObservableWrapper.subscribe(this._zone.onMicrotaskEmpty,function(t){p._zone.run(function(){p.tick()})})}return y(e,t),e.prototype.registerBootstrapListener=function(t){this._bootstrapListeners.push(t)},e.prototype.registerDisposeListener=function(t){this._disposeListeners.push(t)},e.prototype.registerChangeDetector=function(t){this._changeDetectorRefs.push(t)},e.prototype.unregisterChangeDetector=function(t){g.ListWrapper.remove(this._changeDetectorRefs,t)},e.prototype.waitForAsyncInitializers=function(){return this._initStatus.donePromise},e.prototype.run=function(t){var e=this;return this._zone.run(function(){return d(e._exceptionHandler,t)})},e.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new _.BaseException("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=t instanceof O.ComponentFactory?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n.create(this._injector,[],n.selector);r.onDestroy(function(){e._unloadComponent(r)});var i=r.injector.get(x.Testability,null);return b.isPresent(i)&&r.injector.get(x.TestabilityRegistry).registerApplication(r.location.nativeElement,i),this._loadComponent(r),o()&&this._console.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype._loadComponent=function(t){this._changeDetectorRefs.push(t.changeDetectorRef),this.tick(),this._rootComponents.push(t);var e=this._injector.get(E.APP_BOOTSTRAP_LISTENER,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){g.ListWrapper.contains(this._rootComponents,t)&&(this.unregisterChangeDetector(t.changeDetectorRef),g.ListWrapper.remove(this._rootComponents,t))},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),e.prototype.tick=function(){if(this._runningTick)throw new _.BaseException("ApplicationRef.tick is called recursively");var t=e._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,T.wtfLeave(t)}},e.prototype.ngOnDestroy=function(){g.ListWrapper.clone(this._rootComponents).forEach(function(t){return t.destroy()}),this._disposeListeners.forEach(function(t){return t()})},e.prototype.dispose=function(){this.ngOnDestroy()},Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),e._tickScope=T.wtfCreateScope("ApplicationRef#tick()"),e.decorators=[{type:C.Injectable}],e.ctorParameters=[{type:R.NgZone},{type:S.Console},{type:C.Injector},{type:_.ExceptionHandler},{type:A.ComponentFactoryResolver},{type:w.ApplicationInitStatus},{type:x.TestabilityRegistry,decorators:[{type:C.Optional}]},{type:x.Testability,decorators:[{type:C.Optional}]}],e}(D);e.ApplicationRef_=V},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&rl;l++){var f=l=p&&c>h&&(o[l]=f+1)}var d=s.previousIndex;o[d]=p-c}}a!==u&&t(s,a,u)}},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(s.isBlank(t)&&(t=[]),!i.isListLikeIterable(t))throw new o.BaseException("Error trying to diff '"+t+"'");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,o,a=this._itHead,u=!1;if(s.isArray(t)){var c=t;for(this._length=t.length,n=0;n"+s.stringify(this.currentIndex)+"]"},t}();e.CollectionChangeRecord=p;var l=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||e1){var e=r(s.ListWrapper.reversed(t)),n=e.map(function(t){return u.stringify(t.token)});return" ("+n.join(" -> ")+")"}return""}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(15),a=n(10),u=n(3),c=function(t){function e(e,n,r){t.call(this,"DI Exception"),this.keys=[n],this.injectors=[e],this.constructResolvingMessage=r,this.message=this.constructResolvingMessage(this.keys)}return o(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)},Object.defineProperty(e.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),e}(a.BaseException);e.AbstractProviderError=c;var p=function(t){function e(e,n){t.call(this,e,n,function(t){var e=u.stringify(s.ListWrapper.first(t).token);return"No provider for "+e+"!"+i(t)})}return o(e,t),e}(c);e.NoProviderError=p;var l=function(t){function e(e,n){t.call(this,e,n,function(t){return"Cannot instantiate cyclic dependency!"+i(t)})}return o(e,t),e}(c);e.CyclicDependencyError=l;var f=function(t){function e(e,n,r,i){t.call(this,"DI Exception",n,r,null),this.keys=[i],this.injectors=[e]}return o(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e)},Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){var t=u.stringify(s.ListWrapper.first(this.keys).token);return"Error during instantiation of "+t+"!"+i(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),e}(a.WrappedException);e.InstantiationError=f;var h=function(t){function e(e){t.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+e)}return o(e,t),e}(a.BaseException);e.InvalidProviderError=h;var d=function(t){function e(n,r){t.call(this,e._genMessage(n,r))}return o(e,t),e._genMessage=function(t,e){for(var n=[],r=0,i=e.length;i>r;r++){var o=e[r];u.isBlank(o)||0==o.length?n.push("?"):n.push(o.map(u.stringify).join(" "))}return"Cannot resolve all parameters for '"+u.stringify(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u.stringify(t)+"' is decorated with Injectable."},e}(a.BaseException);e.NoAnnotationError=d;var v=function(t){function e(e){t.call(this,"Index "+e+" is out-of-bounds.")}return o(e,t),e}(a.BaseException);e.OutOfBoundsError=v;var y=function(t){function e(e,n){t.call(this,"Cannot mix multi providers and regular providers, got: "+e.toString()+" "+n.toString())}return o(e,t),e}(a.BaseException);e.MixingMultiProvidersWithRegularProvidersError=y},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(10),i=n(3),o=n(113),s=function(){function t(t,e){if(this.token=t,this.id=e,i.isBlank(t))throw new r.BaseException("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return i.stringify(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return u.get(o.resolveForwardRef(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return u.numberOfKeys},enumerable:!0,configurable:!0}),t}();e.ReflectiveKey=s;var a=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof s)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new s(t,s.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}();e.KeyRegistry=a;var u=new a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){var e,n;if(f.isPresent(t.useClass)){var r=g.resolveForwardRef(t.useClass);e=d.reflector.factory(r),n=c(r)}else f.isPresent(t.useExisting)?(e=function(t){return t},n=[w.fromKey(v.ReflectiveKey.get(t.useExisting))]):f.isPresent(t.useFactory)?(e=t.useFactory,n=u(t.useFactory,t.dependencies)):(e=function(){return t.useValue},n=E);return new C(e,n)}function i(t){return new S(v.ReflectiveKey.get(t.token),[r(t)],t.multi)}function o(t){var e=a(t,[]),n=e.map(i);return h.MapWrapper.values(s(n,new Map))}function s(t,e){for(var n=0;n0){var c=s[e-1];a=c.lastRootNode}else a=this.nativeElement;o.isPresent(a)&&t.renderer.attachViewAfter(a,t.flatRootNodes),t.markContentChildAsMoved(this)},t.prototype.attachView=function(t,e){if(t.type===u.ViewType.COMPONENT)throw new i.BaseException("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),r.ListWrapper.insert(n,e,t);var s;if(e>0){var a=n[e-1];s=a.lastRootNode}else s=this.nativeElement;o.isPresent(s)&&t.renderer.attachViewAfter(s,t.flatRootNodes),t.addToContentChildren(this)},t.prototype.detachView=function(t){var e=r.ListWrapper.removeAt(this.nestedViews,t);if(e.type===u.ViewType.COMPONENT)throw new i.BaseException("Component views can't be moved!");return e.detach(),e.removeFromContentChildren(this),e},t}();e.AppElement=c},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(109),o=n(10),s=function(t){function e(e,n,r){var o="Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";e===i.UNINITIALIZED&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),t.call(this,o)}return r(e,t),e}(o.BaseException);e.ExpressionChangedAfterItHasBeenCheckedException=s;var a=function(t){function e(e,n,r){t.call(this,"Error in "+r.source,e,n,r)}return r(e,t),e}(o.WrappedException);e.ViewWrappedException=a;var u=function(t){function e(e){t.call(this,"Attempt to use a destroyed view: "+e)}return r(e,t),e}(o.BaseException);e.ViewDestroyedException=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(297),i=n(298),o=n(298);e.ReflectionInfo=o.ReflectionInfo,e.Reflector=o.Reflector,e.reflector=new i.Reflector(new r.ReflectionCapabilities)},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){}return t}();e.ReflectorReader=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(10),i=function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}return t}();e.RenderComponentType=i;var o=function(){function t(){}return Object.defineProperty(t.prototype,"injector",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),t}();e.RenderDebugInfo=o;var s=function(){function t(){}return t}();e.Renderer=s;var a=function(){function t(){}return t}();e.RootRenderer=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){h=t}var i=n(112),o=n(70),s=n(15),a=n(10),u=n(3),c=n(194),p=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;o.ObservableWrapper.subscribe(this._ngZone.onUnstable,function(e){t._didWork=!0,t._isZoneStable=!1}),this._ngZone.runOutsideAngular(function(){o.ObservableWrapper.subscribe(t._ngZone.onStable,function(e){c.NgZone.assertNotInAngularZone(),u.scheduleMicroTask(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 a.BaseException("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?u.scheduleMicroTask(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t.decorators=[{type:i.Injectable}],t.ctorParameters=[{type:c.NgZone}],t}();e.Testability=p;var l=function(){function t(){this._applications=new s.Map,h.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)},t.prototype.getAllTestabilities=function(){return s.MapWrapper.values(this._applications)},t.prototype.getAllRootElements=function(){return s.MapWrapper.keys(this._applications)},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),h.findTestabilityInTree(this,t,e)},t.decorators=[{type:i.Injectable}],t.ctorParameters=[],t}();e.TestabilityRegistry=l;var f=function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}();e.setTestabilityGetter=r;var h=new f},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(70),i=n(10),o=n(300),s=n(300);e.NgZoneError=s.NgZoneError;var a=function(){function t(t){var e=this,n=t.enableLongStackTrace,i=void 0===n?!1:n;this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new r.EventEmitter(!1),this._onMicrotaskEmpty=new r.EventEmitter(!1),this._onStable=new r.EventEmitter(!1),this._onErrorEvents=new r.EventEmitter(!1),this._zoneImpl=new o.NgZoneImpl({trace:i,onEnter:function(){e._nesting++,e._isStable&&(e._isStable=!1,e._onUnstable.emit(null))},onLeave:function(){e._nesting--,e._checkStable()},setMicrotask:function(t){e._hasPendingMicrotasks=t,e._checkStable()},setMacrotask:function(t){e._hasPendingMacrotasks=t},onError:function(t){return e._onErrorEvents.emit(t)}})}return t.isInAngularZone=function(){return o.NgZoneImpl.isInAngularZone()},t.assertInAngularZone=function(){if(!o.NgZoneImpl.isInAngularZone())throw new i.BaseException("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(o.NgZoneImpl.isInAngularZone())throw new i.BaseException("Expected to not be in Angular Zone, but it is!")},t.prototype._checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.run=function(t){return this._zoneImpl.runInner(t)},t.prototype.runGuarded=function(t){return this._zoneImpl.runInnerGuarded(t)},t.prototype.runOutsideAngular=function(t){return this._zoneImpl.runOuter(t)},t}();e.NgZone=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(59),i=n(19),o=function(){function t(){}return Object.defineProperty(t.prototype,"control",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return i.isPresent(this.control)?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return i.isPresent(this.control)?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return i.isPresent(this.control)?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return i.isPresent(this.control)?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return i.isPresent(this.control)?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return i.isPresent(this.control)?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return i.isPresent(this.control)?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return i.isPresent(this.control)?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return i.isPresent(this.control)?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return i.isPresent(this.control)?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return i.isPresent(this.control)?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),i.isPresent(this.control)&&this.control.reset(t)},t}();e.AbstractControlDirective=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(19),o=n(57),s=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return i.isPresent(this._cd.control)?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return i.isPresent(this._cd.control)?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return i.isPresent(this._cd.control)?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return i.isPresent(this._cd.control)?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return i.isPresent(this._cd.control)?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return i.isPresent(this._cd.control)?!this._cd.control.valid:!1},enumerable:!0,configurable:!0}),t.decorators=[{type:r.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:{"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid"}}]}],t.ctorParameters=[{type:o.NgControl,decorators:[{type:r.Self}]}],t}();e.NgControlStatus=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(58),s=n(127),a=n(34),u=n(120),c=n(45),p=n(33),l=n(57),f=n(78),h=n(123),d=n(46),v=n(303);e.formControlBinding={provide:l.NgControl,useExisting:i.forwardRef(function(){return y})};var y=function(t){function n(e,n,r,i){t.call(this),this._parent=e,this._validators=n,this._asyncValidators=r,this._control=new s.FormControl,this._registered=!1,this.update=new o.EventEmitter,this.valueAccessor=d.selectValueAccessor(this,i)}return r(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),d.isPropertyUpdated(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?d.controlPath(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return d.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return d.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,o.ObservableWrapper.callEmit(this.update,t)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone},n.prototype._setUpStandalone=function(){d.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof h.NgModelGroup)&&this._parent instanceof u.AbstractFormGroupDirective?v.TemplateDrivenErrors.formGroupNameException():this._parent instanceof h.NgModelGroup||this._parent instanceof f.NgForm||v.TemplateDrivenErrors.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||v.TemplateDrivenErrors.missingNameException()},n.prototype._updateValue=function(t){var e=this;o.PromiseWrapper.scheduleMicrotask(function(){e.control.updateValue(t,{emitViewToModelChange:!1})})},n.decorators=[{type:i.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[e.formControlBinding],exportAs:"ngModel"}]}],n.ctorParameters=[{type:c.ControlContainer,decorators:[{type:i.Optional},{type:i.Host}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[p.NG_VALUE_ACCESSOR]}]}],n.propDecorators={model:[{type:i.Input,args:["ngModel"]}],name:[{type:i.Input}],options:[{type:i.Input,args:["ngModelOptions"]}],update:[{type:i.Output,args:["ngModelChange"]}]},n}(l.NgControl);e.NgModel=y},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(19),o=n(33);e.NUMBER_VALUE_ACCESSOR={provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return s}),multi:!0};var s=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=i.isBlank(t)?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:i.NumberWrapper.parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.decorators=[{type:r.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[e.NUMBER_VALUE_ACCESSOR]}]}],t.ctorParameters=[{type:r.Renderer},{type:r.ElementRef}],t}();e.NumberValueAccessor=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(58),s=n(30),a=n(34),u=n(33),c=n(57),p=n(46);e.formControlBinding={provide:c.NgControl,useExisting:i.forwardRef(function(){return l})};var l=function(t){function n(e,n,r){t.call(this),this._validators=e,this._asyncValidators=n,this.update=new o.EventEmitter,this.valueAccessor=p.selectValueAccessor(this,r)}return r(n,t),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(p.setUpControl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})),p.isPropertyUpdated(t,this.viewModel)&&(this.form.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return p.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return p.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,o.ObservableWrapper.callEmit(this.update,t)},n.prototype._isControlChanged=function(t){return s.StringMapWrapper.contains(t,"form")},n.decorators=[{type:i.Directive,args:[{selector:"[formControl]",providers:[e.formControlBinding],exportAs:"ngForm"}]}],n.ctorParameters=[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[u.NG_VALUE_ACCESSOR]}]}],n.propDecorators={form:[{type:i.Input,args:["formControl"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}]},n}(c.NgControl);e.FormControlDirective=l},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(58),s=n(34),a=n(120),u=n(45),c=n(33),p=n(57),l=n(201),f=n(46),h=n(79),d=n(80);e.controlNameBinding={provide:p.NgControl,useExisting:i.forwardRef(function(){return v})};var v=function(t){function n(e,n,r,i){t.call(this),this._parent=e,this._validators=n,this._asyncValidators=r,this._added=!1,this.update=new o.EventEmitter,this.valueAccessor=f.selectValueAccessor(this,i)}return r(n,t),n.prototype.ngOnChanges=function(t){this._added||(this._checkParentType(),this.formDirective.addControl(this),this._added=!0),f.isPropertyUpdated(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(t){this.viewModel=t,o.ObservableWrapper.callEmit(this.update,t)},Object.defineProperty(n.prototype,"path",{get:function(){return f.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return f.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return f.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.formDirective.getControl(this)},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof d.FormGroupName)&&this._parent instanceof a.AbstractFormGroupDirective?l.ReactiveErrors.ngModelGroupException():this._parent instanceof d.FormGroupName||this._parent instanceof h.FormGroupDirective||this._parent instanceof d.FormArrayName||l.ReactiveErrors.controlParentException()},n.decorators=[{type:i.Directive,args:[{selector:"[formControlName]",providers:[e.controlNameBinding]}]}],n.ctorParameters=[{type:u.ControlContainer,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[s.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[s.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[c.NG_VALUE_ACCESSOR]}]}],n.propDecorators={name:[{type:i.Input,args:["formControlName"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}]},n}(p.NgControl);e.FormControlName=v},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(59),i=n(302),o=function(){function t(){}return t.controlParentException=function(){throw new r.BaseException("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+i.FormErrorExamples.formControlName)},t.ngModelGroupException=function(){throw new r.BaseException('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+i.FormErrorExamples.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+i.FormErrorExamples.ngModelGroup)},t.missingFormException=function(){throw new r.BaseException("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+i.FormErrorExamples.formControlName)},t.groupParentException=function(){throw new r.BaseException("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+i.FormErrorExamples.formGroupName)},t.arrayParentException=function(){throw new r.BaseException("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+i.FormErrorExamples.formArrayName)},t}();e.ReactiveErrors=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(19),o=n(34);e.REQUIRED=o.Validators.required,e.REQUIRED_VALIDATOR={provide:o.NG_VALIDATORS,useValue:e.REQUIRED,multi:!0};var s=function(){function t(){}return t.decorators=[{type:r.Directive,args:[{selector:"[required][formControlName],[required][formControl],[required][ngModel]",providers:[e.REQUIRED_VALIDATOR]}]}],t}();e.RequiredValidator=s,e.MIN_LENGTH_VALIDATOR={provide:o.NG_VALIDATORS,useExisting:r.forwardRef(function(){return a}),multi:!0};var a=function(){function t(t){this._validator=o.Validators.minLength(i.NumberWrapper.parseInt(t,10))}return t.prototype.validate=function(t){return this._validator(t)},t.decorators=[{type:r.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[e.MIN_LENGTH_VALIDATOR]}]}],t.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["minlength"]}]}],t}();e.MinLengthValidator=a,e.MAX_LENGTH_VALIDATOR={provide:o.NG_VALIDATORS,useExisting:r.forwardRef(function(){return u}),multi:!0};var u=function(){function t(t){this._validator=o.Validators.maxLength(i.NumberWrapper.parseInt(t,10))}return t.prototype.validate=function(t){return this._validator(t)},t.decorators=[{type:r.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[e.MAX_LENGTH_VALIDATOR]}]}],t.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["maxlength"]}]}],t}();e.MaxLengthValidator=u,e.PATTERN_VALIDATOR={provide:o.NG_VALIDATORS,useExisting:r.forwardRef(function(){return c}),multi:!0};var c=function(){function t(t){this._validator=o.Validators.pattern(t)}return t.prototype.validate=function(t){return this._validator(t)},t.decorators=[{type:r.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[e.PATTERN_VALIDATOR]}]}],t.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["pattern"]}]}],t}();e.PatternValidator=c},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:r.Injectable}],t.ctorParameters=[],t}();e.BrowserXhr=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(24),s=n(47),a=n(81),u=n(130),c=n(131),p=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,i=e.body,s=e.url,a=e.search,p=e.withCredentials,l=e.responseType;this.method=o.isPresent(n)?u.normalizeMethodName(n):null,this.headers=o.isPresent(r)?r:null,this.body=o.isPresent(i)?i:null,this.url=o.isPresent(s)?s:null,this.search=o.isPresent(a)?o.isString(a)?new c.URLSearchParams(a):a:null,this.withCredentials=o.isPresent(p)?p:null,this.responseType=o.isPresent(l)?l:null}return t.prototype.merge=function(e){return new t({method:o.isPresent(e)&&o.isPresent(e.method)?e.method:this.method,headers:o.isPresent(e)&&o.isPresent(e.headers)?e.headers:this.headers,body:o.isPresent(e)&&o.isPresent(e.body)?e.body:this.body,url:o.isPresent(e)&&o.isPresent(e.url)?e.url:this.url,search:o.isPresent(e)&&o.isPresent(e.search)?o.isString(e.search)?new c.URLSearchParams(e.search):e.search.clone():this.search,withCredentials:o.isPresent(e)&&o.isPresent(e.withCredentials)?e.withCredentials:this.withCredentials,responseType:o.isPresent(e)&&o.isPresent(e.responseType)?e.responseType:this.responseType})},t}();e.RequestOptions=p;var l=function(t){function e(){t.call(this,{method:s.RequestMethod.Get,headers:new a.Headers})}return r(e,t),e.decorators=[{type:i.Injectable}],e.ctorParameters=[],e}(p);e.BaseRequestOptions=l},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){if(a.isPresent(t))for(var n=0;n-1?(t.splice(n,1),!0):!1},t.clear=function(t){t.length=0},t.isEmpty=function(t){return 0==t.length},t.fill=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=null),t.fill(e,n,null===r?t.length:r)},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;nr&&(n=o,r=s)}}return n},t.flatten=function(t){var e=[];return r(t,e),e},t.addAll=function(t,e){for(var n=0;n=200&&this.status<=299,this.statusText=e.statusText,this.headers=e.headers,this.type=e.type,this.url=e.url}return r(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(i.Body);e.Response=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(16),s=n(60),a=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this.manager.getZone(),i=function(t){return r.runGuarded(function(){return n(t)})};return this.manager.getZone().runOutsideAngular(function(){return o.getDOM().onAndCancel(t,e,i)})},e.prototype.addGlobalEventListener=function(t,e,n){var r=o.getDOM().getGlobalEventTarget(t),i=this.manager.getZone(),s=function(t){return i.runGuarded(function(){return n(t)})};return this.manager.getZone().runOutsideAngular(function(){return o.getDOM().onAndCancel(r,e,s)})},e.decorators=[{type:i.Injectable}],e}(s.EventManagerPlugin);e.DomEventsPlugin=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(48),s=n(11),a=n(444);e.HAMMER_GESTURE_CONFIG=new i.OpaqueToken("HammerGestureConfig");var u=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:i.Injectable}],t}();e.HammerGestureConfig=u;var c=function(t){function n(e){t.call(this),this._config=e}return r(n,t),n.prototype.supports=function(e){if(!t.prototype.supports.call(this,e)&&!this.isCustomEvent(e))return!1;if(!s.isPresent(window.Hammer))throw new o.BaseException("Hammer.js is not loaded, can not bind "+e+" event");return!0},n.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){o.off(e,s)}})},n.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},n.decorators=[{type:i.Injectable}],n.ctorParameters=[{type:u,decorators:[{type:i.Inject,args:[e.HAMMER_GESTURE_CONFIG]}]}],n}(a.HammerGesturesPluginCommon);e.HammerGesturesPlugin=c},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t=String(t),t.match(a)||t.match(u)?t:(o.isDevMode()&&s.getDOM().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function i(t){return t=String(t),t.split(",").map(function(t){return r(t.trim())}).join(", ")}var o=n(2),s=n(16),a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,u=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;e.sanitizeUrl=r,e.sanitizeSrcset=i},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(t,e,n,r,i,o,s,a,u){this.href=t,this.protocol=e,this.host=n,this.hostname=r,this.port=i,this.pathname=o,this.search=s,this.hash=a,this.origin=u}return t}();e.LocationType=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e,n,r,i,o,s,a,u){if(void 0===u&&(u={}),0==t.componentTypes.length)throw new Error("Bootstrap at least one component before injecting Router.");var c=t.componentTypes[0],p=new f.Router(c,e,n,r,i,o,s,a);return u.enableTracing&&p.events.subscribe(function(t){console.group("Router Event: "+t.constructor.name),console.log(t.toString()),console.log(t),console.groupEnd()}),p}function i(t){return t.routerState.root}function o(t){return function(){t.initialNavigation()}}function s(t,n){return void 0===n&&(n={}),[{provide:l.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:h.ROUTES,useExisting:h.ROUTER_CONFIG},{provide:h.ROUTER_CONFIG,useValue:t},{provide:e.ROUTER_CONFIGURATION,useValue:n},p.Location,{provide:p.LocationStrategy,useClass:p.PathLocationStrategy},{provide:y.UrlSerializer,useClass:y.DefaultUrlSerializer},{provide:f.Router,useFactory:r,deps:[l.ApplicationRef,l.ComponentResolver,y.UrlSerializer,d.RouterOutletMap,p.Location,l.Injector,l.NgModuleFactoryLoader,h.ROUTES,e.ROUTER_CONFIGURATION]},d.RouterOutletMap,{provide:v.ActivatedRoute,useFactory:i,deps:[f.Router]},a(),{provide:l.NgModuleFactoryLoader,useClass:l.SystemJsNgModuleLoader}]}function a(){return{provide:l.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:o,deps:[f.Router]}}function u(t){return[{provide:l.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:h.ROUTES,useValue:t}]}function c(t){return{provide:e.ROUTER_CONFIGURATION,useValue:t}}var p=n(36),l=n(2),f=n(89),h=n(139),d=n(90),v=n(62),y=n(49);e.ROUTER_CONFIGURATION=new l.OpaqueToken("ROUTER_CONFIGURATION"),e.setupRouter=r,e.rootRoute=i,e.initialRouterNavigation=o,e.provideRouter=s,e.provideRouterInitializer=a,e.provideRoutes=u,e.provideRouterConfig=c},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return""===t?!0:!!t}var i=n(36),o=n(2),s=n(89),a=n(62),u=function(){function t(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[]}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){Array.isArray(t)?this.commands=t:this.commands=[t]},enumerable:!0,configurable:!0}),t.prototype.onClick=function(t,e,n){return 0!==t||e||n?!0:(this.router.navigateByUrl(this.urlTree),!1)},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:r(this.preserveQueryParams),preserveFragment:r(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:o.Directive,args:[{selector:":not(a)[routerLink]"}]}],t.ctorParameters=[{type:s.Router},{type:a.ActivatedRoute},{type:i.LocationStrategy}],t.propDecorators={queryParams:[{type:o.Input}],fragment:[{type:o.Input}],preserveQueryParams:[{type:o.Input}],preserveFragment:[{type:o.Input}],routerLink:[{type:o.Input}],onClick:[{type:o.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},t}();e.RouterLink=u;var c=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof s.NavigationEnd&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){Array.isArray(t)?this.commands=t:this.commands=[t]},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){return 0!==t||e||n?!0:"string"==typeof this.target&&"_self"!=this.target?!0:(this.router.navigateByUrl(this.urlTree),!1)},t.prototype.updateTargetUrlAndHref=function(){this.urlTree=this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:r(this.preserveQueryParams),preserveFragment:r(this.preserveFragment)}),this.urlTree&&(this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)))},t.decorators=[{type:o.Directive,args:[{selector:"a[routerLink]"}]}],t.ctorParameters=[{type:s.Router},{type:a.ActivatedRoute},{type:i.LocationStrategy}],t.propDecorators={target:[{type:o.Input}],queryParams:[{type:o.Input}],fragment:[{type:o.Input}],routerLinkOptions:[{type:o.Input}],preserveQueryParams:[{type:o.Input}],preserveFragment:[{type:o.Input}],href:[{type:o.HostBinding}],routerLink:[{type:o.Input}],onClick:[{type:o.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},t}();e.RouterLinkWithHref=c},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(t,e){if(t===e.value)return e;for(var r=0,i=e.children;r1?e[e.length-2]:null},t.prototype.children=function(t){var e=n(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=n(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=r(t,this._root,[]);if(e.length<2)return[];var n=e[e.length-2].children.map(function(t){return t.value});return n.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return r(t,this._root,[]).map(function(t){return t.value})},t.prototype.contains=function(t){return i(this._root,t._root)},t}();e.Tree=o;var s=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();e.TreeNode=s},function(t,e,n){"use strict";var r=n(1),i=n(610);r.Observable.prototype.concatAll=i.concatAll},function(t,e,n){"use strict";var r=n(1),i=n(345);r.Observable.prototype.map=i.map},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(1),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;return e?void r.complete():(r.next(n),void(r.isUnsubscribed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;return r?r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t}):(t.next(n),void(t.isUnsubscribed||t.complete()))},e}(i.Observable);e.ScalarObservable=o},function(t,e,n){"use strict";var r=n(579);e.from=r.FromObservable.create},function(t,e,n){"use strict";function r(){for(var t=[],e=0;en;n++){var r=t[n];this.add(p.subscribeToResult(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;o[n]=e;var s=this.toRespond;if(s.length>0){var a=s.indexOf(n);-1!==a&&s.splice(a,1)}0===s.length&&(this.project?this._tryProject(o):this.destination.next(o))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(c.OuterSubscriber);e.CombineLatestSubscriber=f},function(t,e,n){"use strict";function r(){for(var t=[],e=0;en;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}},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;e>r;r++){var i=t[r];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],r=0;e>r;r++){var i=t[r],a=i.next();if(i.hasCompleted()&&(o=!0),a.done)return void n.complete();s.push(a.value)}this.project?this._tryProject(s):n.next(s),o&&n.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(u.Subscriber);e.ZipSubscriber=h;var d=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}(),v=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),y=function(t){function e(e,n,r,i){t.call(this,e),this.parent=n,this.observable=r,this.index=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return o(e,t),e.prototype[l.$$iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{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 p.subscribeToResult(this,this.observable,this,e)},e}(c.OuterSubscriber)},function(t,e,n){"use strict";var r=n(673),i=n(145),o=function(){function t(){this.active=!1,this.actions=[],this.scheduledId=null}return t.prototype.now=function(){return Date.now()},t.prototype.flush=function(){if(!this.active&&!this.scheduledId){this.active=!0;for(var t=this.actions,e=null;e=t.shift();)if(e.execute(),e.error)throw this.active=!1,e.error;this.active=!1}},t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),0>=e?this.scheduleNow(t,n):this.scheduleLater(t,e,n)},t.prototype.scheduleNow=function(t,e){return new r.QueueAction(this,t).schedule(e)},t.prototype.scheduleLater=function(t,e,n){return new i.FutureAction(this,t).schedule(n,e)},t}();e.QueueScheduler=o},function(t,e){"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){t.call(this,"argument out of range"),this.name="ArgumentOutOfRangeError"}return n(e,t),e}(Error);e.ArgumentOutOfRangeError=r},function(t,e){"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(){t.call(this,"object unsubscribed"),this.name="ObjectUnsubscribedError"}return n(e,t),e}(Error);e.ObjectUnsubscribedError=r},function(t,e,n){"use strict";function r(t){return!i.isArray(t)&&t-parseFloat(t)+1>=0}var i=n(52);e.isNumeric=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(227);e.COMMON_DIRECTIVES=[r.CORE_DIRECTIVES]},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(358);e.CORE_DIRECTIVES=r.CORE_DIRECTIVES;var i=n(228);e.NgClass=i.NgClass;var o=n(229);e.NgFor=o.NgFor;var s=n(230);e.NgIf=s.NgIf;var a=n(231);e.NgPlural=a.NgPlural,e.NgPluralCase=a.NgPluralCase;var u=n(232);e.NgStyle=u.NgStyle;var c=n(151);e.NgSwitch=c.NgSwitch,e.NgSwitchCase=c.NgSwitchCase,e.NgSwitchDefault=c.NgSwitchDefault;var p=n(233);e.NgTemplateOutlet=p.NgTemplateOutlet},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(22),o=n(6),s=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"initialClasses",{set:function(t){this._applyInitialClasses(!0),this._initialClasses=o.isPresent(t)&&o.isString(t)?t.split(" "):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),o.isString(t)&&(t=t.split(" ")),this._rawClass=t,this._iterableDiffer=null,this._keyValueDiffer=null,o.isPresent(t)&&(i.isListLikeIterable(t)?this._iterableDiffer=this._iterableDiffers.find(t).create(null):this._keyValueDiffer=this._keyValueDiffers.find(t).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(o.isPresent(this._iterableDiffer)){var t=this._iterableDiffer.diff(this._rawClass);o.isPresent(t)&&this._applyIterableChanges(t)}if(o.isPresent(this._keyValueDiffer)){var t=this._keyValueDiffer.diff(this._rawClass);o.isPresent(t)&&this._applyKeyValueChanges(t)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;o.isPresent(t)&&(o.isArray(t)?t.forEach(function(t){return n._toggleClass(t,!e)}):t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):i.StringMapWrapper.forEach(t,function(t,r){o.isPresent(t)&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){if(t=t.trim(),t.length>0)if(t.indexOf(" ")>-1)for(var n=t.split(/\s+/g),r=0,i=n.length;i>r;r++)this._renderer.setElementClass(this._ngEl.nativeElement,n[r],e);else this._renderer.setElementClass(this._ngEl.nativeElement,t,e)},t.decorators=[{type:r.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=[{type:r.IterableDiffers},{type:r.KeyValueDiffers},{type:r.ElementRef},{type:r.Renderer}],t.propDecorators={initialClasses:[{type:r.Input,args:["class"]}],ngClass:[{type:r.Input}]},t}();e.NgClass=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(53),o=n(6),s=function(){function t(t,e,n){this.$implicit=t,this.index=e,this.count=n}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}();e.NgForRow=s;var a=function(){function t(t,e,n,r){this._viewContainer=t,this._templateRef=e,this._iterableDiffers=n,this._cdr=r}return Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){o.isPresent(t)&&(this._templateRef=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(o.isBlank(this._differ)&&o.isPresent(e))try{this._differ=this._iterableDiffers.find(e).create(this._cdr,this.ngForTrackBy)}catch(n){throw new i.BaseException("Cannot find a differ supporting object '"+e+"' of type '"+o.getTypeNameForDebugging(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(o.isPresent(this._differ)){var t=this._differ.diff(this.ngForOf);o.isPresent(t)&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._templateRef,new s(null,null,null),i),a=new u(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var a=new u(t,o);n.push(a)}});for(var r=0;rr;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){var n=e._viewContainer.get(t.currentIndex);n.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.decorators=[{type:r.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=[{type:r.ViewContainerRef},{type:r.TemplateRef},{type:r.IterableDiffers},{type:r.ChangeDetectorRef}],t.propDecorators={ngForOf:[{type:r.Input}],ngForTrackBy:[{type:r.Input}],ngForTemplate:[{type:r.Input}]},t}();e.NgFor=a;var u=function(){function t(t,e){this.record=t,this.view=e}return t}()},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=function(){function t(t,e){this._viewContainer=t,this._templateRef=e,this._prevCondition=null}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){!t||!i.isBlank(this._prevCondition)&&this._prevCondition?t||!i.isBlank(this._prevCondition)&&!this._prevCondition||(this._prevCondition=!1,this._viewContainer.clear()):(this._prevCondition=!0,this._viewContainer.createEmbeddedView(this._templateRef))},enumerable:!0,configurable:!0}),t.decorators=[{type:r.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=[{type:r.ViewContainerRef},{type:r.TemplateRef}],t.propDecorators={ngIf:[{type:r.Input}]},t}();e.NgIf=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=n(163),s=n(151),a=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=o.getPluralCategory(this._switchValue,Object.getOwnPropertyNames(this._caseViews),this._localization);this._activateView(this._caseViews[t])},t.prototype._clearViews=function(){i.isPresent(this._activeView)&&this._activeView.destroy()},t.prototype._activateView=function(t){i.isPresent(t)&&(this._activeView=t,this._activeView.create())},t.decorators=[{type:r.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=[{type:o.NgLocalization}],t.propDecorators={ngPlural:[{type:r.Input}]},t}();e.NgPlural=a;var u=function(){function t(t,e,n,r){this.value=t,r.addCase(t,new s.SwitchView(n,e))}return t.decorators=[{type:r.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["ngPluralCase"]}]},{type:r.TemplateRef},{type:r.ViewContainerRef},{type:a,decorators:[{type:r.Host}]}],t}();e.NgPluralCase=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,i.isBlank(this._differ)&&i.isPresent(t)&&(this._differ=this._differs.find(this._ngStyle).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(i.isPresent(this._differ)){var t=this._differ.diff(this._ngStyle);i.isPresent(t)&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachAddedItem(function(t){e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){e._setStyle(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){e._setStyle(t.key,null)})},t.prototype._setStyle=function(t,e){this._renderer.setElementStyle(this._ngEl.nativeElement,t,e)},t.decorators=[{type:r.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=[{type:r.KeyValueDiffers},{type:r.ElementRef},{type:r.Renderer}],t.propDecorators={ngStyle:[{type:r.Input}]},t}();e.NgStyle=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this._context!==t&&(this._context=t,i.isPresent(this._viewRef)&&this.createView())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngTemplateOutlet",{set:function(t){this._templateRef!==t&&(this._templateRef=t,this.createView())},enumerable:!0,configurable:!0}),t.prototype.createView=function(){i.isPresent(this._viewRef)&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),i.isPresent(this._templateRef)&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},t.decorators=[{type:r.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=[{type:r.ViewContainerRef}],t.propDecorators={ngOutletContext:[{type:r.Input}],ngTemplateOutlet:[{type:r.Input}]},t}();e.NgTemplateOutlet=o},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this,e)}return n(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),e}(Error);e.BaseWrappedException=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(234),i=n(22),o=n(6),s=function(){function t(){this.res=[]}return t.prototype.log=function(t){this.res.push(t)},t.prototype.logError=function(t){this.res.push(t)},t.prototype.logGroup=function(t){this.res.push(t)},t.prototype.logGroupEnd=function(){},t}(),a=function(){function t(t,e){void 0===e&&(e=!0),this._logger=t,this._rethrowException=e}return t.exceptionToString=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=new s,o=new t(i,!1);return o.call(e,n,r),i.res.join("\n")},t.prototype.call=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=this._findOriginalException(t),i=this._findOriginalStack(t),s=this._findContext(t);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(t)),o.isPresent(e)&&o.isBlank(i)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(e))),o.isPresent(n)&&this._logger.logError("REASON: "+n),o.isPresent(r)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(r)),o.isPresent(i)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(i))),o.isPresent(s)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(s)),this._logger.logGroupEnd(),this._rethrowException)throw t},t.prototype._extractMessage=function(t){return t instanceof r.BaseWrappedException?t.wrapperMessage:t.toString()},t.prototype._longStackTrace=function(t){return i.isListLikeIterable(t)?t.join("\n\n-----async gap-----\n"):t.toString()},t.prototype._findContext=function(t){try{return t instanceof r.BaseWrappedException?o.isPresent(t.context)?t.context:this._findContext(t.originalException):null}catch(e){return null}},t.prototype._findOriginalException=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t.originalException;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t,n=t.originalStack;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException,e instanceof r.BaseWrappedException&&o.isPresent(e.originalException)&&(n=e.originalStack);return n},t}();e.ExceptionHandler=a},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function n(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function r(t){return function(e,n){var r=t(e,n);return r.split(" ")[1]}}function i(t){return function(e,n){var r=t(e,n);return r.split(" ")[0]}}function o(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=new Intl.DateTimeFormat(n,e).format(t);return r?r.substring(3):""}}function s(t,e){return t.hour12=e,t}function a(t,e){var n={};return n[t]=2==e?"2-digit":"numeric",n}function u(t,e){var n={};return n[t]=4>e?"short":"long",n}function c(t){var e={};return t.forEach(function(t){Object.assign(e,t)}),e}function p(t){return function(e,n){return new Intl.DateTimeFormat(n,t).format(e)}}function l(t,e,n){var r,i,o="",s=[];if(y[t])return y[t](e,n);if(g.has(t))s=g.get(t);else{for(v.exec(t);t;)r=v.exec(t),r?(s=f(s,r,1),t=s.pop()):(s.push(t),t=null);g.set(t,s)}return s.forEach(function(t){i=m[t],o+=i?i(e,n):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o}function f(t,e,n){return t.concat(_.call(e,n))}!function(t){t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency"}(e.NumberFormatStyle||(e.NumberFormatStyle={}));var h=e.NumberFormatStyle,d=function(){function t(){}return t.format=function(t,e,n,r){var i=void 0===r?{}:r,o=i.minimumIntegerDigits,s=i.minimumFractionDigits,a=i.maximumFractionDigits,u=i.currency,c=i.currencyAsSymbol,p=void 0===c?!1:c,l={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:h[n].toLowerCase()};return n==h.Currency&&(l.currency=u,l.currencyDisplay=p?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}();e.NumberFormatter=d;var v=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,y={yMMMdjms:p(c([a("year",1),u("month",3),a("day",1),a("hour",1),a("minute",1),a("second",1)])),yMdjm:p(c([a("year",1),a("month",1),a("day",1),a("hour",1),a("minute",1)])),yMMMMEEEEd:p(c([a("year",1),u("month",4),u("weekday",4),a("day",1)])),yMMMMd:p(c([a("year",1),u("month",4),a("day",1)])),yMMMd:p(c([a("year",1),u("month",3),a("day",1)])),yMd:p(c([a("year",1),a("month",1),a("day",1)])),jms:p(c([a("hour",1),a("second",1),a("minute",1)])),jm:p(c([a("hour",1),a("minute",1)]))},m={yyyy:p(a("year",4)),yy:p(a("year",2)),y:p(a("year",1)),MMMM:p(u("month",4)),MMM:p(u("month",3)),MM:p(a("month",2)),M:p(a("month",1)),LLLL:p(u("month",4)),dd:p(a("day",2)),d:p(a("day",1)),HH:n(i(p(s(a("hour",2),!1)))),H:i(p(s(a("hour",1),!1))),hh:n(i(p(s(a("hour",2),!0)))),h:i(p(s(a("hour",1),!0))),jj:p(a("hour",2)),j:p(a("hour",1)),mm:n(p(a("minute",2))),m:p(a("minute",1)),ss:n(p(a("second",2))),s:p(a("second",1)),sss:p(a("second",3)),EEEE:p(u("weekday",4)),EEE:p(u("weekday",3)),EE:p(u("weekday",2)),E:p(u("weekday",1)),a:r(p(s(a("hour",1),!0))),Z:o("short"),z:o("long"),ww:p({}),w:p({}),G:p(u("era",1)),GG:p(u("era",2)),GGG:p(u("era",3)),GGGG:p(u("era",4))},g=new Map,_=[].slice,b=function(){function t(){}return t.format=function(t,e,n){return l(n,t,e)},t}();e.DateFormatter=b},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t}();e.PromiseCompleter=n;var r=function(){function t(){}return t.resolve=function(t){return Promise.resolve(t)},t.reject=function(t,e){return Promise.reject(t)},t.catchError=function(t,e){return t["catch"](e)},t.all=function(t){return 0==t.length?Promise.resolve([]):Promise.all(t)},t.then=function(t,e,n){return t.then(e,n)},t.wrap=function(t){return new Promise(function(e,n){try{e(t())}catch(r){n(r)}})},t.scheduleMicrotask=function(e){t.then(t.resolve(null),e,function(t){})},t.completer=function(){return new n},t}();e.PromiseWrapper=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(94),i=n(95),o=n(153),s=n(154),a=n(155),u=n(156),c=n(157),p=n(158),l=n(159),f=n(160),h=n(96),d=n(97),v=n(161),y=n(162),m=n(94);e.CheckboxControlValueAccessor=m.CheckboxControlValueAccessor;var g=n(95);e.DefaultValueAccessor=g.DefaultValueAccessor;var _=n(54);e.NgControl=_.NgControl;var b=n(153);e.NgControlGroup=b.NgControlGroup;var w=n(154);e.NgControlName=w.NgControlName;var E=n(155);e.NgControlStatus=E.NgControlStatus;var S=n(156);e.NgForm=S.NgForm;var C=n(157);e.NgFormControl=C.NgFormControl;var P=n(158);e.NgFormModel=P.NgFormModel;var O=n(159);e.NgModel=O.NgModel;var A=n(160);e.NumberValueAccessor=A.NumberValueAccessor;var T=n(96);e.RadioButtonState=T.RadioButtonState,e.RadioControlValueAccessor=T.RadioControlValueAccessor;var x=n(97);e.NgSelectOption=x.NgSelectOption,e.SelectControlValueAccessor=x.SelectControlValueAccessor;var R=n(161);e.NgSelectMultipleOption=R.NgSelectMultipleOption,e.SelectMultipleControlValueAccessor=R.SelectMultipleControlValueAccessor;var I=n(162);e.MaxLengthValidator=I.MaxLengthValidator,e.MinLengthValidator=I.MinLengthValidator,e.PatternValidator=I.PatternValidator,e.RequiredValidator=I.RequiredValidator,e.FORM_DIRECTIVES=[s.NgControlName,o.NgControlGroup,c.NgFormControl,l.NgModel,p.NgFormModel,u.NgForm,d.NgSelectOption,v.NgSelectMultipleOption,i.DefaultValueAccessor,f.NumberValueAccessor,r.CheckboxControlValueAccessor,d.SelectControlValueAccessor,v.SelectMultipleControlValueAccessor,h.RadioControlValueAccessor,a.NgControlStatus,y.RequiredValidator,y.MinLengthValidator,y.MaxLengthValidator,y.PatternValidator]},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(22),o=n(6),s=n(98),a=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=o.isPresent(e)?i.StringMapWrapper.get(e,"optionals"):null,a=o.isPresent(e)?i.StringMapWrapper.get(e,"validator"):null,u=o.isPresent(e)?i.StringMapWrapper.get(e,"asyncValidator"):null;return new s.ControlGroup(n,r,a,u)},t.prototype.control=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),new s.Control(t,e,n)},t.prototype.array=function(t,e,n){var r=this;void 0===e&&(e=null),void 0===n&&(n=null);var i=t.map(function(t){return r._createControl(t)});return new s.ControlArray(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return i.StringMapWrapper.forEach(t,function(t,r){n[r]=e._createControl(t)}),n},t.prototype._createControl=function(t){if(t instanceof s.Control||t instanceof s.ControlGroup||t instanceof s.ControlArray)return t;if(o.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t.decorators=[{type:r.Injectable}],t}();e.FormBuilder=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(241);e.AsyncPipe=r.AsyncPipe;var i=n(364);e.COMMON_PIPES=i.COMMON_PIPES;var o=n(242);e.DatePipe=o.DatePipe;var s=n(243);e.I18nPluralPipe=s.I18nPluralPipe;var a=n(244);e.I18nSelectPipe=a.I18nSelectPipe;var u=n(245);e.JsonPipe=u.JsonPipe;var c=n(246);e.LowerCasePipe=c.LowerCasePipe;var p=n(247);e.CurrencyPipe=p.CurrencyPipe,e.DecimalPipe=p.DecimalPipe,e.PercentPipe=p.PercentPipe;var l=n(248);e.ReplacePipe=l.ReplacePipe;var f=n(249);e.SlicePipe=f.SlicePipe;var h=n(250);e.UpperCasePipe=h.UpperCasePipe},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(37),o=n(6),s=n(39),a=function(){function t(){}return t.prototype.createSubscription=function(t,e){return i.ObservableWrapper.subscribe(t,e,function(t){throw t})},t.prototype.dispose=function(t){i.ObservableWrapper.dispose(t)},t.prototype.onDestroy=function(t){i.ObservableWrapper.dispose(t)},t}(),u=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}(),c=new u,p=new a,l=function(){function t(t){this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}return t.prototype.ngOnDestroy=function(){o.isPresent(this._subscription)&&this._dispose()},t.prototype.transform=function(t){return o.isBlank(this._obj)?(o.isPresent(t)&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue):t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.WrappedValue.wrap(this._latestValue))},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(o.isPromise(e))return c;if(i.ObservableWrapper.isObservable(e))return p;throw new s.InvalidPipeArgumentException(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t.decorators=[{type:r.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=[{type:r.ChangeDetectorRef}],t}();e.AsyncPipe=l},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(22),o=n(236),s=n(6),a=n(39),u="en-US",c=function(){function t(){}return t.prototype.transform=function(e,n){if(void 0===n&&(n="mediumDate"),s.isBlank(e))return null;if(!this.supports(e))throw new a.InvalidPipeArgumentException(t,e);return s.NumberWrapper.isNumeric(e)?e=s.DateWrapper.fromMillis(s.NumberWrapper.parseInt(e,10)):s.isString(e)&&(e=s.DateWrapper.fromISOString(e)),i.StringMapWrapper.contains(t._ALIASES,n)&&(n=i.StringMapWrapper.get(t._ALIASES,n)),o.DateFormatter.format(e,u,n)},t.prototype.supports=function(t){return s.isDate(t)||s.NumberWrapper.isNumeric(t)?!0:s.isString(t)&&s.isDate(s.DateWrapper.fromISOString(t))?!0:!1},t._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:r.Pipe,args:[{name:"date",pure:!0}]}],t}();e.DatePipe=c},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=n(163),s=n(39),a=/#/g,u=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(i.isBlank(e))return"";if(!i.isStringMap(n))throw new s.InvalidPipeArgumentException(t,n);var r=o.getPluralCategory(e,Object.getOwnPropertyNames(n),this._localization);return i.StringWrapper.replaceAll(n[r],a,e.toString())},t.decorators=[{type:r.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=[{type:o.NgLocalization}],t}();e.I18nPluralPipe=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=n(39),s=function(){function t(){}return t.prototype.transform=function(e,n){if(i.isBlank(e))return"";if(!i.isStringMap(n))throw new o.InvalidPipeArgumentException(t,n);return n.hasOwnProperty(e)?n[e]:""},t.decorators=[{type:r.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t}();e.I18nSelectPipe=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=function(){function t(){}return t.prototype.transform=function(t){return i.Json.stringify(t)},t.decorators=[{type:r.Pipe,args:[{name:"json",pure:!1}]}],t}();e.JsonPipe=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=n(39),s=function(){function t(){}return t.prototype.transform=function(e){if(i.isBlank(e))return e;if(!i.isString(e))throw new o.InvalidPipeArgumentException(t,e);return e.toLowerCase()},t.decorators=[{type:r.Pipe,args:[{name:"lowercase"}]}],t}();e.LowerCasePipe=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e,n,r,i,p){if(void 0===i&&(i=null),void 0===p&&(p=!1),s.isBlank(e))return null;if(e=s.isString(e)&&s.NumberWrapper.isNumeric(e)?+e:e,!s.isNumber(e))throw new a.InvalidPipeArgumentException(t,e);var l,f,h;if(n!==o.NumberFormatStyle.Currency&&(l=1,f=0,h=3),s.isPresent(r)){var d=s.RegExpWrapper.firstMatch(c,r);if(!d)throw new Error(r+" is not a valid digit info for number pipes");s.isPresent(d[1])&&(l=s.NumberWrapper.parseIntAutoRadix(d[1])),s.isPresent(d[3])&&(f=s.NumberWrapper.parseIntAutoRadix(d[3])),s.isPresent(d[5])&&(h=s.NumberWrapper.parseIntAutoRadix(d[5]))}return o.NumberFormatter.format(e,u,n,{minimumIntegerDigits:l,minimumFractionDigits:f,maximumFractionDigits:h,currency:i,currencyAsSymbol:p})}var i=n(2),o=n(236),s=n(6),a=n(39),u="en-US",c=/^(\d+)?\.((\d+)(\-(\d+))?)?$/g,p=function(){function t(){}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),r(t,e,o.NumberFormatStyle.Decimal,n)},t.decorators=[{type:i.Pipe,args:[{name:"number"}]}],t}();e.DecimalPipe=p;var l=function(){function t(){}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),r(t,e,o.NumberFormatStyle.Percent,n)},t.decorators=[{type:i.Pipe,args:[{name:"percent"}]}],t}();e.PercentPipe=l;var f=function(){function t(){}return t.prototype.transform=function(e,n,i,s){return void 0===n&&(n="USD"),void 0===i&&(i=!1),void 0===s&&(s=null),r(t,e,o.NumberFormatStyle.Currency,s,n,i)},t.decorators=[{type:i.Pipe,args:[{name:"currency"}]}],t}();e.CurrencyPipe=f},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=n(39),s=function(){function t(){}return t.prototype.transform=function(e,n,r){if(i.isBlank(e))return e;if(!this._supportedInput(e))throw new o.InvalidPipeArgumentException(t,e);var s=e.toString();if(!this._supportedPattern(n))throw new o.InvalidPipeArgumentException(t,n);if(!this._supportedReplacement(r))throw new o.InvalidPipeArgumentException(t,r);if(i.isFunction(r)){var a=i.isString(n)?i.RegExpWrapper.create(n):n;return i.StringWrapper.replaceAllMapped(s,a,r)}return n instanceof RegExp?i.StringWrapper.replaceAll(s,n,r):i.StringWrapper.replace(s,n,r)},t.prototype._supportedInput=function(t){return i.isString(t)||i.isNumber(t)},t.prototype._supportedPattern=function(t){return i.isString(t)||t instanceof RegExp},t.prototype._supportedReplacement=function(t){return i.isString(t)||i.isFunction(t)},t.decorators=[{type:r.Pipe,args:[{name:"replace"}]}],t}();e.ReplacePipe=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(22),o=n(6),s=n(39),a=function(){function t(){}return t.prototype.transform=function(e,n,r){if(void 0===r&&(r=null),o.isBlank(e))return e;if(!this.supports(e))throw new s.InvalidPipeArgumentException(t,e);return o.isString(e)?o.StringWrapper.slice(e,n,r):i.ListWrapper.slice(e,n,r)},t.prototype.supports=function(t){return o.isString(t)||o.isArray(t)},t.decorators=[{type:r.Pipe,args:[{name:"slice",pure:!1}]}],t}();e.SlicePipe=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(6),o=n(39),s=function(){function t(){}return t.prototype.transform=function(e){if(i.isBlank(e))return e;if(!i.isString(e))throw new o.InvalidPipeArgumentException(t,e);return e.toUpperCase()},t.decorators=[{type:r.Pipe,args:[{name:"uppercase"}]}],t}();e.UpperCasePipe=s},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(){function t(){this.startTime=0,this.playTime=0}return t}();e.AnimationAst=r;var i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e}(r);e.AnimationStateAst=i;var o=function(t){function e(e,n,r){t.call(this),this.name=e,this.stateDeclarations=n,this.stateTransitions=r}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationEntry(this,e)},e}(r);e.AnimationEntryAst=o;var s=function(t){function e(e,n){t.call(this),this.stateName=e,this.styles=n}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateDeclaration(this,e)},e}(i);e.AnimationStateDeclarationAst=s;var a=function(){function t(t,e){this.fromState=t,this.toState=e}return t}();e.AnimationStateTransitionExpression=a;var u=function(t){function e(e,n){t.call(this),this.stateChanges=e,this.animation=n}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateTransition(this,e)},e}(i);e.AnimationStateTransitionAst=u;var c=function(t){function e(e,n,r,i,o){t.call(this),this.startingStyles=e,this.keyframes=n,this.duration=r,this.delay=i,this.easing=o}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStep(this,e)},e}(r);e.AnimationStepAst=c;var p=function(t){function e(e){t.call(this),this.styles=e}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStyles(this,e)},e}(r);e.AnimationStylesAst=p;var l=function(t){function e(e,n){t.call(this),this.offset=e,this.styles=n}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationKeyframe(this,e)},e}(r);e.AnimationKeyframeAst=l;var f=function(t){function e(e){t.call(this),this.steps=e}return n(e,t),e}(r);e.AnimationWithStepsAst=f;var h=function(t){function e(e){t.call(this,e)}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationGroup(this,e)},e}(f);e.AnimationGroupAst=h;var d=function(t){function e(e){t.call(this,e)}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimationSequence(this,e)},e}(f);e.AnimationSequenceAst=d},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){var n=f.literal(a.EMPTY_STATE);switch(e){case a.EMPTY_STATE:return t.equals(n);case a.ANY_STATE:return f.literal(!0);default:return t.equals(f.literal(e))}}function i(t){if(t instanceof d.AnimationStepAst&&t.duration>0&&2==t.keyframes.length){var e=o(t.keyframes[0])[0],n=o(t.keyframes[1])[0];return u.StringMapWrapper.isEmpty(e)&&u.StringMapWrapper.isEmpty(n)}return!1}function o(t){return t.styles.styles}function s(t,e){var n=new M(t);return h.templateVisitAll(n,e),n.errors}var a=n(17),u=n(7),c=n(14),p=n(4),l=n(18),f=n(13),h=n(41),d=n(251),v=n(366),y=function(){function t(t,e,n,r,i){this.name=t,this.statesMapStatement=e,this.statesVariableName=n,this.fnStatement=r,this.fnVariable=i}return t}();e.CompiledAnimation=y;var m=function(){function t(){}return t.prototype.compileComponent=function(t,e){var n=[],r=[],i={},o=t.type.name;if(t.template.animations.forEach(function(t){var e=v.parseAnimationEntry(t),s=t.name;if(e.errors.length>0){var a='Unable to parse the animation sequence for "'+s+'" due to the following errors:';e.errors.forEach(function(t){a+="\n-- "+t.msg}),r.push(a)}if(i[s])r.push('The animation trigger "'+s+'" has already been registered on "'+o+'"');else{var u=o+"_"+t.name,c=new x(s,u),p=c.build(e.ast);n.push(p),i[t.name]=p}}),s(n,e).forEach(function(t){r.push(t.msg)}),r.length>0){var a="Animation parsing for "+t.type.name+" has failed due to the following errors:";throw r.forEach(function(t){return a+="\n- "+t}),new c.BaseException(a)}return n},t}();e.AnimationCompiler=m;var g=f.variable("element"),_=f.variable("defaultStateStyles"),b=f.variable("view"),w=b.prop("renderer"),E=f.variable("currentState"),S=f.variable("nextState"),C=f.variable("player"),P=f.variable("startStateStyles"),O=f.variable("endStateStyles"),A=f.variable("collectedStyles"),T=f.literalMap([]),x=function(){function t(t,e){this.animationName=t,this._fnVarName=e+"_factory",this._statesMapVarName=e+"_states",this._statesMapVar=f.variable(this._statesMapVarName)}return t.prototype.visitAnimationStyles=function(t,e){var n=[];return e.isExpectingFirstStyleStep&&(n.push(P),e.isExpectingFirstStyleStep=!1),t.styles.forEach(function(t){n.push(f.literalMap(u.StringMapWrapper.keys(t).map(function(e){return[e,f.literal(t[e])]})))}),f.importExpr(l.Identifiers.AnimationStyles).instantiate([f.importExpr(l.Identifiers.collectAndResolveStyles).callFn([A,f.literalArr(n)])])},t.prototype.visitAnimationKeyframe=function(t,e){return f.importExpr(l.Identifiers.AnimationKeyframe).instantiate([f.literal(t.offset),t.styles.visit(this,e)])},t.prototype.visitAnimationStep=function(t,e){var n=this;if(e.endStateAnimateStep===t)return this._visitEndStateAnimation(t,e);var r=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(n,e)});return this._callAnimateMethod(t,r,f.literalArr(i))},t.prototype._visitEndStateAnimation=function(t,e){var n=this,r=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(n,e)}),o=f.importExpr(l.Identifiers.balanceAnimationKeyframes).callFn([A,O,f.literalArr(i)]);return this._callAnimateMethod(t,r,o)},t.prototype._callAnimateMethod=function(t,e,n){return w.callMethod("animate",[g,e,n,f.literal(t.duration),f.literal(t.delay),f.literal(t.easing)])},t.prototype.visitAnimationSequence=function(t,e){var n=this,r=t.steps.map(function(t){return t.visit(n,e)});return f.importExpr(l.Identifiers.AnimationSequencePlayer).instantiate([f.literalArr(r)])},t.prototype.visitAnimationGroup=function(t,e){var n=this,r=t.steps.map(function(t){return t.visit(n,e)});return f.importExpr(l.Identifiers.AnimationGroupPlayer).instantiate([f.literalArr(r)])},t.prototype.visitAnimationStateDeclaration=function(t,e){var n={};o(t).forEach(function(t){u.StringMapWrapper.forEach(t,function(t,e){n[e]=t})}),e.stateMap.registerState(t.stateName,n)},t.prototype.visitAnimationStateTransition=function(t,e){var n=t.animation.steps,o=n[n.length-1];i(o)&&(e.endStateAnimateStep=o),e.isExpectingFirstStyleStep=!0;var s=[];t.stateChanges.forEach(function(t){s.push(r(E,t.fromState).and(r(S,t.toState))),t.fromState!=a.ANY_STATE&&e.stateMap.registerState(t.fromState),t.toState!=a.ANY_STATE&&e.stateMap.registerState(t.toState)});var u=t.animation.visit(this,e),c=s.reduce(function(t,e){return t.or(e)}),p=C.equals(f.NULL_EXPR).and(c);return new f.IfStmt(p,[C.set(u).toStmt()])},t.prototype.visitAnimationEntry=function(t,e){var n=this;t.stateDeclarations.forEach(function(t){return t.visit(n,e)}),e.stateMap.registerState(a.DEFAULT_STATE,{});var r=[];r.push(b.callMethod("cancelActiveAnimation",[g,f.literal(this.animationName),S.equals(f.literal(a.EMPTY_STATE))]).toStmt()),r.push(A.set(T).toDeclStmt()),r.push(C.set(f.NULL_EXPR).toDeclStmt()),r.push(_.set(this._statesMapVar.key(f.literal(a.DEFAULT_STATE))).toDeclStmt()),r.push(P.set(this._statesMapVar.key(E)).toDeclStmt()),r.push(new f.IfStmt(P.equals(f.NULL_EXPR),[P.set(_).toStmt()])),r.push(O.set(this._statesMapVar.key(S)).toDeclStmt()),r.push(new f.IfStmt(O.equals(f.NULL_EXPR),[O.set(_).toStmt()]));var i=f.importExpr(l.Identifiers.renderStyles);return r.push(i.callFn([g,w,f.importExpr(l.Identifiers.clearStyles).callFn([P])]).toStmt()),t.stateTransitions.forEach(function(t){return r.push(t.visit(n,e))}),r.push(new f.IfStmt(C.equals(f.NULL_EXPR),[C.set(f.importExpr(l.Identifiers.NoOpAnimationPlayer).instantiate([])).toStmt()])),r.push(C.callMethod("onDone",[f.fn([],[i.callFn([g,w,f.importExpr(l.Identifiers.prepareFinalAnimationStyles).callFn([P,O])]).toStmt()])]).toStmt()),r.push(b.callMethod("queueAnimation",[g,f.literal(this.animationName),C]).toStmt()),f.fn([new f.FnParam(b.name,f.importType(l.Identifiers.AppView,[f.DYNAMIC_TYPE])),new f.FnParam(g.name,f.DYNAMIC_TYPE),new f.FnParam(E.name,f.DYNAMIC_TYPE),new f.FnParam(S.name,f.DYNAMIC_TYPE)],r)},t.prototype.build=function(t){var e=new R,n=t.visit(this,e).toDeclStmt(this._fnVarName),r=f.variable(this._fnVarName),i=[];u.StringMapWrapper.forEach(e.stateMap.states,function(t,e){var n=T;if(p.isPresent(t)){var r=[];u.StringMapWrapper.forEach(t,function(t,e){r.push([e,f.literal(t)])}),n=f.literalMap(r)}i.push([e,n])});var o=this._statesMapVar.set(f.literalMap(i)).toDeclStmt();return new y(this.animationName,o,this._statesMapVarName,n,r)},t}(),R=function(){function t(){this.stateMap=new I,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1}return t}(),I=function(){function t(){this._states={}}return Object.defineProperty(t.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),t.prototype.registerState=function(t,e){void 0===e&&(e=null);var n=this._states[t];p.isBlank(n)&&(this._states[t]=e)},t}(),M=function(){function t(t){var e=this;this._animationRegistry={},this.errors=[],t.forEach(function(t){e._animationRegistry[t.name]=!0})}return t.prototype.visitElement=function(t,e){var n=this;t.inputs.forEach(function(t){if(t.type==h.PropertyBindingType.Animation){var e=t.name;p.isPresent(n._animationRegistry[e])||n.errors.push(new v.AnimationParseError("couldn't find an animation entry for "+e))}}),h.templateVisitAll(this,t.children)},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitNgContent=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t}()},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){if(o.isDevMode()&&!s.isBlank(e)){if(!s.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];e.assertInterpolationSymbols=i},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(12),o=n(63),s=n(73),a=n(4),u=n(1);e.Observable=u.Observable;var c=n(12);e.Subject=c.Subject;var p=n(370);e.PromiseCompleter=p.PromiseCompleter,e.PromiseWrapper=p.PromiseWrapper;var l=function(){function t(){}return t.setTimeout=function(t,e){return a.global.setTimeout(t,e)},t.clearTimeout=function(t){a.global.clearTimeout(t)},t.setInterval=function(t,e){return a.global.setInterval(t,e)},t.clearInterval=function(t){a.global.clearInterval(t)},t}();e.TimerWrapper=l;var f=function(){function t(){}return t.subscribe=function(t,e,n,r){return void 0===r&&(r=function(){}),n="function"==typeof n&&n||a.noop,r="function"==typeof r&&r||a.noop,t.subscribe({next:e,error:n,complete:r})},t.isObservable=function(t){return!!t.subscribe},t.hasSubscribers=function(t){return t.observers.length>0},t.dispose=function(t){t.unsubscribe()},t.callNext=function(t,e){t.emit(e)},t.callEmit=function(t,e){t.emit(e)},t.callError=function(t,e){t.error(e)},t.callComplete=function(t){t.complete()},t.fromPromise=function(t){return o.PromiseObservable.create(t)},t.toPromise=function(t){return s.toPromise.call(t)},t}();e.ObservableWrapper=f;var h=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.next=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};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(i.Subject);e.EventEmitter=h},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this,e)}return n(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),e}(Error);e.BaseWrappedException=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(255),i=n(7),o=n(4),s=function(){function t(){this.res=[]}return t.prototype.log=function(t){this.res.push(t)},t.prototype.logError=function(t){this.res.push(t)},t.prototype.logGroup=function(t){this.res.push(t)},t.prototype.logGroupEnd=function(){},t}(),a=function(){function t(t,e){void 0===e&&(e=!0),this._logger=t,this._rethrowException=e}return t.exceptionToString=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=new s,o=new t(i,!1);return o.call(e,n,r),i.res.join("\n")},t.prototype.call=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=this._findOriginalException(t),i=this._findOriginalStack(t),s=this._findContext(t);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(t)),o.isPresent(e)&&o.isBlank(i)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(e))),o.isPresent(n)&&this._logger.logError("REASON: "+n),o.isPresent(r)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(r)),o.isPresent(i)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(i))),o.isPresent(s)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(s)),this._logger.logGroupEnd(),this._rethrowException)throw t},t.prototype._extractMessage=function(t){return t instanceof r.BaseWrappedException?t.wrapperMessage:t.toString()},t.prototype._longStackTrace=function(t){return i.isListLikeIterable(t)?t.join("\n\n-----async gap-----\n"):t.toString()},t.prototype._findContext=function(t){try{return t instanceof r.BaseWrappedException?o.isPresent(t.context)?t.context:this._findContext(t.originalException):null}catch(e){return null}},t.prototype._findOriginalException=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t.originalException;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t,n=t.originalStack;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException,e instanceof r.BaseWrappedException&&o.isPresent(e.originalException)&&(n=e.originalStack);return n},t}();e.ExceptionHandler=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return s[t.toLowerCase()]||a}var i=n(67),o=function(){function t(t){var e=this,n=void 0===t?{}:t,r=n.closedByChildren,o=n.requiredParents,s=n.implicitNamespacePrefix,a=n.contentType,u=void 0===a?i.TagContentType.PARSABLE_DATA:a,c=n.closedByParent,p=void 0===c?!1:c,l=n.isVoid,f=void 0===l?!1:l,h=n.ignoreFirstLf,d=void 0===h?!1:h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=f,this.closedByParent=p||f,o&&o.length>0&&(this.requiredParents={},this.parentToAdd=o[0],o.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=s,this.contentType=u,this.ignoreFirstLf=d}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}();e.HtmlTagDefinition=o;var s={base:new o({isVoid:!0}),meta:new o({isVoid:!0}),area:new o({isVoid:!0}),embed:new o({isVoid:!0}),link:new o({isVoid:!0}),img:new o({isVoid:!0}),input:new o({isVoid:!0}),param:new o({isVoid:!0}),hr:new o({isVoid:!0}),br:new o({isVoid:!0}),source:new o({isVoid:!0}),track:new o({isVoid:!0}),wbr:new o({isVoid:!0}),p:new o({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 o({closedByChildren:["tbody","tfoot"]}),tbody:new o({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new o({closedByChildren:["tbody"],closedByParent:!0}),tr:new o({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new o({closedByChildren:["td","th"],closedByParent:!0}),th:new o({closedByChildren:["td","th"],closedByParent:!0}),col:new o({requiredParents:["colgroup"],isVoid:!0}),svg:new o({implicitNamespacePrefix:"svg"}),math:new o({implicitNamespacePrefix:"math"}),li:new o({closedByChildren:["li"],closedByParent:!0}),dt:new o({closedByChildren:["dt","dd"]}),dd:new o({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new o({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new o({closedByChildren:["optgroup"],closedByParent:!0}),option:new o({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new o({ignoreFirstLf:!0}),listing:new o({ignoreFirstLf:!0}),style:new o({contentType:i.TagContentType.RAW_TEXT}),script:new o({contentType:i.TagContentType.RAW_TEXT}),title:new o({contentType:i.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new o({contentType:i.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},a=new o;e.getHtmlTagDefinition=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(40),o=function(t){function e(e,n){t.call(this,e,n)}return r(e,t),e}(i.ParseError);e.I18nError=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){var e,n=new l(c),r=a.EmitterVisitorContext.createRoot([]);return e=s.isArray(t)?t:[t],e.forEach(function(t){if(t instanceof u.Statement)t.visitStatement(n,r);else if(t instanceof u.Expression)t.visitExpression(n,r);else{if(!(t instanceof u.Type))throw new o.BaseException("Don't know how to print debug info for "+t);t.visitType(n,r)}}),r.toSource()}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(14),s=n(4),a=n(173),u=n(13),c="asset://debug/lib";e.debugOutputAstAsTypeScript=r;var p=function(){function t(t){this._importGenerator=t}return t.prototype.emitStatements=function(t,e,n){var r=this,i=new l(t),o=a.EmitterVisitorContext.createRoot(n);i.visitAllStatements(e,o);var s=[];return i.importsWithPrefixes.forEach(function(e,n){s.push("imp"+("ort * as "+e+" from '"+r._importGenerator.getImportPath(t,n)+"';"))}),s.push(o.toSource()),s.join("\n")},t}();e.TypeScriptEmitter=p;var l=function(t){function e(e){t.call(this,!1),this._moduleUrl=e,this.importsWithPrefixes=new Map}return i(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),s.isPresent(t)?t.visitType(this,e):e.print(n)},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),t.hasModifier(u.StmtModifier.Final)?e.print("const"):e.print("var"),e.print(" "+t.name+":"),this.visitType(t.type,e),e.print(" = "),t.value.visitExpression(this,e),e.println(";"),null},e.prototype.visitCastExpr=function(t,e){return e.print("(<"),t.type.visitType(this,e),e.print(">"),t.value.visitExpression(this,e),e.print(")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print("export "),e.print("class "+t.name),s.isPresent(t.parent)&&(e.print(" extends "),t.parent.visitExpression(this,e)),e.println(" {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),s.isPresent(t.constructorMethod)&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println("}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(u.StmtModifier.Private)&&e.print("private "),e.print(t.name),e.print(":"),this.visitType(t.type,e),e.println(";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(u.StmtModifier.Private)&&e.print("private "),e.print("get "+t.name+"()"),e.print(":"),this.visitType(t.type,e),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassConstructor=function(t,e){e.print("constructor("),this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(u.StmtModifier.Private)&&e.print("private "),e.print(t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype.visitFunctionExpr=function(t,e){return e.print("("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print("function "+t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+a.CATCH_ERROR_VAR.name+") {"),e.incIndent();var n=[a.CATCH_STACK_VAR.set(a.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[u.StmtModifier.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println("}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case u.BuiltinTypeName.Bool:n="boolean";break;case u.BuiltinTypeName.Dynamic:n="any";break;case u.BuiltinTypeName.Function:n="Function";break;case u.BuiltinTypeName.Number:n="number";break;case u.BuiltinTypeName.Int:n="number";break;case u.BuiltinTypeName.String:n="string";break;default:throw new o.BaseException("Unsupported builtin type "+t.name)}return e.print(n),null},e.prototype.visitExternalType=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print("[]"),null},e.prototype.visitMapType=function(t,e){return e.print("{[key: string]:"),this.visitType(t.valueType,e),e.print("}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case u.BuiltinMethod.ConcatArray:e="concat";break;case u.BuiltinMethod.SubscribeObservable:e="subscribe";break;case u.BuiltinMethod.bind:e="bind";break;default:throw new o.BaseException("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(t.name),e.print(":"),n.visitType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this;if(s.isBlank(t.name))throw new o.BaseException("Internal error: unknown identifier "+t);if(s.isPresent(t.moduleUrl)&&t.moduleUrl!=this._moduleUrl){var i=this.importsWithPrefixes.get(t.moduleUrl);s.isBlank(i)&&(i="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(t.moduleUrl,i)),n.print(i+".")}n.print(t.name),s.isPresent(e)&&e.length>0&&(n.print("<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(">"))},e}(a.AbstractEmitterVisitor)},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return void 0===e&&(e=null),a.visitValue(t,new c,e)}var i=n(20),o=n(7),s=n(14),a=n(23),u=n(13);e.convertValueToOutputAst=r;var c=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return u.literalArr(t.map(function(t){return a.visitValue(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[];return o.StringMapWrapper.forEach(t,function(t,e){r.push([e,a.visitValue(t,n,null)])}),u.literalMap(r,e)},t.prototype.visitPrimitive=function(t,e){return u.literal(t,e)},t.prototype.visitOther=function(t,e){if(t instanceof i.CompileIdentifierMetadata)return u.importExpr(t);if(t instanceof u.Expression)return t;throw new s.BaseException("Illegal state: Don't now how to compile value "+t)},t}()},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return new f.CompileProviderMetadata({token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi})}function i(t,e){var n=e.eager,r=e.providers;return new g.ProviderAst(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function o(t,e,n,r){return void 0===r&&(r=null),v.isBlank(r)&&(r=[]),v.isPresent(t)&&t.forEach(function(t){if(v.isArray(t))o(t,e,n,r);else{var i=void 0;t instanceof f.CompileProviderMetadata?i=t:t instanceof f.CompileTypeMetadata?i=new f.CompileProviderMetadata({token:new f.CompileTokenMetadata({identifier:t}),useClass:t}):n.push(new _("Unknown provider type "+t,e)),v.isPresent(i)&&r.push(i)}}),r}function s(t,e,n){var r=new f.CompileIdentifierMap;t.forEach(function(t){var i=new f.CompileProviderMetadata({token:new f.CompileTokenMetadata({identifier:t.type}),useClass:t.type});a([i],t.isComponent?g.ProviderAstType.Component:g.ProviderAstType.Directive,!0,e,n,r)});var i=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return i.forEach(function(t){a(o(t.providers,e,n),g.ProviderAstType.PublicService,!1,e,n,r),a(o(t.viewProviders,e,n),g.ProviderAstType.PrivateService,!1,e,n,r)}),r}function a(t,e,n,r,i,o){t.forEach(function(t){var s=o.get(t.token);if(v.isPresent(s)&&s.multiProvider!==t.multi&&i.push(new _("Mixing multi and non multi provider is not possible for token "+s.token.name,r)),v.isBlank(s)){var a=t.token.identifier&&t.token.identifier instanceof f.CompileTypeMetadata?t.token.identifier.lifecycleHooks:[];s=new g.ProviderAst(t.token,t.multi,n||a.length>0,[t],e,a,r),o.add(t.token,s)}else t.multi||h.ListWrapper.clear(s.providers),s.providers.push(t)})}function u(t){var e=new f.CompileIdentifierMap;return v.isPresent(t.viewQueries)&&t.viewQueries.forEach(function(t){return p(e,t)}),t.type.diDeps.forEach(function(t){v.isPresent(t.viewQuery)&&p(e,t.viewQuery)}),e}function c(t){var e=new f.CompileIdentifierMap;return t.forEach(function(t){v.isPresent(t.queries)&&t.queries.forEach(function(t){return p(e,t)}),t.type.diDeps.forEach(function(t){v.isPresent(t.query)&&p(e,t.query)})}),e}function p(t,e){e.selectors.forEach(function(n){var r=t.get(n);v.isBlank(r)&&(r=[],t.add(n,r)),r.push(e)})}var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=n(20),h=n(7),d=n(14),v=n(4),y=n(18),m=n(40),g=n(41),_=function(t){function e(e,n){t.call(this,n,e)}return l(e,t),e}(m.ParseError);e.ProviderError=_;var b=function(){function t(t,e){var n=this;this.component=t,this.sourceSpan=e,this.errors=[],this.viewQueries=u(t),this.viewProviders=new f.CompileIdentifierMap,o(t.viewProviders,e,this.errors).forEach(function(t){v.isBlank(n.viewProviders.get(t.token))&&n.viewProviders.add(t.token,!0)})}return t}();e.ProviderViewContext=b;var w=function(){function t(t,e,n,r,i,o,a){var u=this;this._viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=a,this._transformedProviders=new f.CompileIdentifierMap,this._seenProviders=new f.CompileIdentifierMap,this._hasViewContainer=!1,this._attrs={},i.forEach(function(t){return u._attrs[t.name]=t.value});var p=r.map(function(t){return t.directive});this._allProviders=s(p,a,t.errors),this._contentQueries=c(p);var l=new f.CompileIdentifierMap;this._allProviders.values().forEach(function(t){u._addQueryReadsTo(t.token,l)}),o.forEach(function(t){u._addQueryReadsTo(new f.CompileTokenMetadata({value:t.name}),l)}),v.isPresent(l.get(y.identifierToken(y.Identifiers.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(t){var e=t.eager||v.isPresent(l.get(t.token));e&&u._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;this._allProviders.values().forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this._transformedProviders.values().map(function(t){return t.token.identifier}),e=h.ListWrapper.clone(this._directiveAsts);return h.ListWrapper.sort(e,function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e){this._getQueriesFor(t).forEach(function(n){var r=v.isPresent(n.read)?n.read:t;v.isBlank(e.get(r))&&e.add(r,!0)})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)e=r._contentQueries.get(t),v.isPresent(e)&&h.ListWrapper.addAll(n,e.filter(function(t){return t.descendants||1>=i})),r._directiveAsts.length>0&&i++,r=r._parent;return e=this._viewContext.viewQueries.get(t),v.isPresent(e)&&h.ListWrapper.addAll(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var o=this,s=this._allProviders.get(e);if(v.isBlank(s)||(t===g.ProviderAstType.Directive||t===g.ProviderAstType.PublicService)&&s.providerType===g.ProviderAstType.PrivateService||(t===g.ProviderAstType.PrivateService||t===g.ProviderAstType.PublicService)&&s.providerType===g.ProviderAstType.Builtin)return null;var a=this._transformedProviders.get(e);if(v.isPresent(a))return a;if(v.isPresent(this._seenProviders.get(e)))return this._viewContext.errors.push(new _("Cannot instantiate cyclic dependency! "+e.name,this._sourceSpan)),null;this._seenProviders.add(e,!0);var u=s.providers.map(function(t){var e,i=t.useValue,a=t.useExisting;if(v.isPresent(t.useExisting)){var u=o._getDependency(s.providerType,new f.CompileDiDependencyMetadata({token:t.useExisting}),n);v.isPresent(u.token)?a=u.token:(a=null,i=u.value)}else if(v.isPresent(t.useFactory)){var c=v.isPresent(t.deps)?t.deps:t.useFactory.diDeps;e=c.map(function(t){return o._getDependency(s.providerType,t,n)})}else if(v.isPresent(t.useClass)){var c=v.isPresent(t.deps)?t.deps:t.useClass.diDeps;e=c.map(function(t){return o._getDependency(s.providerType,t,n)})}return r(t,{useExisting:a,useValue:i,deps:e})});return a=i(s,{eager:n,providers:u}),this._transformedProviders.add(e,a),a},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=null),e.isAttribute){var r=this._attrs[e.token.value];return new f.CompileDiDependencyMetadata({isValue:!0,value:v.normalizeBlank(r)})}if(v.isPresent(e.query)||v.isPresent(e.viewQuery))return e;if(v.isPresent(e.token)){if(t===g.ProviderAstType.Directive||t===g.ProviderAstType.Component){if(e.token.equalsTo(y.identifierToken(y.Identifiers.Renderer))||e.token.equalsTo(y.identifierToken(y.Identifiers.ElementRef))||e.token.equalsTo(y.identifierToken(y.Identifiers.ChangeDetectorRef))||e.token.equalsTo(y.identifierToken(y.Identifiers.TemplateRef)))return e;e.token.equalsTo(y.identifierToken(y.Identifiers.ViewContainerRef))&&(this._hasViewContainer=!0)}if(e.token.equalsTo(y.identifierToken(y.Identifiers.Injector)))return e;if(v.isPresent(this._getOrCreateLocalProvider(t,e.token,n)))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=null);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)v.isBlank(o)&&e.isOptional&&(o=new f.CompileDiDependencyMetadata({isValue:!0,value:null}));else{for(;v.isBlank(o)&&v.isPresent(r._parent);){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(g.ProviderAstType.PublicService,e,i)}v.isBlank(o)&&(o=!e.isHost||this._viewContext.component.type.isHost||y.identifierToken(this._viewContext.component.type).equalsTo(e.token)||v.isPresent(this._viewContext.viewProviders.get(e.token))?e:e.isOptional?o=new f.CompileDiDependencyMetadata({isValue:!0,value:null}):null)}return v.isBlank(o)&&this._viewContext.errors.push(new _("No provider for "+e.token.name,this._sourceSpan)),o},t}();e.ProviderElementContext=w;var E=function(){function t(t,e,n){var r=this;this._transformedProviders=new f.CompileIdentifierMap,this._seenProviders=new f.CompileIdentifierMap,this._unparsedProviders=[],this._errors=[],this._allProviders=new f.CompileIdentifierMap;var i=t.transitiveModule.modules.map(function(t){return t.type});i.forEach(function(t){var e=new f.CompileProviderMetadata({token:new f.CompileTokenMetadata({identifier:t}),useClass:t});a([e],g.ProviderAstType.PublicService,!0,n,r._errors,r._allProviders)}),a(o(t.transitiveModule.providers.concat(e),n,this._errors),g.ProviderAstType.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(this._allProviders.values().forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new d.BaseException("Provider parse errors:\n"+e)}return this._transformedProviders.values()},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,o=this._allProviders.get(t);if(v.isBlank(o))return null;var s=this._transformedProviders.get(t);if(v.isPresent(s))return s;if(v.isPresent(this._seenProviders.get(t)))return this._errors.push(new _("Cannot instantiate cyclic dependency! "+t.name,o.sourceSpan)),null;this._seenProviders.add(t,!0);var a=o.providers.map(function(t){var i,s=t.useValue,a=t.useExisting;if(v.isPresent(t.useExisting)){var u=n._getDependency(new f.CompileDiDependencyMetadata({token:t.useExisting}),e,o.sourceSpan);v.isPresent(u.token)?a=u.token:(a=null,s=u.value)}else if(v.isPresent(t.useFactory)){var c=v.isPresent(t.deps)?t.deps:t.useFactory.diDeps;i=c.map(function(t){return n._getDependency(t,e,o.sourceSpan)})}else if(v.isPresent(t.useClass)){var c=v.isPresent(t.deps)?t.deps:t.useClass.diDeps;i=c.map(function(t){return n._getDependency(t,e,o.sourceSpan)})}return r(t,{useExisting:a,useValue:s,deps:i})});return s=i(o,{eager:e,providers:a}),this._transformedProviders.add(t,s),s},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=null);var r=!1;!t.isSkipSelf&&v.isPresent(t.token)&&(t.token.equalsTo(y.identifierToken(y.Identifiers.Injector))||t.token.equalsTo(y.identifierToken(y.Identifiers.ComponentFactoryResolver))?r=!0:v.isPresent(this._getOrCreateLocalProvider(t.token,e))&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i=new f.CompileDiDependencyMetadata({isValue:!0,value:null}):this._errors.push(new _("No provider for "+t.token.name,n))),i},t}();e.NgModuleProviderAnalyzer=E},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){if(!t.isComponent)throw new p.BaseException("Could not compile '"+t.type.name+"' because it is not a component.")}var i=n(2),o=n(17),s=n(20),a=n(66),u=n(167),c=n(254),p=n(14),l=n(4),f=n(170),h=n(171),d=n(13),v=n(387),y=n(388),m=n(176),g=n(105),_=n(23),b=n(106),w=function(){function t(t,e,n,r,i,o,s,a,u){this._injector=t,this._metadataResolver=e,this._templateNormalizer=n,this._templateParser=r,this._styleCompiler=i,this._viewCompiler=o,this._ngModuleCompiler=s,this._compilerConfig=a,this._console=u,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledNgModuleCache=new Map}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.compileComponentAsync=function(t,e){if(void 0===e&&(e=null),!e)throw new p.BaseException("Calling compileComponentAsync on the root compiler without a module is not allowed! (Compiling component "+l.stringify(t)+")");return this._compileComponentInModule(t,!1,e).asyncResult},t.prototype.compileComponentSync=function(t,e){if(void 0===e&&(e=null),!e)throw new p.BaseException("Calling compileComponentSync on the root compiler without a module is not allowed! (Compiling component "+l.stringify(t)+")");return this._compileComponentInModule(t,!0,e).syncResult},t.prototype._compileModuleAndComponents=function(t,e){var n=this._compileComponents(t,e),r=this._compileModule(t);return new _.SyncAsyncResult(r,n.then(function(){return r}))},t.prototype._compileModuleAndAllComponents=function(t,e){var n=this,r=this._compileComponents(t,e),o=this._compileModule(t),s=this._metadataResolver.getNgModuleMetadata(t),a=[],u=new Set;s.transitiveModule.modules.forEach(function(t){t.declaredDirectives.forEach(function(t){if(t.isComponent){var e=n._createCompiledHostTemplate(t.type.runtime);u.add(e),a.push(e.proxyComponentFactory)}})});var c=new i.ModuleWithComponentFactories(o,a),p=function(){return u.forEach(function(t){n._compileTemplate(t)}),c},l=e?Promise.resolve(p()):r.then(p);return new _.SyncAsyncResult(c,l)},t.prototype._compileModule=function(t){var e=this,n=this._compiledNgModuleCache.get(t);if(!n){var r=this._metadataResolver.getNgModuleMetadata(t),o=(r.transitiveModule,function(t){return new S(e,r.type.runtime,t,e._console)}),s=[this._metadataResolver.getProviderMetadata(new i.Provider(i.Compiler,{useFactory:o,deps:[[new i.OptionalMetadata,new i.SkipSelfMetadata,i.ComponentResolver]]})),this._metadataResolver.getProviderMetadata(new i.Provider(i.ComponentResolver,{useExisting:i.Compiler}))],a=this._ngModuleCompiler.compile(r,s);a.dependencies.forEach(function(t){t.placeholder.runtime=e._assertComponentKnown(t.comp.runtime,!0).proxyComponentFactory,t.placeholder.name="compFactory_"+t.comp.name}),n=this._compilerConfig.useJit?y.jitStatements(r.type.name+".ngfactory.js",a.statements,a.ngModuleFactoryVar):v.interpretStatements(a.statements,a.ngModuleFactoryVar),this._compiledNgModuleCache.set(r.type.runtime,n)}return n},t.prototype._compileComponentInModule=function(t,e,n){this._metadataResolver.addComponentToModule(n,t);var r=this._compileComponents(n,e),i=this._assertComponentKnown(t,!0).proxyComponentFactory;return new _.SyncAsyncResult(i,r.then(function(){return i}))},t.prototype._compileComponents=function(t,e){var n=this,r=new Set,o=[],s=this._metadataResolver.getNgModuleMetadata(t);s.transitiveModule.modules.forEach(function(t){t.declaredDirectives.forEach(function(e){e.isComponent&&(r.add(n._createCompiledTemplate(e,t)),e.entryComponents.forEach(function(t){r.add(n._createCompiledHostTemplate(t.runtime))}))}),t.entryComponents.forEach(function(t){r.add(n._createCompiledHostTemplate(t.runtime))})}),r.forEach(function(t){if(t.loading){if(e)throw new i.ComponentStillLoadingError(t.compType.runtime);o.push(t.loading)}});var a=function(){r.forEach(function(t){n._compileTemplate(t)})};return e?(a(),Promise.resolve(null)):Promise.all(o).then(a)},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&(this._templateNormalizer.clearCacheFor(e.normalizedCompMeta),this._compiledTemplateCache["delete"](t))},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._templateNormalizer.clearCache(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t){var e=this._compiledHostTemplateCache.get(t);if(l.isBlank(e)){var n=this._metadataResolver.getDirectiveMetadata(t);r(n);var i=s.createHostComponentMeta(n);e=new E(!0,n.selector,n.type,[n],[],[],this._templateNormalizer.normalizeDirective(i)),this._compiledHostTemplateCache.set(t,e)}return e},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.runtime);return l.isBlank(n)&&(r(t),n=new E(!1,t.selector,t.type,e.transitiveModule.directives,e.transitiveModule.pipes,e.schemas,this._templateNormalizer.normalizeDirective(t)),this._compiledTemplateCache.set(t.type.runtime,n)),n},t.prototype._assertComponentKnown=function(t,e){var n=e?this._compiledHostTemplateCache.get(t):this._compiledTemplateCache.get(t);if(!n)throw new p.BaseException("Illegal state: CompiledTemplate for "+l.stringify(t)+" (isHost: "+e+") does not exist!");return n},t.prototype._assertComponentLoaded=function(t,e){var n=this._assertComponentKnown(t,e);if(n.loading)throw new p.BaseException("Illegal state: CompiledTemplate for "+l.stringify(t)+" (isHost: "+e+") is still loading!");return n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.normalizedCompMeta,r=new Map,i=this._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(i.componentStylesheet,r);var o=t.viewComponentTypes.map(function(t){return e._assertComponentLoaded(t,!1).normalizedCompMeta}),s=this._templateParser.parse(n,n.template.template,t.viewDirectives.concat(o),t.viewPipes,t.schemas,n.type.name),a=this._viewCompiler.compileComponent(n,s,d.variable(i.componentStylesheet.stylesVar),t.viewPipes);a.dependencies.forEach(function(t){var n;if(t instanceof b.ViewFactoryDependency){var r=t;n=e._assertComponentLoaded(r.comp.runtime,!1),r.placeholder.runtime=n.proxyViewFactory,r.placeholder.name="viewFactory_"+r.comp.name}else if(t instanceof b.ComponentFactoryDependency){var i=t;n=e._assertComponentLoaded(i.comp.runtime,!0),i.placeholder.runtime=n.proxyComponentFactory,i.placeholder.name="compFactory_"+i.comp.name}});var u,c=i.componentStylesheet.statements.concat(a.statements);u=this._compilerConfig.useJit?y.jitStatements(t.compType.name+".ngfactory.js",c,a.viewFactoryVar):v.interpretStatements(c,a.viewFactoryVar),t.compiled(u)}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var i=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,e);t.valuePlaceholder.runtime=o,t.valuePlaceholder.name="importedStyles"+r})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?y.jitStatements(t.meta.moduleUrl+".css.js",t.statements,t.stylesVar):v.interpretStatements(t.statements,t.stylesVar)},t.decorators=[{type:i.Injectable}],t.ctorParameters=[{type:i.Injector},{type:f.CompileMetadataResolver},{type:u.DirectiveNormalizer},{type:g.TemplateParser},{type:m.StyleCompiler},{type:b.ViewCompiler},{type:h.NgModuleCompiler},{type:a.CompilerConfig},{type:o.Console}],t}();e.RuntimeCompiler=w;var E=function(){function t(t,e,n,r,o,s,a){var u=this;this.isHost=t,this.compType=n,this.viewPipes=o,this.schemas=s,this._viewFactory=null,this.loading=null,this._normalizedCompMeta=null,this.isCompiled=!1,this.isCompiledWithDeps=!1,this.viewComponentTypes=[],this.viewDirectives=[],r.forEach(function(t){t.isComponent?u.viewComponentTypes.push(t.type.runtime):u.viewDirectives.push(t)}),this.proxyViewFactory=function(){for(var t=[],e=0;e0&&(_=t.value)}),e=i(e);var b=t.name.toLowerCase(),w=y.OTHER;return o.splitNsName(b)[1]==a?w=y.NG_CONTENT:b==f?w=y.STYLE:b==h?w=y.SCRIPT:b==u&&r==l&&(w=y.STYLESHEET),new m(w,e,n,g,_)}function i(t){return null===t||0===t.length?"*":t}var o=n(67),s="select",a="ng-content",u="link",c="rel",p="href",l="stylesheet",f="style",h="script",d="ngNonBindable",v="ngProjectAs";e.preparseElement=r,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.PreparsedElementType||(e.PreparsedElementType={}));var y=e.PreparsedElementType,m=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}();e.PreparsedElement=m},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(t,e){this.node=t,this.sourceAst=e}return t}();e.CompileBinding=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e,n,r){var i;return i=e>0?c.literal(t).lowerEquals(f.InjectMethodVars.requestNodeIndex).and(f.InjectMethodVars.requestNodeIndex.lowerEquals(c.literal(t+e))):c.literal(t).identical(f.InjectMethodVars.requestNodeIndex),new c.IfStmt(f.InjectMethodVars.token.identical(m.createDiTokenExpression(n.token)).and(i),[new c.ReturnStatement(r)])}function i(t,e,n,r,i,o){var s,u,p=o.view;if(r?(s=c.literalArr(n),u=new c.ArrayType(c.DYNAMIC_TYPE)):(s=n[0],u=n[0].type),a.isBlank(u)&&(u=c.DYNAMIC_TYPE),i)p.fields.push(new c.ClassField(t,u)),p.createMethod.addStmt(c.THIS_EXPR.prop(t).set(s).toStmt());else{var l="_"+t;p.fields.push(new c.ClassField(l,u));var f=new y.CompileMethod(p);f.resetDebugInfo(o.nodeIndex,o.sourceAst),f.addStmt(new c.IfStmt(c.THIS_EXPR.prop(l).isBlank(),[c.THIS_EXPR.prop(l).set(s).toStmt()])),f.addStmt(new c.ReturnStatement(c.THIS_EXPR.prop(l))),p.getters.push(new c.ClassGetter(t,f.finish(),u))}return c.THIS_EXPR.prop(t)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(7),a=n(4),u=n(18),c=n(13),p=n(260),l=n(41),f=n(69),h=n(20),d=n(76),v=n(268),y=n(177),m=n(23),g=function(){function t(t,e,n,r,i){this.parent=t,this.view=e,this.nodeIndex=n,this.renderNode=r,this.sourceAst=i}return t.prototype.isNull=function(){return a.isBlank(this.renderNode)},t.prototype.isRootElement=function(){return this.view!=this.parent.view},t}();e.CompileNode=g;var _=function(t){function e(e,n,r,i,o,s,p,l,f,d,v){var y=this;t.call(this,e,n,r,i,o),this.component=s,this._directives=p,this._resolvedProvidersArray=l,this.hasViewContainer=f,this.hasEmbeddedView=d,this._compViewExpr=null,this.instances=new h.CompileIdentifierMap,this._queryCount=0,this._queries=new h.CompileIdentifierMap,this._componentConstructorViewQueryLists=[],this.contentNodesByNgContentIndex=null,this.referenceTokens={},v.forEach(function(t){return y.referenceTokens[t.name]=t.value}),this.elementRef=c.importExpr(u.Identifiers.ElementRef).instantiate([this.renderNode]),this.instances.add(u.identifierToken(u.Identifiers.ElementRef),this.elementRef),this.injector=c.THIS_EXPR.callMethod("injector",[c.literal(this.nodeIndex)]),this.instances.add(u.identifierToken(u.Identifiers.Injector),this.injector),this.instances.add(u.identifierToken(u.Identifiers.Renderer),c.THIS_EXPR.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView||a.isPresent(this.component))&&this._createAppElement()}return o(e,t),e.createNull=function(){return new e(null,null,null,null,null,null,[],[],!1,!1,[])},e.prototype._createAppElement=function(){var t="_appEl_"+this.nodeIndex,e=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new c.ClassField(t,c.importType(u.Identifiers.AppElement),[c.StmtModifier.Private]));var n=c.THIS_EXPR.prop(t).set(c.importExpr(u.Identifiers.AppElement).instantiate([c.literal(this.nodeIndex),c.literal(e),c.THIS_EXPR,this.renderNode])).toStmt();this.view.createMethod.addStmt(n),this.appElement=c.THIS_EXPR.prop(t),this.instances.add(u.identifierToken(u.Identifiers.AppElement),this.appElement)},e.prototype.createComponentFactoryResolver=function(t){if(t&&0!==t.length){var e=c.importExpr(u.Identifiers.CodegenComponentFactoryResolver).instantiate([c.literalArr(t.map(function(t){return c.importExpr(t)})),d.injectFromViewParentInjector(u.identifierToken(u.Identifiers.ComponentFactoryResolver),!1)]),n=new h.CompileProviderMetadata({token:u.identifierToken(u.Identifiers.ComponentFactoryResolver),useValue:e});this._resolvedProvidersArray.unshift(new l.ProviderAst(n.token,!1,!0,[n],l.ProviderAstType.PrivateService,[],this.sourceAst.sourceSpan))}},e.prototype.setComponentView=function(t){this._compViewExpr=t,this.contentNodesByNgContentIndex=s.ListWrapper.createFixedSize(this.component.template.ngContentSelectors.length);for(var e=0;e=i})),r._directives.length>0&&i++,r=r.parent;return e=this.view.componentView.viewQueries.get(t),a.isPresent(e)&&s.ListWrapper.addAll(n,e),n},e.prototype._addQuery=function(t,e){var n="_query_"+t.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,r=v.createQueryList(t,e,n,this.view),i=new v.CompileQuery(t,r,e,this.view);return v.addQueryToTokenMap(this._queries,i),i},e.prototype._getLocalDependency=function(t,e){var n=null;if(a.isBlank(n)&&a.isPresent(e.query)&&(n=this._addQuery(e.query,null).queryList),a.isBlank(n)&&a.isPresent(e.viewQuery)&&(n=v.createQueryList(e.viewQuery,null,"_viewQuery_"+e.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(n)),a.isPresent(e.token)){if(a.isBlank(n)&&e.token.equalsTo(u.identifierToken(u.Identifiers.ChangeDetectorRef)))return t===l.ProviderAstType.Component?this._compViewExpr.prop("ref"):d.getPropertyInView(c.THIS_EXPR.prop("ref"),this.view,this.view.componentView);if(a.isBlank(n)){var r=this._resolvedProviders.get(e.token);if(r&&(t===l.ProviderAstType.Directive||t===l.ProviderAstType.PublicService)&&r.providerType===l.ProviderAstType.PrivateService)return null;n=this.instances.get(e.token)}}return n},e.prototype._getDependency=function(t,e){var n=this,r=null;for(e.isValue&&(r=c.literal(e.value)),a.isBlank(r)&&!e.isSkipSelf&&(r=this._getLocalDependency(t,e));a.isBlank(r)&&!n.parent.isNull();)n=n.parent,r=n._getLocalDependency(l.ProviderAstType.PublicService,new h.CompileDiDependencyMetadata({token:e.token}));return a.isBlank(r)&&(r=d.injectFromViewParentInjector(e.token,e.isOptional)),a.isBlank(r)&&(r=c.NULL_EXPR),d.getPropertyInView(r,this.view,n.view)},e}(g);e.CompileElement=_;var b=function(){function t(t,e){this.query=t,this.read=a.isPresent(t.meta.read)?t.meta.read:e}return t}()},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return a.ListWrapper.flatten(t.values.map(function(t){return t instanceof f?i(t.view.declarationElement.appElement,t.view,r(t)):t}))}function i(t,e,n){var r=n.map(function(t){return p.replaceVarInExpression(p.THIS_EXPR.name,p.variable("nestedView"),t)});return t.callMethod("mapNestedViews",[p.variable(e.className),p.fn([new p.FnParam("nestedView",e.classType)],[new p.ReturnStatement(p.literalArr(r))],p.DYNAMIC_TYPE)])}function o(t,e,n,r){r.fields.push(new p.ClassField(n,p.importType(c.Identifiers.QueryList,[p.DYNAMIC_TYPE])));var i=p.THIS_EXPR.prop(n);return r.createMethod.addStmt(p.THIS_EXPR.prop(n).set(p.importExpr(c.Identifiers.QueryList,[p.DYNAMIC_TYPE]).instantiate([])).toStmt()),i}function s(t,e){e.meta.selectors.forEach(function(n){var r=t.get(n);u.isBlank(r)&&(r=[],t.add(n,r)),r.push(e)})}var a=n(7),u=n(4),c=n(18),p=n(13),l=n(76),f=function(){function t(t,e){this.view=t,this.values=e}return t}(),h=function(){function t(t,e,n,r){this.meta=t,this.queryList=e,this.ownerDirectiveExpression=n,this.view=r,this._values=new f(r,[])}return t.prototype.addValue=function(t,e){for(var n=e,r=[];u.isPresent(n)&&n!==this.view;){var i=n.declarationElement;r.unshift(i),n=i.view}var o=l.getPropertyInView(this.queryList,e,this.view),s=this._values;r.forEach(function(t){var e=s.values.length>0?s.values[s.values.length-1]:null;if(e instanceof f&&e.view===t.embeddedView)s=e;else{var n=new f(t.embeddedView,[]);s.values.push(n),s=n}}),s.values.push(t),r.length>0&&e.dirtyParentQueriesMethod.addStmt(o.callMethod("setDirty",[]).toStmt())},t.prototype._isStatic=function(){return!this._values.values.some(function(t){return t instanceof f})},t.prototype.afterChildren=function(t,e){var n=r(this._values),i=[this.queryList.callMethod("reset",[p.literalArr(n)]).toStmt()];if(u.isPresent(this.ownerDirectiveExpression)){var o=this.meta.first?this.queryList.prop("first"):this.queryList;i.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(o).toStmt())}this.meta.first||i.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?t.addStmts(i):e.addStmt(new p.IfStmt(this.queryList.prop("dirty"),i))},t}();e.CompileQuery=h,e.createQueryList=o,e.addQueryToTokenMap=s},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return e>0?i.ViewType.EMBEDDED:t.type.isHost?i.ViewType.HOST:i.ViewType.COMPONENT}var i=n(17),o=n(20),s=n(7),a=n(4),u=n(18),c=n(13),p=n(177),l=n(392),f=n(268),h=n(69),d=n(76),v=function(){function t(t,e,n,u,l,h,v,y){var m=this;this.component=t,this.genConfig=e,this.pipeMetas=n,this.styles=u,this.animations=l,this.viewIndex=h,this.declarationElement=v,this.templateVariableBindings=y,this.nodes=[],this.rootNodesOrAppElements=[],this.bindings=[],this.classStatements=[],this.eventHandlerMethods=[],this.fields=[],this.getters=[],this.disposables=[],this.subscriptions=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new p.CompileMethod(this),this.injectorGetMethod=new p.CompileMethod(this),this.updateContentQueriesMethod=new p.CompileMethod(this),this.dirtyParentQueriesMethod=new p.CompileMethod(this),this.updateViewQueriesMethod=new p.CompileMethod(this),this.detectChangesInInputsMethod=new p.CompileMethod(this),this.detectChangesRenderPropertiesMethod=new p.CompileMethod(this),this.afterContentLifecycleCallbacksMethod=new p.CompileMethod(this),this.afterViewLifecycleCallbacksMethod=new p.CompileMethod(this),this.destroyMethod=new p.CompileMethod(this),this.detachMethod=new p.CompileMethod(this),this.viewType=r(t,h),this.className="_View_"+t.type.name+h,this.classType=c.importType(new o.CompileIdentifierMetadata({name:this.className})),this.viewFactory=c.variable(d.getViewFactoryName(t,h)),this.viewType===i.ViewType.COMPONENT||this.viewType===i.ViewType.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView,this.componentContext=d.getPropertyInView(c.THIS_EXPR.prop("context"),this,this.componentView);var g=new o.CompileIdentifierMap;if(this.viewType===i.ViewType.COMPONENT){var _=c.THIS_EXPR.prop("context");s.ListWrapper.forEachWithIndex(this.component.viewQueries,function(t,e){var n="_viewQuery_"+t.selectors[0].name+"_"+e,r=f.createQueryList(t,_,n,m),i=new f.CompileQuery(t,r,_,m);f.addQueryToTokenMap(g,i)});var b=0;this.component.type.diDeps.forEach(function(t){if(a.isPresent(t.viewQuery)){var e=c.THIS_EXPR.prop("declarationAppElement").prop("componentConstructorViewQueries").key(c.literal(b++)),n=new f.CompileQuery(t.viewQuery,e,null,m);f.addQueryToTokenMap(g,n)}})}this.viewQueries=g,y.forEach(function(t){m.locals.set(t[1],c.THIS_EXPR.prop("context").prop(t[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return t.prototype.callPipe=function(t,e,n){return l.CompilePipe.call(this,t,[e].concat(n))},t.prototype.getLocal=function(t){if(t==h.EventHandlerVars.event.name)return h.EventHandlerVars.event;for(var e=this,n=e.locals.get(t);a.isBlank(n)&&a.isPresent(e.declarationElement.view);)e=e.declarationElement.view,n=e.locals.get(t);return a.isPresent(n)?d.getPropertyInView(n,this,e):null},t.prototype.createLiteralArray=function(t){if(0===t.length)return c.importExpr(u.Identifiers.EMPTY_ARRAY);for(var e=c.THIS_EXPR.prop("_arr_"+this.literalArrayCount++),n=[],r=[],i=0;i":n=h.BinaryOperator.Bigger;break;case"<=":n=h.BinaryOperator.LowerEquals;break;case">=":n=h.BinaryOperator.BiggerEquals;break;default:throw new p.BaseException("Unsupported operation "+t.operation)}return a(e,new h.BinaryOperatorExpr(n,this.visit(t.left,y.Expression),this.visit(t.right,y.Expression)))},t.prototype.visitChain=function(t,e){return o(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var n=this.visit(t.condition,y.Expression);return a(e,n.conditional(this.visit(t.trueExp,y.Expression),this.visit(t.falseExp,y.Expression)))},t.prototype.visitPipe=function(t,e){var n=this.visit(t.exp,y.Expression),r=this.visitAll(t.args,y.Expression),i=this._nameResolver.callPipe(t.name,n,r);return this.needsValueUnwrapper=!0,a(e,this._valueUnwrapper.callMethod("unwrap",[i]))},t.prototype.visitFunctionCall=function(t,e){return a(e,this.visit(t.target,y.Expression).callFn(this.visitAll(t.args,y.Expression)))},t.prototype.visitImplicitReceiver=function(t,e){return s(e,t),d},t.prototype.visitInterpolation=function(t,e){s(e,t);for(var n=[h.literal(t.expressions.length)],r=0;r0}));return u}function v(t,e,n){var r,i=[new T.FnParam(N.ViewConstructorVars.viewUtils.name,T.importType(A.Identifiers.ViewUtils)),new T.FnParam(N.ViewConstructorVars.parentInjector.name,T.importType(A.Identifiers.Injector)),new T.FnParam(N.ViewConstructorVars.declarationEl.name,T.importType(A.Identifiers.AppElement))],o=[];if(r=t.component.template.templateUrl==t.component.type.moduleUrl?t.component.type.moduleUrl+" class "+t.component.type.name+" - inline template":t.component.template.templateUrl,0===t.viewIndex){var s=T.literalMap(t.animations.map(function(t){return[t.name,t.fnVariable]}));o=[new T.IfStmt(n.identical(T.NULL_EXPR),[n.set(N.ViewConstructorVars.viewUtils.callMethod("createRenderComponentType",[T.literal(r),T.literal(t.component.template.ngContentSelectors.length),N.ViewEncapsulationEnum.fromValue(t.component.template.encapsulation),t.styles,s])).toStmt()])]}return T.fn(i,o.concat([new T.ReturnStatement(T.variable(e.name).instantiate(e.constructorMethod.params.map(function(t){return T.variable(t.name)})))]),T.importType(A.Identifiers.AppView,[_(t)])).toDeclStmt(t.viewFactory.name,[T.StmtModifier.Final])}function y(t){var e=T.NULL_EXPR,n=[];t.viewType===E.ViewType.COMPONENT&&(e=N.ViewProperties.renderer.callMethod("createViewRoot",[T.THIS_EXPR.prop("declarationAppElement").prop("nativeElement")]),n=[F.set(e).toDeclStmt(T.importType(t.genConfig.renderTypes.renderNode),[T.StmtModifier.Final])]);var r;return r=t.viewType===E.ViewType.HOST?t.nodes[0].appElement:T.NULL_EXPR,n.concat(t.createMethod.finish(),[T.THIS_EXPR.callMethod("init",[k.createFlatArray(t.rootNodesOrAppElements),T.literalArr(t.nodes.map(function(t){return t.renderNode})),T.literalArr(t.disposables),T.literalArr(t.subscriptions)]).toStmt(),new T.ReturnStatement(r)])}function m(t){var e=[];if(t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty())return e;P.ListWrapper.addAll(e,t.detectChangesInInputsMethod.finish()),e.push(T.THIS_EXPR.callMethod("detectContentChildrenChanges",[N.DetectChangesVars.throwOnChange]).toStmt());var n=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());n.length>0&&e.push(new T.IfStmt(T.not(N.DetectChangesVars.throwOnChange),n)),P.ListWrapper.addAll(e,t.detectChangesRenderPropertiesMethod.finish()),e.push(T.THIS_EXPR.callMethod("detectViewChildrenChanges",[N.DetectChangesVars.throwOnChange]).toStmt());var r=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());r.length>0&&e.push(new T.IfStmt(T.not(N.DetectChangesVars.throwOnChange),r));var i=[],o=T.findReadVarNames(e);return P.SetWrapper.has(o,N.DetectChangesVars.changed.name)&&i.push(N.DetectChangesVars.changed.set(T.literal(!0)).toDeclStmt(T.BOOL_TYPE)),P.SetWrapper.has(o,N.DetectChangesVars.changes.name)&&i.push(N.DetectChangesVars.changes.set(T.NULL_EXPR).toDeclStmt(new T.MapType(T.importType(A.Identifiers.SimpleChange)))),P.SetWrapper.has(o,N.DetectChangesVars.valUnwrapper.name)&&i.push(N.DetectChangesVars.valUnwrapper.set(T.importExpr(A.Identifiers.ValueUnwrapper).instantiate([])).toDeclStmt(null,[T.StmtModifier.Final])),i.concat(e)}function g(t,e){return t.length>0?t.concat([new T.ReturnStatement(e)]):t}function _(t){return t.viewType===E.ViewType.COMPONENT?T.importType(t.component.type):T.DYNAMIC_TYPE}function b(t){var e;return e=t.viewType===E.ViewType.COMPONENT?E.isDefaultChangeDetectionStrategy(t.component.changeDetection)?E.ChangeDetectorStatus.CheckAlways:E.ChangeDetectorStatus.CheckOnce:E.ChangeDetectorStatus.CheckAlways}var w=n(2),E=n(17),S=n(252),C=n(20),P=n(7),O=n(4),A=n(18),T=n(13),x=n(41),R=n(23),I=n(267),M=n(269),N=n(69),k=n(76),D="$implicit",V="class",L="style",j="ng-container",F=T.variable("parentRenderNode"),B=T.variable("rootSelector"),U=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}();e.ViewFactoryDependency=U;var W=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}();e.ComponentFactoryDependency=W,e.buildView=r,e.finishView=i;var H=function(){function t(t,e){this.view=t,this.targetDependencies=e,this.nestedViewCount=0,this._animationCompiler=new S.AnimationCompiler}return t.prototype._isRootNode=function(t){return t.view!==this.view},t.prototype._addRootNodeAndProject=function(t){var e=o(t),n=e.parent,r=e.sourceAst.ngContentIndex,i=t instanceof I.CompileElement&&t.hasViewContainer?t.appElement:null;this._isRootNode(n)?this.view.viewType!==E.ViewType.COMPONENT&&this.view.rootNodesOrAppElements.push(O.isPresent(i)?i:t.renderNode):O.isPresent(n.component)&&O.isPresent(r)&&n.addContentNode(r,O.isPresent(i)?i:t.renderNode)},t.prototype._getParentRenderNode=function(t){return t=s(t),this._isRootNode(t)?this.view.viewType===E.ViewType.COMPONENT?F:T.NULL_EXPR:O.isPresent(t.component)&&t.component.template.encapsulation!==w.ViewEncapsulation.Native?T.NULL_EXPR:t.renderNode},t.prototype.visitBoundText=function(t,e){return this._visitText(t,"",e)},t.prototype.visitText=function(t,e){return this._visitText(t,t.value,e)},t.prototype._visitText=function(t,e,n){var r="_text_"+this.view.nodes.length;this.view.fields.push(new T.ClassField(r,T.importType(this.view.genConfig.renderTypes.renderText)));var i=T.THIS_EXPR.prop(r),o=new I.CompileNode(n,this.view,this.view.nodes.length,i,t),s=T.THIS_EXPR.prop(r).set(N.ViewProperties.renderer.callMethod("createText",[this._getParentRenderNode(n),T.literal(e),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,t)])).toStmt();return this.view.nodes.push(o),this.view.createMethod.addStmt(s),this._addRootNodeAndProject(o),i},t.prototype.visitNgContent=function(t,e){this.view.createMethod.resetDebugInfo(null,t);var n=this._getParentRenderNode(e),r=N.ViewProperties.projectableNodes.key(T.literal(t.index),new T.ArrayType(T.importType(this.view.genConfig.renderTypes.renderNode)));return n!==T.NULL_EXPR?this.view.createMethod.addStmt(N.ViewProperties.renderer.callMethod("projectNodes",[n,T.importExpr(A.Identifiers.flattenNestedViewRenderNodes).callFn([r])]).toStmt()):this._isRootNode(e)?this.view.viewType!==E.ViewType.COMPONENT&&this.view.rootNodesOrAppElements.push(r):O.isPresent(e.component)&&O.isPresent(t.ngContentIndex)&&e.addContentNode(t.ngContentIndex,r),null},t.prototype.visitElement=function(t,e){var n,r=this,i=this.view.nodes.length,o=this.view.createMethod.resetDebugInfoExpr(i,t);n=0===i&&this.view.viewType===E.ViewType.HOST?T.THIS_EXPR.callMethod("selectOrCreateHostElement",[T.literal(t.name),B,o]):t.name===j?N.ViewProperties.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),o]):N.ViewProperties.renderer.callMethod("createElement",[this._getParentRenderNode(e),T.literal(t.name),o]);var s="_el_"+i;this.view.fields.push(new T.ClassField(s,T.importType(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(T.THIS_EXPR.prop(s).set(n).toStmt());for(var a=T.THIS_EXPR.prop(s),p=t.directives.map(function(t){return t.directive}),l=p.find(function(t){return t.isComponent}),f=c(t.attrs),h=u(f,p),d=0;d0?t.value:D,t.name]}),a=t.directives.map(function(t){return t.directive}),u=new I.CompileElement(e,this.view,n,o,t,null,a,t.providers,t.hasViewContainer,!0,t.references);this.view.nodes.push(u);var c=this._animationCompiler.compileComponent(this.view.component,[t]);this.nestedViewCount++;var p=new M.CompileView(this.view.component,this.view.genConfig,this.view.pipeMetas,T.NULL_EXPR,c,this.view.viewIndex+this.nestedViewCount,u,s);return this.nestedViewCount+=r(p,t.children,this.targetDependencies),u.beforeChildren(),this._addRootNodeAndProject(u),u.afterChildren(0),null},t.prototype.visitAttr=function(t,e){return null},t.prototype.visitDirective=function(t,e){return null},t.prototype.visitEvent=function(t,e){return null},t.prototype.visitReference=function(t,e){return null},t.prototype.visitVariable=function(t,e){return null},t.prototype.visitDirectiveProperty=function(t,e){return null},t.prototype.visitElementProperty=function(t,e){return null},t}()},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";e.FILL_STYLE_FLAG="true",e.ANY_STATE="*",e.DEFAULT_STATE="*",e.EMPTY_STATE="void"},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(3),i=n(408),o=function(){function t(t){var e=this;this._players=t,this._subscriptions=[],this._finished=!1,this._started=!1,this.parentPlayer=null;var n=0,i=this._players.length;0==i?r.scheduleMicroTask(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=i&&e._onFinish()})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,r.isPresent(this.parentPlayer)||this.destroy(),this._subscriptions.forEach(function(t){return t()}),this._subscriptions=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onDone=function(t){this._subscriptions.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){r.isPresent(this.parentPlayer)||this.init(),this._started=!0,this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onFinish(),this._players.forEach(function(t){return t.destroy()})},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()})},t.prototype.setPosition=function(t){this._players.forEach(function(e){e.setPosition(t)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=i.Math.min(n,t)}),t},t}();e.AnimationGroupPlayer=o},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){void 0===e&&(e=null);var n=e;if(!h.isPresent(n)){var r={};n=new b([r],1)}return new w(t,n)}function i(t){return new C(t)}function o(t){return new S(t)}function s(t){var e,n=null;return h.isString(t)?e=[t]:(e=h.isArray(t)?t:[t],e.forEach(function(t){var e=t.offset;h.isPresent(e)&&(n=null==n?h.NumberWrapper.parseFloat(e):n)})),new b(e,n)}function a(t,e){return new y(t,e)}function u(t){return new _(t)}function c(t,e){var n=h.isArray(e)?new S(e):e;return new m(t,n)}function p(t,e){return new d(t,e)}var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=n(10),h=n(3);e.AUTO_STYLE="*";var d=function(){function t(t,e){this.name=t,this.definitions=e}return t}();e.AnimationEntryMetadata=d;var v=function(){function t(){}return t}();e.AnimationStateMetadata=v;var y=function(t){function e(e,n){t.call(this),this.stateNameExpr=e,this.styles=n}return l(e,t),e}(v);e.AnimationStateDeclarationMetadata=y;var m=function(t){function e(e,n){t.call(this),this.stateChangeExpr=e,this.steps=n}return l(e,t),e}(v);e.AnimationStateTransitionMetadata=m;var g=function(){function t(){}return t}();e.AnimationMetadata=g;var _=function(t){function e(e){t.call(this),this.steps=e}return l(e,t),e}(g);e.AnimationKeyframesSequenceMetadata=_;var b=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.styles=e,this.offset=n}return l(e,t),e}(g);e.AnimationStyleMetadata=b;var w=function(t){function e(e,n){t.call(this),this.timings=e,this.styles=n}return l(e,t),e}(g);e.AnimationAnimateMetadata=w;var E=function(t){function e(){t.call(this)}return l(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){throw new f.BaseException("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),e}(g);e.AnimationWithStepsMetadata=E;var S=function(t){function e(e){t.call(this),this._steps=e}return l(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(E);e.AnimationSequenceMetadata=S;var C=function(t){function e(e){t.call(this),this._steps=e}return l(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(E);e.AnimationGroupMetadata=C,e.animate=r,e.group=i,e.sequence=o,e.style=s,e.state=a,e.keyframes=u,e.transition=c,e.trigger=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(15),i=n(10),o=n(3),s=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||o.isJsObject(t)},t.prototype.create=function(t){return new a},t}();e.DefaultKeyValueDifferFactory=s;var a=function(){function t(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||o.isJsObject(t)))throw new i.BaseException("Error trying to diff '"+t+"'")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._records,r=this._mapHead,i=null,o=null,s=!1;return this._forEach(t,function(t,a){var c;r&&a===r.key?(c=r,e._maybeAddToChanges(c,t)):(s=!0,null!==r&&(e._removeFromSeq(i,r),e._addToRemovals(r)),n.has(a)?(c=n.get(a),e._maybeAddToChanges(c,t)):(c=new u(a),n.set(a,c),c.currentValue=t,e._addToAdditions(c))),s&&(e._isInRemovals(c)&&e._removeFromRemovals(c),null==o?e._mapHead=c:o._next=c),i=r,o=c,r=r&&r._next}),this._truncate(i,r),this.isDirty},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(t=this._previousMapHead=this._mapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},t.prototype._truncate=function(t,e){for(;null!==e;){null===t?this._mapHead=null:t._next=null;var n=e._next;this._addToRemovals(e),t=e,e=n}for(var r=this._removalsHead;null!==r;r=r._nextRemoved)r.previousValue=r.currentValue,r.currentValue=null,this._records["delete"](r.key)},t.prototype._maybeAddToChanges=function(t,e){o.looseIdentical(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._isInRemovals=function(t){return t===this._removalsHead||null!==t._nextRemoved||null!==t._prevRemoved},t.prototype._addToRemovals=function(t){null===this._removalsHead?this._removalsHead=this._removalsTail=t:(this._removalsTail._nextRemoved=t,t._prevRemoved=this._removalsTail,this._removalsTail=t)},t.prototype._removeFromSeq=function(t,e){var n=e._next;null===t?this._mapHead=n:t._next=n,e._next=null},t.prototype._removeFromRemovals=function(t){var e=t._prevRemoved,n=t._nextRemoved;null===e?this._removalsHead=n:e._nextRemoved=n,null===n?this._removalsTail=e:n._prevRemoved=e,t._prevRemoved=t._nextRemoved=null},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t,e=[],n=[],r=[],i=[],s=[];for(t=this._mapHead;null!==t;t=t._next)e.push(o.stringify(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n.push(o.stringify(t));for(t=this._changesHead;null!==t;t=t._nextChanged)r.push(o.stringify(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)i.push(o.stringify(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)s.push(o.stringify(t));return"map: "+e.join(", ")+"\nprevious: "+n.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+s.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):r.StringMapWrapper.forEach(t,e)},t}();e.DefaultKeyValueDiffer=a;var u=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return o.looseIdentical(this.previousValue,this.currentValue)?o.stringify(this.key):o.stringify(this.key)+"["+o.stringify(this.previousValue)+"->"+o.stringify(this.currentValue)+"]"},t}();e.KeyValueChangeRecord=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(29),i=n(15),o=n(10),s=n(3),a=function(){function t(t){this.factories=t}return t.create=function(e,n){if(s.isPresent(n)){var r=i.ListWrapper.clone(n.factories);return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return new r.Provider(t,{useFactory:function(n){if(s.isBlank(n))throw new o.BaseException("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new r.SkipSelfMetadata,new r.OptionalMetadata]]})},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s.isPresent(e))return e;throw new o.BaseException("Cannot find a differ supporting object '"+t+"' of type '"+s.getTypeNameForDebugging(t)+"'")},t}();e.IterableDiffers=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(29),i=n(15),o=n(10),s=n(3),a=function(){function t(t){this.factories=t}return t.create=function(e,n){if(s.isPresent(n)){var r=i.ListWrapper.clone(n.factories);return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return new r.Provider(t,{useFactory:function(n){if(s.isBlank(n))throw new o.BaseException("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new r.SkipSelfMetadata,new r.OptionalMetadata]]})},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s.isPresent(e))return e;throw new o.BaseException("Cannot find a differ supporting object '"+t+"'")},t}();e.KeyValueDiffers=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t.map(function(t){return t.nativeElement})}function i(t,e,n){t.childNodes.forEach(function(t){t instanceof v&&(e(t)&&n.push(t),i(t,e,n))})}function o(t,e,n){t instanceof v&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof v&&o(t,e,n)})}function s(t){return y.get(t)}function a(){return l.MapWrapper.values(y)}function u(t){y.set(t.nativeNode,t)}function c(t){y["delete"](t.nativeNode)}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},l=n(15),f=n(3),h=function(){function t(t,e){this.name=t,this.callback=e}return t}();e.EventListener=h;var d=function(){function t(t,e,n){this._debugInfo=n,this.nativeNode=t,f.isPresent(e)&&e instanceof v?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return f.isPresent(this._debugInfo)?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return f.isPresent(this._debugInfo)?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return f.isPresent(this._debugInfo)?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return f.isPresent(this._debugInfo)?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return f.isPresent(this._debugInfo)?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return f.isPresent(this._debugInfo)?this._debugInfo.source:null},enumerable:!0,configurable:!0}),t.prototype.inject=function(t){return this.injector.get(t)},t}();e.DebugNode=d;var v=function(t){function e(e,n,r){t.call(this,e,n,r),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}return p(e,t),e.prototype.addChild=function(t){f.isPresent(t)&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this.childNodes.indexOf(t);if(-1!==n){var r=this.childNodes.slice(0,n+1),i=this.childNodes.slice(n+1);this.childNodes=l.ListWrapper.concat(l.ListWrapper.concat(r,e),i);for(var o=0;o0?e[0]:null},e.prototype.queryAll=function(t){var e=[];return i(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return o(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){var t=[];return this.childNodes.forEach(function(n){n instanceof e&&t.push(n)}),t},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(d);e.DebugElement=v,e.asNativeElements=r;var y=new Map;e.getDebugNode=s,e.getAllDebugNodes=a,e.indexDebugNode=u,e.removeDebugNodeFromIndex=c},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}();e.OpaqueToken=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t&&"object"==typeof t&&t.provide}function i(t){return new o.Provider(t.provide,t)}var o=n(183);e.isProviderLiteral=r,e.createProvider=i},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this,e)}return n(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),e}(Error);e.BaseWrappedException=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(281),i=n(15),o=n(3),s=function(){function t(){this.res=[]}return t.prototype.log=function(t){this.res.push(t)},t.prototype.logError=function(t){this.res.push(t)},t.prototype.logGroup=function(t){this.res.push(t)},t.prototype.logGroupEnd=function(){},t}(),a=function(){function t(t,e){void 0===e&&(e=!0),this._logger=t,this._rethrowException=e}return t.exceptionToString=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=new s,o=new t(i,!1);return o.call(e,n,r),i.res.join("\n")},t.prototype.call=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=this._findOriginalException(t),i=this._findOriginalStack(t),s=this._findContext(t);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(t)),o.isPresent(e)&&o.isBlank(i)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(e))),o.isPresent(n)&&this._logger.logError("REASON: "+n),o.isPresent(r)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(r)),o.isPresent(i)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(i))),o.isPresent(s)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(s)),this._logger.logGroupEnd(),this._rethrowException)throw t},t.prototype._extractMessage=function(t){return t instanceof r.BaseWrappedException?t.wrapperMessage:t.toString()},t.prototype._longStackTrace=function(t){return i.isListLikeIterable(t)?t.join("\n\n-----async gap-----\n"):t.toString()},t.prototype._findContext=function(t){try{return t instanceof r.BaseWrappedException?o.isPresent(t.context)?t.context:this._findContext(t.originalException):null}catch(e){return null}},t.prototype._findOriginalException=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t.originalException;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t,n=t.originalStack;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException,e instanceof r.BaseWrappedException&&o.isPresent(e.originalException)&&(n=e.originalStack);return n},t}();e.ExceptionHandler=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(3),s=n(117),a=function(){function t(){}return Object.defineProperty(t.prototype,"location",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instance",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostView",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),t}();e.ComponentRef=a;var u=function(t){function e(e,n){t.call(this),this._hostElement=e,this._componentType=n}return r(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this._hostElement.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this._hostElement.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._hostElement.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._hostElement.parentView.destroy()},e.prototype.onDestroy=function(t){this.hostView.onDestroy(t)},e}(a);e.ComponentRef_=u;var c=new Object,p=function(){function t(t,e,n){this.selector=t,this._viewFactory=e,this._componentType=n}return Object.defineProperty(t.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),t.prototype.create=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=t.get(s.ViewUtils);o.isBlank(e)&&(e=[]);var i=this._viewFactory(r,t,null),a=i.create(c,e,n);return new u(a,this._componentType)},t}();e.ComponentFactory=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(15),i=n(3),o=n(116),s=function(){function t(t,e,n){this.providerTokens=t,this.componentToken=e,this.refTokens=n}return t}();e.StaticNodeDebugInfo=s;var a=function(){function t(t,e,n,r){this._view=t,this._nodeIndex=e,this._tplRow=n,this._tplCol=r}return Object.defineProperty(t.prototype,"_staticNodeInfo",{get:function(){return i.isPresent(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){var t=this._staticNodeInfo;return i.isPresent(t)&&i.isPresent(t.componentToken)?this.injector.get(t.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){for(var t=this._view;i.isPresent(t.declarationAppElement)&&t.type!==o.ViewType.COMPONENT;)t=t.declarationAppElement.parentView;return i.isPresent(t.declarationAppElement)?t.declarationAppElement.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return i.isPresent(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=this._staticNodeInfo;return i.isPresent(t)?t.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t=this,e={},n=this._staticNodeInfo;if(i.isPresent(n)){var o=n.refTokens;r.StringMapWrapper.forEach(o,function(n,r){var o;o=i.isBlank(n)?t._view.allNodes?t._view.allNodes[t._nodeIndex]:null:t._view.injectorGet(n,t._nodeIndex,null),e[r]=o})}return e},enumerable:!0,configurable:!0}),t}();e.DebugContext=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(29),o=n(3),s=n(77),a=function(){function t(){}return t}();e.DynamicComponentLoader=a;var u=function(t){function e(e){t.call(this),this._compiler=e}return r(e,t),e.prototype.loadAsRoot=function(t,e,n,r,i){return this._compiler.compileComponentAsync(t).then(function(t){var s=t.create(n,i,o.isPresent(e)?e:t.selector);return o.isPresent(r)&&s.onDestroy(r),s})},e.prototype.loadNextToLocation=function(t,e,n,r){return void 0===n&&(n=null),void 0===r&&(r=null),this._compiler.compileComponentAsync(t).then(function(t){var s=e.parentInjector,a=o.isPresent(n)&&n.length>0?i.ReflectiveInjector.fromResolvedProviders(n,s):s;return e.createComponent(t,e.length,a,r)})},e.decorators=[{type:i.Injectable}],e.ctorParameters=[{type:s.Compiler}],e}(a);e.DynamicComponentLoader_=u},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(t){this.nativeElement=t}return t}();e.ElementRef=n},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(114),o=n(10),s=n(3),a=n(115),u=function(){function t(){}return Object.defineProperty(t.prototype,"injector",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instance",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),t}();e.NgModuleRef=u;var c=function(){function t(t,e){this._injectorClass=t,this._moduleype=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleype},enumerable:!0,configurable:!0}),t.prototype.create=function(t){t||(t=i.Injector.NULL);var e=new this._injectorClass(t);return e.create(),e},t}();e.NgModuleFactory=c;var p=new Object,l=function(t){function e(e,n,r){t.call(this,n,e.get(a.ComponentFactoryResolver,a.ComponentFactoryResolver.NULL)),this.parent=e,this.bootstrapFactories=r,this._destroyListeners=[],this._destroyed=!1}return r(e,t),e.prototype.create=function(){this.instance=this.createInternal()},e.prototype.get=function(t,e){if(void 0===e&&(e=i.THROW_IF_NOT_FOUND),t===i.Injector||t===a.ComponentFactoryResolver)return this;var n=this.getInternal(t,p);return n===p?this.parent.get(t,e):n},Object.defineProperty(e.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new o.BaseException("The ng module "+s.stringify(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},e}(a.CodegenComponentFactoryResolver);e.NgModuleInjector=l},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(3),o=new Object,s=function(){function t(){}return Object.defineProperty(t.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),t}();e.TemplateRef=s;var a=function(t){function e(e,n){t.call(this),this._appElement=e,this._viewFactory=n}return r(e,t),e.prototype.createEmbeddedView=function(t){var e=this._viewFactory(this._appElement.parentView.viewUtils,this._appElement.parentInjector,this._appElement);return i.isBlank(t)&&(t=o),e.create(t,null,null),e.ref},Object.defineProperty(e.prototype,"elementRef",{get:function(){return this._appElement.elementRef},enumerable:!0,configurable:!0}),e}(s);e.TemplateRef_=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(15),i=n(10),o=n(3),s=n(118),a=function(){function t(){}return Object.defineProperty(t.prototype,"element",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),t}();e.ViewContainerRef=a;var u=function(){function t(t){this._element=t,this._createComponentInContainerScope=s.wtfCreateScope("ViewContainerRef#createComponent()"),this._insertScope=s.wtfCreateScope("ViewContainerRef#insert()"),this._removeScope=s.wtfCreateScope("ViewContainerRef#remove()"),this._detachScope=s.wtfCreateScope("ViewContainerRef#detach()")}return t.prototype.get=function(t){return this._element.nestedViews[t].ref},Object.defineProperty(t.prototype,"length",{get:function(){var t=this._element.nestedViews;return o.isPresent(t)?t.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=-1);var r=t.createEmbeddedView(e);return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r){void 0===e&&(e=-1),void 0===n&&(n=null),void 0===r&&(r=null);var i=this._createComponentInContainerScope(),a=o.isPresent(n)?n:this._element.parentInjector,u=t.create(a,r);return this.insert(u.hostView,e),s.wtfLeave(i,u)},t.prototype.insert=function(t,e){void 0===e&&(e=-1);var n=this._insertScope();-1==e&&(e=this.length);var r=t;return this._element.attachView(r.internalView,e),s.wtfLeave(n,r)},t.prototype.move=function(t,e){var n=this._insertScope();if(-1!=e){var r=t;return this._element.moveView(r.internalView,e),s.wtfLeave(n,r)}},t.prototype.indexOf=function(t){return r.ListWrapper.indexOf(this._element.nestedViews,t.internalView)},t.prototype.remove=function(t){void 0===t&&(t=-1);var e=this._removeScope();-1==t&&(t=this.length-1);var n=this._element.detachView(t);n.destroy(),s.wtfLeave(e)},t.prototype.detach=function(t){void 0===t&&(t=-1);var e=this._detachScope();-1==t&&(t=this.length-1);var n=this._element.detachView(t);return s.wtfLeave(e,n.ref)},t.prototype.clear=function(){for(var t=this.length-1;t>=0;t--)this.remove(t)},t}();e.ViewContainerRef_=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(110),o=n(10),s=function(){function t(){}return Object.defineProperty(t.prototype,"destroyed",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),t}();e.ViewRef=s;var a=function(t){function e(){t.apply(this,arguments)}return r(e,t),Object.defineProperty(e.prototype,"context",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootNodes",{get:function(){return o.unimplemented()},enumerable:!0,configurable:!0}),e}(s);e.EmbeddedViewRef=a;var u=function(){function t(t){this._view=t,this._view=t,this._originalMode=this._view.cdMode}return Object.defineProperty(t.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},t.prototype.detach=function(){this._view.cdMode=i.ChangeDetectorStatus.Detached},t.prototype.detectChanges=function(){this._view.detectChanges(!1)},t.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},t.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},t.prototype.onDestroy=function(t){this._view.disposables.push(t)},t.prototype.destroy=function(){this._view.destroy()},t}();e.ViewRef_=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(292),i=n(293),o=n(295),s=n(292);e.ANALYZE_FOR_ENTRY_COMPONENTS=s.ANALYZE_FOR_ENTRY_COMPONENTS,e.AttributeMetadata=s.AttributeMetadata,e.ContentChildMetadata=s.ContentChildMetadata,e.ContentChildrenMetadata=s.ContentChildrenMetadata,e.QueryMetadata=s.QueryMetadata,e.ViewChildMetadata=s.ViewChildMetadata,e.ViewChildrenMetadata=s.ViewChildrenMetadata,e.ViewQueryMetadata=s.ViewQueryMetadata;var a=n(293);e.ComponentMetadata=a.ComponentMetadata,e.DirectiveMetadata=a.DirectiveMetadata,e.HostBindingMetadata=a.HostBindingMetadata,e.HostListenerMetadata=a.HostListenerMetadata,e.InputMetadata=a.InputMetadata,e.OutputMetadata=a.OutputMetadata,e.PipeMetadata=a.PipeMetadata;var u=n(294);e.AfterContentChecked=u.AfterContentChecked,e.AfterContentInit=u.AfterContentInit,e.AfterViewChecked=u.AfterViewChecked,e.AfterViewInit=u.AfterViewInit,e.DoCheck=u.DoCheck,e.OnChanges=u.OnChanges,e.OnDestroy=u.OnDestroy,e.OnInit=u.OnInit;var c=n(295);e.CUSTOM_ELEMENTS_SCHEMA=c.CUSTOM_ELEMENTS_SCHEMA,e.NgModuleMetadata=c.NgModuleMetadata;var p=n(296);e.ViewEncapsulation=p.ViewEncapsulation,e.ViewMetadata=p.ViewMetadata;var l=n(119);e.Component=l.makeDecorator(i.ComponentMetadata),e.Directive=l.makeDecorator(i.DirectiveMetadata),e.Attribute=l.makeParamDecorator(r.AttributeMetadata),e.Query=l.makeParamDecorator(r.QueryMetadata),e.ContentChildren=l.makePropDecorator(r.ContentChildrenMetadata),e.ContentChild=l.makePropDecorator(r.ContentChildMetadata),e.ViewChildren=l.makePropDecorator(r.ViewChildrenMetadata),e.ViewChild=l.makePropDecorator(r.ViewChildMetadata),e.ViewQuery=l.makeParamDecorator(r.ViewQueryMetadata),e.Pipe=l.makeDecorator(i.PipeMetadata),e.Input=l.makePropDecorator(i.InputMetadata),e.Output=l.makePropDecorator(i.OutputMetadata),e.HostBinding=l.makePropDecorator(i.HostBindingMetadata),e.HostListener=l.makePropDecorator(i.HostListenerMetadata),e.NgModule=l.makeDecorator(o.NgModuleMetadata)},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(113),o=n(56),s=n(279),a=n(3);e.ANALYZE_FOR_ENTRY_COMPONENTS=new s.OpaqueToken("AnalyzeForEntryComponents");var u=function(t){function e(e){t.call(this),this.attributeName=e}return r(e,t),Object.defineProperty(e.prototype,"token",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"@Attribute("+a.stringify(this.attributeName)+")"},e}(o.DependencyMetadata);e.AttributeMetadata=u;var c=function(t){function e(e,n){var r=void 0===n?{}:n,i=r.descendants,o=void 0===i?!1:i,s=r.first,a=void 0===s?!1:s,u=r.read,c=void 0===u?null:u;t.call(this),this._selector=e,this.descendants=o,this.first=a,this.read=c}return r(e,t),Object.defineProperty(e.prototype,"isViewQuery",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selector",{get:function(){return i.resolveForwardRef(this._selector)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVarBindingQuery",{get:function(){return a.isString(this.selector)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"varBindings",{get:function(){return a.StringWrapper.split(this.selector,/\s*,\s*/g)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"@Query("+a.stringify(this.selector)+")"},e}(o.DependencyMetadata);e.QueryMetadata=c;var p=function(t){function e(e,n){var r=void 0===n?{}:n,i=r.descendants,o=void 0===i?!1:i,s=r.read,a=void 0===s?null:s;t.call(this,e,{descendants:o,read:a})}return r(e,t),e}(c);e.ContentChildrenMetadata=p;var l=function(t){function e(e,n){var r=(void 0===n?{}:n).read,i=void 0===r?null:r;t.call(this,e,{descendants:!0,first:!0,read:i})}return r(e,t),e}(c);e.ContentChildMetadata=l;var f=function(t){function e(e,n){var r=void 0===n?{}:n,i=r.descendants,o=void 0===i?!1:i,s=r.first,a=void 0===s?!1:s,u=r.read,c=void 0===u?null:u;t.call(this,e,{descendants:o,first:a,read:c})}return r(e,t),Object.defineProperty(e.prototype,"isViewQuery",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"@ViewQuery("+a.stringify(this.selector)+")"},e}(c);e.ViewQueryMetadata=f;var h=function(t){function e(e,n){var r=(void 0===n?{}:n).read,i=void 0===r?null:r;t.call(this,e,{descendants:!0,read:i})}return r(e,t),e}(f);e.ViewChildrenMetadata=h;var d=function(t){function e(e,n){var r=(void 0===n?{}:n).read,i=void 0===r?null:r;t.call(this,e,{descendants:!0,first:!0,read:i})}return r(e,t),e}(f);e.ViewChildMetadata=d},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(110),o=n(56),s=n(3),a=function(t){function e(e){var n=void 0===e?{}:e,r=n.selector,i=n.inputs,o=n.outputs,s=n.properties,a=n.events,u=n.host,c=n.providers,p=n.exportAs,l=n.queries;t.call(this),this.selector=r,this._inputs=i,this._properties=s,this._outputs=o,this._events=a,this.host=u,this.exportAs=p,this.queries=l,this._providers=c}return r(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return s.isPresent(this._properties)&&this._properties.length>0?this._properties:this._inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"properties",{get:function(){return this.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return s.isPresent(this._events)&&this._events.length>0?this._events:this._outputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this.outputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providers",{get:function(){return this._providers},enumerable:!0,configurable:!0}),e}(o.InjectableMetadata);e.DirectiveMetadata=a;var u=function(t){function e(e){var n=void 0===e?{}:e,r=n.selector,o=n.inputs,s=n.outputs,a=n.properties,u=n.events,c=n.host,p=n.exportAs,l=n.moduleId,f=n.providers,h=n.viewProviders,d=n.changeDetection,v=void 0===d?i.ChangeDetectionStrategy.Default:d,y=n.queries,m=n.templateUrl,g=n.template,_=n.styleUrls,b=n.styles,w=n.animations,E=n.directives,S=n.pipes,C=n.encapsulation,P=n.interpolation,O=n.entryComponents;t.call(this,{selector:r,inputs:o,outputs:s,properties:a,events:u,host:c,exportAs:p,providers:f,queries:y}),this.changeDetection=v,this._viewProviders=h,this.templateUrl=m,this.template=g,this.styleUrls=_,this.styles=b,this.directives=E,this.pipes=S,this.encapsulation=C,this.moduleId=l,this.animations=w,this.interpolation=P,this.entryComponents=O}return r(e,t),Object.defineProperty(e.prototype,"viewProviders",{get:function(){return this._viewProviders},enumerable:!0,configurable:!0}),e}(a);e.ComponentMetadata=u;var c=function(t){function e(e){var n=e.name,r=e.pure;t.call(this),this.name=n,this._pure=r}return r(e,t),Object.defineProperty(e.prototype,"pure",{get:function(){return s.isPresent(this._pure)?this._pure:!0},enumerable:!0,configurable:!0}),e}(o.InjectableMetadata);e.PipeMetadata=c;var p=function(){function t(t){this.bindingPropertyName=t}return t}();e.InputMetadata=p;var l=function(){function t(t){this.bindingPropertyName=t}return t}();e.OutputMetadata=l;var f=function(){function t(t){this.hostPropertyName=t}return t}();e.HostBindingMetadata=f;var h=function(){function t(t,e){this.eventName=t,this.args=e}return t}();e.HostListenerMetadata=h},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";!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"}(e.LifecycleHooks||(e.LifecycleHooks={}));var n=e.LifecycleHooks;e.LIFECYCLE_HOOKS_VALUES=[n.OnInit,n.OnDestroy,n.DoCheck,n.OnChanges,n.AfterContentInit,n.AfterContentChecked,n.AfterViewInit,n.AfterViewChecked];var r=function(){function t(){}return t}();e.OnChanges=r;var i=function(){function t(){}return t}();e.OnInit=i;var o=function(){function t(){}return t}();e.DoCheck=o;var s=function(){function t(){}return t}();e.OnDestroy=s;var a=function(){function t(){}return t}();e.AfterContentInit=a;var u=function(){function t(){}return t}();e.AfterContentChecked=u;var c=function(){function t(){}return t}();e.AfterViewInit=c;var p=function(){function t(){}return t}();e.AfterViewChecked=p},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(56);e.CUSTOM_ELEMENTS_SCHEMA={name:"custom-elements"};var o=function(t){function e(e){void 0===e&&(e={}),t.call(this),this._providers=e.providers,this.declarations=e.declarations,this.imports=e.imports,this.exports=e.exports,this.entryComponents=e.entryComponents,this.bootstrap=e.bootstrap,this.schemas=e.schemas}return r(e,t),Object.defineProperty(e.prototype,"providers",{get:function(){return this._providers},enumerable:!0,configurable:!0}),e}(i.InjectableMetadata);e.NgModuleMetadata=o},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";!function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None"}(e.ViewEncapsulation||(e.ViewEncapsulation={}));var n=e.ViewEncapsulation;e.VIEW_ENCAPSULATION_VALUES=[n.Emulated,n.Native,n.None];var r=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,i=e.directives,o=e.pipes,s=e.encapsulation,a=e.styles,u=e.styleUrls,c=e.animations,p=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=u,this.styles=a,this.directives=i,this.pipes=o,this.encapsulation=s,this.animations=c,this.interpolation=p}return t}();e.ViewMetadata=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[],i=Object.create(n.prototype);return n.apply(i,r),i}):[]}var i=n(3),o=function(){function t(t){this._reflect=i.isPresent(t)?t:i.global.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){switch(t.length){case 0:return function(){return new t};case 1:return function(e){return new t(e)};case 2:return function(e,n){return new t(e,n)};case 3:return function(e,n,r){return new t(e,n,r)};case 4:return function(e,n,r,i){return new t(e,n,r,i)};case 5:return function(e,n,r,i,o){return new t(e,n,r,i,o)};case 6:return function(e,n,r,i,o,s){return new t(e,n,r,i,o,s)};case 7:return function(e,n,r,i,o,s,a){return new t(e,n,r,i,o,s,a)};case 8:return function(e,n,r,i,o,s,a,u){return new t(e,n,r,i,o,s,a,u)};case 9:return function(e,n,r,i,o,s,a,u,c){return new t(e,n,r,i,o,s,a,u,c)};case 10:return function(e,n,r,i,o,s,a,u,c,p){return new t(e,n,r,i,o,s,a,u,c,p)};case 11:return function(e,n,r,i,o,s,a,u,c,p,l){return new t(e,n,r,i,o,s,a,u,c,p,l)};case 12:return function(e,n,r,i,o,s,a,u,c,p,l,f){return new t(e,n,r,i,o,s,a,u,c,p,l,f)};case 13:return function(e,n,r,i,o,s,a,u,c,p,l,f,h){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h)};case 14:return function(e,n,r,i,o,s,a,u,c,p,l,f,h,d){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h,d)};case 15:return function(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v)};case 16:return function(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y)};case 17:return function(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m)};case 18:return function(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m,g){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m,g)};case 19:return function(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m,g,_){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m,g,_)};case 20:return function(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m,g,_,b){return new t(e,n,r,i,o,s,a,u,c,p,l,f,h,d,v,y,m,g,_,b)}}throw new Error("Cannot create a factory for '"+i.stringify(t)+"' because its constructor has more than 20 arguments")},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n="undefined"==typeof t?new Array(e.length):new Array(t.length);for(var r=0;r\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n \n \n
\n \n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n ',ngModelWithFormGroup:'\n \n
\n \n \n
\n \n \n \n
\n '}},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(59),i=n(302),o=function(){function t(){}return t.modelParentException=function(){throw new r.BaseException('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+i.FormErrorExamples.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+i.FormErrorExamples.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new r.BaseException("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+i.FormErrorExamples.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+i.FormErrorExamples.ngModelGroup)},t.missingNameException=function(){throw new r.BaseException('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new r.BaseException("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+i.FormErrorExamples.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+i.FormErrorExamples.ngModelGroup)},t}();e.TemplateDrivenErrors=o},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this,e)}return n(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),e}(Error);e.BaseWrappedException=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(304),i=n(30),o=n(19),s=function(){function t(){this.res=[]}return t.prototype.log=function(t){this.res.push(t)},t.prototype.logError=function(t){this.res.push(t)},t.prototype.logGroup=function(t){this.res.push(t)},t.prototype.logGroupEnd=function(){},t}(),a=function(){function t(t,e){void 0===e&&(e=!0),this._logger=t,this._rethrowException=e}return t.exceptionToString=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=new s,o=new t(i,!1);return o.call(e,n,r),i.res.join("\n")},t.prototype.call=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=this._findOriginalException(t),i=this._findOriginalStack(t),s=this._findContext(t);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(t)),o.isPresent(e)&&o.isBlank(i)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(e))),o.isPresent(n)&&this._logger.logError("REASON: "+n),o.isPresent(r)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(r)),o.isPresent(i)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(i))),o.isPresent(s)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(s)),this._logger.logGroupEnd(),this._rethrowException)throw t},t.prototype._extractMessage=function(t){return t instanceof r.BaseWrappedException?t.wrapperMessage:t.toString()},t.prototype._longStackTrace=function(t){return i.isListLikeIterable(t)?t.join("\n\n-----async gap-----\n"):t.toString()},t.prototype._findContext=function(t){try{return t instanceof r.BaseWrappedException?o.isPresent(t.context)?t.context:this._findContext(t.originalException):null}catch(e){return null}},t.prototype._findOriginalException=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t.originalException;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t,n=t.originalStack;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException,e instanceof r.BaseWrappedException&&o.isPresent(e.originalException)&&(n=e.originalStack);return n},t}();e.ExceptionHandler=a},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t}();e.PromiseCompleter=n;var r=function(){function t(){}return t.resolve=function(t){return Promise.resolve(t)},t.reject=function(t,e){return Promise.reject(t)},t.catchError=function(t,e){return t["catch"](e)},t.all=function(t){return 0==t.length?Promise.resolve([]):Promise.all(t)},t.then=function(t,e,n){return t.then(e,n)},t.wrap=function(t){return new Promise(function(e,n){try{e(t())}catch(r){n(r)}})},t.scheduleMicrotask=function(e){t.then(t.resolve(null),e,function(t){})},t.completer=function(){return new n},t}();e.PromiseWrapper=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(30),o=n(19),s=n(127),a=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=o.isPresent(e)?i.StringMapWrapper.get(e,"optionals"):null,a=o.isPresent(e)?i.StringMapWrapper.get(e,"validator"):null,u=o.isPresent(e)?i.StringMapWrapper.get(e,"asyncValidator"):null;return new s.FormGroup(n,r,a,u)},t.prototype.control=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),new s.FormControl(t,e,n)},t.prototype.array=function(t,e,n){var r=this;void 0===e&&(e=null),void 0===n&&(n=null);var i=t.map(function(t){return r._createControl(t)});return new s.FormArray(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return i.StringMapWrapper.forEach(t,function(t,r){n[r]=e._createControl(t)}),n},t.prototype._createControl=function(t){if(t instanceof s.FormControl||t instanceof s.FormGroup||t instanceof s.FormArray)return t;if(o.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t.decorators=[{type:r.Injectable}],t}();e.FormBuilder=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(){return null===a&&(a=o.global[e.JSONP_HOME]={}),a}var i=n(2),o=n(24),s=0;e.JSONP_HOME="__ng_jsonp__";var a=null,u=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+s++},t.prototype.requestCallback=function(t){return e.JSONP_HOME+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var n=r();n[t]=e},t.prototype.removeConnection=function(t){var e=r();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t.decorators=[{type:i.Injectable}],t}();e.BrowserJsonp=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=n(1),s=n(128),a=n(47),u=n(129),c=n(24),p=n(82),l=n(206),f=n(308),h="JSONP injected script did not invoke callback.",d="JSONP requests must use GET request method.",v=function(){function t(){}return t}();e.JSONPConnection=v;var y=function(t){function e(e,n,r){var i=this;if(t.call(this),this._dom=n,this.baseResponseOptions=r,this._finished=!1,e.method!==a.RequestMethod.Get)throw u.makeTypeError(d);this.request=e,this.response=new o.Observable(function(t){i.readyState=a.ReadyState.Loading;var o=i._id=n.nextRequestID();n.exposeConnection(o,i);var u=n.requestCallback(i._id),p=e.url;p.indexOf("=JSONP_CALLBACK&")>-1?p=c.StringWrapper.replace(p,"=JSONP_CALLBACK&","="+u+"&"):p.lastIndexOf("=JSONP_CALLBACK")===p.length-"=JSONP_CALLBACK".length&&(p=p.substring(0,p.length-"=JSONP_CALLBACK".length)+("="+u));var f=i._script=n.build(p),d=function(e){if(i.readyState!==a.ReadyState.Cancelled){if(i.readyState=a.ReadyState.Done,n.cleanup(f),!i._finished){var o=new s.ResponseOptions({body:h,type:a.ResponseType.Error,url:p});return c.isPresent(r)&&(o=r.merge(o)),void t.error(new l.Response(o))}var u=new s.ResponseOptions({body:i._responseData,url:p});c.isPresent(i.baseResponseOptions)&&(u=i.baseResponseOptions.merge(u)),t.next(new l.Response(u)),t.complete()}},v=function(e){if(i.readyState!==a.ReadyState.Cancelled){i.readyState=a.ReadyState.Done,n.cleanup(f);var o=new s.ResponseOptions({body:e.message,type:a.ResponseType.Error});c.isPresent(r)&&(o=r.merge(o)),t.error(new l.Response(o))}};return f.addEventListener("load",d),f.addEventListener("error",v),n.send(f),function(){i.readyState=a.ReadyState.Cancelled,f.removeEventListener("load",d),f.removeEventListener("error",v),c.isPresent(f)&&i._dom.cleanup(f)}})}return r(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==a.ReadyState.Cancelled&&(this._responseData=t)},e}(v);e.JSONPConnection_=y;var m=function(t){function e(){t.apply(this,arguments)}return r(e,t),e}(p.ConnectionBackend);e.JSONPBackend=m;var g=function(t){function e(e,n){t.call(this),this._browserJSONP=e,this._baseResponseOptions=n}return r(e,t),e.prototype.createConnection=function(t){return new y(t,this._browserJSONP,this._baseResponseOptions)},e.decorators=[{type:i.Injectable}],e.ctorParameters=[{type:f.BrowserJsonp},{type:s.ResponseOptions}],e}(m);e.JSONPBackend_=g},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(2),i=n(84),o=n(1),s=n(128),a=n(47),u=n(24),c=n(81),p=n(130),l=n(82),f=n(206),h=n(203),d=/^\)\]\}',?\n/,v=function(){function t(t,e,n){var r=this;this.request=t,this.response=new o.Observable(function(i){var o=e.build();o.open(a.RequestMethod[t.method].toUpperCase(),t.url),u.isPresent(t.withCredentials)&&(o.withCredentials=t.withCredentials);var l=function(){var t=u.isPresent(o.response)?o.response:o.responseText;u.isString(t)&&(t=t.replace(d,""));var e=c.Headers.fromResponseHeaderString(o.getAllResponseHeaders()),r=p.getResponseURL(o),a=1223===o.status?204:o.status;0===a&&(a=t?200:0);var l=o.statusText||"OK",h=new s.ResponseOptions({body:t,status:a,headers:e,statusText:l,url:r});u.isPresent(n)&&(h=n.merge(h));var v=new f.Response(h);return v.ok=p.isSuccess(a),v.ok?(i.next(v),void i.complete()):void i.error(v)},h=function(t){var e=new s.ResponseOptions({body:t,type:a.ResponseType.Error,status:o.status,statusText:o.statusText});u.isPresent(n)&&(e=n.merge(e)),i.error(new f.Response(e))};if(r.setDetectedContentType(t,o),u.isPresent(t.headers)&&t.headers.forEach(function(t,e){return o.setRequestHeader(e,t.join(","))}),u.isPresent(t.responseType)&&u.isPresent(o.responseType))switch(t.responseType){case a.ResponseContentType.ArrayBuffer:o.responseType="arraybuffer";break;case a.ResponseContentType.Json:o.responseType="json";break;case a.ResponseContentType.Text:o.responseType="text";break;case a.ResponseContentType.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",l),o.addEventListener("error",h),o.send(r.request.getBody()),function(){o.removeEventListener("load",l),o.removeEventListener("error",h),o.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(!u.isPresent(t.headers)||!u.isPresent(t.headers.get("Content-Type")))switch(t.contentType){case a.ContentType.NONE:break;case a.ContentType.JSON:e.setRequestHeader("content-type","application/json");break;case a.ContentType.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case a.ContentType.TEXT:e.setRequestHeader("content-type","text/plain");break;case a.ContentType.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}();e.XHRConnection=v;var y=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=i.__platform_browser_private__.getDOM().getCookie(this._cookieName);e&&!t.headers.has(this._headerName)&&t.headers.set(this._headerName,e)},t}();e.CookieXSRFStrategy=y;var m=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new v(t,this._browserXHR,this._baseResponseOptions)},t.decorators=[{type:r.Injectable}],t.ctorParameters=[{type:h.BrowserXhr},{type:s.ResponseOptions},{type:l.XSRFStrategy}],t}();e.XHRBackend=m},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(24),i=n(130),o=n(131),s=function(){function t(){}return t.prototype.json=function(){return r.isString(this._body)?r.Json.parse(this._body):this._body instanceof ArrayBuffer?r.Json.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof o.URLSearchParams?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):i.isJsObject(this._body)?r.Json.stringify(this._body):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:i.stringToArrayBuffer(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}();e.Body=s},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this,e)}return n(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),e}(Error);e.BaseWrappedException=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(312),i=n(205),o=n(24),s=function(){function t(){this.res=[]}return t.prototype.log=function(t){this.res.push(t)},t.prototype.logError=function(t){this.res.push(t)},t.prototype.logGroup=function(t){this.res.push(t)},t.prototype.logGroupEnd=function(){},t}(),a=function(){function t(t,e){void 0===e&&(e=!0),this._logger=t,this._rethrowException=e}return t.exceptionToString=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=new s,o=new t(i,!1);return o.call(e,n,r),i.res.join("\n")},t.prototype.call=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=this._findOriginalException(t),i=this._findOriginalStack(t),s=this._findContext(t);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(t)),o.isPresent(e)&&o.isBlank(i)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(e))),o.isPresent(n)&&this._logger.logError("REASON: "+n),o.isPresent(r)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(r)),o.isPresent(i)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(i))),o.isPresent(s)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(s)),this._logger.logGroupEnd(),this._rethrowException)throw t},t.prototype._extractMessage=function(t){return t instanceof r.BaseWrappedException?t.wrapperMessage:t.toString()},t.prototype._longStackTrace=function(t){return i.isListLikeIterable(t)?t.join("\n\n-----async gap-----\n"):t.toString()},t.prototype._findContext=function(t){try{return t instanceof r.BaseWrappedException?o.isPresent(t.context)?t.context:this._findContext(t.originalException):null}catch(e){return null}},t.prototype._findOriginalException=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t.originalException;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t,n=t.originalStack;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException,e instanceof r.BaseWrappedException&&o.isPresent(e.originalException)&&(n=e.originalStack);return n},t}();e.ExceptionHandler=a},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(t,e){return t.createConnection(e).response}function i(t,e,n,r){var i=t;return u.isPresent(e)?i.merge(new c.RequestOptions({method:e.method||n,url:e.url||r,search:e.search,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):u.isPresent(n)?i.merge(new c.RequestOptions({method:n,url:r})):i.merge(new c.RequestOptions({url:r}))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(2),a=n(129),u=n(24),c=n(204),p=n(47),l=n(82),f=n(315),h=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if(u.isString(t))n=r(this._backend,new f.Request(i(this._defaultOptions,e,p.RequestMethod.Get,t)));else{if(!(t instanceof f.Request))throw a.makeTypeError("First argument must be a url string or Request instance.");n=r(this._backend,t)}return n},t.prototype.get=function(t,e){return r(this._backend,new f.Request(i(this._defaultOptions,e,p.RequestMethod.Get,t)))},t.prototype.post=function(t,e,n){return r(this._backend,new f.Request(i(this._defaultOptions.merge(new c.RequestOptions({body:e})),n,p.RequestMethod.Post,t)))},t.prototype.put=function(t,e,n){return r(this._backend,new f.Request(i(this._defaultOptions.merge(new c.RequestOptions({body:e})),n,p.RequestMethod.Put,t)))},t.prototype["delete"]=function(t,e){return r(this._backend,new f.Request(i(this._defaultOptions,e,p.RequestMethod.Delete,t)))},t.prototype.patch=function(t,e,n){return r(this._backend,new f.Request(i(this._defaultOptions.merge(new c.RequestOptions({body:e})),n,p.RequestMethod.Patch,t)))},t.prototype.head=function(t,e){return r(this._backend,new f.Request(i(this._defaultOptions,e,p.RequestMethod.Head,t)))},t.decorators=[{type:s.Injectable}],t.ctorParameters=[{type:l.ConnectionBackend},{type:c.RequestOptions}],t}();e.Http=h;var d=function(t){function e(e,n){t.call(this,e,n)}return o(e,t),e.prototype.request=function(t,e){var n;if(u.isString(t)&&(t=new f.Request(i(this._defaultOptions,e,p.RequestMethod.Get,t))),!(t instanceof f.Request))throw a.makeTypeError("First argument must be a url string or Request instance.");return t.method!==p.RequestMethod.Get&&a.makeTypeError("JSONP requests must use GET request method."),n=r(this._backend,t)},e.decorators=[{type:s.Injectable}],e.ctorParameters=[{type:l.ConnectionBackend},{type:c.RequestOptions}],e}(h);e.Jsonp=d},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(24),o=n(311),s=n(47),a=n(81),u=n(130),c=n(131),p=function(t){function e(e){t.call(this);var n=e.url;if(this.url=e.url,i.isPresent(e.search)){var r=e.search.toString();if(r.length>0){var o="?";i.StringWrapper.contains(this.url,"?")&&(o="&"==this.url[this.url.length-1]?"":"&"),this.url=n+o+r}}this._body=e.body,this.method=u.normalizeMethodName(e.method),this.headers=new a.Headers(e.headers),this.contentType=this.detectContentType(),this.withCredentials=e.withCredentials,this.responseType=e.responseType}return r(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return s.ContentType.JSON;case"application/x-www-form-urlencoded":return s.ContentType.FORM;case"multipart/form-data":return s.ContentType.FORM_DATA;case"text/plain":case"text/html":return s.ContentType.TEXT;case"application/octet-stream":return s.ContentType.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?s.ContentType.NONE:this._body instanceof c.URLSearchParams?s.ContentType.FORM:this._body instanceof h?s.ContentType.FORM_DATA:this._body instanceof d?s.ContentType.BLOB:this._body instanceof v?s.ContentType.ARRAY_BUFFER:this._body&&"object"==typeof this._body?s.ContentType.JSON:s.ContentType.TEXT},e.prototype.getBody=function(){switch(this.contentType){case s.ContentType.JSON:return this.text();case s.ContentType.FORM:return this.text();case s.ContentType.FORM_DATA:return this._body;case s.ContentType.TEXT:return this.text();case s.ContentType.BLOB:return this.blob();case s.ContentType.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(o.Body);e.Request=p;var l=function(){},f="object"==typeof window?window:l,h=f.FormData||l,d=f.Blob||l,v=f.ArrayBuffer||l},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},r=function(t){function e(e){t.call(this,e)}return n(e,t),Object.defineProperty(e.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),e}(Error);e.BaseWrappedException=r},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var r=n(316),i=n(433),o=n(132),s=function(){function t(){this.res=[]}return t.prototype.log=function(t){this.res.push(t)},t.prototype.logError=function(t){this.res.push(t)},t.prototype.logGroup=function(t){this.res.push(t)},t.prototype.logGroupEnd=function(){},t}(),a=function(){function t(t,e){void 0===e&&(e=!0),this._logger=t,this._rethrowException=e}return t.exceptionToString=function(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=new s,o=new t(i,!1);return o.call(e,n,r),i.res.join("\n")},t.prototype.call=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=this._findOriginalException(t),i=this._findOriginalStack(t),s=this._findContext(t);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(t)),o.isPresent(e)&&o.isBlank(i)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(e))),o.isPresent(n)&&this._logger.logError("REASON: "+n),o.isPresent(r)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(r)),o.isPresent(i)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(i))),o.isPresent(s)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(s)),this._logger.logGroupEnd(),this._rethrowException)throw t},t.prototype._extractMessage=function(t){return t instanceof r.BaseWrappedException?t.wrapperMessage:t.toString()},t.prototype._longStackTrace=function(t){return i.isListLikeIterable(t)?t.join("\n\n-----async gap-----\n"):t.toString()},t.prototype._findContext=function(t){try{return t instanceof r.BaseWrappedException?o.isPresent(t.context)?t.context:this._findContext(t.originalException):null}catch(e){return null}},t.prototype._findOriginalException=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t.originalException;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof r.BaseWrappedException))return null;for(var e=t,n=t.originalStack;e instanceof r.BaseWrappedException&&o.isPresent(e.originalException);)e=e.originalException,e instanceof r.BaseWrappedException&&o.isPresent(e.originalException)&&(n=e.originalStack);return n},t}();e.ExceptionHandler=a},function(t,e){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";var n=function(){function t(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t}();e.PromiseCompleter=n;var r=function(){function t(){}return t.resolve=function(t){return Promise.resolve(t)},t.reject=function(t,e){return Promise.reject(t)},t.catchError=function(t,e){return t["catch"](e)},t.all=function(t){return 0==t.length?Promise.resolve([]):Promise.all(t)},t.then=function(t,e,n){return t.then(e,n)},t.wrap=function(t){return new Promise(function(e,n){try{e(t())}catch(r){n(r)}})},t.scheduleMicrotask=function(e){t.then(t.resolve(null),e,function(t){})},t.completer=function(){return new n},t}();e.PromiseWrapper=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(100),o=n(2),s=n(132),a=n(318),u=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.get=function(t){var e=a.PromiseWrapper.completer(),n=new XMLHttpRequest;return n.open("GET",t,!0),n.responseType="text",n.onload=function(){var r=s.isPresent(n.response)?n.response:n.responseText,i=1223===n.status?204:n.status;0===i&&(i=r?200:0),i>=200&&300>=i?e.resolve(r):e.reject("Failed to load "+t,null)},n.onerror=function(){e.reject("Failed to load "+t,null)},n.send(),e.promise},e.decorators=[{type:o.Injectable}],e}(i.XHR);e.XHRImpl=u},function(t,e,n){/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
"use strict";function r(){return c.isBlank(y)&&(y=document.querySelector("base"),c.isBlank(y))?null:y.getAttribute("href")}function i(t){return c.isBlank(m)&&(m=document.createElement("a")),m.setAttribute("href",t),"/"===m.pathname.charAt(0)?m.pathname:"/"+m.pathname}function o(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n