UNPKG

ngx-multi-line-ellipsis

Version:
319 lines 111 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs/Observable"),require("rxjs/observable/merge"),require("rxjs/operator/share"),require("rxjs/Subject"),require("rxjs/Subscription")):"function"==typeof define&&define.amd?define(["exports","rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject","rxjs/Subscription"],t):t((e.ngx=e.ngx||{},e.ngx.multi=e.ngx.multi||{},e.ngx.multi.line=e.ngx.multi.line||{},e.ngx.multi.line.ellipsis={}),e.Rx,null,null,null,null)}(this,function(e,c,l,d,t,u){"use strict";var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function n(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f=function(){function e(e){this._desc=e,this.ngMetadataName="InjectionToken"}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),a="__annotations__",p="__paramaters__",s="__prop__metadata__";
/**
     * @license Angular v5.2.10
     * (c) 2010-2018 Google, Inc. https://angular.io/
     * License: MIT
     */
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function i(e,t,n,r){var o=h(t);function i(e){if(this instanceof i)return o.call(this,e),this;var t=new i(e),n=function(e){return(e.hasOwnProperty(a)?e[a]:Object.defineProperty(e,a,{value:[]})[a]).push(t),e};return r&&r(n),n}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i}function h(o){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(o){var n=o.apply(void 0,e);for(var r in n)this[r]=n[r]}}}function v(e,t,n){var i=h(t);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof a)return i.apply(this,e),this;var n,o=new((n=a).bind.apply(n,[void 0].concat(e)));return r.annotation=o,r;function r(e,t,n){for(var r=e.hasOwnProperty(p)?e[p]:Object.defineProperty(e,p,{value:[]})[p];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a}function y(e,t,n){var r=h(t);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof i)return r.apply(this,e),this;var n,o=new((n=i).bind.apply(n,[void 0].concat(e)));return function(e,t){var n=e.constructor,r=n.hasOwnProperty(s)?n[s]:Object.defineProperty(n,s,{value:{}})[s];r[t]=r.hasOwnProperty(t)&&r[t]||[],r[t].unshift(o)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i}v("Attribute",function(e){return{attributeName:e}});var g=function(){},_=(y("ContentChildren",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)},g),y("ContentChild",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},g),y("ViewChildren",function(e,t){return void 0===t&&(t={}),o({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)},g),y("ViewChild",function(e,t){return o({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},g),{OnPush:0,Default:1});_[_.OnPush]="OnPush",_[_.Default]="Default";
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
var m=i("Directive",function(e){return void 0===e&&(e={}),e}),w=(i("Component",function(e){return void 0===e&&(e={}),o({changeDetection:_.Default},e)},m),i("Pipe",function(e){return o({pure:!0},e)}),y("Input",function(e){return{bindingPropertyName:e}})),b=(y("Output",function(e){return{bindingPropertyName:e}}),y("HostBinding",function(e){return{hostPropertyName:e}}),y("HostListener",function(e,t){return{eventName:e,args:t}}),i("NgModule",function(e){return e})),C={Emulated:0,Native:1,None:2};C[C.Emulated]="Emulated",C[C.Native]="Native",C[C.None]="None";
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
var x=new function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}("5.2.10"),k=v("Inject",function(e){return{token:e}}),E=v("Optional"),A=i("Injectable"),I=v("Self"),O=v("SkipSelf"),T=(v("Host"),"undefined"!=typeof window&&window),N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,P="undefined"!=typeof global&&global,R=T||P||N,j=Promise.resolve(0),V=null;function D(){if(!V){var e=R.Symbol;if(e&&e.iterator)V=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(V=r)}}return V}function M(e){"undefined"==typeof Zone?j.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function S(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function H(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(H).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function F(e){return e.__forward_ref__=F,e.toString=function(){return H(this())},e}function U(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===F?e():e}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var L="__source",z=new Object,Z=z,B=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=z),t===z)throw new Error("NullInjectorError: No provider for "+H(e)+"!");return t},e}(),K=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new ne(e,t):new ne(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=z,e.NULL=new B,e}(),q=function(e){return e},W=[],Q=q,G=function(){return Array.prototype.slice.call(arguments)},Y={},$=function(e){for(var t in e)if(e[t]===Y)return t;throw Error("!prop")}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */({provide:String,useValue:Y}),J="ngTempTokenPath",X=K.NULL,ee=/\n/gm,te="ɵ",ne=function(){function e(e,t,n){void 0===t&&(t=X),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(K,{token:K,fn:q,deps:W,value:this,useNew:!1}),function e(t,n){if(n)if((n=U(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw ae("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw ae("Unexpected provider",n);var o=U(n.provide),i=function(e){var t=function(e){var t=W,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var o=6,i=U(n[r]);if(i instanceof Array)for(var a=0,s=i;a<s.length;a++){var u=s[a];u instanceof E||u==E?o|=1:u instanceof O||u==O?o&=-3:u instanceof I||u==I?o&=-5:i=u instanceof k?u.token:U(u)}t.push({token:i,options:o})}}else if(e.useExisting){var i=U(e.useExisting);t=[{token:i,options:6}]}else if(!(n||$ in e))throw ae("'deps' required",e);return t}(e),n=q,r=W,o=!1,i=U(e.provide);if($ in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)o=!0,n=U(e.useClass);else{if("function"!=typeof i)throw ae("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);o=!0,n=i}return{deps:t,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var a=t.get(o);if(a){if(a.fn!==G)throw re(o)}else t.set(o,a={token:n.provide,deps:[],useNew:!1,fn:G,value:W});o=n,a.deps.push({token:o,options:6})}var s=t.get(o);if(s&&s.fn==G)throw re(o);t.set(o,i)}}(r,e)}return e.prototype.get=function(t,e){var n=this._records.get(t);try{return oe(t,n,this._records,this.parent,e)}catch(e){var r=e[J];throw t[L]&&r.unshift(t[L]),e.message=ie("\n"+e.message,r,this.source),e.ngTokenPath=r,e[J]=null,e}},e.prototype.toString=function(){var n=[];return this._records.forEach(function(e,t){return n.push(H(t))}),"StaticInjector["+n.join(", ")+"]"},e}();function re(e){return ae("Cannot mix multi providers and regular providers",e)}function oe(t,n,e,r,o){try{return function(e,t,n,r,o){var i,a;if(t){if((i=t.value)==Q)throw Error(te+"Circular dependency");if(i===W){t.value=Q;var s=void 0,u=t.useNew,c=t.fn,l=t.deps,d=W;if(l.length){d=[];for(var f=0;f<l.length;f++){var p=l[f],h=p.options,v=2&h?n.get(p.token):void 0;d.push(oe(p.token,v,n,v||4&h?r:X,1&h?null:K.THROW_IF_NOT_FOUND))}}t.value=i=u?new((a=c).bind.apply(a,[void 0].concat(d))):c.apply(s,d)}}else i=r.get(e,o);return i}(t,n,e,r,o)}catch(e){throw e instanceof Error||(e=new Error(e)),(e[J]=e[J]||[]).unshift(t),n&&n.value==Q&&(n.value=W),e}}function ie(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==te?e.substr(2):e;var r=H(t);if(t instanceof Array)r=t.map(H).join(" -> ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):H(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(ee,"\n  ")}function ae(e,t){return new Error(ie(e,t))}var se="ngDebugContext",ue="ngOriginalError",ce="ngErrorLogger";function le(e){return e[se]}function de(e){return e[ue]}function fe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,t)}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var pe=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=e[ce]||fe;r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?le(e)?le(e):this._findContext(de(e)):null},e.prototype._findOriginalError=function(e){for(var t=de(e);t&&de(t);)t=de(t);return t},e}();function he(e){return 1<e.length?" ("+
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
function(e){for(var t=[],n=0;n<e.length;++n){if(-1<t.indexOf(e[n]))return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return H(e.token)}).join(" -> ")+")":""}function ve(e,t,n,r){var o,i,a,s=[t],u=n(s),c=r?(i=u+" caused by: "+((o=r)instanceof Error?o.message:o),(a=Error(i))[ue]=o,a):Error(u);return c.addKey=ye,c.keys=s,c.injectors=[e],c.constructResolvingMessage=n,c[ue]=r,c}function ye(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function ge(e,t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];i&&0!=i.length?n.push(i.map(H).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+H(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+H(e)+"' is decorated with Injectable.")}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
var _e=function(){function e(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=H(this.token)}return e.get=function(e){return me.get(U(e))},Object.defineProperty(e,"numberOfKeys",{get:function(){return me.numberOfKeys},enumerable:!0,configurable:!0}),e}(),me=new(function(){function e(){this._allKeys=new Map}return e.prototype.get=function(e){if(e instanceof _e)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new _e(e,_e.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(e.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),e}()),we=Function;function be(e){return"function"==typeof e}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var Ce=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,xe=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{/,ke=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{[\s\S]*constructor\s*\(/,Ee=function(){function e(e){this._reflect=e||R.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,[void 0].concat(e)))}},e.prototype._zipTypesAndAnnotations=function(e,t){var n;n=void 0===e?new Array(t.length):new Array(e.length);for(var r=0;r<n.length;r++)void 0===e?n[r]=[]:e[r]!=Object?n[r]=[e[r]]:n[r]=[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n},e.prototype._ownParameters=function(e,t){var n=e.toString();if(Ce.exec(n)||xe.exec(n)&&!ke.exec(n))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var r=e.ctorParameters;if(r&&r!==t.ctorParameters){var o="function"==typeof r?r():r,i=o.map(function(e){return e&&e.type}),a=o.map(function(e){return e&&Ae(e.decorators)});return this._zipTypesAndAnnotations(i,a)}var s=e.hasOwnProperty(p)&&e[p],u=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return u||s?this._zipTypesAndAnnotations(u,s):new Array(e.length).fill(void 0)},e.prototype.parameters=function(e){if(!be(e))return[];var t=Ie(e),n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]},e.prototype._ownAnnotations=function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?Ae(e.decorators):e.hasOwnProperty(a)?e[a]:null},e.prototype.annotations=function(e){if(!be(e))return[];var t=Ie(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)},e.prototype._ownPropMetadata=function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var r=e.propDecorators,o={};return Object.keys(r).forEach(function(e){o[e]=Ae(r[e])}),o}return e.hasOwnProperty(s)?e[s]:null},e.prototype.propMetadata=function(e){if(!be(e))return{};var t=Ie(e),n={};if(t!==Object){var r=this.propMetadata(t);Object.keys(r).forEach(function(e){n[e]=r[e]})}var o=this._ownPropMetadata(e,t);return o&&Object.keys(o).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,n[e]),t.push.apply(t,o[e]),n[e]=t}),n},e.prototype.hasLifecycleHook=function(e,t){return e instanceof we&&t in e.prototype},e.prototype.guards=function(e){return{}},e.prototype.getter=function(e){return new Function("o","return o."+e+";")},e.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},e.prototype.method=function(e){return new Function("o","args","if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n        return o."+e+".apply(o, args);")},e.prototype.importUri=function(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+H(e)},e.prototype.resourceUri=function(e){return"./"+H(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return r},e.prototype.resolveEnum=function(e,t){return e[t]},e}();function Ae(e){return e?e.map(function(e){var t=e.type.annotationCls,n=e.args?e.args:[];return new(t.bind.apply(t,[void 0].concat(n)))}):[]}function Ie(e){var t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use 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 Oe=new(function(){function e(e){this.reflectionCapabilities=e}return e.prototype.updateCapabilities=function(e){this.reflectionCapabilities=e},e.prototype.factory=function(e){return this.reflectionCapabilities.factory(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.getter=function(e){return this.reflectionCapabilities.getter(e)},e.prototype.setter=function(e){return this.reflectionCapabilities.setter(e)},e.prototype.method=function(e){return this.reflectionCapabilities.method(e)},e.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},e.prototype.resourceUri=function(e){return this.reflectionCapabilities.resourceUri(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)},e.prototype.resolveEnum=function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)},e}())(new Ee),Te=function(){function t(e,t,n){this.key=e,this.optional=t,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Ne=[],Pe=function(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},Re=function(e,t){this.factory=e,this.dependencies=t};
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function je(e){var t,n;if(e.useClass){var r=U(e.useClass);t=Oe.factory(r),n=Me(r)}else e.useExisting?(t=function(e){return e},n=[Te.fromKey(_e.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(t,e){{if(e){var n=e.map(function(e){return[e]});return e.map(function(e){return Se(t,e,n)})}return Me(t)}}(e.useFactory,e.deps)):(t=function(){return e.useValue},n=Ne);return new Re(t,n)}function Ve(e){return new Pe(_e.get(e.provide),[je(e)],e.multi||!1)}function De(e){var t=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=t.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+o+" "+r);if(r.multiProvider)for(var i=0;i<r.resolvedFactories.length;i++)o.resolvedFactories.push(r.resolvedFactories[i]);else t.set(r.key.id,r)}else{var a=void 0;a=r.multiProvider?new Pe(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(function t(e,n){e.forEach(function(e){if(e instanceof we)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);t(e,n)}});return n}(e,[]).map(Ve),new Map);return Array.from(t.values())}function Me(t){var n=Oe.parameters(t);if(!n)return[];if(n.some(function(e){return null==e}))throw ge(t,n);return n.map(function(e){return Se(t,e,n)})}function Se(e,t,n){var r=null,o=!1;if(!Array.isArray(t))return He(t instanceof k?t.token:t,o,null);for(var i=null,a=0;a<t.length;++a){var s=t[a];s instanceof we?r=s:s instanceof k?r=s.token:s instanceof E?o=!0:s instanceof I||s instanceof O?i=s:s instanceof f&&(r=s)}if(null!=(r=U(r)))return He(r,o,i);throw ge(e,n)}function He(e,t,n){return new Te(_e.get(e),t,n)}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var Fe=new Object,Ue=function(){function r(){}return r.resolve=function(e){return De(e)},r.resolveAndCreate=function(e,t){var n=r.resolve(e);return r.fromResolvedProviders(n,t)},r.fromResolvedProviders=function(e,t){return new Le(e,t)},r}(),Le=function(){function a(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;var n=e.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=Fe}return a.prototype.get=function(e,t){return void 0===t&&(t=Z),this._getByKey(_e.get(e),null,t)},a.prototype.resolveAndCreateChild=function(e){var t=Ue.resolve(e);return this.createChildFromResolved(t)},a.prototype.createChildFromResolved=function(e){var t=new a(e);return t.parent=this,t},a.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(Ue.resolve([e])[0])},a.prototype.instantiateResolved=function(e){return this._instantiateProvider(e)},a.prototype.getProviderAtIndex=function(e){if(e<0||e>=this._providers.length)throw Error("Index "+e+" is out-of-bounds.");return this._providers[e]},a.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw t=this,n=e.key,ve(t,n,function(e){return"Cannot instantiate cyclic dependency!"+he(e)});var t,n;return this._instantiateProvider(e)},a.prototype._getMaxNumberOfObjects=function(){return this.objs.length},a.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])},a.prototype._instantiate=function(t,e){var n,r,o,i,a,s=this,u=e.factory;try{n=e.dependencies.map(function(e){return s._getByReflectiveDependency(e)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=u.apply(void 0,n)}catch(e){throw o=this,(i=e).stack,a=t.key,ve(o,a,function(e){var t=H(e[0].token);return i.message+": Error during instantiation of "+t+"!"+he(e)+"."},i)}return r},a.prototype._getByReflectiveDependency=function(e){return this._getByKey(e.key,e.visibility,e.optional?null:Z)},a.prototype._getByKey=function(e,t,n){return e===a.INJECTOR_KEY?this:t instanceof I?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,t)},a.prototype._getObjByKeyId=function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===Fe&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return Fe},a.prototype._throwOrNull=function(e,t){if(t!==Z)return t;throw ve(this,e,function(e){return"No provider for "+H(e[0].token)+"!"+he(e)})},a.prototype._getByKeySelf=function(e,t){var n=this._getObjByKeyId(e.id);return n!==Fe?n:this._throwOrNull(e,t)},a.prototype._getByKeyDefault=function(e,t,n){var r;for(r=n instanceof O?this.parent:this;r instanceof a;){var o=r,i=o._getObjByKeyId(e.id);if(i!==Fe)return i;r=o.parent}return null!==r?r.get(e.token,t):this._throwOrNull(e,t)},Object.defineProperty(a.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(e,t){for(var n=new Array(e._providers.length),r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */(this,function(e){return' "'+e.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.displayName},a.INJECTOR_KEY=_e.get(K),a}();function ze(e){return!!e&&"function"==typeof e.then}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var Ze=new f("Application Initializer"),Be=function(){function e(e){var n=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return e.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();ze(o)&&e.push(o)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},e.decorators=[{type:A}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:k,args:[Ze]},{type:E}]}]},e}();var Ke={provide:new f("AppId"),useFactory:function(){return""+qe()+qe()+qe()},deps:[]};function qe(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var We=new f("appBootstrapListener"),Qe=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e.decorators=[{type:A}],e.ctorParameters=function(){return[]},e}();
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function Ge(){throw new Error("Runtime compiler is not loaded")}var Ye=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw Ge()},e.prototype.compileModuleAsync=function(e){throw Ge()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw Ge()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw Ge()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.decorators=[{type:A}],e.ctorParameters=function(){return[]},e}(),$e=function(){},Je=function(){},Xe=function(){};var et,tt,nt="ngComponent",rt=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw t=e,(n=Error("No component factory found for "+H(t)+". Did you add it to @NgModule.entryComponents?"))[nt]=t,n;
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
var t,n},e}(),ot=function(){function e(){}return e.NULL=new rt,e}(),it=function(r){function e(e,t){var n=r.call(this)||this;return n.factory=e,n.ngModule=t,n.selector=e.selector,n.componentType=e.componentType,n.ngContentSelectors=e.ngContentSelectors,n.inputs=e.inputs,n.outputs=e.outputs,n}return n(e,r),e.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},e}(Xe),at=function(){},st=function(){};
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use 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 ut,ct=!(!(ut=R.wtf)||!(et=ut.trace)||(tt=et.events,0));function lt(e,t){return null}var dt=ct?function(e,t){return void 0===t&&(t=null),tt.createScope(e,t)}:function(e,t){return lt},ft=ct?function(e,t){return et.leaveScope(e,t),t}:function(e,t){return t},pt=function(s){function e(e){void 0===e&&(e=!1);var t=s.call(this)||this;return t.__isAsync=e,t}return n(e,s),e.prototype.emit=function(e){s.prototype.next.call(this,e)},e.prototype.subscribe=function(t,n,e){var r,o=function(e){return null},i=function(){return null};t&&"object"==typeof t?(r=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(i=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(r=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),e&&(i=this.__isAsync?function(){setTimeout(function(){return e()})}:function(){e()}));var a=s.prototype.subscribe.call(this,r,o,i);return t instanceof u.Subscription&&t.add(a),a},e}(t.Subject),ht=function(){function e(e){var t=e.enableLongStackTrace,n=void 0!==t&&t;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pt(!1),this.onMicrotaskEmpty=new pt(!1),this.onStable=new pt(!1),this.onError=new pt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var s,r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.wtfZoneSpec&&(r._inner=r._inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),(s=r)._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,r,o,i){try{return _t(s),e.invokeTask(n,r,o,i)}finally{mt(s)}},onInvoke:function(e,t,n,r,o,i,a){try{return _t(s),e.invoke(n,r,o,i,a)}finally{mt(s)}},onHasTask:function(e,t,n,r){e.hasTask(n,r),t===n&&("microTask"==r.change?(s.hasPendingMicrotasks=r.microTask,gt(s)):"macroTask"==r.change&&(s.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,n,r){return e.handleError(n,r),s.runOutsideAngular(function(){return s.onError.emit(r)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,e,yt,vt,vt);try{return o.runTask(i,t,n)}finally{o.cancelTask(i)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function vt(){}var yt={};function gt(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function _t(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function mt(e){e._nesting--,gt(e)}var wt=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pt,this.onMicrotaskEmpty=new pt,this.onStable=new pt,this.onError=new pt}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),bt=function(){function e(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){ht.assertNotInAngularZone(),M(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;this.isStable()?M(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0},e.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e.decorators=[{type:A}],e.ctorParameters=function(){return[{type:ht}]},e}(),Ct=function(){function e(){this._applications=new Map,xt.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),xt.findTestabilityInTree(this,e,t)},e.decorators=[{type:A}],e.ctorParameters=function(){return[]},e}(),xt=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),kt=!0;
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function Et(){return kt}!function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}e.prototype.bootstrapModuleFactory=function(r,e){var o=this,i=function(e){var t;t="noop"===e?new wt:("zone.js"===e?void 0:e)||new ht({enableLongStackTrace:Et()});return t}(e?e.ngZone:void 0),a=[{provide:ht,useValue:i}];return i.run(function(){var e=K.create({providers:a,parent:o.injector,name:r.moduleType.name}),t=r.create(e),n=t.injector.get(pe,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return t.onDestroy(function(){return Ot(o._modules,t)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){n.handleError(e)}})}),function(t,n,e){try{var r=e();return ze(r)?r.catch(function(e){throw n.runOutsideAngular(function(){return t.handleError(e)}),e}):r}catch(e){throw n.runOutsideAngular(function(){return t.handleError(e)}),e}}(n,i,function(){var e=t.injector.get(Be);return e.runInitializers(),e.donePromise.then(function(){return o._moduleDoBootstrap(t),t})})})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get($e),o=At({},t);return r.createCompiler([o]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,o)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(It);if(0<e._bootstrapComponents.length)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+H(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.decorators=[{type:A}],e.ctorParameters=function(){return[{type:K}]}}();function At(e,t){return e=Array.isArray(t)?t.reduce(At,e):o({},e,t)}var It=function(){function n(e,t,n,r,o,i){var a=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Et(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new c.Observable(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new c.Observable(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){ht.assertNotInAngularZone(),M(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){ht.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=l.merge(s,d.share.call(u))}return n.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Xe?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof it?null:this._injector.get(at),i=t||n.selector,a=n.create(K.NULL,[],i,o);a.onDestroy(function(){r._unloadComponent(a)});var s=a.injector.get(bt,null);return s&&a.injector.get(Ct).registerApplication(a.location.nativeElement,s),this._loadComponent(a),Et()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},n.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var e=n._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,ft(e)}},n.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},n.prototype.detachView=function(e){var t=e;Ot(this._views,t),t.detachFromAppRef()},n.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(We,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},n.prototype._unloadComponent=function(e){this.detachView(e.hostView),Ot(this.components,e)},n.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(n.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),n._tickScope=dt("ApplicationRef#tick()"),n.decorators=[{type:A}],n.ctorParameters=function(){return[{type:ht},{type:Qe},{type:K},{type:pe},{type:ot},{type:Be}]},n}();function Ot(e,t){var n=e.indexOf(t);-1<n&&e.splice(n,1)}var Tt=function(){},Nt=function(){},Pt=function(){},Rt=function(e){this.nativeElement=e},jt=function(){function e(){this.dirty=!0,this._results=[],this.changes=new pt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[D()]=function(){return this._results[D()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function r(e){return e.reduce(function(e,t){var n=Array.isArray(t)?r(t):t;return e.concat(n)},[])}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}();var Vt=function(){},Dt=function(){},Mt=function(){},St=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}n(t,e)}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(Mt)),function(e,t){this.name=e,this.callback=t}),Ht=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Ft?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Ft=function(o){function t(e,t,n){var r=o.call(this,e,t,n)||this;return r.properties={},r.attributes={},r.classes={},r.styles={},r.childNodes=[],r.nativeElement=e,r}return n(t,o),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),(t.parent=this).childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Ft&&(n(e)&&r.push(e),t(e,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function t(e,n,r){e instanceof Ft&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Ft&&t(e,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(t,n){this.listeners.forEach(function(e){e.name==t&&e.callback(n)})},t}(Ht);
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use 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 Ut=new Map;function Lt(e){return Ut.get(e)||null}function zt(e){Ut.set(e.nativeNode,e)}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
function Zt(e,t){var n=qt(e),r=qt(t);return n&&r?function(e,t,n){var r=e[D()](),o=t[D()]();for(;;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}(e,t,Zt):!(n||!(e&&("object"==typeof e||"function"==typeof e))||r||!(t&&("object"==typeof t||"function"==typeof t)))||S(e,t)}var Bt=function(){function t(e){this.wrapped=e}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Kt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function qt(e){return!!Wt(e)&&(Array.isArray(e)||!(e instanceof Map)&&D()in e)}function Wt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var Qt=function(){function e(){}return e.prototype.supports=function(e){return qt(e)},e.prototype.create=function(e){return new Yt(e)},e}(),Gt=function(e,t){return t},Yt=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Gt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<en(n,r,o)?t:n,a=en(i,r,o),s=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var u=a-r,c=s-r;if(u!=c){for(var l=0;l<u;l++){var d=l<o.length?o[l]:o[l]=0,f=d+l;c<=f&&f<u&&(o[l]=d+1)}o[i.previousIndex]=c-u}}a!==s&&e(i,a,s)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!qt(e))throw new Error("Error trying to diff '"+H(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,o,i=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=e[s],o=this._trackByFn(s,r),null!==i&&S(i.trackById,o)?(a&&(i=this._verifyReinsertion(i,r,o,s)),S(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,s),a=!0),i=i._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[D()](),o=void 0;!(o=r.next()).done;)t(o.value)}(e,function(e){o=t._trackByFn(n,e),null!==i&&S(i.trackById,o)?(a&&(i=t._verifyReinsertion(i,e,o,n)),S(i.item,e)||t._addIdentityChange(i,e)):(i=t._mismatch(i,e,o,n),a=!0),i=i._next,n++}),this.length=n;return this._truncate(i),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(S(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(S(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new $t(t,n),o,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Xt),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t||(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Xt),this._unlinkedRecords.put(e),e.currentIndex=null,(e._nextRemoved=null)===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e},e}(),$t=function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},Jt=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):((this._tail._nextDup=e)._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&S(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),Xt=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Jt,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=e,r=this.map.get(n);return r?r.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function en(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var tn=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Wt(e)},e.prototype.create=function(){return new nn},e}(),nn=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Wt(e)))throw new Error("Error trying to diff '"+H(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var r=this;this._reset();var o=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,t){if(o&&o.key===t)r._maybeAddToChanges(o,e),o=(r._appendAfter=o)._next;else{var n=r._getOrCreateRecordForKey(t,e);o=r._insertBeforeOrAppend(o,n)}}),o){o._prev&&(o._prev._next=null);for(var t=this._removalsHead=o;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e}return this._appendAfter?(this._appendAfter._next=t)._prev=this._appendAfter:this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new rn(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){S(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(function(e){return n(t[e],e)})},e}(),rn=function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},on=function(){function r(e){this.factories=e}return r.create=function(e,t){if(null!=t){var n=t.factories.slice();return new r(e=e.concat(n))}return new r(e)},r.extend=function(t){return{provide:r,useFactory:function(e){if(!e)throw new Error("Cannot extend IterableDiffers without a parent injector");return r.create(t,e)},deps:[[r,new O,new E]]}},r.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},r}();
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
var an=function(){function r(e){this.factories=e}return r.create=function(e,t){if(t){var n=t.factories.slice();e=e.concat(n)}return new r(e)},r.extend=function(t){return{provide:r,useFactory:function(e){if(!e)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return r.create(t,e)},deps:[[r,new O,new E]]}},r.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},r}(),sn=[new tn],un=[new Qt],cn=new on(un),ln=new an(sn),dn=new f("LocaleId");
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
function fn(){return cn}function pn(){return ln}function hn(e){return e||"en-US"}!function(){function e(e){}e.decorators=[{type:b,args:[{providers:[It,Be,Ye,Ke,{provide:on,useFactory:fn},{provide:an,useFactory:pn},{provide:dn,useFactory:hn,deps:[[new k(dn),new E,new O]]}]}]}],e.ctorParameters=function(){return[{type:It}]}}();
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use 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 vn={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};vn[vn.NONE]="NONE",vn[vn.HTML]="HTML",vn[vn.STYLE]="STYLE",vn[vn.SCRIPT]="SCRIPT",vn[vn.URL]="URL",vn[vn.RESOURCE_URL]="RESOURCE_URL";var yn=function(){};
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function gn(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function _n(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function mn(e,t){return e.nodes[t]}function wn(e,t){return e.nodes[t]}function bn(e,t){return e.nodes[t]}function Cn(e,t){return e.nodes[t]}function xn(e,t){return e.nodes[t]}var kn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function En(e,t,n,r){var o,i,a="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(a+=" 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 ?"),o=e,An(i=new Error(a),o),i}function An(e,t){e[se]=t,e[ce]=t.logError.bind(t)}function In(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var On=function(){},Tn=new Map;function Nn(e){var t=Tn.get(e);return t||(t=H(e)+"_"+Tn.size,Tn.set(e,t)),t}function Pn(e,t,n,r){var o=e.oldValues;return!(!(2&e.state)&&S(o[t.bindingIndex+n],r))}function Rn(e,t,n,r){return!!Pn(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function jn(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!Zt(o,r)){var i=t.bindings[n].name;throw En(kn.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function Vn(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Dn(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Mn(t,e,n,r){try{return Vn(33554432&t.def.nodes[e].flags?wn(t,e).componentView:t),kn.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Sn(e){return e.parent?wn(e.parent,e.parentNodeDef.nodeIndex):null}function Hn(e){return e.parent?e.parentNodeDef.parent:null}function Fn(e,t){switch(201347067&t.flags){case 1:return wn(e,t.nodeIndex).renderElement;case 2:return mn(e,t.nodeIndex).renderText}}function Un(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Ln(e,r){return e.map(function(e){var t,n;return Array.isArray(e)?(n=e[0],t=e[1]):(n=0,t=e),t&&("function"==typeof t||"object"==typeof t)&&r&&Object.defineProperty(t,L,{value:r,configurable:!0}),{flags:n,token:t,tokenKey:Nn(t)}})}function zn(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===C.Native?wn(e,n.renderParent.nodeIndex).renderElement:void 0:t}var Zn=new WeakMap;function Bn(e){var t=Zn.get(e);return t||((t=e(function(){return On})).factory=e,Zn.set(e,t)),t}function Kn(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(Fn(e,e.def.lastRenderRootNode))),qn(e,t,0,e.def.nodes.length-1,n,r,o)}function qn(e,t,n,r,o,i,a){for(var s=n;s<=r;s++){var u=e.def.nodes[s];11&u.flags&&Qn(e,u,t,o,i,a),s+=u.childCount}}function Wn(e,t,n,r,o,i){for(var a=e;a&&!Un(a);)a=a.parent;for(var s=a.parent,u=Hn(a),c=u.nodeIndex+1,l=u.nodeIndex+u.childCount,d=c;d<=l;d++){var f=s.def.nodes[d];f.ngContentIndex===t&&Qn(s,f,n,r,o,i),d+=f.childCount}if(!s.parent){var p=e.root.projectableNodes[t];if(p)for(d=0;d<p.length;d++)Gn(e,p[d],n,r,o,i)}}function Qn(e,t,n,r,o,i){if(8&t.flags)Wn(e,t.ngContent.index,n,r,o,i);else{var a=Fn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags){if(16&t.bindingFlags&&Gn(e,a,n,r,o,i),32&t.bindingFlags)Gn(wn(e,t.nodeIndex).componentView,a,n,r,o,i)}else Gn(e,a,n,r,o,i);if(16777216&t.flags)for(var s=wn(e,t.nodeIndex).viewContainer._embeddedViews,u=0;u<s.length;u++)Kn(s[u],n,r,o,i);1&t.flags&&!t.element.name&&qn(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,o,i)}}function Gn(e,t,n,r,o,i){var a=e.renderer;switch(n){case 1:a.appendChild(r,t);break;case 2:a.insertBefore(r,t,o);break;case 3:a.removeChild(r,t);break;case 0:i.push(t)}}var Yn=/^:([^:]+):(.+)$/;function $n(e){if(":"===e[0]){var t=e.match(Yn);return[t[1],t[2]]}return["",e]}function Jn(e,t,n){var r,o=n.element,i=e.root.selectorOrNode,a=e.renderer;if(e.parent||!i){r=o.name?a.createElement(o.name,o.ns):a.createComment("");var s=zn(e,t,n);s&&a.appendChild(s,r)}else r=a.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],d=c[1],f=c[2];a.setAttribute(r,d,f,l)}return r}function Xn(e,t,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],a=er(e,n.nodeIndex,(l=i.target,d=i.eventName,l?l+":"+d:d)),s=i.target,u=e;"component"===i.target&&(s=null,u=t);var c=u.renderer.listen(s||r,i.eventName,a);e.disposables[n.outputIndex+o]=c}var l,d}function er(t,n,r){return function(e){return Mn(t,n,r,e)}}function tr(e,t,n,r){if(!Rn(e,t,n,r))return!1;var o,i,a,s,u,c,l,d,f,p,h=t.bindings[n],v=wn(e,t.nodeIndex),y=v.renderElement,g=h.name;switch(15&h.flags){case 1:!function(e,t,n,r,o,i){var a=t.securityContext,s=a?e.root.sanitizer.sanitize(a,i):i;s=null!=s?s.toString():null;var u=e.renderer;null!=i?u.setAttribute(n,o,s,r):u.removeAttribute(n,o,r)}(e,h,y,h.ns,g,r);break;case 2:l=y,d=g,f=r,p=e.renderer,f?p.addClass(l,d):p.removeClass(l,d);break;case 4:!function(e,t,n,r,o){var i=e.root.sanitizer.sanitize(vn.STYLE,o);if(null!=i){i=i.toString();var a=t.suffix;null!=a&&(i+=a)}else i=null;var s=e.renderer;null!=i?s.setStyle(n,r,i):s.removeStyle(n,r)}(e,h,y,g,r);break;case 8:var _=33554432&t.flags&&32&h.flags?v.componentView:e;o=_,i=y,a=g,s=r,u=h.securityContext,c=u?o.root.sanitizer.sanitize(u,s):s,o.renderer.setProperty(i,a,c)}return!0}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use 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 nr=new Object,rr=Nn(K),or=Nn(at);function ir(e,t,n){if(void 0===n&&(n=K.THROW_IF_NOT_FOUND),8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var r=t.tokenKey;switch(r){case rr:case or:return e}var o=e._def.providersByKey[r];if(o){var i=e._providers[o.index];return void 0===i&&(i=e._providers[o.index]=ar(e,o)),i===nr?void 0:i}return e._parent.get(t.token,n)}function ar(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(ir(e,n[0]));case 2:return new t(ir(e,n[0]),ir(e,n[1]));case 3:return new t(ir(e,n[0]),ir(e,n[1]),ir(e,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=ir(e,n[i]);return new(t.bind.apply(t,[void 0].concat(o)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(ir(e,n[0]));case 2:return t(ir(e,n[0]),ir(e,n[1]));case 3:return t(ir(e,n[0]),ir(e,n[1]),ir(e,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=ir(e,n[i]);return t.apply(void 0,o)}}(e,t.value,t.deps);break;case 2048:n=ir(e,t.deps[0]);break;case 256:n=t.value}return void 0===n?nr:n}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
function sr(e,t,n,r){var o=t.viewContainer._embeddedViews;null==n&&(n=o.length),r.viewContainerParent=e,dr(o,n,r),function(e,t){var n=Sn(t);if(!n||n===e||16&t.state)return;t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]);r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;var n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),kn.dirtyParentQueries(r),cr(t,0<n?o[n-1]:null,r)}function ur(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,fr(n,t),kn.dirtyParentQueries(r),lr(r),r}function cr(e,t,n){var r=t?Fn(t,t.def.lastRenderRootNode):e.renderElement;Kn(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function lr(e){Kn(e,3,null,null,void 0)}function dr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fr(e,t){t>=e.length-1?e.pop():e.splice(t,1)}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */var pr=new Object;!function(s){function e(e,t,n,r,o,i){var a=s.call(this)||this;return a.selector=e,a.componentType=t,a._inputs=r,a._outputs=o,a.ngContentSelectors=i,a.viewDefFactory=n,a}n(e,s),Object.defineProperty(e.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t){var r=t[n];e.push({propName:n,templateName:r})}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs){var n=this._outputs[t];e.push({propName:t,templateName:n})}return e},enumerable:!0,configurable:!0}),e.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=Bn(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=kn.createRootView(e,t||[],n,o,r,pr),s=bn(a,i).instance;return n&&a.renderer.setAttribute(wn(a,0).renderElement,"ng-version",x.full),new hr(a,new yr(a),s)}}(Xe);var hr=function(o){function e(e,t,n){var r=o.call(this)||this;return r._view=e,r._viewRef=t,r._component=n,r._elDef=r._view.def.nodes[0],r.hostView=t,r.changeDetectorRef=t,r.instance=n,r}return n(e,o),Object.defineProperty(e.prototype,"location",{get:function(){return new Rt(wn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new mr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},e}(Je);var vr=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Rt(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new mr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Hn(e),e=e.parent;return e?new mr(e,t):new mr(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;0<=e;e--){var t=ur(this._data,e);kn.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new yr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof it||(o=i.get(at));var a=e.create(i,r,void 0,o);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e,r=n._view;return sr(this._view,this._data,t,r),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,s=this._embeddedViews.indexOf(e._view);return n=this._data,r=s,o=t,i=n.viewContainer._embeddedViews,a=i[r],fr(i,r),null==o&&(o=i.length),dr(i,o,a),kn.dirtyParentQueries(a),lr(a),cr(n,0<o?i[o-1]:null,a),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=ur(this._data,e);t&&kn.destroyView(t)},e.prototype.detach=function(e){var t=ur(this._data,e);return t?new yr(t):null},e}();var yr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return Kn(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Vn(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{kn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){kn.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),kn.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,lr(this._view),kn.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();var gr=function(r){function e(e,t){var n=r.call(this)||this;return n._parentView=e,n._def=t,n}return n(e,r),e.prototype.createEmbeddedView=function(e){return new yr(kn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Rt(wn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Vt);function _r(e,t){return new mr(e,t)}var mr=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=K.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return kn.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:Nn(e)},t)},e}();var wr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=$n(t),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),o=0;o<t.length;o++)this.delegate.insertBefore(n,t[o],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=$n(t),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(e,i,n,o):this.delegate.removeAttribute(e,i,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function br(e,t,n,r){return new Cr(e,t,n,r)}var Cr=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var o=t.providers[r];4096&o.flags||(n[r]=ar(e,o))}}(this.injector=this)}return e.prototype.get=function(e,t){return void 0===t&&(t=K.THROW_IF_NOT_FOUND),ir(this,{token:e,tokenKey:Nn(e),flags:0},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(ot)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+H(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var o=e._providers[r];o&&o!==nr&&o.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),xr=Nn(Tt),kr=Nn(Pt),Er=Nn(Rt),Ar=Nn(Dt),Ir=Nn(Vt),Or=Nn(Mt),Tr=Nn(K);
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */function Nr(e,t){for(var n=e;n.parent&&!Un(n);)n=n.parent;return Vr(n.parent,Hn(n),!0,t.provider.value,t.provider.deps)}function Pr(e,t){var n=0<(32768&t.flags),r=Vr(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o<t.outputs.length;o++){var i=t.outputs[o],a=r[i.propName].subscribe(Rr(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+o]=a.unsubscribe.bind(a)}return r}function Rr(t,n,r){return function(e){return Mn(t,n,r,e)}}function jr(e,t){var n=0<(8192&t.flags),r=t.provider;switch(201347067&t.flags){case 512:return Vr(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Mr(e,t,n,o[0]));case 2:return r(Mr(e,t,n,o[0]),Mr(e,t,n,o[1]));case 3:return r(Mr(e,t,n,o[0]),Mr(e,t,n,o[1]),Mr(e,t,n,o[2]));default:for(var a=Array(i),s=0;s<i;s++)a[s]=Mr(e,t,n,o[s]);return r.apply(void 0,a)}}(e,t.parent,n,r.value,r.deps);case 2048:return Mr(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Vr(e,t,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(Mr(e,t,n,o[0]));case 2:return new r(Mr(e,t,n,o[0]),Mr(e,t,n,o[1]));case 3:return new r(Mr(e,t,n,o[0]),Mr(e,t,n,o[1]),Mr(e,t,n,o[2]));default:for(var a=new Array(i),s=0;s<i;s++)a[s]=Mr(e,t,n,o[s]);return new(r.bind.apply(r,[void 0].concat(a)))}}var Dr={};function Mr(e,t,n,r,o){if(void 0===o&&(o=K.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=e;2&r.flags&&(o=null);var a=r.tokenKey;for(a===Or&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);e;){if(t)switch(a){case xr:var s=Sr(e,t,n);return new wr(s.renderer);case kr:return(s=Sr(e,t,n)).renderer;case Er:return new Rt(wn(e,t.nodeIndex).renderElement);case Ar:return wn(e,t.nodeIndex).viewContainer;case Ir:if(t.element.template)return wn(e,t.nodeIndex).template;break;case Or:var u=Sr(e,t,n);return new yr(u);case Tr:return _r(e,t);default:var c=(n?t.element.allProviders:t.element.publicProviders)[a];if(c){var l=bn(e,c.nodeIndex);return l||(l={instance:jr(e,c)},e.nodes[c.nodeIndex]=l),l.instance}}n=Un(e),t=Hn(e),e=e.parent}var d=i.root.injector.get(r.token,Dr);return d!==Dr||o===Dr?d:i.root.ngModule.injector.get(r.token,o)}function Sr(e,t,n){var r;if(n)r=wn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Un(r);)r=r.parent;return r}function Hr(e,t,n,r,o,i){if(32768&n.flags){var a=wn(e,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}var s=n.bindings[r].name;if(t.instance[s]=o,524288&n.flags){i=i||{};var u=Bt.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Kt(u,o,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=o,i}function Fr(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],a=i.parent;for(!a&&i.flags&t&&Lr(e,o,i.flags&t,r++),0==(i.childFlags&t)&&(o+=i.childCount);a&&1&a.flags&&o===a.nodeIndex+a.childCount;)a.directChildFlags&t&&(r=Ur(e,a,t,r)),a=a.parent}}function Ur(e,t,n,r){for(var o=t.nodeIndex+1;o<=t.nodeIndex+t.childCount;o++){var i=e.def.nodes[o];i.flags&n&&Lr(e,o,i.flags&n,r++),o+=i.childCount}return r}function Lr(e,t,n,r){var o=bn(e,t);if(o){var i=o.instance;i&&(kn.setCurrentNode(e,t),1048576&n&&_n(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&_n(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}function zr(e){for(var t,n=e.def.nodeMatchedQueries;e.parent&&((t=e).parent&&!(32768&t.parentNodeDef.flags));){var r=e.parentNodeDef;e=e.parent;for(var o=r.nodeIndex+r.childCount,i=0;i<=o;i++){67108864&(a=e.def.nodes[i]).flags&&536870912&a.flags&&(a.query.filterId&n)===a.query.filterId&&xn(e,i).setDirty(),!(1&a.flags&&i+a.childCount<r.nodeIndex)&&67108864&a.childFlags&&536870912&a.childFlags||(i+=a.childCount)}}if(134217728&e.def.nodeFlags)for(i=0;i<e.def.nodes.length;i++){var a;134217728&(a=e.def.nodes[i]).flags&&536870912&a.flags&&xn(e,i).setDirty(),i+=a.childCount}}function Zr(e,t){var n=xn(e,t.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&t.flags){var i=t.parent.parent;o=Br(e,i.nodeIndex,i.nodeIndex+i.childCount,t.query,[]),r=bn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(o=Br(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(o);for(var a=t.query.bindings,s=!1,u=0;u<a.length;u++){var c=a[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,s=!0}r[c.propName]=l}s&&n.notifyOnChanges()}}function Br(e,t,n,r,o){for(var i=t;i<=n;i++){var a=e.def.nodes[i],s=a.matchedQueries[r.id];if(null!=s&&o.push(Kr(e,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=wn(e,i);if((a.childMatchedQueries&r.filterId)===r.filterId&&(Br(e,i+1,i+a.childCount,r,o),i+=a.childCount),16777216&a.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var d=c[l],f=Sn(d);f&&f===u&&Br(d,0,d.def.nodes.length-1,r,o)}var p=u.template._projectedViews;if(p)for(l=0;l<p.length;l++){var h=p[l];Br(h,0,h.def.nodes.length-1,r,o)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(i+=a.childCount)}return o}function Kr(e,t,n){if(null!=n)switch(n){case 1:return wn(e,t.nodeIndex).renderElement;case 0:return new Rt(wn(e,t.nodeIndex).renderElement);case 2:return wn(e,t.nodeIndex).template;case 3:return wn(e,t.nodeIndex).viewContainer;case 4:return bn(e,t.nodeIndex).instance}}function qr(e,t,n){var r,o=e.renderer;r=o.createText(n.text.prefix);var i=zn(e,t,n);return i&&o.appendChild(i,r),{renderText:r}}function Wr(e,t){return(null!=e?e.toString():"")+t.suffix}function Qr(e,t,n,r){var o=$r(e.root,e.renderer,e,t,n);return Jr(o,e.component,r),Xr(o),o}function Gr(e,t,n){var r=$r(e,e.renderer,null,null,t);return Jr(r,n,n),Xr(r),r}function Yr(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,$r(e.root,o,e,t.element.componentProvider,n)}function $r(e,t,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function Jr(e,t,n){e.component=t,e.context=n}function Xr(e){var t;if(Un(e)){var n=e.parentNodeDef;t=wn(e.parent,n.parent.nodeIndex).renderElement}for(var r,o,i,a,s,u=e.def,c=e.nodes,l=0;l<u.nodes.length;l++){var d=u.nodes[l];kn.setCurrentNode(e,l);var f=void 0;switch(201347067&d.flags){case 1:var p=Jn(e,t,d),h=void 0;if(33554432&d.flags){var v=Bn(d.element.componentView);h=kn.createComponentView(e,d,v,p)}Xn(e,h,d,p),f={renderElement:p,componentView:h,viewContainer:null,template:d.element.template?(a=e,s=d,new gr(a,s)):void 0},16777216&d.flags&&(f.viewContainer=new vr(e,d,f));break;case 2:f=qr(e,t,d);break;case 512:case 1024:case 2048:case 256:if(!((f=c[l])||4096&d.flags))f={instance:jr(e,d)};break;case 16:f={instance:Nr(e,d)};break;case 16384:if(!(f=c[l]))f={instance:Pr(e,d)};if(32768&d.flags)Jr(wn(e,d.parent.nodeIndex).componentView,f.instance,f.instance);break;case 32:case 64:case 128:f={value:void 0};break;case 67108864:case 134217728:f=new jt;break;case 8:void 0,(i=zn(r=e,t,o=d))&&Wn(r,o.ngContent.index,1,i,null,void 0),f=void 0}c[l]=f}uo(e,so.CreateViewNodes),po(e,201326592,268435456,0)}function eo(e){ro(e),kn.updateDirectives(e,1),co(e,so.CheckNoChanges),kn.updateRenderer(e,1),uo(e,so.CheckNoChanges),e.state&=-97}function to(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,gn(e,0,256),ro(e),kn.updateDirectives(e,0),co(e,so.CheckAndUpdate),po(e,67108864,536870912,0);var t=gn(e,256,512);Fr(e,2097152|(t?1048576:0)),kn.updateRenderer(e,0),uo(e,so.CheckAndUpdate),po(e,134217728,536870912,0),Fr(e,8388608|((t=gn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,gn(e,768,1024)}function no(e,t,n,r,o,i,a,s,u,c,l,d,f){return 0===n?function(e,t,n,r,o,i,a,s,u,c,l,d){switch(201347067&t.flags){case 1:return T=e,P=n,R=r,j=o,V=i,D=a,M=s,S=u,H=c,F=l,U=d,L=(N=t).bindings.length,z=!1,0<L&&tr(T,N,0,P)&&(z=!0),1<L&&tr(T,N,1,R)&&(z=!0),2<L&&tr(T,N,2,j)&&(z=!0),3<L&&tr(T,N,3,V)&&(z=!0),4<L&&tr(T,N,4,D)&&(z=!0),5<L&&tr(T,N,5,M)&&(z=!0),6<L&&tr(T,N,6,S)&&(z=!0),7<L&&tr(T,N,7,H)&&(z=!0),8<L&&tr(T,N,8,F)&&(z=!0),9<L&&tr(T,N,9,U)&&(z=!0),z;case 2:return function(e,t,n,r,o,i,a,s,u,c,l,d){var f=!1,p=t.bindings,h=p.length;if(0<h&&Rn(e,t,0,n)&&(f=!0),1<h&&Rn(e,t,1,r)&&(f=!0),2<h&&Rn(e,t,2,o)&&(f=!0),3<h&&Rn(e,t,3,i)&&(f=!0),4<h&&Rn(e,t,4,a)&&(f=!0),5<h&&Rn(e,t,5,s)&&(f=!0),6<h&&Rn(e,t,6,u)&&(f=!0),7<h&&Rn(e,t,7,c)&&(f=!0),8<h&&Rn(e,t,8,l)&&(f=!0),9<h&&Rn(e,t,9,d)&&(f=!0),f){var v=t.text.prefix;0<h&&(v+=Wr(n,p[0])),1<h&&(v+=Wr(r,p[1])),2<h&&(v+=Wr(o,p[2])),3<h&&(v+=Wr(i,p[3])),4<h&&(v+=Wr(a,p[4])),5<h&&(v+=Wr(s,p[5])),6<h&&(v+=Wr(u,p[6])),7<h&&(v+=Wr(c,p[7])),8<h&&(v+=Wr(l,p[8])),9<h&&(v+=Wr(d,p[9]));var y=mn(e,t.nodeIndex).renderText;e.renderer.setValue(y,v)}return f}(e,t,n,r,o,i,a,s,u,c,l,d);case 16384:return h=n,v=r,y=o,g=i,_=a,m=s,w=u,b=c,C=l,x=d,k=bn(f=e,(p=t).nodeIndex),E=k.instance,A=!1,I=void 0,0<(O=p.bindings.length)&&Pn(f,p,0,h)&&(A=!0,I=Hr(f,k,p,0,h,I)),1<O&&Pn(f,p,1,v)&&(A=!0,I=Hr(f,k,p,1,v,I)),2<O&&Pn(f,p,2,y)&&(A=!0,I=Hr(f,k,p,2,y,I)),3<O&&Pn(f,p,3,g)&&(A=!0,I=Hr(f,k,p,3,g,I)),4<O&&Pn(f,p,4,_)&&(A=!0,I=Hr(f,k,p,4,_,I)),5<O&&Pn(f,p,5,m)&&(A=!0,I=Hr(f,k,p,5,m,I)),6<O&&Pn(f,p,6,w)&&(A=!0,I=Hr(f,k,p,6,w,I)),7<O&&Pn(f,p,7,b)&&(A=!0,I=Hr(f,k,p,7,b,I)),8<O&&Pn(f,p,8,C)&&(A=!0,I=Hr(f,k,p,8,C,I)),9<O&&Pn(f,p,9,x)&&(A=!0,I=Hr(f,k,p,9,x,I)),I&&E.ngOnChanges(I),65536&p.flags&&_n(f,256,p.nodeIndex)&&E.ngOnInit(),262144&p.flags&&E.ngDoCheck(),A;case 32:case 64:case 128:return function(e,t,n,r,o,i,a,s,u,c,l,d){var f=t.bindings,p=!1,h=f.length;if(0<h&&Rn(e,t,0,n)&&(p=!0),1<h&&Rn(e,t,1,r)&&(p=!0),2<h&&Rn(e,t,2,o)&&(p=!0),3<h&&Rn(e,t,3,i)&&(p=!0),4<h&&Rn(e,t,4,a)&&(p=!0),5<h&&Rn(e,t,5,s)&&(p=!0),6<h&&Rn(e,t,6,u)&&(p=!0),7<h&&Rn(e,t,7,c)&&(p=!0),8<h&&Rn(e,t,8,l)&&(p=!0),9<h&&Rn(e,t,9,d)&&(p=!0),p){var v=Cn(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(f.length),0<h&&(y[0]=n),1<h&&(y[1]=r),2<h&&(y[2]=o),3<h&&(y[3]=i),4<h&&(y[4]=a),5<h&&(y[5]=s),6<h&&(y[6]=u),7<h&&(y[7]=c),8<h&&(y[8]=l),9<h&&(y[9]=d);break;case 64:y={},0<h&&(y[f[0].name]=n),1<h&&(y[f[1].name]=r),2<h&&(y[f[2].name]=o),3<h&&(y[f[3].name]=i),4<h&&(y[f[4].name]=a),5<h&&(y[f[5].name]=s),6<h&&(y[f[6].name]=u),7<h&&(y[f[7].name]=c),8<h&&(y[f[8].name]=l),9<h&&(y[f[9].name]=d);break;case 128:var g=n;switch(h){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,a);break;case 6:y=g.transform(r,o,i,a,s);break;case 7:y=g.transform(r,o,i,a,s,u);break;case 8:y=g.transform(r,o,i,a,s,u,c);break;case 9:y=g.transform(r,o,i,a,s,u,c,l);break;case 10:y=g.transform(r,o,i,a,s,u,c,l,d)}}v.value=y}return p}(e,t,n,r,o,i,a,s,u,c,l,d);default:throw"unreachable"}var f,p,h,v,y,g,_,m,w,b,C,x,k,E,A,I,O;var T,N,P,R,j,V,D,M,S,H,F,U,L,z}(e,t,r,o,i,a,s,u,c,l,d,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o<n.length;o++)tr(e,t,o,n[o])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)Rn(e,t,i,n[i])&&(o=!0);if(o){var a="";for(i=0;i<n.length;i++)a+=Wr(n[i],r[i]);a=t.text.prefix+a;var s=mn(e,t.nodeIndex).renderText;e.renderer.setValue(s,a)}return o}(e,t,n);case 16384:return function(e,t,n){for(var r=bn(e,t.nodeIndex),o=r.instance,i=!1,a=void 0,s=0;s<n.length;s++)Pn(e,t,s,n[s])&&(i=!0,a=Hr(e,r,t,s,n[s],a));return a&&o.ngOnChanges(a),65536&t.flags&&_n(e,256,t.nodeIndex)&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)Rn(e,t,i,n[i])&&(o=!0);if(o){var a=Cn(e,t.nodeIndex),s=void 0;switch(201347067&t.flags){case 32:s=n;break;case 64:for(s={},i=0;i<n.length;i++)s[r[i].name]=n[i];break;case 128:var u=n[0],c=n.slice(1);s=u.transform.apply(u,c)}a.value=s}return o}(e,t,n);default:throw"unreachable"}}(e,t,r)}function ro(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var o=wn(e,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.state|=32,Dn(a,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function oo(e,t,n,r,o,i,a,s,u,c,l,d,f){return 0===n?function(e,t,n,r,o,i,a,s,u,c,l,d){var f=t.bindings.length;0<f&&jn(e,t,0,n);1<f&&jn(e,t,1,r);2<f&&jn(e,t,2,o);3<f&&jn(e,t,3,i);4<f&&jn(e,t,4,a);5<f&&jn(e,t,5,s);6<f&&jn(e,t,6,u);7<f&&jn(e,t,7,c);8<f&&jn(e,t,8,l);9<f&&jn(e,t,9,d)}(e,t,r,o,i,a,s,u,c,l,d,f):function(e,t,n){for(var r=0;r<n.length;r++)jn(e,t,r,n[r])}(e,t,r),!1}function io(e,t){if(xn(e,t.nodeIndex).dirty)throw En(kn.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function ao(e){if(!(128&e.state)){if(co(e,so.Destroy),uo(e,so.Destroy),Fr(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=Sn(e);if(t){var n=t.template._projectedViews;n&&(fr(n,n.indexOf(e)),kn.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(wn(e,n).renderElement):2&r.flags?e.renderer.destroyNode(mn(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&xn(e,n).destroy()}}(e),Un(e)&&e.renderer.destroy(),e.state|=128}}var so={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};function uo(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?lo(wn(e,r).componentView,t):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function co(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=wn(e,r).viewContainer._embeddedViews,a=0;a<i.length;a++)lo(i[a],t);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function lo(e,t){var n=e.state;switch(t){case so.CheckNoChanges:0==(128&n)&&(12==(12&n)?eo(e):64&n&&fo(e,so.CheckNoChangesProjectedViews));break;case so.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?eo(e):64&n&&fo(e,t));break;case so.CheckAndUpdate:0==(128&n)&&(12==(12&n)?to(e):64&n&&fo(e,so.CheckAndUpdateProjectedViews));break;case so.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?to(e):64&n&&fo(e,t));break;case so.Destroy:ao(e);break;case so.CreateViewNodes:Xr(e)}}function fo(e,t){co(e,t),uo(e,t)}function po(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var o=e.def.nodes.length,i=0;i<o;i++){var a=e.def.nodes[i];if(a.flags&t&&a.flags&n)switch(kn.setCurrentNode(e,a.nodeIndex),r){case 0:Zr(e,a);break;case 1:io(e,a)}a.childFlags&t&&a.childFlags&n||(i+=a.childCount)}}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */so[so.CreateViewNodes]="CreateViewNodes",so[so.CheckNoChanges]="CheckNoChanges",so[so.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",so[so.CheckAndUpdate]="CheckAndUpdate",so[so.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews";var ho=!(so[so.Destroy]="Destroy");function vo(){if(!ho){ho=!0;var e=Et()?{setCurrentNode:So,createRootView:go,createEmbeddedView:mo,createComponentView:wo,createNgModuleRef:bo,overrideProvider:ko,overrideComponentView:Eo,clearOverrides:Ao,checkAndUpdateView:No,checkNoChangesView:Po,destroyView:Ro,createDebugContext:function(e,t){return new Qo(e,t)},handleEvent:Ho,updateDirectives:Fo,updateRenderer:Uo}:{setCurrentNode:function(){},createRootView:yo,createEmbeddedView:Qr,createComponentView:Yr,createNgModuleRef:br,overrideProvider:On,overrideComponentView:On,clearOverrides:On,checkAndUpdateView:to,checkNoChangesView:eo,destroyView:ao,createDebugContext:function(e,t){return new Qo(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Oo:To,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Oo:To,e)}};kn.setCurrentNode=e.setCurrentNode,kn.createRootView=e.createRootView,kn.createEmbeddedView=e.createEmbeddedView,kn.createComponentView=e.createComponentView,kn.createNgModuleRef=e.createNgModuleRef,kn.overrideProvider=e.overrideProvider,kn.overrideComponentView=e.overrideComponentView,kn.clearOverrides=e.clearOverrides,kn.checkAndUpdateView=e.checkAndUpdateView,kn.checkNoChangesView=e.checkNoChangesView,kn.destroyView=e.destroyView,kn.resolveDep=Mr,kn.createDebugContext=e.createDebugContext,kn.handleEvent=e.handleEvent,kn.updateDirectives=e.updateDirectives,kn.updateRenderer=e.updateRenderer,kn.dirtyParentQueries=zr}}function yo(e,t,n,r,o,i){return Gr(_o(e,o,o.injector.get(Nt),t,n),r,i)}function go(e,t,n,r,o,i){var a=o.injector.get(Nt),s=_o(e,o,new Jo(a),t,n),u=Io(r);return Yo(Mo.create,Gr,null,[s,u,i])}function _o(e,t,n,r,o){var i=t.injector.get(yn),a=t.injector.get(pe),s=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:s,errorHandler:a}}function mo(e,t,n,r){var o=Io(n);return Yo(Mo.create,Qr,null,[e,t,o,r])}function wo(e,t,n,r){var o=xo.get(t.element.componentProvider.provider.token);return n=o||Io(n),Yo(Mo.create,Yr,null,[e,t,n,r])}function bo(e,t,n,r){return br(e,t,n,function(e){var t=function(e){var n=!1,r=!1;if(0===Co.size)return{hasOverrides:n,hasDeprecatedOverrides:r};return e.providers.forEach(function(e){var t=Co.get(e.token);3840&e.flags&&t&&(n=!0,r=r||t.deprecatedBehavior)}),{hasOverrides:n,hasDeprecatedOverrides:r}}(e),n=t.hasOverrides,o=t.hasDeprecatedOverrides;if(!n)return e;return function(e){for(var t=0;t<e.providers.length;t++){var n=e.providers[t];o&&(n.flags|=4096);var r=Co.get(n.token);r&&(n.flags=-3841&n.flags|r.flags,n.deps=Ln(r.deps),n.value=r.value)}}(e=e.factory(function(){return On})),e}(r))}var Co=new Map,xo=new Map;function ko(e){Co.set(e.token,e)}function Eo(e,t){var n=Bn(Bn(t.viewDefFactory).nodes[0].element.componentView);xo.set(e,n)}function Ao(){Co.clear(),xo.clear()}function Io(e){if(0===Co.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var o=e.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&Co.has(o.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return On});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=Co.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=Ln(i.deps),o.value=i.value)}}}}function Oo(e,t,n,r,o,i,a,s,u,c,l,d,f){var p=e.def.nodes[t];return no(e,p,n,r,o,i,a,s,u,c,l,d,f),224&p.flags?Cn(e,t).value:void 0}function To(e,t,n,r,o,i,a,s,u,c,l,d,f){var p=e.def.nodes[t];return oo(e,p,n,r,o,i,a,s,u,c,l,d,f),224&p.flags?Cn(e,t).value:void 0}function No(e){return Yo(Mo.detectChanges,to,null,[e])}function Po(e){return Yo(Mo.checkNoChanges,eo,null,[e])}function Ro(e){return Yo(Mo.destroy,ao,null,[e])}var jo,Vo,Do,Mo={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};function So(e,t){Vo=e,Do=t}function Ho(e,t,n,r){return So(e,t),Yo(Mo.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Fo(e,a){if(128&e.state)throw In(Mo[jo]);return So(e,qo(e,0)),e.def.updateDirectives(function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=e.def.nodes[t];0===a?Lo(e,i,n,r):zo(e,i,n,r);16384&i.flags&&So(e,qo(e,t));return 224&i.flags?Cn(e,i.nodeIndex).value:void 0},e)}function Uo(e,a){if(128&e.state)throw In(Mo[jo]);return So(e,Wo(e,0)),e.def.updateRenderer(function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=e.def.nodes[t];0===a?Lo(e,i,n,r):zo(e,i,n,r);3&i.flags&&So(e,Wo(e,t));return 224&i.flags?Cn(e,i.nodeIndex).value:void 0},e)}function Lo(e,t,n,r){if(no.apply(void 0,[e,t,n].concat(r))){var o=1===n?r[0]:r;if(16384&t.flags){for(var i={},a=0;a<t.bindings.length;a++){var s=t.bindings[a],u=o[a];8&s.flags&&(i[Zo(s.nonMinifiedName)]=Ko(u))}var c=t.parent,l=wn(e,c.nodeIndex).renderElement;if(c.element.name)for(var d in i){null!=(u=i[d])?e.renderer.setAttribute(l,d,u):e.renderer.removeAttribute(l,d)}else e.renderer.setValue(l,"bindings="+JSON.stringify(i,null,2))}}}function zo(e,t,n,r){oo.apply(void 0,[e,t,n].concat(r))}function Zo(e){return"ng-reflect-"+(e=e.replace(/[$@]/g,"_").replace(Bo,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()}))}Mo[Mo.create]="create",Mo[Mo.detectChanges]="detectChanges",Mo[Mo.checkNoChanges]="checkNoChanges",Mo[Mo.destroy]="destroy",Mo[Mo.handleEvent]="handleEvent";var Bo=/([A-Z])/g;function Ko(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function qo(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Wo(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Qo=function(){function e(e,t){this.view=e,null==(this.nodeIndex=t)&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Hn(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return wn(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return _r(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){Go(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&Go(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!Un(e);)e=e.parent;if(e.parent)return wn(e.parent,Hn(e).nodeIndex);return null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Fn(this.view,this.nodeDef):Fn(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(t){for(var e,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var i=function(e,t){for(var n=-1,r=0;r<=t;r++){var o=e.nodes[r];3&o.flags&&n++}return n}(e,n),a=-1;e.factory(function(){return++a===i?(e=t.error).bind.apply(e,[t].concat(r)):On;var e}),a<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,r))},e}();function Go(e,t,n){for(var r in t.references)n[r]=Kr(e,t,t.references[r])}function Yo(e,t,n,r){var o,i,a=jo,s=Vo,u=Do;try{jo=e;var c=t.apply(n,r);return Vo=s,Do=u,jo=a,c}catch(e){if(le(e)||!Vo)throw e;throw o=e,i=$o(),o instanceof Error||(o=new Error(o.toString())),An(o,i),o}}function $o(){return Vo?new Qo(Vo,Do):null}var Jo=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new Xo(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),Xo=function(){function e(e){this.delegate=e,this.data=this.delegate.data}return e.prototype.destroyNode=function(e){var t;t=Lt(e),Ut.delete(t.nativeNode),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=$o();if(r){var o=new Ft(n,null,r);o.name=e,zt(o)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=$o();return n&&zt(new Ht(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=$o();return n&&zt(new Ht(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=Lt(e),r=Lt(t);n&&r&&n instanceof Ft&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=Lt(e),o=Lt(t),i=Lt(n);r&&o&&r instanceof Ft&&r.insertBefore(i,o),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=Lt(e),r=Lt(t);n&&r&&n instanceof Ft&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e){var t=this.delegate.selectRootElement(e),n=$o();return n&&zt(new Ft(t,null,n)),t},e.prototype.setAttribute=function(e,t,n,r){var o=Lt(e);if(o&&o instanceof Ft){var i=r?r+":"+t:t;o.attributes[i]=n}this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=Lt(e);if(r&&r instanceof Ft){var o=n?n+":"+t:t;r.attributes[o]=null}this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=Lt(e);n&&n instanceof Ft&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=Lt(e);n&&n instanceof Ft&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var o=Lt(e);o&&o instanceof Ft&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=Lt(e);r&&r instanceof Ft&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=Lt(e);r&&r instanceof Ft&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=Lt(e);r&&r.listeners.push(new St(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();!function(o){function e(e,t,n){var r=o.call(this)||this;return r.moduleType=e,r._bootstrapComponents=t,r._ngModuleDefFactory=n,r}n(e,o),e.prototype.create=function(e){vo();var t=Bn(this._ngModuleDefFactory);return kn.createNgModuleRef(this.moduleType,e||K.NULL,this._bootstrapComponents,t)}}(st);
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
function ei(e){return"string"==typeof e?'"'+e+'"':""+e}function ti(e,t){var n,r,o;o=t,(n=e)==(r=null)&&function(e,t,n,r,o){throw void 0===o&&(o=ei),new Error("ASSERT: expected "+n+" "+r+" "+o(t)+" but was "+o(e)+"!")}
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */(n,r,o,"!=")}"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),"undefined"!=typeof global&&(global.ngDevMode=!0))
/**
     * @license
     * Copyright Google Inc. All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */;!function(){function e(){this.dirty=!1,this._valuesTree=null,this._values=null}Object.defineProperty(e.prototype,"length",{get:function(){return ngDevMode&&ti(this._values,"refreshed"),this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){ngDevMode&&ti(this._values,"refreshed");var e=this._values;return e.length?e[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){ngDevMode&&ti(this._values,"refreshed");var e=this._values;return e.length?e[e.length-1]:null},enumerable:!0,configurable:!0}),e.prototype._refresh=function(){return null===this._values&&(this._values=this._valuesTree,!0)},e.prototype.map=function(e){throw new Error("Method not implemented.")},e.prototype.filter=function(e){throw new Error("Method not implemented.")},e.prototype.find=function(e){throw new Error("Method not implemented.")},e.prototype.reduce=function(e,t){throw new Error("Method not implemented.")},e.prototype.forEach=function(e){throw new Error("Method not implemented.")},e.prototype.some=function(e){throw new Error("Method not implemented.")},e.prototype.toArray=function(){return ngDevMode&&ti(this._values,"refreshed"),this._values},e.prototype.toString=function(){throw new Error("Method not implemented.")},e.prototype.reset=function(e){throw new Error("Method not implemented.")},e.prototype.notifyOnChanges=function(){throw new Error("Method not implemented.")},e.prototype.setDirty=function(){throw new Error("Method not implemented.")},e.prototype.destroy=function(){throw new Error("Method not implemented.")}}();var ni=function(){function e(e,t){this.el=e,this.renderer=t}return e.prototype.ngAfterViewInit=function(){var e=parseInt(this.getCssproperty(this.el.nativeElement,"font-size").split("px")[0],10),t=this.getCssproperty(this.el.nativeElement,"font-family").split(",")[0],n=this.el.nativeElement.clientWidth;this.renderer.setStyle(this.el.nativeElement,"display","none");var r=this.renderer.createElement("canvas").getContext("2d");r.font=e+"px "+t;for(var o=this.el.nativeElement.innerHTML.trim(),i="",a="",s=!1,u=!1,c=0,l="",d=o.split(""),f=0;f<o.length&&!u;f++)if(c<n*(this.lines-1)&&!s){var p=i;if(o.charAt(f)&&" "===o.charAt(f)&&(l=i),i+=o.charAt(f),c+=r.measureText(d[f]).width,o.charAt(f)&&"\n"===o.charAt(f)&&(c-=r.measureText(d[f]).width),c>=n*(this.lines-1)){if(o.charAt(f)&&" "===o.charAt(f))i=p,a=o.charAt(f);else{i=l;var h=p.split(" ");a=h[h.length-1]+o.charAt(f)}s=!0}}else o.charAt(f+1)&&" "===o.charAt(f+1)&&(l=i),a+=o.charAt(f),c+=r.measureText(d[f]).width,n*this.lines-c<-100&&(u=!0);var v=this.renderer.createElement("div"),y=this.renderer.createText(i.trim());this.renderer.appendChild(v,y);var g=this.renderer.createElement("div"),_=this.renderer.createText(a.trim());this.renderer.setStyle(g,"overflow","hidden"),this.renderer.setStyle(g,"white-space","nowrap"),this.renderer.setStyle(g,"text-overflow","ellipsis"),this.renderer.appendChild(g,_),this.el.nativeElement.innerHTML="",this.renderer.appendChild(this.el.nativeElement,v),this.renderer.appendChild(this.el.nativeElement,g),this.renderer.setStyle(this.el.nativeElement,"display","block")},e.prototype.getCssproperty=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},e.decorators=[{type:m,args:[{selector:"[ngxEllipsis]"}]}],e.ctorParameters=function(){return[{type:Rt},{type:Pt}]},e.propDecorators={lines:[{type:w}]},e}(),ri=function(){function e(){}return e.decorators=[{type:b,args:[{imports:[],declarations:[ni],exports:[ni]}]}],e}();e.NgxMultiLineEllipsisDirective=ni,e.NgxMultiLineEllipsisModule=ri,Object.defineProperty(e,"__esModule",{value:!0})});