angular4-lib-starter
Version:
starter library for angular4 component modules
1 lines • 271 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["angular4-lib-starter"]={})}(this,function(t){"use strict";function e(t,e){function n(){this.constructor=t}gn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){return e={exports:{}},t(e,e.exports),e.exports}function r(t){return t.reduce(function(t,e){return t.concat(e instanceof kn.UnsubscriptionError?e.errors:e)},[])}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return Wn.isScheduler(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof Gn.Observable?t[0]:new $n.ArrayObservable(t,r).lift(new cr.MergeAllOperator(n))}function i(){if(!Lr){var t=Hr.Symbol;if(t&&t.iterator)Lr=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Lr=r)}}return Lr}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function s(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function u(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function c(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+u(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,o=t[r];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+u(o)+"'");if(r!=o.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+o.length+") in the function: "+u(o));for(var i=[],a=0,s=n.length-1;a<s;a++){var p=[];i.push(p);var l=n[a];if(Array.isArray(l))for(var f=0;f<l.length;f++)p.push(c(l[f]));else"function"==typeof l?p.push(c(l)):p.push(l)}return Gr.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+u(t)+"'")}function l(t,e,n,r){function o(t){if(!Gr||!Gr.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var a=function(t){var n=Gr.getOwnMetadata("annotations",t)||[];return n.push(e),Gr.defineMetadata("annotations",n,t),t};return a.annotations=n,a.Class=function(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+u(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=p(t[r],r));this&&this.annotations instanceof Array&&Gr.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+Ur++),e},r&&r(a),a}var i=f(e);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function f(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var o in r)this[o]=r[o]}}}function h(t,e,n){function r(){function t(t,e,n){for(var r=Gr.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(i),Gr.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var i=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=i,t}var o=f(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function d(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return o.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=Gr.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),Gr.defineMetadata("propMetadata",r,t.constructor)}}var o=f(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function y(t){return t.__forward_ref__=y,t.toString=function(){return u(this())},t}function g(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===y?t():t}function m(t){return t[fo]}function v(t){return t[ho]}function _(t){return t.length>1?" ("+function(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return u(t.token)}).join(" -> ")+")":""}function b(t,e,n,r){var o=[e],i=n(o),a=r?function(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[ho]=e,r}(i,r):Error(i);return a.addKey=function(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)},a.keys=o,a.injectors=[t],a.constructResolvingMessage=n,a[ho]=r,a}function w(t,e){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];i&&0!=i.length?n.push(i.map(u).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+u(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(t)+"' is decorated with Injectable.")}function C(t){return"function"==typeof t}function E(t){return t?t.map(function(t){var e=t.type.annotationCls,n=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(n)))}):[]}function O(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function x(t,e){return t.forEach(function(t){if(t instanceof _o)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw function(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}(t);x(t,e)}}),e}function P(t){var e=Eo.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw w(t,e);return e.map(function(n){return S(t,n,e)})}function S(t,e,n){var r=null,o=!1;if(!Array.isArray(e))return e instanceof no?A(e.token,o,null):A(e,o,null);for(var i=null,a=0;a<e.length;++a){var s=e[a];s instanceof _o?r=s:s instanceof no?r=s.token:s instanceof ro?o=!0:s instanceof io||s instanceof ao?i=s:s instanceof Dr&&(r=s)}if(null!=(r=g(r)))return A(r,o,i);throw w(t,n)}function A(t,e,n){return new Oo(mo.get(t),e,n)}function V(t){return!!t&&"function"==typeof t.then}function k(t){return!!t&&"function"==typeof t.subscribe}function T(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function N(){throw new Error("Runtime compiler is not loaded")}function M(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function j(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function D(t){t._nesting--,M(t)}function R(){return ui=!0,si}function I(t,e,n){void 0===n&&(n=[]);var r=new Dr("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=F();return o&&!o.injector.get(ci,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):function(t){if(ii&&!ii.destroyed&&!ii.injector.get(ci,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ii=t.get(li);var e=t.get(Ro,null);e&&e.forEach(function(t){return t()})}(Vo.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),function(t){var e=F();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function F(){return ii&&!ii.destroyed?ii:null}function H(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function L(t){return t.reduce(function(t,e){var n=Array.isArray(e)?L(e):e;return t.concat(n)},[])}function U(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function G(t,e,n){t.childNodes.forEach(function(t){t instanceof Vi&&(e(t)&&n.push(t),G(t,e,n))})}function B(t,e,n){t instanceof Vi&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Vi&&B(t,e,n)})}function z(t){return ki.get(t)||null}function Z(t){ki.set(t.nativeNode,t)}function q(t,e){var n=W(t),r=W(e);return n&&r?function(t,e,n){var r=t[i()](),o=e[i()]();for(;;){var a=r.next(),s=o.next();if(a.done&&s.done)return!0;if(a.done||s.done)return!1;if(!n(a.value,s.value))return!1}}(t,e,q):!(n||!(t&&("object"==typeof t||"function"==typeof t))||r||!(e&&("object"==typeof e||"function"==typeof e)))||s(t,e)}function W(t){return!!K(t)&&(Array.isArray(t)||!(t instanceof Map)&&i()in t)}function K(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Q(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Y(t,e){return t.nodes[e]}function J(t,e){return t.nodes[e]}function X(t,e){return t.nodes[e]}function tt(t,e){return t.nodes[e]}function et(t,e){return t.nodes[e]}function nt(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return rt(n,e),n}(o,t)}function rt(t,e){t[fo]=e,t[yo]=e.logError.bind(e)}function ot(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function it(t){var e=ea.get(t);return e||(e=u(t)+"_"+ea.size,ea.set(t,e)),e}function at(t,e,n,r){var o=t.oldValues;return!(!(2&t.state)&&s(o[e.bindingIndex+n],r))}function st(t,e,n,r){return!!at(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function ut(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!q(o,r))throw nt(Xi.createDebugContext(t,e.index),o,r,0!=(1&t.state))}function ct(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function pt(t,e,n,r){return ct(33554432&t.def.nodes[e].flags?J(t,e).componentView:t),Xi.handleEvent(t,e,n,r)}function lt(t){return t.parent?J(t.parent,t.parentNodeDef.index):null}function ft(t){return t.parent?t.parentNodeDef.parent:null}function ht(t,e){switch(201347067&e.flags){case 1:return J(t,e.index).renderElement;case 2:return Y(t,e.index).renderText}}function dt(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function yt(t){return t.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:it(e)}})}function gt(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Xr.Native?J(t,n.renderParent.index).renderElement:void 0:e}function mt(t){var e=na.get(t);return e||((e=t(function(){return ta})).factory=t,na.set(t,e)),e}function vt(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(ht(t,t.def.lastRenderRootNode))),_t(t,e,0,t.def.nodes.length-1,n,r,o)}function _t(t,e,n,r,o,i,a){for(var s=n;s<=r;s++){var u=t.def.nodes[s];11&u.flags&&wt(t,u,e,o,i,a),s+=u.childCount}}function bt(t,e,n,r,o,i){for(var a=t;a&&!dt(a);)a=a.parent;for(var s=a.parent,u=ft(a),c=u.index+1,p=u.index+u.childCount,l=c;l<=p;l++){var f=s.def.nodes[l];f.ngContentIndex===e&&wt(s,f,n,r,o,i),l+=f.childCount}if(!s.parent){var h=t.root.projectableNodes[e];if(h)for(l=0;l<h.length;l++)Ct(t,h[l],n,r,o,i)}}function wt(t,e,n,r,o,i){if(8&e.flags)bt(t,e.ngContent.index,n,r,o,i);else{var a=ht(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Ct(t,a,n,r,o,i),32&e.bindingFlags&&Ct(J(t,e.index).componentView,a,n,r,o,i)):Ct(t,a,n,r,o,i),16777216&e.flags)for(var s=J(t,e.index).viewContainer._embeddedViews,u=0;u<s.length;u++)vt(s[u],n,r,o,i);1&e.flags&&!e.element.name&&_t(t,n,e.index+1,e.index+e.childCount,r,o,i)}}function Ct(t,e,n,r,o,i){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,o);break;case 3:a.removeChild(r,e);break;case 0:i.push(e)}}function Et(t){if(":"===t[0]){var e=t.match(ra);return[e[1],e[2]]}return["",t]}function Ot(t,e,n,r){if(!st(t,e,n,r))return!1;var o=e.bindings[n],i=J(t,e.index),a=i.renderElement,s=o.name;switch(15&o.flags){case 1:!function(t,e,n,r,o,i){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,i):i;s=null!=s?s.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,s,r):u.removeAttribute(n,o,r)}(t,o,a,o.ns,s,r);break;case 2:!function(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}(t,a,s,r);break;case 4:!function(t,e,n,r,o){var i=t.root.sanitizer.sanitize(Yi.STYLE,o);if(null!=i){i=i.toString();var a=e.suffix;null!=a&&(i+=a)}else i=null;var s=t.renderer;null!=i?s.setStyle(n,r,i):s.removeStyle(n,r)}(t,o,a,s,r);break;case 8:!function(t,e,n,r,o){var i=e.securityContext,a=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,a)}(33554432&e.flags&&32&o.flags?i.componentView:t,o,a,s,r)}return!0}function xt(t,e,n){if(void 0===n&&(n=lo.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case ia:case aa:return t}var o=t._def.providersByKey[r];if(o){var i=t._providers[o.index];return i===oa&&(i=t._providers[o.index]=Pt(t,o)),i}return t._parent.get(e.token,n)}function Pt(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r,o=n.length;switch(o){case 0:r=new e;break;case 1:r=new e(xt(t,n[0]));break;case 2:r=new e(xt(t,n[0]),xt(t,n[1]));break;case 3:r=new e(xt(t,n[0]),xt(t,n[1]),xt(t,n[2]));break;default:for(var i=new Array(o),a=0;a<o;a++)i[a]=xt(t,n[a]);r=new(e.bind.apply(e,[void 0].concat(i)))}return r}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r,o=n.length;switch(o){case 0:r=e();break;case 1:r=e(xt(t,n[0]));break;case 2:r=e(xt(t,n[0]),xt(t,n[1]));break;case 3:r=e(xt(t,n[0]),xt(t,n[1]),xt(t,n[2]));break;default:for(var i=Array(o),a=0;a<o;a++)i[a]=xt(t,n[a]);r=e.apply(void 0,i)}return r}(t,e.value,e.deps);break;case 2048:n=xt(t,e.deps[0]);break;case 256:n=e.value}return n}function St(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Tt(n,e),Xi.dirtyParentQueries(r),Vt(r),r}function At(t,e,n){var r=e?ht(e,e.def.lastRenderRootNode):t.renderElement;vt(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Vt(t){vt(t,3,null,null,void 0)}function kt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Tt(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function Nt(t,e){return new fa(t,e)}function Mt(t,e,n,r){return new da(t,e,n,r)}function jt(t,e){var n,r=(8192&e.flags)>0,o=e.provider;switch(201347067&e.flags){case 512:n=Dt(t,e.parent,r,o.value,o.deps);break;case 1024:n=function(t,e,n,r,o){var i,a=o.length;switch(a){case 0:i=r();break;case 1:i=r(Rt(t,e,n,o[0]));break;case 2:i=r(Rt(t,e,n,o[0]),Rt(t,e,n,o[1]));break;case 3:i=r(Rt(t,e,n,o[0]),Rt(t,e,n,o[1]),Rt(t,e,n,o[2]));break;default:for(var s=Array(a),u=0;u<a;u++)s[u]=Rt(t,e,n,o[u]);i=r.apply(void 0,s)}return i}(t,e.parent,r,o.value,o.deps);break;case 2048:n=Rt(t,e.parent,r,o.deps[0]);break;case 256:n=o.value}return n}function Dt(t,e,n,r,o){var i,a=o.length;switch(a){case 0:i=new r;break;case 1:i=new r(Rt(t,e,n,o[0]));break;case 2:i=new r(Rt(t,e,n,o[0]),Rt(t,e,n,o[1]));break;case 3:i=new r(Rt(t,e,n,o[0]),Rt(t,e,n,o[1]),Rt(t,e,n,o[2]));break;default:for(var s=new Array(a),u=0;u<a;u++)s[u]=Rt(t,e,n,o[u]);i=new(r.bind.apply(r,[void 0].concat(s)))}return i}function Rt(t,e,n,r,o){if(void 0===o&&(o=lo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var a=r.tokenKey;for(a===ba&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(a){case ya:return function(t){return new ha(t.renderer)}(s=It(t,e,n));case ga:var s=It(t,e,n);return s.renderer;case ma:return new _i(J(t,e.index).renderElement);case va:return J(t,e.index).viewContainer;case _a:if(e.element.template)return J(t,e.index).template;break;case ba:return function(t){return new pa(t)}(It(t,e,n));case wa:return Nt(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[a];if(u){var c=X(t,u.index);return c.instance===Ca&&(c.instance=jt(t,u)),c.instance}}n=dt(t),e=ft(t),t=t.parent}var p=i.root.injector.get(r.token,Ea);return p!==Ea||o===Ea?p:i.root.ngModule.injector.get(r.token,o)}function It(t,e,n){var r;if(n)r=J(t,e.index).componentView;else for(r=t;r.parent&&!dt(r);)r=r.parent;return r}function Ft(t,e,n,r,o,i){if(32768&n.flags){var a=J(t,n.parent.index).componentView;2&a.def.flags&&(a.state|=8)}var s=n.bindings[r].name;if(e.instance[s]=o,524288&n.flags){i=i||{};var u=t.oldValues[n.bindingIndex+r];u instanceof Ti&&(u=u.wrapped),i[n.bindings[r].nonMinifiedName]=new Ni(u,o,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function Ht(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var o=n[r],i=o.parent;for(!i&&o.flags&e&&Lt(t,r,o.flags&e),0==(o.childFlags&e)&&(r+=o.childCount);i&&1&i.flags&&r===i.index+i.childCount;)i.directChildFlags&e&&function(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var o=t.def.nodes[r];o.flags&n&&Lt(t,r,o.flags&n),r+=o.childCount}}(t,i,e),i=i.parent}}function Lt(t,e,n){var r=X(t,e).instance;r!==Ca&&(Xi.setCurrentNode(t,e),1048576&n&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}function Ut(t,e,n,r,o){for(var i=e;i<=n;i++){var a=t.def.nodes[i],s=a.matchedQueries[r.id];if(null!=s&&o.push(Gt(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=J(t,i);if(16777216&a.flags)for(var c=u.viewContainer._embeddedViews,p=0;p<c.length;p++){var l=c[p],f=lt(l);f&&f===u&&Ut(l,0,l.def.nodes.length-1,r,o)}var h=u.template._projectedViews;if(h)for(p=0;p<h.length;p++){var d=h[p];Ut(d,0,d.def.nodes.length-1,r,o)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(i+=a.childCount)}return o}function Gt(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=J(t,e.index).renderElement;break;case 0:r=new _i(J(t,e.index).renderElement);break;case 2:r=J(t,e.index).template;break;case 3:r=J(t,e.index).viewContainer;break;case 4:r=X(t,e.index).instance}return r}}function Bt(t,e){return(null!=t?t.toString():"")+e.suffix}function zt(t,e,n,r){var o=Wt(t.root,t.renderer,t,e,n);return Kt(o,t.component,r),$t(o),o}function Zt(t,e,n){var r=Wt(t,t.renderer,null,null,e);return Kt(r,n,n),$t(r),r}function qt(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Wt(t.root,o,t,e.element.componentProvider,n)}function Wt(t,e,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:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a}}function Kt(t,e,n){t.component=e,t.context=n}function $t(t){var e;if(dt(t)){var n=t.parentNodeDef;e=J(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i<r.nodes.length;i++){var a=r.nodes[i];Xi.setCurrentNode(t,i);var s=void 0;switch(201347067&a.flags){case 1:var u=function(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,a=t.renderer;if(t.parent||!i){r=o.name?a.createElement(o.name,o.ns):a.createComment("");var s=gt(t,e,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],p=c[0],l=c[1],f=c[2];a.setAttribute(r,l,f,p)}return r}(t,e,a),c=void 0;if(33554432&a.flags){var p=mt(a.element.componentView);c=Xi.createComponentView(t,a,p,u)}!function(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],a=function(t,e,n){return function(r){try{return pt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}(t,n.index,function(t,e){return t?t+":"+e:e}(i.target,i.eventName)),s=i.target,u=t;"component"===i.target&&(s=null,u=e);var c=u.renderer.listen(s||r,i.eventName,a);t.disposables[n.outputIndex+o]=c}}(t,c,a,u),s={renderElement:u,componentView:c,viewContainer:null,template:a.element.template?function(t,e){return new la(t,e)}(t,a):void 0},16777216&a.flags&&(s.viewContainer=function(t,e,n){return new ca(t,e,n)}(t,a,s));break;case 2:s=function(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=gt(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}(t,e,a);break;case 512:case 1024:case 2048:case 256:s={instance:l=function(t,e){return 4096&e.flags?Ca:jt(t,e)}(t,a)};break;case 16:s={instance:l=function(t,e){for(var n=t;n.parent&&!dt(n);)n=n.parent;return Dt(n.parent,ft(n),!0,e.provider.value,e.provider.deps)}(t,a)};break;case 16384:var l=function(t,e){var n=(32768&e.flags)>0,r=Dt(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],a=r[i.propName].subscribe(function(t,e,n){return function(r){try{return pt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=a.unsubscribe.bind(a)}return r}(t,a);s={instance:l},32768&a.flags&&Kt(J(t,a.parent.index).componentView,l,l);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new bi;break;case 8:!function(t,e,n){var r=gt(t,e,n);r&&bt(t,n.ngContent.index,1,r,null,void 0)}(t,e,a),s=void 0}o[i]=s}ne(t,Oa.CreateViewNodes),ae(t,201326592,268435456,0)}function Qt(t){Xt(t),Xi.updateDirectives(t,1),re(t,Oa.CheckNoChanges),Xi.updateRenderer(t,1),ne(t,Oa.CheckNoChanges),t.state&=-97}function Yt(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Xt(t),Xi.updateDirectives(t,0),re(t,Oa.CheckAndUpdate),ae(t,67108864,536870912,0),Ht(t,2097152|(2&t.state?1048576:0)),Xi.updateRenderer(t,0),ne(t,Oa.CheckAndUpdate),ae(t,134217728,536870912,0),Ht(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function Jt(t,e,n,r,o,i,a,s,u,c,p,l,f){return 0===n?function(t,e,n,r,o,i,a,s,u,c,p,l){var f=!1;switch(201347067&e.flags){case 1:f=function(t,e,n,r,o,i,a,s,u,c,p,l){var f=e.bindings.length,h=!1;return f>0&&Ot(t,e,0,n)&&(h=!0),f>1&&Ot(t,e,1,r)&&(h=!0),f>2&&Ot(t,e,2,o)&&(h=!0),f>3&&Ot(t,e,3,i)&&(h=!0),f>4&&Ot(t,e,4,a)&&(h=!0),f>5&&Ot(t,e,5,s)&&(h=!0),f>6&&Ot(t,e,6,u)&&(h=!0),f>7&&Ot(t,e,7,c)&&(h=!0),f>8&&Ot(t,e,8,p)&&(h=!0),f>9&&Ot(t,e,9,l)&&(h=!0),h}(t,e,n,r,o,i,a,s,u,c,p,l);break;case 2:f=function(t,e,n,r,o,i,a,s,u,c,p,l){var f=!1,h=e.bindings,d=h.length;if(d>0&&st(t,e,0,n)&&(f=!0),d>1&&st(t,e,1,r)&&(f=!0),d>2&&st(t,e,2,o)&&(f=!0),d>3&&st(t,e,3,i)&&(f=!0),d>4&&st(t,e,4,a)&&(f=!0),d>5&&st(t,e,5,s)&&(f=!0),d>6&&st(t,e,6,u)&&(f=!0),d>7&&st(t,e,7,c)&&(f=!0),d>8&&st(t,e,8,p)&&(f=!0),d>9&&st(t,e,9,l)&&(f=!0),f){var y=e.text.prefix;d>0&&(y+=Bt(n,h[0])),d>1&&(y+=Bt(r,h[1])),d>2&&(y+=Bt(o,h[2])),d>3&&(y+=Bt(i,h[3])),d>4&&(y+=Bt(a,h[4])),d>5&&(y+=Bt(s,h[5])),d>6&&(y+=Bt(u,h[6])),d>7&&(y+=Bt(c,h[7])),d>8&&(y+=Bt(p,h[8])),d>9&&(y+=Bt(l,h[9]));var g=Y(t,e.index).renderText;t.renderer.setValue(g,y)}return f}(t,e,n,r,o,i,a,s,u,c,p,l);break;case 16384:f=function(t,e,n,r,o,i,a,s,u,c,p,l){var f=X(t,e.index),h=f.instance,d=!1,y=void 0,g=e.bindings.length;return g>0&&at(t,e,0,n)&&(d=!0,y=Ft(t,f,e,0,n,y)),g>1&&at(t,e,1,r)&&(d=!0,y=Ft(t,f,e,1,r,y)),g>2&&at(t,e,2,o)&&(d=!0,y=Ft(t,f,e,2,o,y)),g>3&&at(t,e,3,i)&&(d=!0,y=Ft(t,f,e,3,i,y)),g>4&&at(t,e,4,a)&&(d=!0,y=Ft(t,f,e,4,a,y)),g>5&&at(t,e,5,s)&&(d=!0,y=Ft(t,f,e,5,s,y)),g>6&&at(t,e,6,u)&&(d=!0,y=Ft(t,f,e,6,u,y)),g>7&&at(t,e,7,c)&&(d=!0,y=Ft(t,f,e,7,c,y)),g>8&&at(t,e,8,p)&&(d=!0,y=Ft(t,f,e,8,p,y)),g>9&&at(t,e,9,l)&&(d=!0,y=Ft(t,f,e,9,l,y)),y&&h.ngOnChanges(y),2&t.state&&65536&e.flags&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,o,i,a,s,u,c,p,l);break;case 32:case 64:case 128:f=function(t,e,n,r,o,i,a,s,u,c,p,l){var f=e.bindings,h=!1,d=f.length;if(d>0&&st(t,e,0,n)&&(h=!0),d>1&&st(t,e,1,r)&&(h=!0),d>2&&st(t,e,2,o)&&(h=!0),d>3&&st(t,e,3,i)&&(h=!0),d>4&&st(t,e,4,a)&&(h=!0),d>5&&st(t,e,5,s)&&(h=!0),d>6&&st(t,e,6,u)&&(h=!0),d>7&&st(t,e,7,c)&&(h=!0),d>8&&st(t,e,8,p)&&(h=!0),d>9&&st(t,e,9,l)&&(h=!0),h){var y=tt(t,e.index),g=void 0;switch(201347067&e.flags){case 32:g=new Array(f.length),d>0&&(g[0]=n),d>1&&(g[1]=r),d>2&&(g[2]=o),d>3&&(g[3]=i),d>4&&(g[4]=a),d>5&&(g[5]=s),d>6&&(g[6]=u),d>7&&(g[7]=c),d>8&&(g[8]=p),d>9&&(g[9]=l);break;case 64:g={},d>0&&(g[f[0].name]=n),d>1&&(g[f[1].name]=r),d>2&&(g[f[2].name]=o),d>3&&(g[f[3].name]=i),d>4&&(g[f[4].name]=a),d>5&&(g[f[5].name]=s),d>6&&(g[f[6].name]=u),d>7&&(g[f[7].name]=c),d>8&&(g[f[8].name]=p),d>9&&(g[f[9].name]=l);break;case 128:var m=n;switch(d){case 1:g=m.transform(n);break;case 2:g=m.transform(r);break;case 3:g=m.transform(r,o);break;case 4:g=m.transform(r,o,i);break;case 5:g=m.transform(r,o,i,a);break;case 6:g=m.transform(r,o,i,a,s);break;case 7:g=m.transform(r,o,i,a,s,u);break;case 8:g=m.transform(r,o,i,a,s,u,c);break;case 9:g=m.transform(r,o,i,a,s,u,c,p);break;case 10:g=m.transform(r,o,i,a,s,u,c,p,l)}}y.value=g}return h}(t,e,n,r,o,i,a,s,u,c,p,l)}return f}(t,e,r,o,i,a,s,u,c,p,l,f):function(t,e,n){var r=!1;switch(201347067&e.flags){case 1:r=function(t,e,n){for(var r=!1,o=0;o<n.length;o++)Ot(t,e,o,n[o])&&(r=!0);return r}(t,e,n);break;case 2:r=function(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)st(t,e,i,n[i])&&(o=!0);if(o){for(var a="",i=0;i<n.length;i++)a+=Bt(n[i],r[i]);a=e.text.prefix+a;var s=Y(t,e.index).renderText;t.renderer.setValue(s,a)}return o}(t,e,n);break;case 16384:r=function(t,e,n){for(var r=X(t,e.index),o=r.instance,i=!1,a=void 0,s=0;s<n.length;s++)at(t,e,s,n[s])&&(i=!0,a=Ft(t,r,e,s,n[s],a));return a&&o.ngOnChanges(a),2&t.state&&65536&e.flags&&o.ngOnInit(),262144&e.flags&&o.ngDoCheck(),i}(t,e,n);break;case 32:case 64:case 128:r=function(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)st(t,e,i,n[i])&&(o=!0);if(o){var a=tt(t,e.index),s=void 0;switch(201347067&e.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}(t,e,n)}if(r)for(var o=e.bindings.length,i=e.bindingIndex,a=t.oldValues,s=0;s<o;s++)a[i+s]=n[s];return r}(t,e,r)}function Xt(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var o=J(t,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.state|=32,function(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function te(t,e,n,r,o,i,a,s,u,c,p,l,f){return 0===n?function(t,e,n,r,o,i,a,s,u,c,p,l){var f=e.bindings.length;f>0&&ut(t,e,0,n);f>1&&ut(t,e,1,r);f>2&&ut(t,e,2,o);f>3&&ut(t,e,3,i);f>4&&ut(t,e,4,a);f>5&&ut(t,e,5,s);f>6&&ut(t,e,6,u);f>7&&ut(t,e,7,c);f>8&&ut(t,e,8,p);f>9&&ut(t,e,9,l)}(t,e,r,o,i,a,s,u,c,p,l,f):function(t,e,n){for(var r=0;r<n.length;r++)ut(t,e,r,n[r])}(t,e,r),!1}function ee(t){if(!(128&t.state)){if(re(t,Oa.Destroy),ne(t,Oa.Destroy),Ht(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=lt(t);if(e){var n=e.template._projectedViews;n&&(Tt(n,n.indexOf(t)),Xi.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(J(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(Y(t,n).renderText)}}(t),dt(t)&&t.renderer.destroy(),t.state|=128}}function ne(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?oe(J(t,r).componentView,e):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function re(t,e){var n=t.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=J(t,r).viewContainer._embeddedViews,a=0;a<i.length;a++)oe(i[a],e);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function oe(t,e){var n=t.state;switch(e){case Oa.CheckNoChanges:0==(128&n)&&(12==(12&n)?Qt(t):64&n&&ie(t,Oa.CheckNoChangesProjectedViews));break;case Oa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Qt(t):64&n&&ie(t,e));break;case Oa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Yt(t):64&n&&ie(t,Oa.CheckAndUpdateProjectedViews));break;case Oa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Yt(t):64&n&&ie(t,e));break;case Oa.Destroy:ee(t);break;case Oa.CreateViewNodes:$t(t)}}function ie(t,e){re(t,e),ne(t,e)}function ae(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;i<o;i++){var a=t.def.nodes[i];if(a.flags&e&&a.flags&n)switch(Xi.setCurrentNode(t,a.index),r){case 0:!function(t,e){var n=et(t,e.index);if(n.dirty){var r,o=void 0;if(67108864&e.flags){var i=e.parent.parent;o=Ut(t,i.index,i.index+i.childCount,e.query,[]),r=X(t,e.parent.index).instance}else 134217728&e.flags&&(o=Ut(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var a=e.query.bindings,s=!1,u=0;u<a.length;u++){var c=a[u],p=void 0;switch(c.bindingType){case 0:p=n.first;break;case 1:p=n,s=!0}r[c.propName]=p}s&&n.notifyOnChanges()}}(t,a);break;case 1:!function(t,e){if(et(t,e.index).dirty)throw nt(Xi.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}(t,a)}a.childFlags&e&&a.childFlags&n||(i+=a.childCount)}}function se(t,e,n,r,o){var i=e.injector.get(Ji),a=e.injector.get(go);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:a}}function ue(t){if(0===Pa.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var o=t.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&Pa.has(o.provider.token)&&(e.push(n.index),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return ta});for(var n=0;n<e.length;n++)!function(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){r.flags|=4096;var o=r.provider,i=Pa.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=yt(i.deps),o.value=i.value)}}}(t,e[n]);return t}function ce(t,e,n,r,o,i,a,s,u,c,p,l,f){var h=t.def.nodes[e];return Jt(t,h,n,r,o,i,a,s,u,c,p,l,f),224&h.flags?tt(t,e).value:void 0}function pe(t,e,n,r,o,i,a,s,u,c,p,l,f){var h=t.def.nodes[e];return te(t,h,n,r,o,i,a,s,u,c,p,l,f),224&h.flags?tt(t,e).value:void 0}function le(t,e){Va=t,ka=e}function fe(t,e,n,r){if(Jt.apply(void 0,[t,e,n].concat(r))){var o=1===n?r[0]:r;if(16384&e.flags){for(var i={},a=0;a<e.bindings.length;a++){var s=e.bindings[a],u=o[a];8&s.flags&&(i[function(t){return"ng-reflect-"+(t=function(e){return t.replace(/[$@]/g,"_").replace(Ta,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}())}(s.nonMinifiedName)]=function(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}(u))}var c=e.parent,p=J(t,c.index).renderElement;if(c.element.name)for(var l in i)null!=(u=i[l])?t.renderer.setAttribute(p,l,u):t.renderer.removeAttribute(p,l);else t.renderer.setValue(p,"bindings="+JSON.stringify(i,null,2))}}}function he(t,e,n,r){te.apply(void 0,[t,e,n].concat(r))}function de(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ye(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ge(t,e,n){for(var r in e.references)n[r]=Gt(t,e,e.references[r])}function me(t,e,n,r){var o=Aa,i=Va,a=ka;try{Aa=t;var s=e.apply(n,r);return Va=i,ka=a,Aa=o,s}catch(t){if(function(t){return!!m(t)}(t)||!Va)throw t;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),rt(t,e),t}(t,ve())}}function ve(){return Va?new Na(Va,ka):null}function _e(t){return t.replace(/\/index.html$/,"")}function be(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function we(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+u(t)+"'")}function Ce(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function Ee(t){return function(e,n){return t(e,n).split(" ")[0]}}function Oe(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function xe(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=Oe(t,n,e);return r?r.substring(3):""}}function Pe(t,e){return t.hour12=e,t}function Se(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function Ae(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function Ve(t){return t.reduce(function(t,e){return Object.assign({},t,e)},{})}function ke(t){return function(e,n){return Oe(e,n,t)}}function Te(t,e,n,r,o,i,a){if(void 0===i&&(i=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&Me(n)?+n:n))throw we(t,n);var s=void 0,u=void 0,c=void 0;if(r!==hs.Currency&&(s=1,u=0,c=3),o){var p=o.match(bs);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(s=Ne(p[1])),null!=p[3]&&(u=Ne(p[3])),null!=p[5]&&(c=Ne(p[5]))}return ds.format(n,e,r,{minimumIntegerDigits:s,minimumFractionDigits:u,maximumFractionDigits:c,currency:i,currencyAsSymbol:a})}function Ne(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function Me(t){return!isNaN(t-parseFloat(t))}function je(t){return t instanceof Date&&!isNaN(t.valueOf())}function De(t){return parseInt(t,10)}function Re(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function Ie(){return Zs}function Fe(){return!!window.history.pushState}function He(t,e){au||(Hr.ng=au=Hr.ng||{}),au[t]=e}function Le(t){return z(t)}function Ue(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?Ue(t,o,n):(o=o.replace(vu,t),n.push(o))}return n}function Ge(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function Be(t,e){if(t.charCodeAt(0)===Eu)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function ze(t){return(t=String(t)).match(ju)||t.match(Du)?t:(R()&&Ie().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function Ze(t){for(var e={},n=0,r=t.split(",");n<r.length;n++)e[r[n]]=!0;return e}function qe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];for(var a in i)i.hasOwnProperty(a)&&(n[a]=!0)}return n}function We(t,e){if(e&&Iu.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Iu.getOuterHTML(t));return e}function Ke(t){return t.replace(/&/g,"&").replace(Qu,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Yu,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function $e(t){Iu.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Iu.removeAttribute(t,n)});for(var e=0,n=Iu.childNodesAsList(t);e<n.length;e++){var r=n[e];Iu.isElementNode(r)&&$e(r)}}function Qe(t){return null==t||0===t.length}function Ye(t){return null!=t}function Je(t){var e=V(t)?Ls(t):t;if(!k(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Xe(t){var e=t.reduce(function(t,e){return null!=e?Object.assign({},t,e):t},{});return 0===Object.keys(e).length?null:e}function tn(){throw new Error("unimplemented")}function en(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function nn(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function rn(t,e){return e.path.concat([t])}function on(t,e){t||un(e,"Cannot find control with"),e.valueAccessor||un(e,"No value accessor for form control with"),t.validator=yc.compose([t.validator,e.validator]),t.asyncValidator=yc.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function an(t,e){null==t&&un(e,"Cannot find control with"),t.validator=yc.compose([t.validator,e.validator]),t.asyncValidator=yc.composeAsync([t.asyncValidator,e.asyncValidator])}function sn(t){return un(t,"There is no FormControl instance attached to form control element with")}function un(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function cn(t){return null!=t?yc.compose(t.map(function(t){return t.validate?function(e){return t.validate(e)}:t})):null}function pn(t){return null!=t?yc.composeAsync(t.map(function(t){return t.validate?function(e){return t.validate(e)}:t})):null}function ln(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!s(e,n.currentValue)}function fn(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){e.constructor===wc?n=e:!function(t){return Rc.some(function(e){return t.constructor===e})}(e)?(o&&un(t,"More than one custom value accessor matches form control with"),o=e):(r&&un(t,"More than one built-in value accessor matches form control with"),r=e)}),o||(r||(n||(un(t,"No valid value accessor for form control with"),null)))}function hn(t){return Array.isArray(t)?cn(t):t||null}function dn(t){return Array.isArray(t)?pn(t):t||null}function yn(t){return!(t instanceof up||t instanceof ap||t instanceof pp)}var gn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},mn="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},vn="undefined"!=typeof window&&window,_n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,bn=vn||void 0!==mn&&mn||_n,wn=bn;!function(){if(!bn)throw new Error("RxJS could not find any global context (window, self, global)")}();var Cn,En={root:wn},On={isFunction:function(t){return"function"==typeof t}},xn={isArray:Array.isArray||function(t){return t&&"number"==typeof t.length}},Pn={isObject:function(t){return null!=t&&"object"==typeof t}},Sn={errorObject:{e:{}}},An={tryCatch:function(t){return Cn=t,function(){try{return Cn.apply(this,arguments)}catch(t){return Sn.errorObject.e=t,Sn.errorObject}}}},Vn=mn&&mn.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},kn={UnsubscriptionError:function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Vn(e,t),e}(Error)},Tn={Subscription:function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,o=this._parents,i=this._unsubscribe,a=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,u=o?o.length:0;n;)n.remove(this),n=++s<u&&o[s]||null;if(On.isFunction(i)&&(p=An.tryCatch(i).call(this))===Sn.errorObject&&(e=!0,t=t||(Sn.errorObject.e instanceof kn.UnsubscriptionError?r(Sn.errorObject.e.errors):[Sn.errorObject.e])),xn.isArray(a))for(s=-1,u=a.length;++s<u;){var c=a[s];if(Pn.isObject(c)){var p=An.tryCatch(c.unsubscribe).call(c);if(p===Sn.errorObject){e=!0,t=t||[];var l=Sn.errorObject.e;l instanceof kn.UnsubscriptionError?t=t.concat(r(l.errors)):t.push(l)}}}if(e)throw new kn.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}()},Nn={empty:{closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},Mn=n(function(t,e){var n=En.root.Symbol;e.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber}),jn=mn&&mn.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Dn=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Nn.empty;break;case 1:if(!n){this.destination=Nn.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new In(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new In(this,n,r,o)}}return jn(e,t),e.prototype[Mn.rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(Tn.Subscription),Rn=Dn,In=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var i,a=this;On.isFunction(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Nn.empty&&(a=Object.create(n),On.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=i,this._error=r,this._complete=o}return jn(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Dn),Fn={Subscriber:Rn},Hn={toSubscriber:function(t,e,n){if(t){if(t instanceof Fn.Subscriber)return t;if(t[Mn.rxSubscriber])return t[Mn.rxSubscriber]()}return t||e||n?new Fn.Subscriber(t,e,n):new Fn.Subscriber(Nn.empty)}},Ln=n(function(t,e){function n(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}e.getSymbolObservable=n,e.observable=n(En.root),e.$$observable=e.observable}),Un=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=Hn.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(En.root.Rx&&En.root.Rx.config&&En.root.Rx.config.Promise?e=En.root.Rx.config.Promise:En.root.Promise&&(e=En.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o;o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[Ln.observable]=function(){return this},t.create=function(e){return new t(e)},t}(),Gn={Observable:Un},Bn=mn&&mn.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},zn={ScalarObservable:function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Bn(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;e?r.complete():(r.next(n),r.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(Gn.Observable)},Zn=mn&&mn.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},qn={EmptyObservable:function(t){function e(e){t.call(this),this.scheduler=e}return Zn(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(Gn.Observable)},Wn={isScheduler:function(t){return t&&"function"==typeof t.schedule}},Kn=mn&&mn.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$n={ArrayObservable:function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Kn(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];Wn.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new zn.ScalarObservable(t[0],r):new qn.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;n>=r?o.complete():(o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i<r&&!t.closed;i++)t.next(n[i]);t.complete()},e}(Gn.Observable)},Qn=mn&&mn.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Yn={OuterSubscriber:function(t){function e(){t.apply(this,arguments)}return Qn(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(Fn.Subscriber)},Jn={isArrayLike:function(t){return t&&"number"==typeof t.length}},Xn={isPromise:function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},tr=n(function(t,e){function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(ne