webpackJsonp([1],[function(t,e,n){"use strict";n(129),n(318),n(1),n(31),n(87),n(22),n(527),n(504)},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(442)),r(n(448)),r(n(74));var i=n(177);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.createNgZone=i.createNgZone,e.PlatformRef=i.PlatformRef,e.ApplicationRef=i.ApplicationRef,e.enableProdMode=i.enableProdMode,e.lockRunMode=i.lockRunMode,e.isDevMode=i.isDevMode;var o=n(112);e.APP_ID=o.APP_ID,e.APP_INITIALIZER=o.APP_INITIALIZER,e.PACKAGE_ROOT_URL=o.PACKAGE_ROOT_URL,e.PLATFORM_INITIALIZER=o.PLATFORM_INITIALIZER,r(n(449)),r(n(447)),r(n(436));var s=n(286);e.DebugElement=s.DebugElement,e.DebugNode=s.DebugNode,e.asNativeElements=s.asNativeElements,e.getDebugNode=s.getDebugNode,r(n(192)),r(n(430)),r(n(444)),r(n(443)),r(n(429));var a=n(118);e.wtfCreateScope=a.wtfCreateScope,e.wtfLeave=a.wtfLeave,e.wtfStartTimeRange=a.wtfStartTimeRange,e.wtfEndTimeRange=a.wtfEndTimeRange;var u=n(4);e.Type=u.Type;var c=n(60);e.EventEmitter=c.EventEmitter;var p=n(12);e.ExceptionHandler=p.ExceptionHandler,e.WrappedException=p.WrappedException,e.BaseException=p.BaseException,r(n(422)),r(n(282));var l=n(111);e.AnimationPlayer=l.AnimationPlayer},function(t,e,n){"use strict";var r=n(33),i=n(144),o=n(734),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(t){r(t),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){(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 h(t){return l(t)&&Object.getPrototypeOf(t)===j}function f(t){return t instanceof L.Promise}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.name)return t.name;if(t.overriddenName)return t.overriddenName;var e=t.toString(),n=e.indexOf("\n");return n===-1?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)&&t}function P(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function A(t){console.log(t)}function O(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;ee?1:0},t}();e.StringWrapper=B;var F=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=F;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 z=function(){function t(){}return t.next=function(t){return t.re.exec(t.input)},t}();e.RegExpMatcherWrapper=z;var q=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=q,e.looseIdentical=w,e.getMapKey=E,e.normalizeBlank=S,e.normalizeBool=C,e.isJsObject=P,e.print=A,e.warn=O;var G=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=G;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=k,e.escapeRegExp=N}).call(e,function(){return this}())},3,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(148),o=n(27),s=n(145),a=n(525),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(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parent;this._context=null,this._parent=null,t.unsubscribe()},e}(u)},3,[782,3],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(5),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i.Subscriber);e.OuterSubscriber=o},function(t,e,n){"use strict";function r(t,e,n,r){var l=new p.InnerSubscriber(t,n,r);if(!l.isUnsubscribed){if(e instanceof a.Observable)return e._isScalar?(l.next(e.value),void l.complete()):e.subscribe(l);if(o.isArray(e)){for(var h=0,f=e.length;he?{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=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(44),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){/** * @license * Copyright Google Inc. All Rights Reserved. * * Use 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},[784,246,247,247],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(3),o=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.HtmlTextAst=o;var s=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.HtmlExpansionAst=s;var a=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.HtmlExpansionCaseAst=a;var u=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.HtmlAttrAst=u;var c=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.HtmlElementAst=c;var p=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.HtmlCommentAst=p,e.htmlVisitAll=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(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},t}();e.ParseLocation=n;var r=function(){function t(t,e){this.content=t,this.url=e}return t}();e.ParseSourceFile=r;var i=function(){function t(t,e){this.start=t,this.end=e}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}();e.ParseSourceSpan=i,function(t){t[t.WARNING=0]="WARNING",t[t.FATAL=1]="FATAL"}(e.ParseErrorLevel||(e.ParseErrorLevel={}));var o=e.ParseErrorLevel,s=function(){function t(t,e,n){void 0===n&&(n=o.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;e>t.length-1&&(e=t.length-1);for(var n=e,r=0,i=0;r<100&&e>0&&(e--,r++,"\n"!=t[e]||3!=++i););for(r=0,i=0;r<100&&n]"+t.substring(this.span.start.offset,n+1);return this.msg+' ("'+o+'"): '+this.span.start},t}();e.ParseError=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){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(3),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 h=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=h;var f=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=f;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){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.sourceSpan=o}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,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.StringWrapper.replaceAllMapped(t,p,function(t){return"-"+t[1].toLowerCase()})}function i(t,e){var n=c.StringWrapper.split(t.trim(),/\s*:\s*/g);return n.length>1?n:e}function o(t){return c.StringWrapper.replaceAll(t,/\W/g,"_")}function s(t,e,n){return c.isArray(t)?e.visitArray(t,n):c.isStrictStringMap(t)?e.visitStringMap(t,n):c.isBlank(t)||c.isPrimitive(t)?e.visitPrimitive(t,n):e.visitOther(t,n)}function a(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),c.IS_DART?null==e?"asset:angular2/"+t+"/"+t+".dart":"asset:angular2/lib/"+t+"/src/"+e+".dart":null==e?"asset:@angular/lib/"+t+"/index":"asset:@angular/lib/"+t+"/src/"+e}var u=n(7),c=n(3);e.MODULE_SUFFIX=c.IS_DART?".dart":"";var p=/([A-Z])/g;e.camelCaseToDashCase=r,e.splitAtColon=i,e.sanitizeIdentifier=o,e.visitValue=s;var l=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return s(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return u.StringMapWrapper.forEach(t,function(t,i){r[i]=s(t,n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}();e.ValueTransformer=l,e.assetUrl=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(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},[784,326,327,327],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_OUTLET"},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 S(new C([],{}),{},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.pathsWithParams,e.pathsWithParams))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.pathsWithParams)}function a(t,e,n){if(t.pathsWithParams.length>n.length){var r=t.pathsWithParams.slice(0,n.length);return!!c(r,n)&&!e.hasChildren()}if(t.pathsWithParams.length===n.length){if(!c(t.pathsWithParams,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.pathsWithParams.length),o=n.slice(t.pathsWithParams.length);return!!c(t.pathsWithParams,r)&&!!t.children[w.PRIMARY_OUTLET]&&a(t.children[w.PRIMARY_OUTLET],e,o)}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=l(t,function(e,n){return n===w.PRIMARY_OUTLET?[f(t.children[w.PRIMARY_OUTLET],!1)]:[n+":"+f(e,!1)]});return h(t)+"/("+i.join("//")+")"}return h(t)}function d(t){return""+t.path+v(t.parameters)}function v(t){return m(t).map(function(t){return";"+t.first+"="+t.second}).join("")}function y(t){var e=m(t).map(function(t){return t.first+"="+t.second});return e.length>0?"?"+e.join("&"):""}function m(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(new T(n,t[n]));return e}function g(t){x.lastIndex=0;var e=x.exec(t);return e?e[0]:""}function _(t){R.lastIndex=0;var e=x.exec(t);return e?e[0]:""}function b(t){I.lastIndex=0;var e=I.exec(t);return e?e[0]:""}var w=n(52),E=n(81);e.createEmptyUrlTree=r,e.containsTree=i;var S=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=S;var C=function(){function t(t,e){var n=this;this.pathsWithParams=t,this.children=e,this.parent=null,E.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 h(this)},t}();e.UrlSegment=C;var P=function(){function t(t,e){this.path=t,this.parameters=e}return t.prototype.toString=function(){return d(this)},t}();e.UrlPathWithParams=P,e.equalPathsWithParams=u,e.equalPath=c,e.mapChildren=p,e.mapChildrenIntoArray=l;var A=function(){function t(){}return t}();e.UrlSerializer=A;var O=function(){function t(){}return t.prototype.parse=function(t){var e=new M(t);return new S(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+f(t.root,!0),n=y(t.queryParams),r=null!==t.fragment?"#"+t.fragment:"";return""+e+n+r},t}();e.DefaultUrlSerializer=O,e.serializePaths=h,e.serializePath=d;var T=function(){function t(t,e){this.first=t,this.second=e}return t}(),x=/^[^\/\(\)\?;=&#]+/,R=/^[^=\?&#]+/,I=/^[^\?&#]+/,M=function(){function t(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("?")?new C([],{}):new C([],this.parseSegmentChildren())},t.prototype.parseSegmentChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");for(var t=[this.parsePathWithParams()];this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parsePathWithParams());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),n[w.PRIMARY_OUTLET]=new C(t,e),n},t.prototype.parsePathWithParams=function(){var t=g(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 P(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("#")?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=g(this.remaining);if(e){this.capture(e);var n="true";if(this.peekStartsWith("=")){this.capture("=");var r=g(this.remaining);r&&(n=r,this.capture(n))}t[e]=n}},t.prototype.parseQueryParam=function(t){var e=_(this.remaining);if(e){this.capture(e);var n="true";if(this.peekStartsWith("=")){this.capture("=");var r=b(this.remaining);r&&(n=r,this.capture(n))}t[e]=n}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=g(this.remaining),r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=w.PRIMARY_OUTLET);var i=this.parseSegmentChildren();e[r]=1===Object.keys(i).length?i[w.PRIMARY_OUTLET]:new C([],i),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(2),o=n(225),s=n(55),a=n(67),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;s ");throw new h.BaseException(e+" '"+n+"'")}function a(t){return f.isPresent(t)?d.Validators.compose(t.map(m.normalizeValidator)):null}function u(t){return f.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()||!f.looseIdentical(e,n.currentValue)}function p(t,e){if(f.isBlank(e))return null;var n,r,i;return e.forEach(function(e){f.hasConstructor(e,y.DefaultValueAccessor)?n=e:f.hasConstructor(e,v.CheckboxControlValueAccessor)||f.hasConstructor(e,g.NumberValueAccessor)||f.hasConstructor(e,b.SelectControlValueAccessor)||f.hasConstructor(e,w.SelectMultipleControlValueAccessor)||f.hasConstructor(e,_.RadioControlValueAccessor)?(f.isPresent(r)&&s(t,"More than one built-in value accessor matches"),r=e):(f.isPresent(i)&&s(t,"More than one custom value accessor matches"),i=e)}),f.isPresent(i)?i:f.isPresent(r)?r:f.isPresent(n)?n:(s(t,"No valid value accessor for"),null)}var l=n(20),h=n(44),f=n(6),d=n(40),v=n(98),y=n(99),m=n(387),g=n(159),_=n(100),b=n(101),w=n(160);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(1),i=n(10),o=n(26),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||p,h=e.platformDirectives,f=void 0===h?[]:h,d=e.platformPipes,v=void 0===d?[]:d;this.renderTypes=i,this.defaultEncapsulation=s,this._genDebugInfo=a,this._logBindingUpdate=c,this.useJit=l,this.platformDirectives=f,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,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){return a.isBlank(t)&&(t=h.getHtmlTagDefinition(e).implicitNamespacePrefix,a.isBlank(t)&&a.isPresent(n)&&(t=h.getNsPrefix(n.name))),h.mergeNsAndName(t,e)}function i(t,e){return t.length>0&&t[t.length-1]===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(1),a=n(3),u=n(7),c=n(45),p=n(402),l=n(46),h=n(105),f=function(t){function e(e,n,r){t.call(this,n,r),this.elementName=e}return o(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(l.ParseError);e.HtmlTreeError=f;var d=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}();e.HtmlParseTreeResult=d;var v=function(){function t(){}return t.prototype.parse=function(t,e,n){void 0===n&&(n=!1);var r=p.tokenizeHtml(t,e,n),i=new y(r.tokens).build();return new d(i.rootNodes,r.errors.concat(i.errors))},t.decorators=[{type:s.Injectable}],t}();e.HtmlParser=v;var y=function(){function t(t){this.tokens=t,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return t.prototype.build=function(){for(;this.peek.type!==p.HtmlTokenType.EOF;)this.peek.type===p.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===p.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===p.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===p.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===p.HtmlTokenType.TEXT||this.peek.type===p.HtmlTokenType.RAW_TEXT||this.peek.type===p.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this.peek.type===p.HtmlTokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new d(this.rootNodes,this.errors)},t.prototype._advance=function(){var t=this.peek;return this.index0)return this.errors=this.errors.concat(o.errors),null;var s=new l.ParseSourceSpan(e.sourceSpan.start,i.sourceSpan.end),u=new l.ParseSourceSpan(n.sourceSpan.start,i.sourceSpan.end);return new c.HtmlExpansionCaseAst(e.parts[0],o.rootNodes,s,e.sourceSpan,u)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[p.HtmlTokenType.EXPANSION_CASE_EXP_START];;){if(this.peek.type!==p.HtmlTokenType.EXPANSION_FORM_START&&this.peek.type!==p.HtmlTokenType.EXPANSION_CASE_EXP_START||n.push(this.peek.type),this.peek.type===p.HtmlTokenType.EXPANSION_CASE_EXP_END){if(!i(n,p.HtmlTokenType.EXPANSION_CASE_EXP_START))return this.errors.push(f.create(null,t.sourceSpan,"Invalid expansion form. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this.peek.type===p.HtmlTokenType.EXPANSION_FORM_END){if(!i(n,p.HtmlTokenType.EXPANSION_FORM_START))return this.errors.push(f.create(null,t.sourceSpan,"Invalid expansion form. Missing '}'.")),null;n.pop()}if(this.peek.type===p.HtmlTokenType.EOF)return this.errors.push(f.create(null,t.sourceSpan,"Invalid expansion form. 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();a.isPresent(n)&&0==n.children.length&&h.getHtmlTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new c.HtmlTextAst(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var t=u.ListWrapper.last(this.elementStack);h.getHtmlTagDefinition(t.name).isVoid&&this.elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],i=[];this.peek.type===p.HtmlTokenType.ATTR_NAME;)i.push(this._consumeAttr(this._advance()));var o=r(e,n,this._getParentElement()),s=!1;this.peek.type===p.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),s=!0,null!=h.getNsPrefix(o)||h.getHtmlTagDefinition(o).isVoid||this.errors.push(f.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))):this.peek.type===p.HtmlTokenType.TAG_OPEN_END&&(this._advance(),s=!1);var a=this.peek.sourceSpan.start,u=new l.ParseSourceSpan(t.sourceSpan.start,a),d=new c.HtmlElementAst(o,i,[],u,u,null);this._pushElement(d),s&&(this._popElement(o),d.endSourceSpan=u)},t.prototype._pushElement=function(t){if(this.elementStack.length>0){var e=u.ListWrapper.last(this.elementStack);h.getHtmlTagDefinition(e.name).isClosedByChild(t.name)&&this.elementStack.pop()}var n=h.getHtmlTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(a.isPresent(i)&&n.requireExtraParent(i.name)){var s=new c.HtmlElementAst(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this.elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=r(t.parts[0],t.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),h.getHtmlTagDefinition(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 u.ListWrapper.splice(this.elementStack,e,this.elementStack.length-e),!0;if(!h.getHtmlTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=h.mergeNsAndName(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="";if(this.peek.type===p.HtmlTokenType.ATTR_VALUE){var i=this._advance();r=i.parts[0],n=i.sourceSpan.end}return new c.HtmlAttrAst(e,r,new l.ParseSourceSpan(t.sourceSpan.start,n))},t.prototype._getParentElement=function(){return this.elementStack.length>0?u.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:u.ListWrapper.last(this.elementStack),container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();a.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}()},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(f)}function o(t){var e=a(t);return e&&e[v.Scheme]||""}function s(t,e,n,r,i,o,s){var a=[];return h.isPresent(t)&&a.push(t+":"),h.isPresent(n)&&(a.push("//"),h.isPresent(e)&&a.push(e+"@"),a.push(n),h.isPresent(r)&&a.push(":"+r)),h.isPresent(i)&&a.push(i),h.isPresent(o)&&a.push("?"+o),h.isPresent(s)&&a.push("#"+s),a.join("")}function a(t){return h.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=h.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(h.isPresent(n[v.Scheme]))return c(n);n[v.Scheme]=r[v.Scheme];for(var i=v.Scheme;i<=v.Port;i++)h.isBlank(n[i])&&(n[i]=r[i]);if("/"==n[v.Path][0])return c(n);var o=r[v.Path];h.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(1),h=n(3),f="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;h.isPresent(t)&&t.length>0&&(n=p(t,n));var r=a(n),i=this._packagePrefix;if(h.isPresent(i)&&h.isPresent(r)&&"package"==r[v.Scheme]){var o=r[v.Path];if(this._packagePrefix!==f)return i=h.StringWrapper.stripRight(i,"/"),o=h.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=h.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(1),o=n(18),s=n(25),a=n(3),u=n(26),c=n(14),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 h=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=h;var f=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=f;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";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var i=n(76);e.HostMetadata=i.HostMetadata,e.InjectMetadata=i.InjectMetadata,e.InjectableMetadata=i.InjectableMetadata,e.OptionalMetadata=i.OptionalMetadata,e.SelfMetadata=i.SelfMetadata,e.SkipSelfMetadata=i.SkipSelfMetadata,r(n(75));var o=n(115);e.forwardRef=o.forwardRef,e.resolveForwardRef=o.resolveForwardRef;var s=n(181);e.Injector=s.Injector;var a=n(288);e.ReflectiveInjector=a.ReflectiveInjector;var u=n(182);e.Binding=u.Binding,e.ProviderBuilder=u.ProviderBuilder,e.bind=u.bind,e.Provider=u.Provider,e.provide=u.provide;var c=n(185);e.ResolvedReflectiveFactory=c.ResolvedReflectiveFactory;var p=n(184);e.ReflectiveKey=p.ReflectiveKey;var l=n(183);e.NoProviderError=l.NoProviderError,e.AbstractProviderError=l.AbstractProviderError,e.CyclicDependencyError=l.CyclicDependencyError,e.InstantiationError=l.InstantiationError,e.InvalidProviderError=l.InvalidProviderError,e.NoAnnotationError=l.NoAnnotationError,e.OutOfBoundsError=l.OutOfBoundsError;var h=n(433);e.OpaqueToken=h.OpaqueToken},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(120),i=n(76);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";var r=n(4),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},,3,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(1);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.SecurityContext=r.__core_private__.SecurityContext,e.SanitizationService=r.__core_private__.SanitizationService,e.reflector=r.__core_private__.reflector,e.NoOpAnimationPlayer=r.__core_private__.NoOpAnimationPlayer,e.AnimationPlayer=r.__core_private__.AnimationPlayer,e.NoOpAnimationDriver=r.__core_private__.NoOpAnimationDriver,e.AnimationDriver=r.__core_private__.AnimationDriver,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,e){var n=i(t,e),r=new u.BehaviorSubject([new p.UrlPathWithParams("",{})]),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 f(new h.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 h.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(139),c=n(52),p=n(53),l=n(81),h=n(219),f=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}(h.Tree);e.RouterState=f,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 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 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}(h.Tree);e.RouterStateSnapshot=m,e.advanceActivatedRoute=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){if(t.length!==e.length)return!1;for(var n=0;n0?t[0]:null}function s(t){return t.length>0?t[t.length-1]:null}function a(t){return t.reduce(function(t,e){return t&&e},!0)}function u(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 c(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}e.shallowEqualArrays=n,e.shallowEqual=r,e.flatten=i,e.first=o,e.last=s,e.and=a,e.merge=u,e.forEach=c},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(357);e.multicast=r},[785,151],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=i.isPresent(t.meaning)?t.meaning:"",n=i.isPresent(t.content)?t.content:"";return i.escape("$ng|"+e+"|"+n)}var i=n(3),o=function(){function t(t,e,n){void 0===n&&(n=null),this.content=t,this.meaning=e,this.description=n}return t}();e.Message=o,e.id=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,e,n){if(e===n)return t;for(var r=l.THIS_EXPR,i=e;i!==n&&p.isPresent(i.declarationElement.view);)i=i.declarationElement.view,r=r.prop("parent");if(i!==n)throw new c.BaseException("Internal error: Could not calculate a property in a parent view: "+t);if(t instanceof l.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 l.replaceVarInExpression(l.THIS_EXPR.name,r,t)}function i(t,e){var n=[s(t)];return e&&n.push(l.NULL_EXPR),l.THIS_EXPR.prop("parentInjector").callMethod("get",n)}function o(t,e){return"viewFactory_"+t.type.name+e}function s(t){return p.isPresent(t.value)?l.literal(t.value):t.identifierIsInstance?l.importExpr(t.identifier).instantiate([],l.importType(t.identifier,[],[l.TypeModifier.Const])):l.importExpr(t.identifier)}function a(t){for(var e=[],n=l.literalArr([]),r=0;r0&&(n=n.callMethod(l.BuiltinMethod.ConcatArray,[l.literalArr(e)]),e=[]),n=n.callMethod(l.BuiltinMethod.ConcatArray,[i])):e.push(i)}return e.length>0&&(n=n.callMethod(l.BuiltinMethod.ConcatArray,[l.literalArr(e)])),n}function u(t,e,n,r){r.fields.push(new l.ClassField(n.name,null));var i=e",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){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"}(e.HtmlTagContentType||(e.HtmlTagContentType={}));var u=e.HtmlTagContentType,c=function(){function t(t){var e=this,n=void 0===t?{}:t,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,s=n.contentType,c=n.closedByParent,p=n.isVoid,l=n.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,a.isPresent(r)&&r.length>0&&r.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=a.normalizeBool(p),this.closedByParent=a.normalizeBool(c)||this.isVoid,a.isPresent(i)&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=a.isPresent(s)?s:u.PARSABLE_DATA,this.ignoreFirstLf=a.normalizeBool(l)}return t.prototype.requireExtraParent=function(t){if(a.isBlank(this.requiredParents))return!1;if(a.isBlank(t))return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||a.normalizeBool(this.closedByChildren[t.toLowerCase()])},t}();e.HtmlTagDefinition=c;var p={base:new c({isVoid:!0}),meta:new c({isVoid:!0}),area:new c({isVoid:!0}),embed:new c({isVoid:!0}),link:new c({isVoid:!0}),img:new c({isVoid:!0}),input:new c({isVoid:!0}),param:new c({isVoid:!0}),hr:new c({isVoid:!0}),br:new c({isVoid:!0}),source:new c({isVoid:!0}),track:new c({isVoid:!0}),wbr:new c({isVoid:!0}),p:new c({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 c({closedByChildren:["tbody","tfoot"]}),tbody:new c({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new c({closedByChildren:["tbody"],closedByParent:!0}),tr:new c({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new c({closedByChildren:["td","th"],closedByParent:!0}),th:new c({closedByChildren:["td","th"],closedByParent:!0}),col:new c({requiredParents:["colgroup"],isVoid:!0}),svg:new c({implicitNamespacePrefix:"svg"}),math:new c({implicitNamespacePrefix:"math"}),li:new c({closedByChildren:["li"],closedByParent:!0}),dt:new c({closedByChildren:["dt","dd"]}),dd:new c({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new c({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new c({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new c({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new c({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new c({closedByChildren:["optgroup"],closedByParent:!0}),option:new c({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new c({ignoreFirstLf:!0}),listing:new c({ignoreFirstLf:!0}),style:new c({contentType:u.RAW_TEXT}),script:new c({contentType:u.RAW_TEXT}),title:new c({contentType:u.ESCAPABLE_RAW_TEXT}),textarea:new c({contentType:u.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},l=new c;e.getHtmlTagDefinition=r;var h=/^:([^:]+):(.+)/g;e.splitNsName=i,e.getNsPrefix=o,e.mergeNsAndName=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";e.DEFAULT_INTERPOLATION_CONFIG={start:"{{",end:"}}"}},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;n0&&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 h=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=h,e.escapeSingleQuoteString=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.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){return p.StringWrapper.split(t.trim(),/\s+/g)}function i(t,e){var n=new g.CssSelector,i=v.splitNsName(t)[1];n.setElement(i);for(var o=0;o0;n||e.push(t)}),e}var s=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)},a=n(1),u=n(18),c=n(7),p=n(3),l=n(10),h=n(264),f=n(169),d=n(71),v=n(105),y=n(46),m=n(47),g=n(173),_=n(108),b=n(272),w=n(271),E=n(45),S=n(48),C=n(26),P=n(414),A=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-)|(animate-|@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,O="template",T="template",x="*",R="class",I=".",M="attr",k="class",N="style",D=g.CssSelector.parse("*")[0];e.TEMPLATE_TRANSFORMS=new a.OpaqueToken("TemplateTransforms");var V=function(t){function e(e,n,r){t.call(this,n,e,r)}return s(e,t),e}(y.ParseError);e.TemplateParseError=V;var L=function(){function t(t,e){this.templateAst=t,this.errors=e}return t}();e.TemplateParseResult=L;var j=function(){function t(t,e,n,r,i){this._exprParser=t,this._schemaRegistry=e,this._htmlParser=n,this._console=r,this.transforms=i}return t.prototype.parse=function(t,e,n,r,i){var o=this.tryParse(t,e,n,r,i),s=o.errors.filter(function(t){return t.level===y.ParseErrorLevel.WARNING}),a=o.errors.filter(function(t){return t.level===y.ParseErrorLevel.FATAL});if(s.length>0&&this._console.warn("Template parse warnings:\n"+s.join("\n")),a.length>0){var u=a.join("\n");throw new l.BaseException("Template parse errors:\n"+u)}return o.templateAst},t.prototype.tryParse=function(t,e,n,r,i){var s,a=this._htmlParser.parse(e,i),u=a.errors;if(a.rootNodes.length>0){var c=o(n),l=o(r),h=new P.ProviderViewContext(t,a.rootNodes[0].sourceSpan),f=new B(h,c,l,this._exprParser,this._schemaRegistry);s=E.htmlVisitAll(f,a.rootNodes,z),u=u.concat(f.errors).concat(h.errors)}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,u),u.length>0?new L(s,u):(p.isPresent(this.transforms)&&this.transforms.forEach(function(t){s=m.templateVisitAll(t,s)}),new L(s,u))},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 V('Reference "#'+r+'" is defined several times',t.sourceSpan,y.ParseErrorLevel.FATAL);e.push(i)}})})},t.decorators=[{type:a.Injectable}],t.ctorParameters=[{type:f.Parser},{type:_.ElementSchemaRegistry},{type:d.HtmlParser},{type:u.Console},{type:Array,decorators:[{type:a.Optional},{type:a.Inject,args:[e.TEMPLATE_TRANSFORMS]}]}],t}();e.TemplateParser=j;var B=function(){function t(t,e,n,r,i){var o=this;this.providerViewContext=t,this._exprParser=r,this._schemaRegistry=i,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new g.SelectorMatcher;var s=t.component.template;p.isPresent(s)&&p.isPresent(s.interpolation)&&(this._interpolationConfig={start:s.interpolation[0],end:s.interpolation[1]}),c.ListWrapper.forEachWithIndex(e,function(t,e){var n=g.CssSelector.parse(t.selector);o.selectorMatcher.addSelectables(n,t),o.directivesIndex.set(t,e)}),this.pipesByName=new Map,n.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype._reportError=function(t,e,n){void 0===n&&(n=y.ParseErrorLevel.FATAL),this.errors.push(new V(t,e,n))},t.prototype._parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);if(this._checkPipes(r,e),p.isPresent(r)&&r.ast.expressions.length>u.MAX_INTERPOLATION_VALUES)throw new l.BaseException("Only support at most "+u.MAX_INTERPOLATION_VALUES+" interpolation values!");return r}catch(t){return this._reportError(""+t,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 this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,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 this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,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 i.templateBindings.forEach(function(t){p.isPresent(t.expression)&&n._checkPipes(t.expression,e)}),i.warnings.forEach(function(t){n._reportError(t,e,y.ParseErrorLevel.WARNING)}),i.templateBindings}catch(t){return this._reportError(""+t,e),[]}},t.prototype._checkPipes=function(t,e){var n=this;if(p.isPresent(t)){var r=new G;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(D),r=this._parseInterpolation(t.value,t.sourceSpan);return p.isPresent(r)?new m.BoundTextAst(r,n,t.sourceSpan):new m.TextAst(t.value,n,t.sourceSpan)},t.prototype.visitAttr=function(t,e){return new m.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=b.preparseElement(t);if(o.type===b.PreparsedElementType.SCRIPT||o.type===b.PreparsedElementType.STYLE)return null;if(o.type===b.PreparsedElementType.STYLESHEET&&w.isStyleUrlResolvable(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[],y=[],_=!1,S=[],C=v.splitNsName(r.toLowerCase())[1],A=C==O;t.attrs.forEach(function(t){var e=n._parseAttr(A,t,s,a,l,h,u,c),r=n._parseInlineTemplateBinding(t,d,f,y);r&&_&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),e||r||(S.push(n.visitAttr(t,null)),s.push([t.name,t.value])),r&&(_=!0)});var T=i(r,s),x=this._parseDirectives(this.selectorMatcher,T),R=[],I=this._createDirectiveAsts(A,t.name,x,a,u,t.sourceSpan,R),M=this._createElementPropertyAsts(t.name,a,I).concat(l),k=e.isTemplateElement||_,N=new P.ProviderElementContext(this.providerViewContext,e.providerContext,k,I,S,R,t.sourceSpan),D=E.htmlVisitAll(o.nonBindable?q:this,t.children,H.create(A,I,A?e.providerContext:N));N.afterElement();var V,L=p.isPresent(o.projectAs)?g.CssSelector.parse(o.projectAs)[0]:T,j=e.findNgContentIndex(L);if(o.type===b.PreparsedElementType.NG_CONTENT)p.isPresent(t.children)&&t.children.length>0&&this._reportError(" element cannot have content. must be immediately followed by ",t.sourceSpan),V=new m.NgContentAst(this.ngContentCount++,_?null:j,t.sourceSpan);else if(A)this._assertAllEventsPublishedByDirectives(I,h),this._assertNoComponentsNorElementBindingsOnTemplate(I,M,t.sourceSpan),V=new m.EmbeddedTemplateAst(S,h,R,c,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,D,_?null:j,t.sourceSpan);else{this._assertOnlyOneComponent(I,t.sourceSpan);var B=_?null:e.findNgContentIndex(L);V=new m.ElementAst(r,S,M,h,R,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,D,_?null:B,t.sourceSpan)}if(_){var F=i(O,d),U=this._parseDirectives(this.selectorMatcher,F),W=this._createDirectiveAsts(!0,t.name,U,f,[],t.sourceSpan,[]),z=this._createElementPropertyAsts(t.name,f,W);this._assertNoComponentsNorElementBindingsOnTemplate(W,z,t.sourceSpan);var G=new P.ProviderElementContext(this.providerViewContext,e.providerContext,e.isTemplateElement,W,[],[],t.sourceSpan);G.afterElement(),V=new m.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(t.name==T)i=t.value;else if(t.name.startsWith(x)){var o=t.name.substring(x.length);i=0==t.value.length?o:o+" "+t.value}if(p.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(f,c,e.sourceSpan,a)):(this._reportError('"var-" on non