text: !function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function a(e){return e.name||(void 0===e?"undefined":qa(e))}function s(e){return null!=e}function u(e){return null==e}function l(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString(),n=t.indexOf("\n");return n===-1?t:t.substring(0,n)}function c(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function h(e){return null!==e&&("function"==typeof e||"object"===(void 0===e?"undefined":qa(e)))}function f(e){console.log(e)}function d(e){console.warn(e)}function p(){if(!Ja)if(Ka.Symbol&&Symbol.iterator)Ja=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Ja=n)}return Ja}function v(e){return!h(e)}function y(e){return"function"==typeof e&&e.hasOwnProperty("annotation")&&(e=e.annotation),e}function _(e,t){if(e===Object||e===String||e===Function||e===Number||e===Array)throw new Error("Can not use native "+l(e)+" as constructor");if("function"==typeof e)return e;if(Array.isArray(e)){var n=e,r=n.length-1,i=e[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+t+" was '"+l(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+l(i));for(var o=[],a=0,s=n.length-1;a<s;a++){var u=[];o.push(u);var c=n[a];if(Array.isArray(c))for(var h=0;h<c.length;h++)u.push(y(c[h]));else"function"==typeof c?u.push(y(c)):u.push(c)}return es.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+t+"' is '"+l(e)+"'")}function m(e){var t=_(e.hasOwnProperty("constructor")?e.constructor:void 0,"constructor"),n=t.prototype;if(e.hasOwnProperty("extends")){if("function"!=typeof e.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+l(e.extends));t.prototype=n=Object.create(e.extends.prototype)}for(var r in e)"extends"!==r&&"prototype"!==r&&e.hasOwnProperty(r)&&(n[r]=_(e[r],r));this&&this.annotations instanceof Array&&es.defineMetadata("annotations",this.annotations,t);var i=t.name;return i&&"constructor"!==i||(t.overriddenName="class"+Xa++),t}function g(e,t,n){function r(e){if(!es||!es.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof r)return o.call(this,e),this;var t=new r(e),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(t);var a=function(e){var n=es.getOwnMetadata("annotations",e)||[];return n.push(t),es.defineMetadata("annotations",n,e),e};return a.annotations=n,a.Class=m,i&&i(a),a}var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=k([t]);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+e},r.annotationCls=r,r}function k(e){return function(){for(var t=this,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.forEach(function(e,n){var i=r[n];if(Array.isArray(e))t[e[0]]=void 0===i?e[1]:i;else for(var o in e)t[o]=i&&i.hasOwnProperty(o)?i[o]:e[o]})}}function b(e,t,n){function r(){function e(e,t,n){for(var r=es.getOwnMetadata("parameters",e)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(a),es.defineMetadata("parameters",r,e),e}for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];if(this instanceof r)return i.apply(this,n),this;var a=new(Function.prototype.bind.apply(r,[null].concat(n)));return e.annotation=a,e}var i=k(t);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+e},r.annotationCls=r,r}function w(e,t,n){function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=new(Function.prototype.bind.apply(r,[null].concat(t)));return function(e,t){var n=es.getOwnMetadata("propMetadata",e.constructor)||{};n[t]=n.hasOwnProperty(t)&&n[t]||[],n[t].unshift(o),es.defineMetadata("propMetadata",n,e.constructor)}}var i=k(t);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+e},r.annotationCls=r,r}function C(e){return e.__forward_ref__=C,e.toString=function(){return l(this())},e}function E(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===C?e():e}function O(e){return e[Os]}function S(e){return e[Ss]}function x(e){return e[xs]}function A(e,t){var n=e+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[xs]=t,r}function P(e){for(var t=[],n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}function V(e){if(e.length>1){return" ("+P(e.slice().reverse()).map(function(e){return l(e.token)}).join(" -> ")+")"}return""}function T(e,t,n,r){var i=r?A("",r):Error();return i.addKey=N,i.keys=[t],i.injectors=[e],i.constructResolvingMessage=n,i.message=i.constructResolvingMessage(),i[xs]=r,i}function N(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage()}function D(e,t){return T(e,t,function(){return"No provider for "+l(this.keys[0].token)+"!"+V(this.keys)})}function M(e,t){return T(e,t,function(){return"Cannot instantiate cyclic dependency!"+V(this.keys)})}function I(e,t,n,r){return T(e,r,function(){var e=l(this.keys[0].token);return x(this).message+": Error during instantiation of "+e+"!"+V(this.keys)+"."},t)}function R(e){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e)}function j(e,t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];o&&0!=o.length?n.push(o.map(l).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+l(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+l(e)+"' is decorated with Injectable.")}function F(e){return Error("Index "+e+" is out-of-bounds.")}function H(e,t){return Error("Cannot mix multi providers and regular providers, got: "+e+" "+t)}function L(e){return"function"==typeof e}function U(e){return e?e.map(function(e){var n=e.type,r=n.annotationCls,i=e.args?e.args:[];return new(Function.prototype.bind.apply(r,[null].concat(t(i))))}):[]}function G(e){var t=Object.getPrototypeOf(e.prototype);return(t?t.constructor:null)||Object}function B(e){var t=void 0,n=void 0;if(e.useClass){var r=E(e.useClass);t=js.factory(r),n=W(r)}else e.useExisting?(t=function(e){return e},n=[Fs.fromKey(Ps.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=Z(e.useFactory,e.deps)):(t=function(){return e.useValue},n=Hs);return new Us(t,n)}function z(e){return new Ls(Ps.get(e.provide),[B(e)],e.multi)}function $(e){var t=Q(e,[]),n=t.map(z),r=q(n,new Map);return Array.from(r.values())}function q(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw H(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else t.set(r.key.id,r)}else{var a=void 0;a=r.multiProvider?new Ls(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}function Q(e,t){return e.forEach(function(e){if(e instanceof Ns)t.push({provide:e,useClass:e});else if(e&&"object"==(void 0===e?"undefined":qa(e))&&void 0!==e.provide)t.push(e);else{if(!(e instanceof Array))throw R(e);Q(e,t)}}),t}function Z(e,t){if(t){var n=t.map(function(e){return[e]});return t.map(function(t){return K(e,t,n)})}return W(e)}function W(e){var t=js.parameters(e);if(!t)return[];if(t.some(function(e){return null==e}))throw j(e,t);return t.map(function(n){return K(e,n,t)})}function K(e,t,n){var r=null,i=!1;if(!Array.isArray(t))return t instanceof vs?Y(t.token,i,null):Y(t,i,null);for(var o=null,a=0;a<t.length;++a){var s=t[a];s instanceof Ns?r=s:s instanceof vs?r=s.token:s instanceof ys?i=!0:s instanceof ms||s instanceof gs?o=s:s instanceof Wa&&(r=s)}if(null!=(r=E(r)))return Y(r,i,o);throw j(e,n)}function Y(e,t,n){return new Fs(Ps.get(e),t,n)}function J(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}function X(e){return!!h(e)&&(Array.isArray(e)||!(e instanceof Map)&&p()in e)}function ee(e,t,n){for(var r=e[p()](),i=t[p()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}function te(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[p()](),i=void 0;!(i=r.next()).done;)t(i.value)}function ne(e){return!!e&&"function"==typeof e.then}function re(e){return!(!e||!e[ka])}function ie(){return""+oe()+oe()+oe()}function oe(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function ae(){throw new Error("Runtime compiler is not loaded")}function se(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function ue(e,t){return X(e)&&X(t)?ee(e,t,ue):!(X(e)||v(e)||X(t)||v(t))||c(e,t)}function le(e,t,n){var r="Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+t+"'.";n&&(r+=" 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 ?");var i=Error(r);return i[Os]=le,i}function ce(e,t){var n=A("Error in "+t.source,e);return n[Ss]=t,n[Os]=ce,n}function he(e){return Error("Attempt to use a destroyed view: "+e)}function fe(e,t){t.push(e)}function de(e,t,n,r,i,o,a,s,u,l,c,h,f,d,p,v,y,_,m,g){switch(e){case 1:return t+pe(n)+r;case 2:return t+pe(n)+r+pe(i)+o;case 3:return t+pe(n)+r+pe(i)+o+pe(a)+s;case 4:return t+pe(n)+r+pe(i)+o+pe(a)+s+pe(u)+l;case 5:return t+pe(n)+r+pe(i)+o+pe(a)+s+pe(u)+l+pe(c)+h;case 6:return t+pe(n)+r+pe(i)+o+pe(a)+s+pe(u)+l+pe(c)+h+pe(f)+d;case 7:return t+pe(n)+r+pe(i)+o+pe(a)+s+pe(u)+l+pe(c)+h+pe(f)+d+pe(p)+v;case 8:return t+pe(n)+r+pe(i)+o+pe(a)+s+pe(u)+l+pe(c)+h+pe(f)+d+pe(p)+v+pe(y)+_;case 9:return t+pe(n)+r+pe(i)+o+pe(a)+s+pe(u)+l+pe(c)+h+pe(f)+d+pe(p)+v+pe(y)+_+pe(m)+g;default:throw new Error("Does not support more than 9 expressions")}}function pe(e){return null!=e?e.toString():""}function ve(e){var t=Error("No component factory found for "+l(e)+". Did you add it to @NgModule.entryComponents?");return t[Iu]=e,t}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Lu.createScope(e,t)}function _e(e,t){return Hu.leaveScope(e,t),t}function me(e,t){return null}function ge(e){Qu=e}function ke(){return Wu=!0,Zu}function be(e){if(Ku&&!Ku.destroyed&&!Ku.injector.get(Yu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ku=e.get(Xu);var t=e.get(Ys,null);return t&&t.forEach(function(e){return e()}),Ku}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=new Wa("Platform: "+t);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=Ee();return i&&!i.injector.get(Yu,!1)||(e?e(n.concat(t).concat({provide:r,useValue:!0})):be(Bs.resolveAndCreate(n.concat(t).concat({provide:r,useValue:!0})))),Ce(r)}}function Ce(e){var t=Ee();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Ee(){return Ku&&!Ku.destroyed?Ku:null}function Oe(e,t){try{var n=t();return ne(n)?n.catch(function(t){throw e.handleError(t),t}):n}catch(t){throw e.handleError(t),t}}function Se(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}function xe(e,t,n){e.childNodes.forEach(function(e){e instanceof _l&&(t(e)&&n.push(e),xe(e,t,n))})}function Ae(e,t,n){e instanceof _l&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof _l&&Ae(e,t,n)})}function Pe(e){return ml.get(e)}function Ve(e){ml.set(e.nativeNode,e)}function Te(e){ml.delete(e.nativeNode)}function Ne(){return js}function De(e,t){return e.nodes[t]}function Me(e,t){return e.nodes[t]}function Ie(e,t){return e.nodes[t]}function Re(e,t){return e.nodes[t]}function je(e,t){return e.nodes[t]}function Fe(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Le(i,e)}function He(e,t){var n=Le(e.message,t);return n[xs]=e,n}function Le(e,t){var n=new Error(e);return n[Ss]=t,n.stack=t.source,n}function Ue(e){return!!S(e)}function Ge(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Be(e){var t=Rl.get(e);return t||(t=l(e)+"_"+Rl.size,Rl.set(e,t)),t}function ze(e){if(e&&(e.encapsulation!==fs.None||e.styles.length||Object.keys(e.data).length))return{id:"c"+Fl++,styles:e.styles,encapsulation:e.encapsulation,data:e.data};return null}function $e(e,t,n,r){var i=e.oldValues;return!(!(jl>0||e.state&Dl.FirstCheck)&&c(i[t.bindingIndex+n],r))&&(jl=0,!0)}function qe(e,t,n,r){return!!$e(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Qe(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(jl||e.state&Dl.FirstCheck||!ue(i,r))throw jl=0,Fe(Il.createDebugContext(e,t.index),i,r,0!=(e.state&Dl.FirstCheck))}function Ze(e){for(var t=e;t;)t.def.flags&Cl.OnPush&&(t.state|=Dl.ChecksEnabled),t=t.viewContainerParent||t.parent}function We(e,t,n,r){return Ze(e),Il.handleEvent(e,t,n,r)}function Ke(e){if(e.parent){return Me(e.parent,e.parentNodeDef.index)}}function Ye(e){return e.parent?e.parentNodeDef.parent:null}function Je(e,t){switch(t.type){case El.Element:return Me(e,t.index).renderElement;case El.Text:return De(e,t.index).renderText}}function Xe(e,t){return e?e+":"+t:t}function et(e){return e.component===e.context&&!!e.parent}function tt(e){return e.component!==e.context&&!!e.parent}function nt(e){return 1<<e%32}function rt(e){var t={},n=0,r={};return e&&e.forEach(function(e){var i=za(e,2),o=i[0],a=i[1];"number"==typeof o?(t[o]=a,n|=nt(o)):r[o]=a}),{matchedQueries:t,references:r,matchedQueryIds:n}}function it(e,t,n){var r=n.renderParent;return r?r.type!==El.Element||0==(r.flags&Ol.HasComponent)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===fs.Native?Me(e,n.renderParent.index).renderElement:void 0:t}function ot(e){var t=Hl.get(e);return t||(t=e(),Hl.set(e,t)),t}function at(e,t){var n=void 0;try{throw new Error}catch(e){n=e}var r=n.stack||"",i=r.split("\n");return i[0].startsWith("Error")&&(e++,t++),i.slice(e,t).join("\n")}function st(e){var t=[];return ut(e,Ll.Collect,void 0,void 0,t),t}function ut(e,t,n,r,i){t===Ll.RemoveChild&&(n=e.renderer.parentNode(Je(e,e.def.lastRenderRootNode))),lt(e,t,0,e.def.nodes.length-1,n,r,i)}function lt(e,t,n,r,i,o,a){for(var s=n;s<=r;s++){var u=e.def.nodes[s];u.type!==El.Element&&u.type!==El.Text&&u.type!==El.NgContent||ht(e,u,t,i,o,a),s+=u.childCount}}function ct(e,t,n,r,i,o){for(var a=e;a&&!et(a);)a=a.parent;for(var s=a.parent,u=Ye(a),l=u.index+1,c=u.index+u.childCount,h=l;h<=c;h++){var f=s.def.nodes[h];f.ngContentIndex===t&&ht(s,f,n,r,i,o),h+=f.childCount}if(!s.parent){var d=e.root.projectableNodes[t];if(d)for(var p=0;p<d.length;p++)ft(e,d[p],n,r,i,o)}}function ht(e,t,n,r,i,o){if(t.type===El.NgContent)ct(e,t.ngContent.index,n,r,i,o);else{if(ft(e,Je(e,t),n,r,i,o),t.flags&Ol.HasEmbeddedViews){var a=Me(e,t.index).embeddedViews;if(a)for(var s=0;s<a.length;s++)ut(a[s],n,r,i,o)}t.type!==El.Element||t.element.name||lt(e,n,t.index+1,t.index+t.childCount,r,i,o)}}function ft(e,t,n,r,i,o){var a=e.renderer;switch(n){case Ll.AppendChild:a.appendChild(r,t);break;case Ll.InsertBefore:a.insertBefore(r,t,i);break;case Ll.RemoveChild:a.removeChild(r,t);break;case Ll.Collect:o.push(t)}}function dt(e){if(":"===e[0]){var t=e.match(Ul);return[t[1],t[2]]}return["",e]}function pt(e,t,n,r,i,o){i||(i=Gl);var a=rt(t),s=a.matchedQueries,u=a.references,l=a.matchedQueryIds,c=ke()?at(2,3):"",h=o?ot(o):null;return{type:El.Element,index:void 0,reverseChildIndex:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:e,childFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:l,references:u,ngContentIndex:n,childCount:r,bindings:[],outputs:[],element:{ns:void 0,name:void 0,attrs:void 0,template:h,source:c,componentProvider:void 0,componentView:void 0,componentRendererType:void 0,publicProviders:void 0,allProviders:void 0,handleEvent:i},provider:void 0,text:void 0,pureExpression:void 0,query:void 0,ngContent:void 0}}function vt(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments[6],s=arguments[7],u=arguments[8],l=arguments[9],c=arguments[10];u||(u=Gl);var h=ke()?at(2,3):"",f=rt(t),d=f.matchedQueries,p=f.references,v=f.matchedQueryIds,y=void 0,_=void 0;if(i){var m=dt(i),g=za(m,2);y=g[0],_=g[1]}a=a||[];for(var k=new Array(a.length),b=0;b<a.length;b++){var w=a[b],C=w[0],E=dt(w[1]),O=za(E,2),S=O[0],x=O[1],A=void 0,P=void 0;switch(C){case Sl.ElementStyle:P=w[2];break;case Sl.ElementAttribute:case Sl.ElementProperty:case Sl.ComponentHostProperty:A=w[2]}k[b]={type:C,ns:S,name:x,nonMinifiedName:x,securityContext:A,suffix:P}}s=s||[];for(var V=new Array(s.length),T=0;T<s.length;T++){var N=za(s[T],2),D=N[0],M=N[1];V[T]={type:xl.ElementOutput,target:D,eventName:M,propName:void 0}}o=o||[];var I=o.map(function(e){var t=za(e,2),n=t[0],r=t[1],i=dt(n),o=za(i,2);return[o[0],o[1],r]});return c&&null==c.encapsulation&&(c=null),l&&(e|=Ol.HasComponent),{type:El.Element,index:void 0,reverseChildIndex:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:e,childFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:v,references:p,ngContentIndex:n,childCount:r,bindings:k,outputs:V,element:{ns:y,name:_,attrs:I,source:h,template:void 0,componentProvider:void 0,componentView:l,componentRendererType:c,publicProviders:void 0,allProviders:void 0,handleEvent:u},provider:void 0,text:void 0,pureExpression:void 0,query:void 0,ngContent:void 0}}function yt(e,t,n){var r=n.element,i=e.root.selectorOrNode,o=e.renderer,a=void 0;if(e.parent||!i){a=r.name?o.createElement(r.name,r.ns):o.createComment("");var s=it(e,t,n);s&&o.appendChild(s,a)}else a=o.selectRootElement(i);if(r.attrs)for(var u=0;u<r.attrs.length;u++){var l=za(r.attrs[u],3),c=l[0],h=l[1],f=l[2];o.setAttribute(a,h,f,c)}return a}function _t(e,t,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=mt(e,n.index,Xe(o.target,o.eventName)),s=o.target,u=e;"component"===o.target&&(s=null,u=t);var l=u.renderer.listen(s||r,o.eventName,a);e.disposables[n.outputIndex+i]=l}}function mt(e,t,n){return function(r){return We(e,t,n,r)}}function gt(e,t,n,r,i,o,a,s,u,l,c,h){var f=t.bindings.length,d=!1;return f>0&&bt(e,t,0,n)&&(d=!0),f>1&&bt(e,t,1,r)&&(d=!0),f>2&&bt(e,t,2,i)&&(d=!0),f>3&&bt(e,t,3,o)&&(d=!0),f>4&&bt(e,t,4,a)&&(d=!0),f>5&&bt(e,t,5,s)&&(d=!0),f>6&&bt(e,t,6,u)&&(d=!0),f>7&&bt(e,t,7,l)&&(d=!0),f>8&&bt(e,t,8,c)&&(d=!0),f>9&&bt(e,t,9,h)&&(d=!0),d}function kt(e,t,n){for(var r=!1,i=0;i<n.length;i++)bt(e,t,i,n[i])&&(r=!0);return r}function bt(e,t,n,r){if(!qe(e,t,n,r))return!1;var i=t.bindings[n],o=Me(e,t.index),a=o.renderElement,s=i.name;switch(i.type){case Sl.ElementAttribute:wt(e,i,a,i.ns,s,r);break;case Sl.ElementClass:Ct(e,a,s,r);break;case Sl.ElementStyle:Et(e,i,a,s,r);break;case Sl.ElementProperty:Ot(e,i,a,s,r);break;case Sl.ComponentHostProperty:Ot(o.componentView,i,a,s,r)}return!0}function wt(e,t,n,r,i,o){var a=t.securityContext,s=a?e.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var u=e.renderer;null!=o?u.setAttribute(n,i,s,r):u.removeAttribute(n,i,r)}function Ct(e,t,n,r){var i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}function Et(e,t,n,r,i){var o=e.root.sanitizer.sanitize(Pu.STYLE,i);if(null!=o){o=o.toString();var a=t.suffix;null!=a&&(o+=a)}else o=null;var s=e.renderer;null!=o?s.setStyle(n,r,o,!1,!1):s.removeStyle(n,r,!1)}function Ot(e,t,n,r,i){var o=t.securityContext,a=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,a)}function St(e,t,n){var r=it(e,t,n);if(r){ct(e,n.ngContent.index,Ll.AppendChild,r,void 0,void 0)}}function xt(e,t,n,r){var i=t.embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,Nt(i,n,r);var o=Ke(r);if(o&&o!==t){var a=o.projectedViews;a||(a=o.projectedViews=[]),a.push(r)}Il.dirtyParentQueries(r),Vt(t,n>0?i[n-1]:null,r)}function At(e,t){var n=e.embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];r.viewContainerParent=void 0,Dt(n,t);var i=Ke(r);if(i&&i!==e){var o=i.projectedViews;Dt(o,o.indexOf(r))}return Il.dirtyParentQueries(r),Tt(r),r}function Pt(e,t,n){var r=e.embeddedViews,i=r[t];return Dt(r,t),null==n&&(n=r.length),Nt(r,n,i),Il.dirtyParentQueries(i),Tt(i),Vt(e,n>0?r[n-1]:null,i),i}function Vt(e,t,n){var r=t?Je(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);ut(n,Ll.InsertBefore,i,o,void 0)}function Tt(e){ut(e,Ll.RemoveChild,null,null,void 0)}function Nt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Dt(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function Mt(e,t,n){return new $l(e,t,n)}function It(e,t){return new Ql(e,t)}function Rt(e){return new Zl(e)}function jt(e,t){return new Wl(e,t)}function Ft(e,t){return new Kl(e,t)}function Ht(e,t){var n=e.def.nodes[t];switch(n.type){case El.Element:return n.element.template?jt(e,n):Me(e,n.index).renderElement;case El.Text:return De(e,n.index).renderText;case El.Directive:case El.Pipe:case El.Provider:return Ie(e,n.index).instance}}function Lt(e){return new Yl(e.renderer)}function Ut(e,t,n,r,i,o,a){var s=[];if(o)for(var u in o){var l=za(o[u],2),c=l[0],h=l[1];s[c]={type:Sl.DirectiveProperty,name:u,nonMinifiedName:h,ns:void 0,securityContext:void 0,suffix:void 0}}var f=[];if(a)for(var d in a)f.push({type:xl.DirectiveOutput,propName:d,target:null,eventName:a[d]});return Bt(El.Directive,e,t,n,Pl.Class,r,r,i,s,f)}function Gt(e,t,n,r,i,o){return Bt(El.Provider,e,t,0,n,r,i,o)}function Bt(e,t,n,r,i,o,a,s,u,l){var c=rt(n),h=c.matchedQueries,f=c.references,d=c.matchedQueryIds;l||(l=[]),u||(u=[]);var p=s.map(function(e){var t=void 0,n=void 0;if(Array.isArray(e)){var r=za(e,2);n=r[0],t=r[1]}else n=Vl.None,t=e;return{flags:n,token:t,tokenKey:Be(t)}});return{type:e,index:void 0,reverseChildIndex:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:t,childFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:void 0,childCount:r,bindings:u,outputs:l,element:void 0,provider:{type:i,token:o,tokenKey:Be(o),value:a,deps:p},text:void 0,pureExpression:void 0,query:void 0,ngContent:void 0}}function zt(e,t){return t.flags&Ol.LazyProvider?oc:Kt(e,t)}function $t(e,t){for(var n=e;n.parent&&!et(n);)n=n.parent;return Yt(n.parent,Ye(n),!0,t.provider.value,t.provider.deps)}function qt(e,t){var n=(t.flags&Ol.IsComponent)>0,r=(t.provider,Yt(e,t.parent,n,t.provider.value,t.provider.deps));if(t.outputs.length)for(var i=0;i<t.outputs.length;i++){var o=t.outputs[i],a=r[o.propName].subscribe(Qt(e,t.parent.index,o.eventName));e.disposables[t.outputIndex+i]=a.unsubscribe.bind(a)}return r}function Qt(e,t,n){return function(r){return We(e,t,n,r)}}function Zt(e,t,n,r,i,o,a,s,u,l,c,h){var f=Ie(e,t.index),d=f.instance,p=!1,v=void 0,y=t.bindings.length;return y>0&&$e(e,t,0,n)&&(p=!0,v=tn(e,f,t,0,n,v)),y>1&&$e(e,t,1,r)&&(p=!0,v=tn(e,f,t,1,r,v)),y>2&&$e(e,t,2,i)&&(p=!0,v=tn(e,f,t,2,i,v)),y>3&&$e(e,t,3,o)&&(p=!0,v=tn(e,f,t,3,o,v)),y>4&&$e(e,t,4,a)&&(p=!0,v=tn(e,f,t,4,a,v)),y>5&&$e(e,t,5,s)&&(p=!0,v=tn(e,f,t,5,s,v)),y>6&&$e(e,t,6,u)&&(p=!0,v=tn(e,f,t,6,u,v)),y>7&&$e(e,t,7,l)&&(p=!0,v=tn(e,f,t,7,l,v)),y>8&&$e(e,t,8,c)&&(p=!0,v=tn(e,f,t,8,c,v)),y>9&&$e(e,t,9,h)&&(p=!0,v=tn(e,f,t,9,h,v)),v&&d.ngOnChanges(v),e.state&Dl.FirstCheck&&t.flags&Ol.OnInit&&d.ngOnInit(),t.flags&Ol.DoCheck&&d.ngDoCheck(),p}function Wt(e,t,n){for(var r=Ie(e,t.index),i=r.instance,o=!1,a=void 0,s=0;s<n.length;s++)$e(e,t,s,n[s])&&(o=!0,a=tn(e,r,t,s,n[s],a));return a&&i.ngOnChanges(a),e.state&Dl.FirstCheck&&t.flags&Ol.OnInit&&i.ngOnInit(),t.flags&Ol.DoCheck&&i.ngDoCheck(),o}function Kt(e,t){var n=(t.flags&Ol.PrivateProvider)>0,r=t.provider,i=void 0;switch(r.type){case Pl.Class:i=Yt(e,t.parent,n,r.value,r.deps);break;case Pl.Factory:i=Jt(e,t.parent,n,r.value,r.deps);break;case Pl.UseExisting:i=Xt(e,t.parent,n,r.deps[0]);break;case Pl.Value:i=r.value}return i}function Yt(e,t,n,r,i){var o=i.length,a=void 0;switch(o){case 0:a=new r;break;case 1:a=new r(Xt(e,t,n,i[0]));break;case 2:a=new r(Xt(e,t,n,i[0]),Xt(e,t,n,i[1]));break;case 3:a=new r(Xt(e,t,n,i[0]),Xt(e,t,n,i[1]),Xt(e,t,n,i[2]));break;default:for(var s=new Array(o),u=0;u<o;u++)s[u]=Xt(e,t,n,i[u]);a=new(Function.prototype.bind.apply(r,[null].concat(s)))}return a}function Jt(e,n,r,i,o){var a=o.length,s=void 0;switch(a){case 0:s=i();break;case 1:s=i(Xt(e,n,r,o[0]));break;case 2:s=i(Xt(e,n,r,o[0]),Xt(e,n,r,o[1]));break;case 3:s=i(Xt(e,n,r,o[0]),Xt(e,n,r,o[1]),Xt(e,n,r,o[2]));break;default:for(var u=Array(a),l=0;l<a;l++)u[l]=Xt(e,n,r,o[l]);s=i.apply(void 0,t(u))}return s}function Xt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Es.THROW_IF_NOT_FOUND;if(r.flags&Vl.Value)return r.token;var o=e;r.flags&Vl.Optional&&(i=null);var a=r.tokenKey;for(r.flags&Vl.SkipSelf&&(n=!1,t=t.parent);e;){if(t)switch(a){case Jl:return Lt(en(e,t,n));case Xl:return en(e,t,n).renderer;case ec:return new ru(Me(e,t.index).renderElement);case tc:return It(e,t);case nc:if(t.element.template)return jt(e,t);break;case rc:return Rt(en(e,t,n));case ic:return Ft(e,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[a];if(s){var u=Ie(e,s.index);return u.instance===oc&&(u.instance=Kt(e,s)),u.instance}}n=et(e),t=Ye(e),e=e.parent}return o.root.injector.get(r.token,i)}function en(e,t,n){var r=void 0;if(n)r=Me(e,t.index).componentView;else for(r=e;r.parent&&!et(r);)r=r.parent;return r}function tn(e,t,n,r,i,o){if(n.flags&Ol.IsComponent){var a=Me(e,n.parent.index).componentView;a.def.flags&Cl.OnPush&&(a.state|=Dl.ChecksEnabled)}var s=n.bindings[r],u=s.name;if(t.instance[u]=i,n.flags&Ol.OnChanges){o=o||{};var l=e.oldValues[n.bindingIndex+r];o[n.bindings[r].nonMinifiedName]=new gu(l,i,0!=(e.state&Dl.FirstCheck))}return e.oldValues[n.bindingIndex+r]=i,o}function nn(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes.length,r=0;r<n;r++){var i=e.def.reverseChildNodes[r],o=i.index;i.flags&t?(Il.setCurrentNode(e,o),rn(Ie(e,o).instance,i.flags&t)):0==(i.childFlags&t)&&(r+=i.childCount)}}function rn(e,t){t&Ol.AfterContentInit&&e.ngAfterContentInit(),t&Ol.AfterContentChecked&&e.ngAfterContentChecked(),t&Ol.AfterViewInit&&e.ngAfterViewInit(),t&Ol.AfterViewChecked&&e.ngAfterViewChecked(),t&Ol.OnDestroy&&e.ngOnDestroy()}function on(e){return an(Tl.Object,e)}function an(e,t){for(var n=new Array(t.length),r=0;r<t.length;r++){var i=t[r];n[r]={type:Sl.PureExpressionProperty,name:i,ns:void 0,nonMinifiedName:i,securityContext:void 0,suffix:void 0}}return{type:El.PureExpression,index:void 0,reverseChildIndex:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:0,childFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:void 0,childCount:0,bindings:n,outputs:[],element:void 0,provider:void 0,text:void 0,pureExpression:{type:e},query:void 0,ngContent:void 0}}function sn(e,t){return{value:void 0}}function un(e,t,n,r,i,o,a,s,u,l,c,h){var f=t.bindings,d=!1,p=f.length;if(p>0&&qe(e,t,0,n)&&(d=!0),p>1&&qe(e,t,1,r)&&(d=!0),p>2&&qe(e,t,2,i)&&(d=!0),p>3&&qe(e,t,3,o)&&(d=!0),p>4&&qe(e,t,4,a)&&(d=!0),p>5&&qe(e,t,5,s)&&(d=!0),p>6&&qe(e,t,6,u)&&(d=!0),p>7&&qe(e,t,7,l)&&(d=!0),p>8&&qe(e,t,8,c)&&(d=!0),p>9&&qe(e,t,9,h)&&(d=!0),d){var v=Re(e,t.index),y=void 0;switch(t.pureExpression.type){case Tl.Array:y=new Array(f.length),p>0&&(y[0]=n),p>1&&(y[1]=r),p>2&&(y[2]=i),p>3&&(y[3]=o),p>4&&(y[4]=a),p>5&&(y[5]=s),p>6&&(y[6]=u),p>7&&(y[7]=l),p>8&&(y[8]=c),p>9&&(y[9]=h);break;case Tl.Object:y={},p>0&&(y[f[0].name]=n),p>1&&(y[f[1].name]=r),p>2&&(y[f[2].name]=i),p>3&&(y[f[3].name]=o),p>4&&(y[f[4].name]=a),p>5&&(y[f[5].name]=s),p>6&&(y[f[6].name]=u),p>7&&(y[f[7].name]=l),p>8&&(y[f[8].name]=c),p>9&&(y[f[9].name]=h);break;case Tl.Pipe:var _=n;switch(p){case 1:y=_.transform(n);break;case 2:y=_.transform(r);break;case 3:y=_.transform(r,i);break;case 4:y=_.transform(r,i,o);break;case 5:y=_.transform(r,i,o,a);break;case 6:y=_.transform(r,i,o,a,s);break;case 7:y=_.transform(r,i,o,a,s,u);break;case 8:y=_.transform(r,i,o,a,s,u,l);break;case 9:y=_.transform(r,i,o,a,s,u,l,c);break;case 10:y=_.transform(r,i,o,a,s,u,l,c,h)}}v.value=y}return d}function ln(e,n,r){for(var i=n.bindings,o=!1,a=0;a<r.length;a++)qe(e,n,a,r[a])&&(o=!0);if(o){var s=Re(e,n.index),u=void 0;switch(n.pureExpression.type){case Tl.Array:u=r;break;case Tl.Object:u={};for(var l=0;l<r.length;l++)u[i[l].name]=r[l];break;case Tl.Pipe:var c=r[0],h=r.slice(1);u=c.transform.apply(c,t(h))}s.value=u}return o}function cn(){return new al}function hn(e){for(var t=e.def.nodeMatchedQueries;e.parent&&tt(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.index+n.childCount,i=0;i<=r;i++){var o=e.def.nodes[i];o.flags&Ol.HasContentQuery&&o.flags&Ol.HasDynamicQuery&&(o.query.filterId&t)===o.query.filterId&&je(e,i).setDirty(),!(o.type===El.Element&&i+o.childCount<n.index)&&o.childFlags&Ol.HasContentQuery&&o.childFlags&Ol.HasDynamicQuery||(i+=o.childCount)}}if(e.def.nodeFlags&Ol.HasViewQuery)for(var a=0;a<e.def.nodes.length;a++){var s=e.def.nodes[a];s.flags&Ol.HasViewQuery&&s.flags&Ol.HasDynamicQuery&&je(e,a).setDirty(),a+=s.childCount}}function fn(e,t){var n=je(e,t.index);if(n.dirty){var r=void 0,i=void 0;if(t.flags&Ol.HasContentQuery){var o=t.parent.parent;i=dn(e,o.index,o.index+o.childCount,t.query,[]),r=Ie(e,t.parent.index).instance}else t.flags&Ol.HasViewQuery&&(i=dn(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);for(var a=t.query.bindings,s=!1,u=0;u<a.length;u++){var l=a[u],c=void 0;switch(l.bindingType){case Nl.First:c=n.first;break;case Nl.All:c=n,s=!0}r[l.propName]=c}s&&n.notifyOnChanges()}}function dn(e,t,n,r,i){for(var o=t;o<=n;o++){var a=e.def.nodes[o],s=a.matchedQueries[r.id];if(null!=s&&i.push(pn(e,a,s)),a.type===El.Element&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Me(e,o),l=u.embeddedViews;if(l)for(var c=0;c<l.length;c++){var h=l[c],f=Ke(h);f&&f===u&&dn(h,0,h.def.nodes.length-1,r,i)}var d=u.projectedViews;if(d)for(var p=0;p<d.length;p++){var v=d[p];dn(v,0,v.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function pn(e,t,n){if(null!=n){var r=void 0;switch(n){case Al.RenderElement:r=Me(e,t.index).renderElement;break;case Al.ElementRef:r=new ru(Me(e,t.index).renderElement);break;case Al.TemplateRef:r=jt(e,t);break;case Al.ViewContainerRef:r=It(e,t);break;case Al.Provider:r=Ie(e,t.index).instance}return r}}function vn(e,t){for(var n=ke()?at(2,3):"",r=new Array(t.length-1),i=1;i<t.length;i++)r[i-1]={type:Sl.TextInterpolation,name:void 0,ns:void 0,nonMinifiedName:void 0,
  securityContext:void 0,suffix:t[i]};return{type:El.Text,index:void 0,reverseChildIndex:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:0,childFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,outputs:[],element:void 0,provider:void 0,text:{prefix:t[0],source:n},pureExpression:void 0,query:void 0,ngContent:void 0}}function yn(e,t,n){var r=void 0,i=e.renderer;r=i.createText(n.text.prefix);var o=it(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function _n(e,t,n,r,i,o,a,s,u,l,c,h){var f=!1,d=t.bindings,p=d.length;if(p>0&&qe(e,t,0,n)&&(f=!0),p>1&&qe(e,t,1,r)&&(f=!0),p>2&&qe(e,t,2,i)&&(f=!0),p>3&&qe(e,t,3,o)&&(f=!0),p>4&&qe(e,t,4,a)&&(f=!0),p>5&&qe(e,t,5,s)&&(f=!0),p>6&&qe(e,t,6,u)&&(f=!0),p>7&&qe(e,t,7,l)&&(f=!0),p>8&&qe(e,t,8,c)&&(f=!0),p>9&&qe(e,t,9,h)&&(f=!0),f){var v=t.text.prefix;p>0&&(v+=gn(n,d[0])),p>1&&(v+=gn(r,d[1])),p>2&&(v+=gn(i,d[2])),p>3&&(v+=gn(o,d[3])),p>4&&(v+=gn(a,d[4])),p>5&&(v+=gn(s,d[5])),p>6&&(v+=gn(u,d[6])),p>7&&(v+=gn(l,d[7])),p>8&&(v+=gn(c,d[8])),p>9&&(v+=gn(h,d[9]));var y=De(e,t.index).renderText;e.renderer.setValue(y,v)}return f}function mn(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)qe(e,t,o,n[o])&&(i=!0);if(i){for(var a="",s=0;s<n.length;s++)a+=gn(n[s],r[s]);a=t.text.prefix+a;var u=De(e,t.index).renderText;e.renderer.setValue(u,a)}return i}function gn(e,t){return(null!=e?e.toString():"")+t.suffix}function kn(e,t,n,r){if(0===t.length)throw new Error("Illegal State: Views without nodes are not allowed!");for(var i=new Array(t.length),o=0,a=0,s=0,u=0,l=null,c=!1,h=!1,f=null,d=0;d<t.length;d++){for(;l&&d>l.index+l.childCount;){var p=l.parent;p&&(p.childFlags|=l.childFlags,p.childMatchedQueries|=l.childMatchedQueries),l=p}var v=t[d];v.index=d,v.parent=l,v.bindingIndex=o,v.outputIndex=a,v.reverseChildIndex=bn(l,d,v.childCount,t.length);var y=void 0;if(y=l&&l.type===El.Element&&!l.element.name?l.renderParent:l,v.renderParent=y,v.element){var _=v.element;_.publicProviders=l?l.element.publicProviders:Object.create(null),_.allProviders=_.publicProviders,c=!1,h=!1}if(i[v.reverseChildIndex]=v,wn(l,v,t.length),s|=v.flags,u|=v.matchedQueryIds,v.element&&v.element.template&&(u|=v.element.template.nodeMatchedQueries),l&&(l.childFlags|=v.flags,l.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(l.childMatchedQueries|=v.element.template.nodeMatchedQueries)),o+=v.bindings.length,a+=v.outputs.length,y||v.type!==El.Element&&v.type!==El.Text||(f=v),v.type===El.Provider||v.type===El.Directive){c||(c=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var m=0!=(v.flags&Ol.PrivateProvider),g=0!=(v.flags&Ol.IsComponent);!m||g?l.element.publicProviders[v.provider.tokenKey]=v:(h||(h=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[v.provider.tokenKey]=v),g&&(l.element.componentProvider=v)}v.childCount&&(l=v)}for(;l;){var k=l.parent;k&&(k.childFlags|=l.childFlags,k.childMatchedQueries|=l.childMatchedQueries),l=k}var b=function(e,n,r,i){return t[n].element.handleEvent(e,r,i)};return{nodeFlags:s,nodeMatchedQueries:u,flags:e,nodes:t,reverseChildNodes:i,updateDirectives:n||ac,updateRenderer:r||ac,handleEvent:b||ac,bindingCount:o,outputCount:a,lastRenderRootNode:f}}function bn(e,t,n,r){var i=void 0,o=void 0;if(e){i=t+n-e.index-1,o=e.reverseChildIndex+e.childCount}else i=t+n,o=r-1;return o-i}function wn(e,t,n){var r=t.element&&t.element.template;if(r&&r.lastRenderRootNode&&r.lastRenderRootNode.flags&Ol.HasEmbeddedViews)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.index+"!");if(t.type===El.Provider||t.type===El.Directive){if((e?e.type:null)!==El.Element)throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+t.index+"!")}if(t.query){if(t.flags&Ol.HasContentQuery&&(!e||e.type!==El.Directive))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.index+"!");if(t.flags&Ol.HasViewQuery&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.index+"!")}if(t.childCount){var i=e?e.index+e.childCount:n-1;if(t.index<=i&&t.index+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.index+"!")}}function Cn(e,t,n){var r=On(e.root,e.renderer,e,t,t.element.template);return Sn(r,e.component,n),xn(r),r}function En(e,t,n){var r=On(e,e.renderer,null,null,t);return Sn(r,n,n),xn(r),r}function On(e,t,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):void 0;return{def:i,parent:n,viewContainerParent:void 0,parentNodeDef:r,context:void 0,component:void 0,nodes:o,state:Dl.FirstCheck|Dl.ChecksEnabled,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:a}}function Sn(e,t,n){e.component=t,e.context=n}function xn(e){var t=void 0;if(et(e)){var n=e.parentNodeDef;t=Me(e.parent,n.parent.index).renderElement}for(var r=e.def,i=e.nodes,o=0;o<r.nodes.length;o++){var a=r.nodes[o];Il.setCurrentNode(e,o);var s=void 0;switch(a.type){case El.Element:var u=yt(e,t,a),l=void 0;if(a.flags&Ol.HasComponent){var c=ot(a.element.componentView),h=a.element.componentRendererType,f=void 0;f=h?e.root.rendererFactory.createRenderer(u,h):e.root.renderer,l=On(e.root,f,e,a.element.componentProvider,c)}_t(e,l,a,u),s={renderElement:u,componentView:l,embeddedViews:a.flags&Ol.HasEmbeddedViews?[]:void 0,projectedViews:void 0};break;case El.Text:s=yn(e,t,a);break;case El.Provider:s={instance:zt(e,a)};break;case El.Pipe:s={instance:$t(e,a)};break;case El.Directive:var d=qt(e,a);if(s={instance:d},a.flags&Ol.IsComponent){Sn(Me(e,a.parent.index).componentView,d,d)}break;case El.PureExpression:s=sn(e,a);break;case El.Query:s=cn();break;case El.NgContent:St(e,t,a),s=void 0}i[o]=s}Hn(e,sc.CreateViewNodes),Gn(e,Ol.HasContentQuery|Ol.HasViewQuery,Ol.HasStaticQuery,Ml.CheckAndUpdate)}function An(e){Il.updateDirectives(e,Ml.CheckNoChanges),Ln(e,sc.CheckNoChanges),Gn(e,Ol.HasContentQuery,Ol.HasDynamicQuery,Ml.CheckNoChanges),Il.updateRenderer(e,Ml.CheckNoChanges),Hn(e,sc.CheckNoChanges),Gn(e,Ol.HasViewQuery,Ol.HasDynamicQuery,Ml.CheckNoChanges)}function Pn(e){Il.updateDirectives(e,Ml.CheckAndUpdate),Ln(e,sc.CheckAndUpdate),Gn(e,Ol.HasContentQuery,Ol.HasDynamicQuery,Ml.CheckAndUpdate),nn(e,Ol.AfterContentChecked|(e.state&Dl.FirstCheck?Ol.AfterContentInit:0)),Il.updateRenderer(e,Ml.CheckAndUpdate),Hn(e,sc.CheckAndUpdate),Gn(e,Ol.HasViewQuery,Ol.HasDynamicQuery,Ml.CheckAndUpdate),nn(e,Ol.AfterViewChecked|(e.state&Dl.FirstCheck?Ol.AfterViewInit:0)),e.def.flags&Cl.OnPush&&(e.state&=~Dl.ChecksEnabled),e.state&=~Dl.FirstCheck}function Vn(e,t,n,r,i,o,a,s,u,l,c,h,f){return n===wl.Inline?Tn(e,t,r,i,o,a,s,u,l,c,h,f):Nn(e,t,r)}function Tn(e,t,n,r,i,o,a,s,u,l,c,h){var f=!1;switch(t.type){case El.Element:f=gt(e,t,n,r,i,o,a,s,u,l,c,h);break;case El.Text:f=_n(e,t,n,r,i,o,a,s,u,l,c,h);break;case El.Directive:f=Zt(e,t,n,r,i,o,a,s,u,l,c,h);break;case El.PureExpression:f=un(e,t,n,r,i,o,a,s,u,l,c,h)}return f}function Nn(e,t,n){var r=!1;switch(t.type){case El.Element:r=kt(e,t,n);break;case El.Text:r=mn(e,t,n);break;case El.Directive:r=Wt(e,t,n);break;case El.PureExpression:r=ln(e,t,n)}if(r)for(var i=t.bindings.length,o=t.bindingIndex,a=e.oldValues,s=0;s<i;s++)a[o+s]=n[s];return r}function Dn(e,t,n,r,i,o,a,s,u,l,c,h,f){return n===wl.Inline?Mn(e,t,r,i,o,a,s,u,l,c,h,f):In(e,t,r),!1}function Mn(e,t,n,r,i,o,a,s,u,l,c,h){var f=t.bindings.length;f>0&&Qe(e,t,0,n),f>1&&Qe(e,t,1,r),f>2&&Qe(e,t,2,i),f>3&&Qe(e,t,3,o),f>4&&Qe(e,t,4,a),f>5&&Qe(e,t,5,s),f>6&&Qe(e,t,6,u),f>7&&Qe(e,t,7,l),f>8&&Qe(e,t,8,c),f>9&&Qe(e,t,9,h)}function In(e,t,n){for(var r=0;r<n.length;r++)Qe(e,t,r,n[r])}function Rn(e,t){if(je(e,t.index).dirty)throw Fe(Il.createDebugContext(e,t.index),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(e.state&Dl.FirstCheck))}function jn(e){if(!(e.state&Dl.Destroyed)){if(Ln(e,sc.Destroy),Hn(e,sc.Destroy),nn(e,Ol.OnDestroy),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();e.renderer.destroyNode&&Fn(e),et(e)&&e.renderer.destroy(),e.state|=Dl.Destroyed}}function Fn(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];r.type===El.Element?e.renderer.destroyNode(Me(e,n).renderElement):r.type===El.Text&&e.renderer.destroyNode(De(e,n).renderText)}}function Hn(e,t){var n=e.def;if(n.nodeFlags&Ol.HasComponent)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];i.flags&Ol.HasComponent?Un(Me(e,r).componentView,t):0==(i.childFlags&Ol.HasComponent)&&(r+=i.childCount)}}function Ln(e,t){var n=e.def;if(n.nodeFlags&Ol.HasEmbeddedViews)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(i.flags&Ol.HasEmbeddedViews){var o=Me(e,r).embeddedViews;if(o)for(var a=0;a<o.length;a++)Un(o[a],t)}else 0==(i.childFlags&Ol.HasEmbeddedViews)&&(r+=i.childCount)}}function Un(e,t){var n=e.state;switch(t){case sc.CheckNoChanges:n&Dl.ChecksEnabled&&0==(n&(Dl.Errored|Dl.Destroyed))&&An(e);break;case sc.CheckAndUpdate:n&Dl.ChecksEnabled&&0==(n&(Dl.Errored|Dl.Destroyed))&&Pn(e);break;case sc.Destroy:jn(e);break;case sc.CreateViewNodes:xn(e)}}function Gn(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,o=0;o<i;o++){var a=e.def.nodes[o];if(a.flags&t&&a.flags&n)switch(Il.setCurrentNode(e,a.index),r){case Ml.CheckAndUpdate:fn(e,a);break;case Ml.CheckNoChanges:Rn(e,a)}a.childFlags&t&&a.childFlags&n||(o+=a.childCount)}}function Bn(){if(!uc){uc=!0;var e=ke()?$n():zn();Il.setCurrentNode=e.setCurrentNode,Il.createRootView=e.createRootView,Il.createEmbeddedView=e.createEmbeddedView,Il.checkAndUpdateView=e.checkAndUpdateView,Il.checkNoChangesView=e.checkNoChangesView,Il.destroyView=e.destroyView,Il.resolveDep=Xt,Il.createDebugContext=e.createDebugContext,Il.handleEvent=e.handleEvent,Il.updateDirectives=e.updateDirectives,Il.updateRenderer=e.updateRenderer,Il.dirtyParentQueries=hn}}function zn(){return{setCurrentNode:function(){},createRootView:qn,createEmbeddedView:Cn,checkAndUpdateView:Pn,checkNoChangesView:An,destroyView:jn,createDebugContext:function(e,t){return new pc(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(t===Ml.CheckAndUpdate?Wn:Kn,e)},updateRenderer:function(e,t){return e.def.updateRenderer(t===Ml.CheckAndUpdate?Wn:Kn,e)}}}function $n(){return{setCurrentNode:tr,createRootView:Qn,createEmbeddedView:Yn,checkAndUpdateView:Jn,checkNoChangesView:Xn,destroyView:er,createDebugContext:function(e,t){return new pc(e,t)},handleEvent:nr,updateDirectives:rr,updateRenderer:ir}}function qn(e,t,n,r,i){return En(Zn(e,e.get(xu),t,n),r,i)}function Qn(e,t,n,r,i){var o=e.get(xu),a=Zn(e,new vc(o),t,n);return pr(lc.create,En,null,[a,r,i])}function Zn(e,t,n,r){return{injector:e,projectableNodes:n,selectorOrNode:r,sanitizer:e.get(Vu),rendererFactory:t,renderer:t.createRenderer(null,null)}}function Wn(e,t,n,r,i,o,a,s,u,l,c,h,f){var d=e.def.nodes[t];return Vn(e,d,n,r,i,o,a,s,u,l,c,h,f),d.type===El.PureExpression?Re(e,t).value:void 0}function Kn(e,t,n,r,i,o,a,s,u,l,c,h,f){var d=e.def.nodes[t];return Dn(e,d,n,r,i,o,a,s,u,l,c,h,f),d.type===El.PureExpression?Re(e,t).value:void 0}function Yn(e,t,n){return pr(lc.create,Cn,null,[e,t,n])}function Jn(e){return pr(lc.detectChanges,Pn,null,[e])}function Xn(e){return pr(lc.checkNoChanges,An,null,[e])}function er(e){return pr(lc.destroy,jn,null,[e])}function tr(e,t){hc=e,fc=t}function nr(e,t,n,r){return tr(e,t),pr(lc.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function rr(e,t){function n(e,n,r){for(var i=e.def.nodes[n],o=arguments.length,a=Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return t===Ml.CheckAndUpdate?or(e,i,r,a):ar(e,i,r,a),i.type===El.Directive&&tr(e,cr(e,n)),i.type===El.PureExpression?Re(e,i.index).value:void 0}if(e.state&Dl.Destroyed)throw Ge(lc[cc]);return tr(e,cr(e,0)),e.def.updateDirectives(n,e)}function ir(e,t){function n(e,n,r){for(var i=e.def.nodes[n],o=arguments.length,a=Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return t===Ml.CheckAndUpdate?or(e,i,r,a):ar(e,i,r,a),i.type!==El.Element&&i.type!==El.Text||tr(e,hr(e,n)),i.type===El.PureExpression?Re(e,i.index).value:void 0}if(e.state&Dl.Destroyed)throw Ge(lc[cc]);return tr(e,hr(e,0)),e.def.updateRenderer(n,e)}function or(e,n,r,i){if(Vn.apply(void 0,[e,n,r].concat(t(i)))){var o=r===wl.Dynamic?i[0]:i;if(n.type===El.Directive||n.type===El.Element){for(var a={},s=0;s<n.bindings.length;s++){var u=n.bindings[s],l=o[s];u.type!==Sl.ElementProperty&&u.type!==Sl.ComponentHostProperty&&u.type!==Sl.DirectiveProperty||(a[sr(u.nonMinifiedName)]=lr(l))}var c=n.type===El.Directive?n.parent:n,h=Me(e,c.index).renderElement;if(c.element.name)for(var f in a){var d=a[f];null!=d?e.renderer.setAttribute(h,f,d):e.renderer.removeAttribute(h,f)}else e.renderer.setValue(h,"bindings="+JSON.stringify(a,null,2))}}}function ar(e,n,r,i){Dn.apply(void 0,[e,n,r].concat(t(i)))}function sr(e){return"ng-reflect-"+(e=ur(e.replace(/[$@]/g,"_")))}function ur(e){return e.replace(dc,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"-"+t[1].toLowerCase()})}function lr(e){try{return e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function cr(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(r.type===El.Directive&&r.bindings&&r.bindings.length)return n}}function hr(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if((r.type===El.Element||r.type===El.Text)&&r.bindings&&r.bindings.length)return n}}function fr(e){for(;e&&!et(e);)e=e.parent;if(e.parent)return Me(e.parent,Ye(e).index)}function dr(e,t,n){for(var r in t.references)n[r]=pn(e,t,t.references[r])}function pr(e,t,n,r){var i=cc,o=hc,a=fc;try{cc=e;var s=t.apply(n,r);return hc=o,fc=a,cc=i,s}catch(e){if(Ue(e)||!hc)throw e;throw hc.state|=Dl.Errored,He(e,vr())}}function vr(){return new pc(hc,fc)}function yr(){return Cu}function _r(){return Eu}function mr(e){return e||"en-US"}function gr(){Bn()}function kr(e,t){e instanceof mc||e instanceof gc?e.players.forEach(function(e){return kr(e,t)}):t.push(e)}function br(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function wr(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Cr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e){return e.name||(void 0===e?"undefined":Dc(e))}function Sr(e){return null!=e}function xr(e){return null==e}function Ar(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString(),n=t.indexOf("\n");return n===-1?t:t.substring(0,n)}function Pr(e){return null!==e&&("function"==typeof e||"object"===(void 0===e?"undefined":Dc(e)))}function Vr(){if(!Lc)if(Fc.Symbol&&Symbol.iterator)Lc=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Lc=n)}return Lc}function Tr(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}function Nr(e){return e.replace(/\/index.html$/,"")}function Dr(e,t,n){var r="="+e;if(t.indexOf(r)>-1)return r;if(r=n.getPluralCategory(e),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}function Mr(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?qc.One:qc.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?qc.One:qc.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?qc.One:qc.Other;case"ar":return 0===n?qc.Zero:1===n?qc.One:2===n?qc.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?qc.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?qc.Many:qc.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?qc.One:qc.Other;case"be":return n%10==1&&n%100!=11?qc.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?qc.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?qc.Many:qc.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?qc.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?qc.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?qc.Few:0!==n&&n%1e6==0?qc.Many:qc.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?qc.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?qc.Few:qc.Other;case"cs":case"sk":return 1===i&&0===o?qc.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?qc.Few:0!==o?qc.Many:qc.Other;case"cy":return 0===n?qc.Zero:1===n?qc.One:2===n?qc.Two:3===n?qc.Few:6===n?qc.Many:qc.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?qc.One:qc.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?qc.One:0===o&&i%100==2||a%100==2?qc.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?qc.Few:qc.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?qc.One:qc.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?qc.One:qc.Other;case"ga":return 1===n?qc.One:2===n?qc.Two:n===Math.floor(n)&&n>=3&&n<=6?qc.Few:n===Math.floor(n)&&n>=7&&n<=10?qc.Many:qc.Other;case"gd":return 1===n||11===n?qc.One:2===n||12===n?qc.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?qc.Few:qc.Other;case"gv":return 0===o&&i%10==1?qc.One:0===o&&i%10==2?qc.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?qc.Many:qc.Other:qc.Few;case"he":return 1===i&&0===o?qc.One:2===i&&0===o?qc.Two:0!==o||n>=0&&n<=10||n%10!=0?qc.Other:qc.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?qc.One:qc.Other;case"ksh":return 0===n?qc.Zero:1===n?qc.One:qc.Other;case"kw":case"naq":case"se":case"smn":return 1===n?qc.One:2===n?qc.Two:qc.Other;case"lag":return 0===n?qc.Zero:0!==i&&1!==i||0===n?qc.Other:qc.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?qc.Few:0!==a?qc.Many:qc.Other:qc.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?qc.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?qc.One:qc.Other;case"mk":return 0===o&&i%10==1||a%10==1?qc.One:qc.Other;case"mt":return 1===n?qc.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?qc.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?qc.Many:qc.Other;case"pl":return 1===i&&0===o?qc.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?qc.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?qc.Many:qc.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?qc.One:qc.Other;case"ro":return 1===i&&0===o?qc.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?qc.Few:qc.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?qc.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?qc.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?qc.Many:qc.Other;case"shi":return 0===i||1===n?qc.One:n===Math.floor(n)&&n>=2&&n<=10?qc.Few:qc.Other;case"si":return 0===n||1===n||0===i&&1===a?qc.One:qc.Other;case"sl":return 0===o&&i%100==1?qc.One:0===o&&i%100==2?qc.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?qc.Few:qc.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?qc.One:qc.Other;default:return qc.Other}}function Ir(e){return!!Pr(e)&&(Array.isArray(e)||!(e instanceof Map)&&Vr()in e)}function Rr(e,t){return Error("InvalidPipeArgument: '"+t+"' for pipe '"+Ar(e)+"'")}function jr(e){return e?e[0].toUpperCase()+e.substr(1).toLowerCase():e}function Fr(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function Hr(e){return function(t,n){return e(t,n).split(" ")[0]}}function Lr(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function Ur(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=Lr(e,n,t);return r?r.substring(3):""}}function Gr(e,t){return e.hour12=t,e}function Br(e,t){var n={};return n[e]=2===t?"2-digit":"numeric",n}function zr(e,t){var n={};return n[e]=t<4?t>1?"short":"narrow":"long",n}function $r(e){return Object.assign.apply(Object,[{}].concat(br(e)))}function qr(e){return function(t,n){return Lr(t,n,e)}}function Qr(e,t,n){var r=kh[e];if(r)return r(t,n);var i=e,o=wh.get(i);if(!o){o=[];var a=void 0;for(gh.exec(e);e;)a=gh.exec(e),a?(o=o.concat(a.slice(1)),e=o.pop()):(o.push(e),e=null);wh.set(i,o)}return o.reduce(function(e,r){var i=bh[r];return e+(i?i(t,n):Zr(r))},"")}function Zr(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function Wr(e){return null==e||""===e}function Kr(e){return e instanceof Date&&!isNaN(e.valueOf())}function Yr(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Jr(e[9]+e[10]),r=Jr(e[9]+e[11])),i.call(t,Jr(e[1]),Jr(e[2])-1,Jr(e[3]));var a=Jr(e[4]||"0")-n,s=Jr(e[5]||"0")-r,u=Jr(e[6]||"0"),l=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,u,l),t}function Jr(e){return parseInt(e,10)}function Xr(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==n)return null;if("number"!=typeof(n="string"==typeof n&&Hc.isNumeric(n)?+n:n))throw Rr(e,n);var s=void 0,u=void 0,l=void 0;if(r!==_h.Currency&&(s=1,u=0,l=3),i){var c=i.match(Ah);if(null===c)throw new Error(i+" is not a valid digit info for number pipes");null!=c[1]&&(s=Hc.parseIntAutoRadix(c[1])),null!=c[3]&&(u=Hc.parseIntAutoRadix(c[3])),null!=c[5]&&(l=Hc.parseIntAutoRadix(c[5]))}return mh.format(n,t,r,{minimumIntegerDigits:s,minimumFractionDigits:u,maximumFractionDigits:l,currency:o,currencyAsSymbol:a})}function ei(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function ti(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function ni(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function ri(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ii(e){return null!=e}function oi(e){return null==e}function ai(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString(),n=t.indexOf("\n");return n===-1?t:t.substring(0,n)}function si(e,t,n){for(var r=t.split("."),i=e;r.length>1;){var o=r.shift();i=i.hasOwnProperty(o)&&null!=i[o]?i[o]:i[o]={}}void 0!==i&&null!==i||(i={}),i[r.shift()]=n}function ui(){return Gh}function li(e){Gh||(Gh=e)}function ci(e,t){return ui().getComputedStyle(e)[t]}function hi(e){var t={};return Object.keys(e).forEach(function(n){"offset"!=n&&(t[n]=e[n])}),t}function fi(e,t){var n={};return e.styles.forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t]})}),Object.keys(t).forEach(function(e){ii(n[e])||(n[e]=t[e])}),n}function di(e){return e instanceof zh}function pi(){return Yh||(Yh=document.querySelector("base"))?Yh.getAttribute("href"):null}function vi(e){return Jh||(Jh=document.createElement("a")),Jh.setAttribute("href",e),"/"===Jh.pathname.charAt(0)?Jh.pathname:"/"+Jh.pathname}function yi(e,t){t=encodeURIComponent(t);var n=!0,r=!1,i=void 0;try{for(var o,a=e.split(";")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=s.indexOf("="),l=u==-1?[s,""]:[s.slice(0,u),s.slice(u+1)],c=Rh(l,2),h=c[0],f=c[1];if(h.trim()===t)return decodeURIComponent(f)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}function _i(){return!!window.history.pushState}function mi(e,t){return function(){var n=ui();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})}}function gi(e,t){var n=e.parentNode;if(t.length>0&&n){var r=e.nextSibling;if(r)for(var i=0;i<t.length;i++)n.insertBefore(t[i],r);else for(var o=0;o<t.length;o++)n.appendChild(t[o])}}function ki(e,t){for(var n=0;n<t.length;n++)e.appendChild(t[n])}function bi(e){return function(t){e(t)===!1&&(t.preventDefault(),t.returnValue=!1)}}function wi(e){return bf.replace(gf,e)}function Ci(e){return kf.replace(gf,e)}function Ei(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?Ei(e,i,n):(i=i.replace(gf,e),n.push(i))}return n}function Oi(e){return":"===e[0]}function Si(e){var t=e.match(wf);return[t[1],t[2]]}function xi(e){return Pe(e)}function Ai(e,t,n){return ke()?Pi(e,(t||[]).concat(n||[])):e}function Pi(e,t){return ui().setGlobalVar(Af,xi),ui().setGlobalVar(Pf,sf.merge(xf,Vi(t||[]))),new bc(e)}function Vi(e){return e.reduce(function(e,t){return e[t.name]=t.token,e},{})}function Ti(e){return e=String(e),e.match(Lf)||e.match(Uf)?e:(ke()&&ui().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function Ni(e){return e=String(e),e.split(",").map(function(e){return Ti(e.trim())}).join(", ")}function Di(){if(Gf)return Gf;Bf=ui();var e=Bf.createElement("template");if("content"in e)return e;var t=Bf.createHtmlDocument();if(null==(Gf=Bf.querySelector(t,"body"))){var n=Bf.createElement("html",t);Gf=Bf.createElement("body",t),Bf.appendChild(n,Gf),Bf.appendChild(t,n)}return Gf}function Mi(e){var t={},n=!0,r=!1,i=void 0;try{for(var o,a=e.split(",")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){t[o.value]=!0}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t}function Ii(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=!0,o=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value;for(var c in l)l.hasOwnProperty(c)&&(e[c]=!0)}}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return e}function Ri(e){return e.replace(/&/g,"&amp;").replace(nd,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(rd,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ji(e){Bf.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Bf.removeAttribute(e,n)});var t=!0,n=!1,r=void 0;try{for(var i,o=Bf.childNodesAsList(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;Bf.isElementNode(a)&&ji(a)}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function Fi(e,t){try{var n=Di(),r=t?String(t):"",i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,Bf.setInnerHTML(n,r),e.documentMode&&ji(n),o=Bf.getInnerHTML(n)}while(r!==o);var a=new td,s=a.sanitizeChildren(Bf.getTemplateContent(n)||n),u=Bf.getTemplateContent(n)||n,l=!0,c=!1,h=void 0;try{for(var f,d=Bf.childNodesAsList(u)[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var p=f.value;Bf.removeChild(u,p)}}catch(e){c=!0,h=e}finally{try{!l&&d.return&&d.return()}finally{if(c)throw h}}return ke()&&a.sanitizedSomething&&Bf.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}catch(e){throw Gf=null,e}}function Hi(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}function Li(e){if(!(e=String(e).trim()))return"";var t=e.match(od);return t&&Ti(t[1])===t[1]||e.match(id)&&Hi(e)?e:(ke()&&ui().log("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}function Ui(){Kh.makeCurrent(),of.init()}function Gi(){return new As}function Bi(){return document}function zi(){return ui().supportsWebAnimation()?new $h:Hh.NOOP}function $i(e){return"$"+e+"Controller"}function qi(e){return e.overriddenName||e.name||e.toString().split("\n")[0]}function Qi(e){return"function"==typeof e.writeValue&&"function"==typeof e.registerOnChange}function Zi(e,t){e&&Qi(t)&&(e.$render=function(){t.writeValue(e.$viewValue)},t.registerOnChange(e.$setViewValue.bind(e)))}function Wi(e){var t="NG2_UPGRADE_"+Vd+++"_",n=0,r=function(r,i,o){return{restrict:"E",terminal:!0,require:[Ed,Od],link:function(a,s,u,l){var c=l[0]||i.get(Cd),h=l[1],f=function(l){var c=l.get(ju),f=c.resolveComponentFactory(e.component);if(!f)throw new Error("Expecting ComponentFactory for: "+qi(e.component));var d=t+n++,p=new Td(s),v=new Pd(d,e,s,u,a,h,l,i,r,o,f),y=v.compileContents();v.createComponent(y),v.setupInputs(),v.setupOutputs(),v.registerCleanup(),p.resolve(v.getInjector())};c instanceof Td?c.then(f):f(c)}}};return r.$inject=[kd,bd,wd],r}function Ki(){throw new Error("AngularJS v1.x is not loaded!")}function Yi(e){Dd=e}function Ji(){var e=Dd;return Dd=null,e}function Xi(e){return e.get("$rootScope")}function eo(e){return e.get("$compile")}function to(e){return e.get("$parse")}function no(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function ro(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function io(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function oo(e,t){
  if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ao(e){return null!=e}function so(e){return null==e}function uo(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function lo(e){return null!==e&&("function"==typeof e||"object"===(void 0===e?"undefined":ip(e)))}function co(e){return!lo(e)}function ho(e){return null==e||0===e.length}function fo(e){return ne(e)?e:Xd.call(e)}function po(e,t){return t.map(function(t){return t(e)})}function vo(e,t){return t.map(function(t){return t(e)})}function yo(e){var t=e.reduce(function(e,t){return ao(t)?up.merge(e,t):e},{});return 0===Object.keys(t).length?null:t}function _o(e){return e.validate?function(t){return e.validate(t)}:e}function mo(e){return e.validate?function(t){return e.validate(t)}:e}function go(){throw new Error("unimplemented")}function ko(e,t){return null==e?""+t:(co(t)||(t="Object"),(e+": "+t).slice(0,50))}function bo(e){return e.split(":")[0]}function wo(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),co(t)||(t="Object"),(e+": "+t).slice(0,50))}function Co(e){return e.split(":")[0]}function Eo(e,t){return[].concat(no(t.path),[e])}function Oo(e,t){e||Po(t,"Cannot find control with"),t.valueAccessor||Po(t,"No value accessor for form control with"),e.validator=dp.compose([e.validator,t.validator]),e.asyncValidator=dp.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),t.valueAccessor.registerOnChange(function(n){t.viewToModelUpdate(n),e.markAsDirty(),e.setValue(n,{emitModelToViewChange:!1})}),t.valueAccessor.registerOnTouched(function(){return e.markAsTouched()}),e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function So(e,t){t.valueAccessor.registerOnChange(function(){return Ao(t)}),t.valueAccessor.registerOnTouched(function(){return Ao(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}function xo(e,t){so(e)&&Po(t,"Cannot find control with"),e.validator=dp.compose([e.validator,t.validator]),e.asyncValidator=dp.composeAsync([e.asyncValidator,t.asyncValidator])}function Ao(e){return Po(e,"There is no FormControl instance attached to form control element with")}function Po(e,t){var n=void 0;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Vo(e){return ao(e)?dp.compose(e.map(_o)):null}function To(e){return ao(e)?dp.composeAsync(e.map(mo)):null}function No(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!uo(t,n.currentValue)}function Do(e){return Dp.some(function(t){return e.constructor===t})}function Mo(e,t){if(!t)return null;var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){t.constructor===mp?n=t:Do(t)?(r&&Po(e,"More than one built-in value accessor matches form control with"),r=t):(i&&Po(e,"More than one custom value accessor matches form control with"),i=t)}),i?i:r?r:n?n:(Po(e,"No valid value accessor for form control with"),null)}function Io(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof Gp?e.controls[t]||null:e instanceof Bp?e.at(t)||null:null},e))}function Ro(e){return ne(e)?np(e):e}function jo(e){return Array.isArray(e)?Vo(e):e}function Fo(e){return Array.isArray(e)?To(e):e}function Ho(e){return!(e instanceof av||e instanceof iv||e instanceof uv)}function Lo(){return kn(0,[vt(0,null,null,5,"td",[],null,null,null,null,null),Ut(4,null,0,Qc,[yu,_u,ru,Ou],{ngClass:[0,"ngClass"]},null),vn(null,["\n            "]),vt(0,null,null,1,"span",[],null,null,null,null,null),vn(null,["",""]),vn(null,["\n        "])],function(e,t){t.component;e(t,1,0,t.context.$implicit.getClass())},function(e,t){t.component;e(t,4,0,t.context.$implicit.val)})}function Uo(){return kn(0,[vt(0,null,null,8,"table",[["class","sort"]],null,null,null,null,null),vn(null,["\n    "]),vt(0,null,null,6,"tbody",[],null,null,null,null,null),vt(0,null,null,4,"tr",[],null,null,null,null,null),vn(null,["\n        "]),pt(256,null,null,1,null,Lo),Ut(12,null,0,Kc,[hl,cl,yu],{ngForOf:[0,"ngForOf"]},null),vn(null,["\n    "]),vn(null,["\n"]),vn(null,["\n"]),vt(0,null,null,4,"div",[["style","margin-top: 10px;"]],null,null,null,null,null),vn(null,["\n    "]),vt(0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;if("click"===t){r=i.sortList()!==!1&&r}return r},null,null),vn(null,["Sort list"]),vn(null,["\n"])],function(e,t){e(t,6,0,t.component.list.items)},null)}function Go(){return kn(0,[vt(0,null,null,1,"insertion-sort",[],null,null,null,Uo,Qv),Ut(1024,null,0,Lv,[],null,null)],null,null)}function Bo(){return kn(0,[vt(0,null,null,1,"h1",[],null,null,null,null,null),vn(null,["Insertion Sort Demo"]),vn(null,["\n"]),vt(0,null,null,1,"div",[],null,null,null,null,null),vn(null,["Watch the list get sorted as the algorithm traverses the list"]),vn(null,["\n"]),vt(0,null,null,1,"insertion-sort",[],null,null,null,Uo,Qv),Ut(1024,null,0,Lv,[],null,null),vn(null,["\n"]),vt(0,null,null,2,"h4",[],null,null,null,null,null),vt(0,null,null,1,"a",[["href","http://www.syntaxsuccess.com/viewarticle/timeouts-and-timerwrapper-in-angular-2.0"]],null,null,null,null,null),vn(null,["Read more here"])],null,null)}function zo(){return kn(0,[vt(0,null,null,1,"algorithms",[],null,null,null,Bo,Kv),Ut(1024,null,0,Yd,[],null,null)],null,null)}function $o(){return kn(0,[vt(0,null,null,6,"div",[],null,null,null,null,null),vt(0,null,null,5,"input",[],[[1,"ng-untouched"],[1,"ng-touched"],[1,"ng-pristine"],[1,"ng-dirty"],[1,"ng-valid"],[1,"ng-invalid"],[1,"ng-pending"],[3,"type",0],[3,"id",0]],[[null,"input"],[null,"blur"]],function(e,t,n){var r=!0;e.component;if("input"===t){r=Ht(e,2).onChange(n.target.value)!==!1&&r}if("blur"===t){r=Ht(e,2).onTouched()!==!1&&r}return r},null,null),Ut(0,null,0,mp,[Ou,ru],null,null),Gt(0,null,2,pp,function(e){return[e]},[mp]),Ut(10,null,0,cv,[[3,sp],[8,null],[8,null],[2,pp]],{name:[0,"name"]},null),Gt(0,null,3,bp,null,[cv]),Ut(0,null,0,jp,[bp],null,null)],function(e,t){t.component;e(t,4,0,t.parent.context.$implicit.key)},function(e,t){t.component;e(t,1,0,Ht(t,6).ngClassUntouched,Ht(t,6).ngClassTouched,Ht(t,6).ngClassPristine,Ht(t,6).ngClassDirty,Ht(t,6).ngClassValid,Ht(t,6).ngClassInvalid,Ht(t,6).ngClassPending,de(1,"",t.parent.context.$implicit.type,""),de(1,"",t.parent.context.$implicit.key,""))})}function qo(){return kn(0,[vt(0,null,null,3,"option",[],null,null,null,null,null),Ut(2,null,0,Pp,[ru,Ou,[2,Ap]],{value:[0,"value"]},null),Ut(2,null,0,Np,[ru,Ou,[8,null]],{value:[0,"value"]},null),vn(null,["",""])],function(e,t){t.component;e(t,1,0,t.context.$implicit.key),e(t,2,0,t.context.$implicit.key)},function(e,t){t.component;e(t,3,0,t.context.$implicit.value)})}function Qo(){return kn(0,[vt(0,null,null,12,"div",[],null,null,null,null,null),vn(null,["\n                    "]),vt(0,null,null,9,"select",[],[[1,"ng-untouched"],[1,"ng-touched"],[1,"ng-pristine"],[1,"ng-dirty"],[1,"ng-valid"],[1,"ng-invalid"],[1,"ng-pending"]],[[null,"change"],[null,"blur"]],function(e,t,n){var r=!0;e.component;if("change"===t){r=Ht(e,3).onChange(n.target.value)!==!1&&r}if("blur"===t){r=Ht(e,3).onTouched()!==!1&&r}return r},null,null),Ut(0,null,0,Ap,[Ou,ru],null,null),Gt(0,null,2,pp,function(e){return[e]},[Ap]),Ut(10,null,0,cv,[[3,sp],[8,null],[8,null],[2,pp]],{name:[0,"name"]},null),Gt(0,null,3,bp,null,[cv]),Ut(0,null,0,jp,[bp],null,null),vn(null,["\n                        "]),pt(256,null,null,1,null,qo),Ut(12,null,0,Kc,[hl,cl,yu],{ngForOf:[0,"ngForOf"]},null),vn(null,["\n                    "]),vn(null,["\n                "])],function(e,t){t.component;e(t,5,0,t.parent.context.$implicit.key),e(t,10,0,t.parent.context.$implicit.options)},function(e,t){t.component;e(t,2,0,Ht(t,7).ngClassUntouched,Ht(t,7).ngClassTouched,Ht(t,7).ngClassPristine,Ht(t,7).ngClassDirty,Ht(t,7).ngClassValid,Ht(t,7).ngClassInvalid,Ht(t,7).ngClassPending)})}function Zo(){return kn(0,[vt(0,null,null,1,"div",[["class","errorMessage"]],null,null,null,null,null),vn(null,["*required"])],null,null)}function Wo(){return kn(0,[vt(0,null,null,17,"div",[["class","form-row"]],null,null,null,null,null),vn(null,["\n            "]),vt(0,null,null,1,"div",[["class","formHeading"]],null,null,null,null,null),vn(null,["",""]),vn(null,["\n\n            "]),vt(0,null,null,8,"div",[],null,null,null,null,null),Ut(0,null,0,th,[],{ngSwitch:[0,"ngSwitch"]},null),vn(null,["\n                "]),pt(256,null,null,1,null,$o),Ut(4,null,0,nh,[hl,cl,th],{ngSwitchCase:[0,"ngSwitchCase"]},null),vn(null,["\n                "]),pt(256,null,null,1,null,Qo),Ut(4,null,0,nh,[hl,cl,th],{ngSwitchCase:[0,"ngSwitchCase"]},null),vn(null,["\n            "]),vn(null,["\n\n            "]),pt(256,null,null,1,null,Zo),Ut(0,null,0,Jc,[hl,cl],{ngIf:[0,"ngIf"]},null),vn(null,["\n        "])],function(e,t){var n=t.component;e(t,6,0,t.context.$implicit.controlType);e(t,9,0,"textbox");e(t,12,0,"dropdown"),e(t,16,0,!n.form.controls[t.context.$implicit.key].valid)},function(e,t){t.component;e(t,3,0,t.context.$implicit.text)})}function Ko(){return kn(0,[vt(0,null,null,2,"div",[],null,null,null,null,null),vt(0,null,null,1,"strong",[],null,null,null,null,null),vn(null,["The form contains the following values"])],null,null)}function Yo(){return kn(0,[vt(0,null,null,30,"div",[],null,null,null,null,null),vn(null,["\n    "]),vt(0,null,null,14,"form",[["novalidate",""]],[[1,"ng-untouched"],[1,"ng-touched"],[1,"ng-pristine"],[1,"ng-dirty"],[1,"ng-valid"],[1,"ng-invalid"],[1,"ng-pending"]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var r=!0,i=e.component;if("submit"===t){r=Ht(e,4).onSubmit(n)!==!1&&r}if("reset"===t){r=Ht(e,4).onReset()!==!1&&r}if("ngSubmit"===t){r=i.onSubmit()!==!1&&r}return r},null,null),Ut(0,null,0,Ev,[],null,null),Ut(8,null,0,iv,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),Gt(0,null,3,sp,null,[iv]),Ut(0,null,0,Fp,[sp],null,null),vn(null,["\n        "]),pt(256,null,null,1,null,Wo),Ut(12,null,0,Kc,[hl,cl,yu],{ngForOf:[0,"ngForOf"]},null),vn(null,["\n\n        "]),vt(0,null,null,4,"div",[["class","form-row"]],null,null,null,null,null),vn(null,["\n            "]),vt(0,null,null,1,"button",[["type","submit"]],[[3,"disabled",0]],null,null,null,null),vn(null,["Save"]),vn(null,["\n        "]),vn(null,["\n    "]),vn(null,["\n\n    "]),vt(0,null,null,7,"div",[["class","form-row"]],null,null,null,null,null),vn(null,["\n        "]),pt(256,null,null,1,null,Ko),Ut(0,null,0,Jc,[hl,cl],{ngIf:[0,"ngIf"]},null),vn(null,["\n        "]),vt(0,null,null,1,"div",[],null,null,null,null,null),vn(null,["\n            ","\n        "]),vn(null,["\n    "]),vn(null,["\n    "]),vt(0,null,null,2,"h4",[],null,null,null,null,null),vt(0,null,null,1,"a",[["href","http://www.syntaxsuccess.com/viewarticle/dynamic-form-in-angular-2.0"]],null,null,null,null,null),vn(null,["Read more here"]),vn(null,["\n"])],function(e,t){var n=t.component;e(t,4,0,n.form),e(t,9,0,n.model.questions),e(t,21,0,n.payLoad)},function(e,t){var n=t.component;e(t,2,0,Ht(t,6).ngClassUntouched,Ht(t,6).ngClassTouched,Ht(t,6).ngClassPristine,Ht(t,6).ngClassDirty,Ht(t,6).ngClassValid,Ht(t,6).ngClassInvalid,Ht(t,6).ngClassPending),e(t,13,0,!n.form.valid),e(t,24,0,n.payLoad)})}function Jo(){return kn(0,[vt(0,null,null,1,"survey",[],null,null,null,Yo,Xv),Ut(1025,null,0,Fv,[],null,null)],function(e,t){e(t,1,0)},null)}function Xo(){return kn(0,[vt(0,null,null,4,"div",[],null,null,null,null,null),vt(0,null,null,1,"h1",[],null,null,null,null,null),vn(null,["Survey using Dynamic Form"]),vt(0,null,null,1,"survey",[],null,null,null,Yo,Xv),Ut(1025,null,0,Fv,[],{model:[0,"model"]},null)],function(e,t){e(t,4,0,t.component.questionModel)},null)}function ea(){return kn(0,[vt(0,null,null,1,"survey-demo",[],null,null,null,Xo,ny),Ut(1024,null,0,jv,[],null,null)],null,null)}function ta(){return kn(0,[vt(0,null,null,3,"span",[],null,null,null,null,null),Ut(4,null,0,Qc,[yu,_u,ru,Ou],{ngClass:[0,"ngClass"]},null),on(["currentChar","selectedChar"]),vn(null,["",""])],function(e,t){t.component;e(t,1,0,e(t,2,0,t.context.$implicit.isCurrent,t.context.$implicit.isSelected))},function(e,t){t.component;e(t,3,0,t.context.$implicit.value)})}function na(){return kn(0,[vn(null,["\n"]),vt(0,null,null,1,"h1",[],null,null,null,null,null),vn(null,["Text editor based on Observables"]),vn(null,["\n\n"]),vt(0,null,null,1,"div",[["class","alert alert-success"],["role","alert"]],null,null,null,null,null),vn(null,["\n    Supports typing of letters and numbers. Basic text selection and cursor placement is also supported.\n"]),vn(null,["\n\n"]),vt(0,null,null,5,"div",[["class","editor"]],null,null,null,null,null),vn(null,["\n"]),vt(0,null,null,2,"div",[["class","page noselect"],["id","page"]],null,null,null,null,null),pt(256,null,null,1,null,ta),Ut(12,null,0,Kc,[hl,cl,yu],{ngForOf:[0,"ngForOf"]},null),vn(null,["\n"]),vn(null,["\n\n"]),vt(0,null,null,2,"h4",[],null,null,null,null,null),vt(0,null,null,1,"a",[["href","http://www.syntaxsuccess.com/viewarticle/observables-in-angular-2.0"]],null,null,null,null,null),vn(null,["Read more here"])],function(e,t){e(t,11,0,t.component.currentDocument.characters)},null)}function ra(){return kn(0,[vt(0,null,null,1,"editor",[],null,null,null,na,oy),Ut(1025,null,0,Kd,[],null,null)],function(e,t){e(t,1,0)},null)}function ia(){return kn(0,[vt(0,null,null,1,"div",[],null,null,null,null,null),vn(null,["",""]),vn(null,["\n             "]),vt(0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;if("click"===t){r=i.sendMessage()!==!1&&r}return r},null,null),vn(null,["Send Message From New Angular"]),vn(null,[" \n             "])],null,function(e,t){e(t,1,0,t.component.message)})}function oa(){return kn(0,[vt(0,null,null,1,"ng-component",[],null,null,null,ia,uy),Ut(1025,null,0,zv,[Bv],null,null)],function(e,t){e(t,1,0)},null)}var aa="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},sa=e(function(e,t){if(t.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof aa&&aa.global===aa&&aa,!t.root)throw new Error("RxJS could not find any global context (window, self, global)")}),ua=e(function(e,t){function n(e){return"function"==typeof e}t.isFunction=n}),la=e(function(e,t){t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}}),ca=e(function(e,t){function n(e){return null!=e&&"object"==typeof e}t.isObject=n}),ha=e(function(e,t){t.errorObject={e:{}}}),fa=e(function(e,t){function n(){try{return i.apply(this,arguments)}catch(e){return o.errorObject.e=e,o.errorObject}}function r(e){return i=e,n}var i,o=ha;t.tryCatch=r}),da=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return n(t,e),t}(Error);t.UnsubscriptionError=r}),pa=e(function(e,t){var n=la,r=ca,i=ua,o=fa,a=ha,s=da,u=function(){function e(e){this.closed=!1,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){this.closed=!0;var u=this,l=u._unsubscribe,c=u._subscriptions;if(this._subscriptions=null,i.isFunction(l)){var h=o.tryCatch(l).call(this);h===a.errorObject&&(t=!0,(e=e||[]).push(a.errorObject.e))}if(n.isArray(c))for(var f=-1,d=c.length;++f<d;){var p=c[f];if(r.isObject(p)){var h=o.tryCatch(p.unsubscribe).call(p);if(h===a.errorObject){t=!0,e=e||[];var v=a.errorObject.e;v instanceof s.UnsubscriptionError?e=e.concat(v.errors):e.push(v)}}}if(t)throw new s.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)break;this.closed?n.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(n);break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return n},e.prototype.remove=function(t){if(null!=t&&t!==this&&t!==e.EMPTY){var n=this._subscriptions;if(n){var r=n.indexOf(t);r!==-1&&n.splice(r,1)}}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();t.Subscription=u}),va=e(function(e,t){t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}}),ya=e(function(e,t){var n=sa,r=n.root.Symbol;t.$$rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"}),_a=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=ua,i=pa,o=va,a=ya,s=function(e){function t(n,r,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.empty;break;case 1:if(!n){this.destination=o.empty;break}if("object"==typeof n){n instanceof t?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,n,r,i)}}return n(t,e),t.prototype[a.$$rxSubscriber]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t}(i.Subscription);t.Subscriber=s;var u=function(e){function t(t,n,i,o){e.call(this),this._parent=t;var a,s=this;r.isFunction(n)?a=n:n&&(s=n,a=n.next,i=n.error,o=n.complete,r.isFunction(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this)),this._context=s,this._next=a,this._error=i,this._complete=o}return n(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parent;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parent;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){if(!this.isStopped){var e=this._parent;this._complete?e.syncErrorThrowable?(this.__tryOrSetError(e,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parent;this._context=null,this._parent=null,e.unsubscribe()},t}(s)}),ma=e(function(e,t){function n(e,t,n){if(e){if(e instanceof r.Subscriber)return e;if(e[i.$$rxSubscriber])return e[i.$$rxSubscriber]()}return e||t||n?new r.Subscriber(e,t,n):new r.Subscriber(o.empty)}var r=_a,i=ya,o=va;t.toSubscriber=n}),ga=e(function(e,t){function n(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}var r=sa;t.getSymbolObservable=n,t.$$observable=n(r.root)}),ka=ga.$$observable,ba=e(function(e,t){var n=sa,r=ma,i=ga,o=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,o=r.toSubscriber(e,t,n);if(i?i.call(o,this.source):o.add(this._subscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype.forEach=function(e,t){var r=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var i=r.subscribe(function(t){if(i)try{e(t)}catch(e){n(e),i.unsubscribe()}else e(t)},n,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[i.$$observable]=function(){return this},e.create=function(t){return new e(t)},e}();t.Observable=o}),wa=ba.Observable,Ca=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=ba,i=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return n(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.done,n=e.value,r=e.subscriber;if(t)return void r.complete();r.next(n),r.closed||(e.done=!0,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.value,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(r.Observable);t.ScalarObservable=i}),Ea=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=ba,i=function(e){function t(t){e.call(this),this.scheduler=t}return n(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(r.Observable);t.EmptyObservable=i}),Oa=e(function(e,t){function n(e){return e&&"function"==typeof e.schedule}t.isScheduler=n}),Sa=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=ba,i=Ca,o=Ea,a=Oa,s=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return n(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=e[e.length-1];a.isScheduler(r)?e.pop():r=null;var s=e.length;return s>1?new t(e,r):1===s?new i.ScalarObservable(e[0],r):new o.EmptyObservable(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.count,i=e.subscriber;if(n>=r)return void i.complete();i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var o=0;o<r&&!e.closed;o++)e.next(n[o]);e.complete()},t}(r.Observable);t.ArrayObservable=s}),xa=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=_a,i=function(e){function t(){e.apply(this,arguments)}return n(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r.Subscriber);t.OuterSubscriber=i}),Aa=e(function(e,t){function n(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}t.isPromise=n}),Pa=e(function(e,t){function n(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var a=i[o];if("entries"!==a&&"size"!==a&&r.prototype[a]===r.prototype.entries)return a}return"@@iterator"}var r=sa;t.symbolIteratorPonyfill=n,t.$$iterator=n(r.root)}),Va=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=_a,i=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return n(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(r.Subscriber);t.InnerSubscriber=i}),Ta=e(function(e,t){function n(e,t,n,h){var f=new l.InnerSubscriber(e,n,h);if(f.closed)return null;if(t instanceof s.Observable)return t._isScalar?(f.next(t.value),f.complete(),null):t.subscribe(f);if(i.isArray(t)){for(var d=0,p=t.length;d<p&&!f.closed;d++)f.next(t[d]);f.closed||f.complete()}else{if(o.isPromise(t))return t.then(function(e){f.closed||(f.next(e),f.complete())},function(e){return f.error(e)}).then(null,function(e){r.root.setTimeout(function(){throw e})}),f;if(t&&"function"==typeof t[u.$$iterator])for(var v=t[u.$$iterator]();;){var y=v.next();if(y.done){f.complete();break}if(f.next(y.value),f.closed)break}else if(t&&"function"==typeof t[c.$$observable]){var _=t[c.$$observable]();if("function"==typeof _.subscribe)return _.subscribe(new l.InnerSubscriber(e,n,h));f.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m=a.isObject(t)?"an invalid object":"'"+t+"'",g="You provided "+m+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";f.error(new TypeError(g))}}return null}var r=sa,i=la,o=Aa,a=ca,s=ba,u=Pa,l=Va,c=ga;t.subscribeToResult=n}),Na=e(function(e,t){function n(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),this.lift(new a(e))}var r=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=xa,o=Ta;t.mergeAll=n;var a=function(){function e(e){this.concurrent=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.concurrent))},e}();t.MergeAllOperator=a;var s=function(e){function t(t,n){e.call(this,t),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return r(t,e),t.prototype._next=function(e){this.active<this.concurrent?(this.active++,this.add(o.subscribeToResult(this,e))):this.buffer.push(e)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.OuterSubscriber);t.MergeAllSubscriber=s}),Da=e(function(e,t){function n(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.lift.call(r.apply(void 0,[this].concat(e)))}function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,s=e[e.length-1];return a.isScheduler(s)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof s&&(n=e.pop()),null===r&&1===e.length?e[0]:new i.ArrayObservable(e,r).lift(new o.MergeAllOperator(n))}var i=Sa,o=Na,a=Oa;t.merge=n,t.mergeStatic=r}),Ma=e(function(e,t){var n=Da;t.merge=n.mergeStatic}),Ia=Ma.merge,Ra=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return n(t,e),t}(Error);t.ObjectUnsubscribedError=r}),ja=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=pa,i=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return n(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);n!==-1&&t.splice(n,1)}}},t}(r.Subscription);t.SubjectSubscription=i}),Fa=e(function(e,t){var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=ba,i=_a,o=pa,a=Ra,s=ja,u=ya,l=function(e){function t(t){e.call(this,t),this.destination=t}return n(t,e),t}(i.Subscriber);t.SubjectSubscriber=l;var c=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(t,e),t.prototype[u.$$rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._subscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.isStopped?(e.complete(),o.Subscription.EMPTY):(this.observers.push(e),new s.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},t.create=function(e,t){return new h(e,t)},t}(r.Observable);t.Subject=c;var h=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return n(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):o.Subscription.EMPTY},t}(c);t.AnonymousSubject=h}),Ha=Fa.Subject,La=e(function(e,t){
  var n=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=Fa,i=ba,o=_a,a=pa,s=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0}return n(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(e=this._connection=new a.Subscription,e.add(this.source.subscribe(new u(this.getSubject(),this))),e.closed?(this._connection=null,e=a.Subscription.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return this.lift(new l(this))},t}(i.Observable);t.ConnectableObservable=s,t.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:s.prototype._subscribe},getSubject:{value:s.prototype.getSubject},connect:{value:s.prototype.connect},refCount:{value:s.prototype.refCount}};var u=function(e){function t(t,n){e.call(this,t),this.connectable=n}return n(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(r.SubjectSubscriber),l=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new c(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),c=function(e){function t(t,n){e.call(this,t),this.connectable=n}return n(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(!e)return void(this.connection=null);this.connectable=null;var t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},t}(o.Subscriber)}),Ua=e(function(e,t){function n(e,t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof t)return this.lift(new i(n,t));var o=Object.create(this,r.connectableObservableDescriptor);return o.source=this,o.subjectFactory=n,o}var r=La;t.multicast=n;var i=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}();t.MulticastOperator=i}),Ga=e(function(e,t){function n(){return new o.Subject}function r(){return i.multicast.call(this,n).refCount()}var i=Ua,o=Fa;t.share=r}),Ba=Ga.share,za=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$a=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Za=function(){function e(t){i(this,e),this._desc=t}return Qa(e,[{key:"toString",value:function(){return"Token "+this._desc}}]),e}(),Wa=function(e){function t(e){return i(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return r(t,e),Qa(t,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),t}(Za),Ka=void 0;Ka="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var Ya=Ka;Ya.assert=function(e){};var Ja=null,Xa=0,es=Ya.Reflect,ts=(new Wa("AnalyzeForEntryComponents"),b("Attribute",[["attributeName",void 0]])),ns=function e(){i(this,e)},rs=(w("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],ns),w("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],ns),w("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],ns),w("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],ns),{});rs.OnPush=0,rs.Default=1,rs[rs.OnPush]="OnPush",rs[rs.Default]="Default";var is={};is.CheckOnce=0,is.Checked=1,is.CheckAlways=2,is.Detached=3,is.Errored=4,is.Destroyed=5,is[is.CheckOnce]="CheckOnce",is[is.Checked]="Checked",is[is.CheckAlways]="CheckAlways",is[is.Detached]="Detached",is[is.Errored]="Errored",is[is.Destroyed]="Destroyed";var os=g("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),as=g("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:rs.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},os),ss=g("Pipe",{name:void 0,pure:!0}),us=w("Input",[["bindingPropertyName",void 0]]),ls=w("Output",[["bindingPropertyName",void 0]]),cs=(w("HostBinding",[["hostPropertyName",void 0]]),w("HostListener",[["eventName",void 0],["args",[]]])),hs=g("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),fs={};fs.Emulated=0,fs.Native=1,fs.None=2,fs[fs.Emulated]="Emulated",fs[fs.Native]="Native",fs[fs.None]="None";var ds=function(){function e(t){i(this,e),this.full=t}return Qa(e,[{key:"major",get:function(){return this.full.split(".")[0]}},{key:"minor",get:function(){return this.full.split(".")[1]}},{key:"patch",get:function(){return this.full.split(".").slice(2).join(".")}}]),e}(),ps=new ds("4.0.0-rc.1"),vs=b("Inject",[["token",void 0]]),ys=b("Optional",[]),_s=g("Injectable",[]),ms=b("Self",[]),gs=b("SkipSelf",[]),ks=b("Host",[]),bs=new Object,ws=bs,Cs=function(){function e(){i(this,e)}return Qa(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bs;if(t===bs)throw new Error("No provider for "+l(e)+"!");return t}}]),e}(),Es=function(){function e(){i(this,e)}return Qa(e,[{key:"get",value:function(e,t){}},{key:"get",value:function(e,t){}}]),e}();Es.THROW_IF_NOT_FOUND=bs,Es.NULL=new Cs;var Os="ngType",Ss="ngDebugContext",xs="ngOriginalError",As=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];i(this,e),this._console=console,this.rethrowError=t}return Qa(e,[{key:"handleError",value:function(e){if(this._console.error("EXCEPTION: "+this._extractMessage(e)),e instanceof Error){var t=this._findOriginalError(e),n=this._findOriginalStack(e),r=this._findContext(e);t&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(t)),n&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(n)),r&&(this._console.error("ERROR CONTEXT:"),this._console.error(r))}if(this.rethrowError)throw e}},{key:"_extractMessage",value:function(e){return e instanceof Error?e.message:e.toString()}},{key:"_findContext",value:function(e){return e?S(e)?S(e):this._findContext(x(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=x(e);t&&x(t);)t=x(t);return t}},{key:"_findOriginalStack",value:function(e){for(var t=e,n=t.stack;t instanceof Error&&x(t);)(t=x(t))instanceof Error&&t.stack&&(n=t.stack);return n}}]),e}(),Ps=function(){function e(t,n){if(i(this,e),this.token=t,this.id=n,!t)throw new Error("Token must be defined!")}return Qa(e,[{key:"displayName",get:function(){return l(this.token)}}],[{key:"get",value:function(e){return Ts.get(E(e))}},{key:"numberOfKeys",get:function(){return Ts.numberOfKeys}}]),e}(),Vs=function(){function e(){i(this,e),this._allKeys=new Map}return Qa(e,[{key:"get",value:function(e){if(e instanceof Ps)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new Ps(e,Ps.numberOfKeys);return this._allKeys.set(e,t),t}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),e}(),Ts=new Vs,Ns=Function,Ds=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?(\S+\s+!==\s+null\s+&&\s+)?\S+\.apply\(this,\s*arguments\)/,Ms=function(){function e(t){i(this,e),this._reflect=t||Ya.Reflect}return Qa(e,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new(Function.prototype.bind.apply(e,[null].concat(n)))}}},{key:"_zipTypesAndAnnotations",value:function(e,t){var n=void 0;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&&s(t[r])&&(n[r]=n[r].concat(t[r]));return n}},{key:"_ownParameters",value:function(e,t){if(Ds.exec(e.toString()))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var n=e.ctorParameters;if(n&&n!==t.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(e){return e&&e.type}),o=r.map(function(e){return e&&U(e.decorators)});return this._zipTypesAndAnnotations(i,o)}if(s(this._reflect)&&s(this._reflect.getOwnMetadata)){var a=this._reflect.getOwnMetadata("parameters",e),u=this._reflect.getOwnMetadata("design:paramtypes",e);if(u||a)return this._zipTypesAndAnnotations(u,a)}return new Array(e.length).fill(void 0)}},{key:"parameters",value:function e(t){if(!L(t))return[];var n=G(t),e=this._ownParameters(t,n);return e||n===Object||(e=this.parameters(n)),e||[]}},{key:"_ownAnnotations",value: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?U(e.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",e):void 0}},{key:"annotations",value:function(e){if(!L(e))return[];var t=G(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}},{key:"_ownPropMetadata",value: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,i={};return Object.keys(r).forEach(function(e){i[e]=U(r[e])}),i}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",e)}},{key:"propMetadata",value:function e(n){if(!L(n))return{};var r=G(n),e={};if(r!==Object){var i=this.propMetadata(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=this._ownPropMetadata(n,r);return o&&Object.keys(o).forEach(function(n){var r=[];e.hasOwnProperty(n)&&r.push.apply(r,t(e[n])),r.push.apply(r,t(o[n])),e[n]=r}),e}},{key:"hasLifecycleHook",value:function(e,t){return e instanceof Ns&&t in e.prototype}},{key:"getter",value:function(e){return new Function("o","return o."+e+";")}},{key:"setter",value:function(e){return new Function("o","v","return o."+e+" = v;")}},{key:"method",value:function(e){var t="if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n        return o."+e+".apply(o, args);";return new Function("o","args",t)}},{key:"importUri",value:function(e){return"object"===(void 0===e?"undefined":qa(e))&&e.filePath?e.filePath:"./"+l(e)}},{key:"resolveIdentifier",value:function(e,t,n,r){return r}},{key:"resolveEnum",value:function(e,t){return e[t]}}]),e}(),Is=function(){function e(){i(this,e)}return Qa(e,[{key:"parameters",value:function(e){}},{key:"annotations",value:function(e){}},{key:"propMetadata",value:function(e){}},{key:"importUri",value:function(e){}},{key:"resolveIdentifier",value:function(e,t,n,r){}},{key:"resolveEnum",value:function(e,t){}}]),e}(),Rs=function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.reflectionCapabilities=e,r}return r(t,e),Qa(t,[{key:"updateCapabilities",value:function(e){this.reflectionCapabilities=e}},{key:"factory",value:function(e){return this.reflectionCapabilities.factory(e)}},{key:"parameters",value:function(e){return this.reflectionCapabilities.parameters(e)}},{key:"annotations",value:function(e){return this.reflectionCapabilities.annotations(e)}},{key:"propMetadata",value:function(e){return this.reflectionCapabilities.propMetadata(e)}},{key:"hasLifecycleHook",value:function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)}},{key:"getter",value:function(e){return this.reflectionCapabilities.getter(e)}},{key:"setter",value:function(e){return this.reflectionCapabilities.setter(e)}},{key:"method",value:function(e){return this.reflectionCapabilities.method(e)}},{key:"importUri",value:function(e){return this.reflectionCapabilities.importUri(e)}},{key:"resolveIdentifier",value:function(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)}},{key:"resolveEnum",value:function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)}}]),t}(Is),js=new Rs(new Ms),Fs=function(){function e(t,n,r){i(this,e),this.key=t,this.optional=n,this.visibility=r}return Qa(e,null,[{key:"fromKey",value:function(t){return new e(t,!1,null)}}]),e}(),Hs=[],Ls=function(){function e(t,n,r){i(this,e),this.key=t,this.resolvedFactories=n,this.multiProvider=r}return Qa(e,[{key:"resolvedFactory",get:function(){return this.resolvedFactories[0]}}]),e}(),Us=function e(t,n){i(this,e),this.factory=t,this.dependencies=n},Gs=new Object,Bs=function(){function e(){i(this,e)}return Qa(e,[{key:"parent",value:function(){}},{key:"resolveAndCreateChild",value:function(e){}},{key:"createChildFromResolved",value:function(e){}},{key:"resolveAndInstantiate",value:function(e){}},{key:"instantiateResolved",value:function(e){}},{key:"get",value:function(e,t){}}],[{key:"resolve",value:function(e){return $(e)}},{key:"resolveAndCreate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.resolve(t);return e.fromResolvedProviders(r,n)}},{key:"fromResolvedProviders",value:function(e){return new zs(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}}]),e}(),zs=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;i(this,e),this._constructionCounter=0,this._providers=t,this._parent=n;var r=t.length;this.keyIds=new Array(r),this.objs=new Array(r);for(var o=0;o<r;o++)this.keyIds[o]=t[o].key.id,this.objs[o]=Gs}return Qa(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ws;return this._getByKey(Ps.get(e),null,t)}},{key:"resolveAndCreateChild",value:function(e){var t=Bs.resolve(e);return this.createChildFromResolved(t)}},{key:"createChildFromResolved",value:function(t){var n=new e(t);return n._parent=this,n}},{key:"resolveAndInstantiate",value:function(e){return this.instantiateResolved(Bs.resolve([e])[0])}},{key:"instantiateResolved",value:function(e){return this._instantiateProvider(e)}},{key:"getProviderAtIndex",value:function(e){if(e<0||e>=this._providers.length)throw F(e);return this._providers[e]}},{key:"_new",value:function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,e.key);return this._instantiateProvider(e)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value: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])}},{key:"_instantiate",value:function(e,n){var r=this,i=n.factory,o=void 0;try{o=n.dependencies.map(function(e){return r._getByReflectiveDependency(e)})}catch(t){throw t.addKey&&t.addKey(this,e.key),t}var a=void 0;try{a=i.apply(void 0,t(o))}catch(t){throw I(this,t,t.stack,e.key)}return a}},{key:"_getByReflectiveDependency",value:function(e){return this._getByKey(e.key,e.visibility,e.optional?null:ws)}},{key:"_getByKey",value:function(e,t,n){return e===$s?this:t instanceof ms?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,t)}},{key:"_getObjByKeyId",value:function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===Gs&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return Gs}},{key:"_throwOrNull",value:function(e,t){if(t!==ws)return t;throw D(this,e)}},{key:"_getByKeySelf",value:function(e,t){var n=this._getObjByKeyId(e.id);return n!==Gs?n:this._throwOrNull(e,t)}},{key:"_getByKeyDefault",value:function(t,n,r){var i=void 0;for(i=r instanceof gs?this._parent:this;i instanceof e;){var o=i,a=o._getObjByKeyId(t.id);if(a!==Gs)return a;i=o._parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)}},{key:"toString",value:function(){return this.displayName}},{key:"parent",get:function(){return this._parent}},{key:"displayName",get:function(){return"ReflectiveInjector(providers: ["+J(this,function(e){return' "'+e.key.displayName+'" '}).join(", ")+"])"}}]),e}(),$s=Ps.get(Es),qs=(function(){function e(){i(this,e)}Qa(e,null,[{key:"merge",value:function(e,t){var n={},r=!0,i=!1,o=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;n[u]=e[u]}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}var l=!0,c=!1,h=void 0;try{for(var f,d=Object.keys(t)[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var p=f.value;n[p]=t[p]}}catch(e){c=!0,h=e}finally{try{!l&&d.return&&d.return()}finally{if(c)throw h}}return n}},{key:"equals",value:function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}}]),e}(),function(){function e(){i(this,e)}return Qa(e,null,[{key:"findLast",value:function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}},{key:"removeAll",value:function(e,t){for(var n=0;n<t.length;++n){var r=e.indexOf(t[n]);r>-1&&e.splice(r,1)}}},{key:"remove",value:function(e,t){var n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},{key:"equals",value:function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}},{key:"flatten",value:function(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e.flatten(n):n;return t.concat(r)},[])}}]),e}()),Qs=new Wa("Application Initializer"),Zs=function(){function e(t){var n=this;i(this,e),this._done=!1;var r=[];if(t)for(var o=0;o<t.length;o++){var a=t[o]();ne(a)&&r.push(a)}this._donePromise=Promise.all(r).then(function(){n._done=!0}),0===r.length&&(this._done=!0)}return Qa(e,[{key:"done",get:function(){return this._done}},{key:"donePromise",get:function(){return this._donePromise}}]),e}();Zs.decorators=[{type:_s}],Zs.ctorParameters=function(){return[{type:Array,decorators:[{type:vs,args:[Qs]},{type:ys}]}]};var Ws=new Wa("AppId"),Ks={provide:Ws,useFactory:ie,deps:[]},Ys=new Wa("Platform Initializer"),Js=new Wa("Platform ID"),Xs=new Wa("appBootstrapListener"),eu=(new Wa("Application Packages Root URL"),function(){function e(){i(this,e)}return Qa(e,[{key:"log",value:function(e){f(e)}},{key:"warn",value:function(e){d(e)}}]),e}());eu.decorators=[{type:_s}],eu.ctorParameters=function(){return[]};var tu=function(){function e(){i(this,e)}return Qa(e,[{key:"compileModuleSync",value:function(e){throw ae()}},{key:"compileModuleAsync",value:function(e){throw ae()}},{key:"compileModuleAndAllComponentsSync",value:function(e){throw ae()}},{key:"compileModuleAndAllComponentsAsync",value:function(e){throw ae()}},{key:"getNgContentSelectors",value:function(e){throw ae()}},{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}}]),e}();tu.decorators=[{type:_s}],tu.ctorParameters=function(){return[]};var nu=(new Wa("compilerOptions"),function(){function e(){i(this,e)}return Qa(e,[{key:"createCompiler",value:function(e){}}]),e}()),ru=function e(t){i(this,e),this.nativeElement=t},iu=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.__isAsync=e,r}return r(t,e),Qa(t,[{key:"emit",value:function(e){$a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,r){var i=void 0,o=function(e){return null},a=function(){return null};return e&&"object"===(void 0===e?"undefined":qa(e))?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),$a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"subscribe",this).call(this,i,o,a)}}]),t}(Ha),ou=function(){function e(t){var n=t.enableLongStackTrace,r=void 0!==n&&n;if(i(this,e),this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new iu(!1),this._onMicrotaskEmpty=new iu(!1),this._onStable=new iu(!1),this._onErrorEvents=new iu(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return Qa(e,[{key:"run",value:function(e){return this.inner.run(e)}},{key:"runGuarded",value:function(e){return this.inner.runGuarded(e)}},{key:"runOutsideAngular",value:function(e){return this.outer.run(e)}},{key:"checkStable",value:function(){var e=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return e._onStable.emit(null)})}finally{this._isStable=!0}}}},{key:"forkInnerZoneWithAngularBehavior",value:function(){var e=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,i,o,a){try{return e.onEnter(),t.invokeTask(r,i,o,a)}finally{e.onLeave()}},onInvoke:function(t,n,r,i,o,a,s){try{return e.onEnter(),t.invoke(r,i,o,a,s)}finally{e.onLeave()}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?e.setHasMicrotask(i.microTask):"macroTask"==i.change&&e.setHasMacrotask(i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.triggerError(i),!1}})}},{key:"onEnter",value:function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))}},{key:"onLeave",value:function(){this._nesting--,this.checkStable()}},{key:"setHasMicrotask",value:function(e){this._hasPendingMicrotasks=e,this.checkStable()}},{key:"setHasMacrotask",value:function(e){this._hasPendingMacrotasks=e}},{key:"triggerError",value:function(e){this._onErrorEvents.emit(e)}},{key:"onUnstable",get:function(){return this._onUnstable}},{key:"onMicrotaskEmpty",get:function(){return this._onMicrotaskEmpty}},{key:"onStable",get:function(){return this._onStable}},{key:"onError",get:function(){return this._onErrorEvents}},{key:"isStable",get:function(){return this._isStable}},{key:"hasPendingMicrotasks",get:function(){return this._hasPendingMicrotasks}},{key:"hasPendingMacrotasks",get:function(){return this._hasPendingMacrotasks}}],[{key:"isInAngularZone",value:function(){return Zone.current.get("isAngularZone")===!0}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),au=function(){function e(t){i(this,e),this._zone=t,this.entries=[]}return Qa(e,[{key:"enqueue",value:function(e){this.entries.push(e)}},{key:"flush",value:function(){var e=this;this.entries.length&&this._zone.runOutsideAngular(function(){Promise.resolve(null).then(function(){return e._triggerAnimations()})})}},{key:"_triggerAnimations",value:function(){for(ou.assertNotInAngularZone();this.entries.length;){var e=this.entries.shift();e.hasStarted()||e.play()}}}]),e}();au.decorators=[{type:_s}],au.ctorParameters=function(){return[{type:ou}]};var su=function(){function e(){i(this,e)}return Qa(e,[{key:"supports",value:function(e){return X(e)}},{key:"create",value:function(e,t){return new lu(t||e)}}]),e}(),uu=function(e,t){return t},lu=function(){function e(t){i(this,e),this._trackByFn=t,this._length=null,this._collection=null,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=this._trackByFn||uu}return Qa(e,[{key:"forEachItem",value:function(e){var t=void 0;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<se(n,r,i)?t:n,a=se(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var u=a-r,l=s-r;if(u!=l){for(var c=0;c<u;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;l<=f&&f<u&&(i[c]=h+1)}var d=o.previousIndex;i[d]=l-u}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t=void 0;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t=void 0;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t=void 0;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t=void 0;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t=void 0;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(u(e)&&(e=[]),!X(e))throw new Error("Error trying to diff '"+e+"'");return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._itHead,r=!1,i=void 0,o=void 0,a=void 0;if(Array.isArray(e)){this._length=e.length;for(var s=0;s<this._length;s++)o=e[s],a=this._trackByFn(s,o),null!==n&&c(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,o,a,s)),c(n.item,o)||this._addIdentityChange(n,o)):(n=this._mismatch(n,o,a,s),r=!0),n=n._next}else i=0,te(e,function(e){a=t._trackByFn(i,e),null!==n&&c(n.trackById,a)?(r&&(n=t._verifyReinsertion(n,e,a,i)),c(n.item,e)||t._addIdentityChange(n,e)):(n=t._mismatch(n,e,a,i),r=!0),n=n._next,i++}),this._length=i;return this._truncate(n),this._collection=e,this.isDirty}},{key:"_reset",value: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}}},{key:"_mismatch",value:function(e,t,n,r){var i=void 0;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),e=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==e?(c(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n),null!==e?(c(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new cu(t,n),i,r)),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value: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)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value: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}},{key:"_insertAfter",value: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 fu),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value: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}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fu),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},{key:"toString",value:function(){var e=[];this.forEachItem(function(t){return e.push(t)});var t=[];this.forEachPreviousItem(function(e){return t.push(e)});var n=[];this.forEachAddedItem(function(e){return n.push(e)});var r=[];this.forEachMovedItem(function(e){return r.push(e)});var i=[];this.forEachRemovedItem(function(e){return i.push(e)});var o=[];return this.forEachIdentityChange(function(e){return o.push(e)}),
  "collection: "+e.join(", ")+"\nprevious: "+t.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"}},{key:"collection",get:function(){return this._collection}},{key:"length",get:function(){return this._length}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),cu=function(){function e(t,n){i(this,e),this.item=t,this.trackById=n,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}return Qa(e,[{key:"toString",value:function(){return this.previousIndex===this.currentIndex?l(this.item):l(this.item)+"["+l(this.previousIndex)+"->"+l(this.currentIndex)+"]"}}]),e}(),hu=function(){function e(){i(this,e),this._head=null,this._tail=null}return Qa(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n=void 0;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<n.currentIndex)&&c(n.trackById,e))return n;return null}},{key:"remove",value: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}(),fu=function(){function e(){i(this,e),this.map=new Map}return Qa(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new hu,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e,r=this.map.get(n);return r?r.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"toString",value:function(){return"_DuplicateMap("+l(this.map)+")"}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}(),du=function(){function e(){i(this,e)}return Qa(e,[{key:"supports",value:function(e){return e instanceof Map||h(e)}},{key:"create",value:function(e){return new pu}}]),e}(),pu=function(){function e(){i(this,e),this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Qa(e,[{key:"forEachItem",value:function(e){var t=void 0;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t=void 0;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t=void 0;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t=void 0;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t=void 0;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||h(e)))throw new Error("Error trying to diff '"+e+"'")}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._records,r=this._mapHead,i=null,o=null,a=!1;return this._forEach(e,function(e,s){var u=void 0;r&&s===r.key?(u=r,t._maybeAddToChanges(u,e)):(a=!0,null!==r&&(t._removeFromSeq(i,r),t._addToRemovals(r)),n.has(s)?(u=n.get(s),t._maybeAddToChanges(u,e)):(u=new vu(s),n.set(s,u),u.currentValue=e,t._addToAdditions(u))),a&&(t._isInRemovals(u)&&t._removeFromRemovals(u),null==o?t._mapHead=u:o._next=u),i=r,o=u,r=r&&r._next}),this._truncate(i,r),this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e=void 0;for(e=this._previousMapHead=this._mapHead;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=this._removalsTail=null}}},{key:"_truncate",value:function(e,t){for(;null!==t;){null===e?this._mapHead=null:e._next=null;var n=t._next;this._addToRemovals(t),e=t,t=n}for(var r=this._removalsHead;null!==r;r=r._nextRemoved)r.previousValue=r.currentValue,r.currentValue=null,this._records.delete(r.key)}},{key:"_maybeAddToChanges",value:function(e,t){c(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_isInRemovals",value:function(e){return e===this._removalsHead||null!==e._nextRemoved||null!==e._prevRemoved}},{key:"_addToRemovals",value:function(e){null===this._removalsHead?this._removalsHead=this._removalsTail=e:(this._removalsTail._nextRemoved=e,e._prevRemoved=this._removalsTail,this._removalsTail=e)}},{key:"_removeFromSeq",value:function(e,t){var n=t._next;null===e?this._mapHead=n:e._next=n,t._next=null}},{key:"_removeFromRemovals",value:function(e){var t=e._prevRemoved,n=e._nextRemoved;null===t?this._removalsHead=n:t._nextRemoved=n,null===n?this._removalsTail=t:n._prevRemoved=t,e._prevRemoved=e._nextRemoved=null}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"toString",value:function(){var e=[],t=[],n=[],r=[],i=[],o=void 0;for(o=this._mapHead;null!==o;o=o._next)e.push(l(o));for(o=this._previousMapHead;null!==o;o=o._nextPrevious)t.push(l(o));for(o=this._changesHead;null!==o;o=o._nextChanged)n.push(l(o));for(o=this._additionsHead;null!==o;o=o._nextAdded)r.push(l(o));for(o=this._removalsHead;null!==o;o=o._nextRemoved)i.push(l(o));return"map: "+e.join(", ")+"\nprevious: "+t.join(", ")+"\nadditions: "+r.join(", ")+"\nchanges: "+n.join(", ")+"\nremovals: "+i.join(", ")+"\n"}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),vu=function(){function e(t){i(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return Qa(e,[{key:"toString",value:function(){return c(this.previousValue,this.currentValue)?l(this.key):l(this.key)+"["+l(this.previousValue)+"->"+l(this.currentValue)+"]"}}]),e}(),yu=function(){function e(t){i(this,e),this.factories=t}return Qa(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(s(t))return t;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+a(e)+"'")}}],[{key:"create",value:function(t,n){if(s(n)){var r=n.factories.slice();return t=t.concat(r),new e(t)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new gs,new ys]]}}}]),e}(),_u=function(){function e(t){i(this,e),this.factories=t}return Qa(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new gs,new ys]]}}}]),e}(),mu=function(){function e(t){i(this,e),this.wrapped=t}return Qa(e,null,[{key:"wrap",value:function(t){return new e(t)}}]),e}(),gu=(function(){function e(){i(this,e),this.hasWrappedValue=!1}Qa(e,[{key:"unwrap",value:function(e){return e instanceof mu?(this.hasWrappedValue=!0,e.wrapped):e}},{key:"reset",value:function(){this.hasWrappedValue=!1}}]),e}(),function(){function e(t,n,r){i(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return Qa(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}()),ku=function(){function e(){i(this,e)}return Qa(e,[{key:"markForCheck",value:function(){}},{key:"detach",value:function(){}},{key:"detectChanges",value:function(){}},{key:"checkNoChanges",value:function(){}},{key:"reattach",value:function(){}}]),e}(),bu=[new du],wu=[new su],Cu=new yu(wu),Eu=new _u(bu),Ou=(function(){function e(){i(this,e)}Qa(e,[{key:"injector",value:function(){}},{key:"component",value:function(){}},{key:"providerTokens",value:function(){}},{key:"references",value:function(){}},{key:"context",value:function(){}},{key:"source",value:function(){}}]),e}(),function(){function e(){i(this,e)}return Qa(e,[{key:"selectRootElement",value:function(e,t){}},{key:"createElement",value:function(e,t,n){}},{key:"createViewRoot",value:function(e){}},{key:"createTemplateAnchor",value:function(e,t){}},{key:"createText",value:function(e,t,n){}},{key:"projectNodes",value:function(e,t){}},{key:"attachViewAfter",value:function(e,t){}},{key:"detachView",value:function(e){}},{key:"destroyView",value:function(e,t){}},{key:"listen",value:function(e,t,n){}},{key:"listenGlobal",value:function(e,t,n){}},{key:"setElementProperty",value:function(e,t,n){}},{key:"setElementAttribute",value:function(e,t,n){}},{key:"setBindingDebugInfo",value:function(e,t,n){}},{key:"setElementClass",value:function(e,t,n){}},{key:"setElementStyle",value:function(e,t,n){}},{key:"invokeElementMethod",value:function(e,t,n){}},{key:"setText",value:function(e,t){}},{key:"animate",value:function(e,t,n,r,i,o,a){}}]),e}()),Su=(new Wa("RendererV2Interceptor"),function(){function e(){i(this,e)}return Qa(e,[{key:"renderComponent",value:function(e){}}]),e}()),xu=function(){function e(){i(this,e)}return Qa(e,[{key:"createRenderer",value:function(e,t){}}]),e}(),Au=function(){function e(){i(this,e)}return Qa(e,[{key:"data",value:function(){}},{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){}},{key:"createComment",value:function(e){}},{key:"createText",value:function(e){}},{key:"appendChild",value:function(e,t){}},{key:"insertBefore",value:function(e,t,n){}},{key:"removeChild",value:function(e,t){}},{key:"selectRootElement",value:function(e){}},{key:"parentNode",value:function(e){}},{key:"nextSibling",value:function(e){}},{key:"setAttribute",value:function(e,t,n,r){}},{key:"removeAttribute",value:function(e,t,n){}},{key:"addClass",value:function(e,t){}},{key:"removeClass",value:function(e,t){}},{key:"setStyle",value:function(e,t,n,r,i){}},{key:"removeStyle",value:function(e,t,n){}},{key:"setProperty",value:function(e,t,n){}},{key:"setValue",value:function(e,t){}},{key:"listen",value:function(e,t,n){}}]),e}(),Pu={};Pu.NONE=0,Pu.HTML=1,Pu.STYLE=2,Pu.SCRIPT=3,Pu.URL=4,Pu.RESOURCE_URL=5,Pu[Pu.NONE]="NONE",Pu[Pu.HTML]="HTML",Pu[Pu.STYLE]="STYLE",Pu[Pu.SCRIPT]="SCRIPT",Pu[Pu.URL]="URL",Pu[Pu.RESOURCE_URL]="RESOURCE_URL";var Vu=function(){function e(){i(this,e)}return Qa(e,[{key:"sanitize",value:function(e,t){}}]),e}(),Tu=function(){function e(t,n,r){i(this,e),this._renderer=t,this.animationQueue=r,this.sanitizer=n}return Qa(e,[{key:"renderComponent",value:function(e){return this._renderer.renderComponent(e)}}]),e}();Tu.decorators=[{type:_s}],Tu.ctorParameters=function(){return[{type:Su},{type:Vu},{type:au}]};var Nu=function(){function e(){i(this,e),this.length=0}return Qa(e,[{key:"get",value:function(e){}},{key:"set",value:function(e,t){}}]),e}(),Du=(function(){function e(t,n,r){i(this,e),this.length=t,this._v0=n,this._v1=r}Qa(e,[{key:"get",value:function(e){switch(e){case 0:return this._v0;case 1:return this._v1;default:return}}},{key:"set",value:function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t}}}]),e}(),function(){function e(t,n,r,o,a){i(this,e),this.length=t,this._v0=n,this._v1=r,this._v2=o,this._v3=a}Qa(e,[{key:"get",value:function(e){switch(e){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;default:return}}},{key:"set",value:function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t;break;case 2:this._v2=t;break;case 3:this._v3=t}}}]),e}(),function(){function e(t,n,r,o,a,s,u,l,c){i(this,e),this.length=t,this._v0=n,this._v1=r,this._v2=o,this._v3=a,this._v4=s,this._v5=u,this._v6=l,this._v7=c}Qa(e,[{key:"get",value:function(e){switch(e){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;default:return}}},{key:"set",value:function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t;break;case 2:this._v2=t;break;case 3:this._v3=t;break;case 4:this._v4=t;break;case 5:this._v5=t;break;case 6:this._v6=t;break;case 7:this._v7=t}}}]),e}(),function(){function e(t,n,r,o,a,s,u,l,c,h,f,d,p,v,y,_,m){i(this,e),this.length=t,this._v0=n,this._v1=r,this._v2=o,this._v3=a,this._v4=s,this._v5=u,this._v6=l,this._v7=c,this._v8=h,this._v9=f,this._v10=d,this._v11=p,this._v12=v,this._v13=y,this._v14=_,this._v15=m}Qa(e,[{key:"get",value:function(e){switch(e){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;case 8:return this._v8;case 9:return this._v9;case 10:return this._v10;case 11:return this._v11;case 12:return this._v12;case 13:return this._v13;case 14:return this._v14;case 15:return this._v15;default:return}}},{key:"set",value:function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t;break;case 2:this._v2=t;break;case 3:this._v3=t;break;case 4:this._v4=t;break;case 5:this._v5=t;break;case 6:this._v6=t;break;case 7:this._v7=t;break;case 8:this._v8=t;break;case 9:this._v9=t;break;case 10:this._v10=t;break;case 11:this._v11=t;break;case 12:this._v12=t;break;case 13:this._v13=t;break;case 14:this._v14=t;break;case 15:this._v15=t}}}]),e}(),function(){function e(t){i(this,e),this.length=t;for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this._values=r}Qa(e,[{key:"get",value:function(e){return this._values[e]}},{key:"set",value:function(e,t){this._values[e]=t}}]),e}(),new Nu,function(){function e(){i(this,e)}return Qa(e,[{key:"location",value:function(){}},{key:"injector",value:function(){}},{key:"instance",value:function(){}},{key:"hostView",value:function(){}},{key:"changeDetectorRef",value:function(){}},{key:"componentType",value:function(){}},{key:"destroy",value:function(){}},{key:"onDestroy",value:function(e){}}]),e}()),Mu=(function(e){function t(e,r,o,a){i(this,t);var s=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s._index=e,s._parentView=r,s._nativeElement=o,s._component=a,s}r(t,e),Qa(t,[{key:"destroy",value:function(){this._parentView.detachAndDestroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}},{key:"location",get:function(){return new ru(this._nativeElement)}},{key:"injector",get:function(){return this._parentView.injector(this._index)}},{key:"instance",get:function(){return this._component}},{key:"hostView",get:function(){return this._parentView.ref}},{key:"changeDetectorRef",get:function(){return this._parentView.ref}},{key:"componentType",get:function(){return this._component.constructor}}]),t}(Du),function(){function e(t,n,r){i(this,e),this.selector=t,this.componentType=r,this._viewClass=n}return Qa(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.get(Tu);return t||(t=[]),new this._viewClass(r,null,null,null).createHostView(n,e,t)}}]),e}()),Iu="ngComponent",Ru=function(){function e(){i(this,e)}return Qa(e,[{key:"resolveComponentFactory",value:function(e){throw ve(e)}}]),e}(),ju=function(){function e(){i(this,e)}return Qa(e,[{key:"resolveComponentFactory",value:function(e){}}]),e}();ju.NULL=new Ru;var Fu=function(){function e(t,n){i(this,e),this._parent=n,this._factories=new Map;for(var r=0;r<t.length;r++){var o=t[r];this._factories.set(o.componentType,o)}}return Qa(e,[{key:"resolveComponentFactory",value:function(e){var t=this._factories.get(e);return t||(t=this._parent.resolveComponentFactory(e)),t}}]),e}(),Hu=void 0,Lu=void 0,Uu=function(){var e=Ya.wtf;return!(!e||!(Hu=e.trace))&&(Lu=Hu.events,!0)}(),Gu=Uu?ye:function(e,t){return me},Bu=Uu?_e:function(e,t){return t},zu=function(){function e(t){i(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return Qa(e,[{key:"_watchAngularEvents",value: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(){ou.assertNotInAngularZone(),o(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;this.isStable()?o(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0}},{key:"whenStable",value:function(e){this._callbacks.push(e),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findBindings",value:function(e,t,n){return[]}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();zu.decorators=[{type:_s}],zu.ctorParameters=function(){return[{type:ou}]};var $u=function(){function e(){i(this,e),this._applications=new Map,Qu.addToWindow(this)}return Qa(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"getTestability",value:function(e){return this._applications.get(e)}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Qu.findTestabilityInTree(this,e,t)}}]),e}();$u.decorators=[{type:_s}],$u.ctorParameters=function(){return[]};var qu=function(){function e(){i(this,e)}return Qa(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}(),Qu=new qu,Zu=!0,Wu=!1,Ku=void 0,Yu=new Wa("AllowMultipleToken"),Ju=function e(t,n){i(this,e),this.name=t,this.token=n},Xu=function(){function e(){i(this,e)}return Qa(e,[{key:"bootstrapModuleFactory",value:function(e){}},{key:"bootstrapModule",value:function(e,t){}},{key:"onDestroy",value:function(e){}},{key:"injector",value:function(){}},{key:"destroy",value:function(){}},{key:"destroyed",value:function(){}}]),e}(),el=function(e){function t(e){i(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._injector=e,r._modules=[],r._destroyListeners=[],r._destroyed=!1,r}return r(t,e),Qa(t,[{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value: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}},{key:"bootstrapModuleFactory",value:function(e){return this._bootstrapModuleFactoryWithZone(e,null)}},{key:"_bootstrapModuleFactoryWithZone",value:function(e,t){var n=this;return t||(t=new ou({enableLongStackTrace:ke()})),t.run(function(){var r=Bs.resolveAndCreate([{provide:ou,useValue:t}],n.injector),i=e.create(r),o=i.injector.get(As,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return qs.remove(n._modules,i)}),t.onError.subscribe({next:function(e){o.handleError(e)}}),Oe(o,function(){return i.injector.get(Zs).donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})}},{key:"bootstrapModule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this._bootstrapModuleWithZone(e,t,null)}},{key:"_bootstrapModuleWithZone",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.injector.get(nu).createCompiler(Array.isArray(n)?n:[n]).compileModuleAsync(e).then(function(e){return t._bootstrapModuleFactoryWithZone(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(tl);if(e.bootstrapFactories.length>0)e.bootstrapFactories.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+l(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)}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}(Xu);el.decorators=[{type:_s}],el.ctorParameters=function(){return[{type:Es}]};var tl=function(){function e(){i(this,e)}return Qa(e,[{key:"bootstrap",value:function(e){}},{key:"tick",value:function(){}},{key:"componentTypes",value:function(){}},{key:"components",value:function(){}},{key:"attachView",value:function(e){}},{key:"detachView",value:function(e){}},{key:"viewCount",value:function(){}},{key:"isStable",value:function(){}}]),e}(),nl=function(e){function t(e,r,a,s,u,l,c,h){i(this,t);var f=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));f._zone=e,f._console=r,f._injector=a,f._exceptionHandler=s,f._componentFactoryResolver=u,f._initStatus=l,f._testabilityRegistry=c,f._testability=h,f._bootstrapListeners=[],f._rootComponents=[],f._rootComponentTypes=[],f._views=[],f._runningTick=!1,f._enforceNoNewChanges=!1,f._stable=!0,f._enforceNoNewChanges=ke(),f._zone.onMicrotaskEmpty.subscribe({next:function(){f._zone.run(function(){f.tick()})}});var d=new wa(function(e){f._stable=f._zone.isStable&&!f._zone.hasPendingMacrotasks&&!f._zone.hasPendingMicrotasks,f._zone.runOutsideAngular(function(){e.next(f._stable),e.complete()})}),p=new wa(function(e){var t=f._zone.onStable.subscribe(function(){ou.assertNotInAngularZone(),o(function(){f._stable||f._zone.hasPendingMacrotasks||f._zone.hasPendingMicrotasks||(f._stable=!0,e.next(!0))})}),n=f._zone.onUnstable.subscribe(function(){ou.assertInAngularZone(),f._stable&&(f._stable=!1,f._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});return f._isStable=Ia(d,Ba.call(p)),f}return r(t,e),Qa(t,[{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;qs.remove(this._views,t),t.detachFromAppRef()}},{key:"bootstrap",value:function(e){var t=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.");var n=void 0;n=e instanceof Mu?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(n.componentType);var r=n.create(this._injector,[],n.selector);r.onDestroy(function(){t._unloadComponent(r)});var i=r.injector.get(zu,null);return i&&r.injector.get($u).registerApplication(r.location.nativeElement,i),this._loadComponent(r),ke()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this._rootComponents.push(e),this._injector.get(Xs,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),qs.remove(this._rootComponents,e)}},{key:"tick",value:function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var e=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}finally{this._runningTick=!1,Bu(e)}}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()})}},{key:"viewCount",get:function(){return this._views.length}},{key:"componentTypes",get:function(){return this._rootComponentTypes}},{key:"components",get:function(){return this._rootComponents}},{key:"isStable",get:function(){return this._isStable}}]),t}(tl);nl._tickScope=Gu("ApplicationRef#tick()"),nl.decorators=[{type:_s}],nl.ctorParameters=function(){return[{type:ou},{type:eu},{type:Es},{type:As},{type:ju},{type:Zs},{type:$u,decorators:[{type:ys}]},{type:zu,decorators:[{type:ys}]}]};var rl=(function(){function e(){i(this,e)}Qa(e,[{key:"injector",value:function(){}},{key:"componentFactoryResolver",value:function(){}},{key:"instance",value:function(){}},{key:"destroy",value:function(){}},{key:"onDestroy",value:function(e){}}]),e}(),function(){function e(t,n){i(this,e),this._injectorClass=t,this._moduleType=n}return Qa(e,[{key:"create",value:function(e){e||(e=Es.NULL);var t=new this._injectorClass(e);return t.create(),t}},{key:"moduleType",get:function(){return this._moduleType}}]),e}()),il=new Object,ol=function(e){function t(e,r,o){i(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,e.get(ju,ju.NULL)));return a.parent=e,a.bootstrapFactories=o,a._destroyListeners=[],a._destroyed=!1,a}return r(t,e),Qa(t,[{key:"create",value:function(){this.instance=this.createInternal()}},{key:"createInternal",value:function(){}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ws;if(e===Es||e===ju)return this;var n=this.getInternal(e,il);return n===il?this.parent.get(e,t):n}},{key:"getInternal",value:function(e,t){}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module "+l(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(e){return e()})}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroyInternal",value:function(){}},{key:"injector",get:function(){return this}},{key:"componentFactoryResolver",get:function(){return this}}]),t}(Fu),al=(function(){function e(){i(this,e)}Qa(e,[{key:"load",value:function(e){}}]),e}(),function(){function e(){i(this,e),this._dirty=!0,this._results=[],this._emitter=new iu}return Qa(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:p(),value:function(){return this._results[p()]()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=qs.flatten(e),this._dirty=!1}},{key:"notifyOnChanges",value:function(){this._emitter.emit(this)}},{key:"setDirty",value:function(){this._dirty=!0}},{key:"changes",get:function(){return this._emitter}},{key:"length",get:function(){return this._results.length}},{key:"first",get:function(){return this._results[0]}},{key:"last",get:function(){return this._results[this.length-1]}},{key:"dirty",get:function(){return this._dirty}}]),e}()),sl=function e(){i(this,e)},ul={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ll=function(){function e(t,n){i(this,e),this._compiler=t,this._config=n||ul}return Qa(e,[{key:"load",value:function(e){return this._compiler instanceof tu?this.loadFactory(e):this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=e.split("#"),r=za(n,2),i=r[0],o=r[1];return void 0===o&&(o="default"),System.import(i).then(function(e){return e[o]}).then(function(e){return Se(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=e.split("#"),n=za(t,2),r=n[0],i=n[1],o="NgFactory";return void 0===i&&(i="default",o=""),System.import(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return Se(e,r,i)})}}]),e}();ll.decorators=[{type:_s}],ll.ctorParameters=function(){return[{type:tu},{type:sl,decorators:[{type:ys}]}]};var cl=function(){function e(){i(this,e)}return Qa(e,[{key:"elementRef",value:function(){}},{key:"createEmbeddedView",value:function(e){}}]),e}(),hl=(function(e){function t(e,r,o){i(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a._parentView=e,a._nodeIndex=r,a._nativeElement=o,a}r(t,e),Qa(t,[{key:"createEmbeddedView",value:function(e){var t=this._parentView.createEmbeddedViewInternal(this._nodeIndex);return t.create(e||{}),t.ref}},{key:"elementRef",get:function(){return new ru(this._nativeElement)}}]),t}(cl),function(){function e(){i(this,e)}return Qa(e,[{key:"element",value:function(){}},{key:"injector",value:function(){}},{key:"parentInjector",value:function(){}},{key:"clear",value:function(){}},{key:"get",value:function(e){}},{key:"length",value:function(){}},{key:"createEmbeddedView",value:function(e,t,n){}},{key:"createComponent",value:function(e,t,n,r){}},{key:"insert",value:function(e,t){}},{key:"move",value:function(e,t){}},{key:"indexOf",value:function(e){}},{key:"remove",value:function(e){}},{key:"detach",value:function(e){}}]),e}()),fl=function(){function e(t){i(this,e),this._element=t,this._createComponentInContainerScope=Gu("ViewContainerRef#createComponent()"),this._insertScope=Gu("ViewContainerRef#insert()"),this._removeScope=Gu("ViewContainerRef#remove()"),this._detachScope=Gu("ViewContainerRef#detach()")}return Qa(e,[{key:"get",value:function(e){return this._element.nestedViews[e].ref}},{key:"createEmbeddedView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=e.createEmbeddedView(t);return this.insert(r,n),r}},{key:"createComponent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this._createComponentInContainerScope(),o=n||this._element.parentInjector,a=e.create(o,r);return this.insert(a.hostView,t),Bu(i,a)}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=this._insertScope();t==-1&&(t=this.length);var r=e;return this._element.attachView(r.internalView,t),Bu(n,r)}},{key:"move",value:function(e,t){var n=this._insertScope();if(t!=-1){var r=e;return this._element.moveView(r.internalView,t),Bu(n,r)}}},{key:"indexOf",value:function(e){return this.length?this._element.nestedViews.indexOf(e.internalView):-1}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=this._removeScope();e==-1&&(e=this.length-1),
  this._element.detachView(e).destroy(),Bu(t)}},{key:"detach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=this._detachScope();return e==-1&&(e=this.length-1),Bu(t,this._element.detachView(e).ref)}},{key:"clear",value:function(){for(var e=this.length-1;e>=0;e--)this.remove(e)}},{key:"length",get:function(){var e=this._element.nestedViews;return e?e.length:0}},{key:"element",get:function(){return this._element.elementRef}},{key:"injector",get:function(){return this._element.injector}},{key:"parentInjector",get:function(){return this._element.parentInjector}}]),e}(),dl=function(e){function t(){return i(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),Qa(t,[{key:"destroy",value:function(){}},{key:"destroyed",value:function(){}},{key:"onDestroy",value:function(e){}}]),t}(ku),pl=(function(e){function t(){return i(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}r(t,e),Qa(t,[{key:"context",value:function(){}},{key:"rootNodes",value:function(){}}]),t}(dl),function(){function e(t,n){i(this,e),this._view=t,this.animationQueue=n,this._view=t,this._originalMode=this._view.cdMode}return Qa(e,[{key:"markForCheck",value:function(){this._view.markPathToRootAsCheckOnce()}},{key:"detach",value:function(){this._view.cdMode=is.Detached}},{key:"detectChanges",value:function(){this._view.detectChanges(!1),this.animationQueue.flush()}},{key:"checkNoChanges",value:function(){this._view.detectChanges(!0)}},{key:"reattach",value:function(){this._view.cdMode=this._originalMode,this.markForCheck()}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._view.detachAndDestroy()}},{key:"detachFromAppRef",value:function(){this._view.detach()}},{key:"attachToAppRef",value:function(e){this._view.attachToAppRef(e)}},{key:"internalView",get:function(){return this._view}},{key:"rootNodes",get:function(){return this._view.flatRootNodes}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return this._view.destroyed}}]),e}()),vl=function e(t,n){i(this,e),this.name=t,this.callback=n},yl=function(){function e(t,n,r){i(this,e),this._debugInfo=r,this.nativeNode=t,n&&n instanceof _l?n.addChild(this):this.parent=null,this.listeners=[]}return Qa(e,[{key:"injector",get:function(){return this._debugInfo?this._debugInfo.injector:null}},{key:"componentInstance",get:function(){return this._debugInfo?this._debugInfo.component:null}},{key:"context",get:function(){return this._debugInfo?this._debugInfo.context:null}},{key:"references",get:function(){return this._debugInfo?this._debugInfo.references:null}},{key:"providerTokens",get:function(){return this._debugInfo?this._debugInfo.providerTokens:null}},{key:"source",get:function(){return this._debugInfo?this._debugInfo.source:null}}]),e}(),_l=function(e){function o(e,t,r){i(this,o);var a=n(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,t,r));return a.properties={},a.attributes={},a.classes={},a.styles={},a.childNodes=[],a.nativeElement=e,a}return r(o,e),Qa(o,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);t!==-1&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,n){var r=this,i=this.childNodes.indexOf(e);if(i!==-1){var o;(o=this.childNodes).splice.apply(o,[i+1,0].concat(t(n))),n.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r})}}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);n===-1?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var t=[];return xe(this,e,t),t}},{key:"queryAllNodes",value:function(e){var t=[];return Ae(this,e,t),t}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})}},{key:"children",get:function(){return this.childNodes.filter(function(e){return e instanceof o})}}]),o}(yl),ml=new Map,gl=[{provide:Js,useValue:"unknown"},el,{provide:Xu,useExisting:el},{provide:Rs,useFactory:Ne,deps:[]},{provide:Is,useExisting:Rs},$u,eu],kl=we(null,"core",gl),bl=new Wa("LocaleId"),wl=(new Wa("Translations"),new Wa("TranslationsFormat"),{});wl.Inline=0,wl.Dynamic=1,wl[wl.Inline]="Inline",wl[wl.Dynamic]="Dynamic";var Cl={};Cl.None=0,Cl.OnPush=2,Cl[Cl.None]="None",Cl[Cl.OnPush]="OnPush";var El={};El.Element=0,El.Text=1,El.Directive=2,El.Provider=3,El.Pipe=4,El.PureExpression=5,El.Query=6,El.NgContent=7,El[El.Element]="Element",El[El.Text]="Text",El[El.Directive]="Directive",El[El.Provider]="Provider",El[El.Pipe]="Pipe",El[El.PureExpression]="PureExpression",El[El.Query]="Query",El[El.NgContent]="NgContent";var Ol={};Ol.None=0,Ol.OnInit=1,Ol.OnDestroy=2,Ol.DoCheck=4,Ol.OnChanges=8,Ol.AfterContentInit=16,Ol.AfterContentChecked=32,Ol.AfterViewInit=64,Ol.AfterViewChecked=128,Ol.HasEmbeddedViews=256,Ol.HasComponent=512,Ol.IsComponent=1024,Ol.HasContentQuery=2048,Ol.HasStaticQuery=4096,Ol.HasDynamicQuery=8192,Ol.HasViewQuery=16384,Ol.LazyProvider=32768,Ol.PrivateProvider=65536,Ol[Ol.None]="None",Ol[Ol.OnInit]="OnInit",Ol[Ol.OnDestroy]="OnDestroy",Ol[Ol.DoCheck]="DoCheck",Ol[Ol.OnChanges]="OnChanges",Ol[Ol.AfterContentInit]="AfterContentInit",Ol[Ol.AfterContentChecked]="AfterContentChecked",Ol[Ol.AfterViewInit]="AfterViewInit",Ol[Ol.AfterViewChecked]="AfterViewChecked",Ol[Ol.HasEmbeddedViews]="HasEmbeddedViews",Ol[Ol.HasComponent]="HasComponent",Ol[Ol.IsComponent]="IsComponent",Ol[Ol.HasContentQuery]="HasContentQuery",Ol[Ol.HasStaticQuery]="HasStaticQuery",Ol[Ol.HasDynamicQuery]="HasDynamicQuery",Ol[Ol.HasViewQuery]="HasViewQuery",Ol[Ol.LazyProvider]="LazyProvider",Ol[Ol.PrivateProvider]="PrivateProvider";var Sl={};Sl.ElementAttribute=0,Sl.ElementClass=1,Sl.ElementStyle=2,Sl.ElementProperty=3,Sl.ComponentHostProperty=4,Sl.DirectiveProperty=5,Sl.TextInterpolation=6,Sl.PureExpressionProperty=7,Sl[Sl.ElementAttribute]="ElementAttribute",Sl[Sl.ElementClass]="ElementClass",Sl[Sl.ElementStyle]="ElementStyle",Sl[Sl.ElementProperty]="ElementProperty",Sl[Sl.ComponentHostProperty]="ComponentHostProperty",Sl[Sl.DirectiveProperty]="DirectiveProperty",Sl[Sl.TextInterpolation]="TextInterpolation",Sl[Sl.PureExpressionProperty]="PureExpressionProperty";var xl={};xl.ElementOutput=0,xl.DirectiveOutput=1,xl[xl.ElementOutput]="ElementOutput",xl[xl.DirectiveOutput]="DirectiveOutput";var Al={};Al.ElementRef=0,Al.RenderElement=1,Al.TemplateRef=2,Al.ViewContainerRef=3,Al.Provider=4,Al[Al.ElementRef]="ElementRef",Al[Al.RenderElement]="RenderElement",Al[Al.TemplateRef]="TemplateRef",Al[Al.ViewContainerRef]="ViewContainerRef",Al[Al.Provider]="Provider";var Pl={};Pl.Value=0,Pl.Class=1,Pl.Factory=2,Pl.UseExisting=3,Pl[Pl.Value]="Value",Pl[Pl.Class]="Class",Pl[Pl.Factory]="Factory",Pl[Pl.UseExisting]="UseExisting";var Vl={};Vl.None=0,Vl.SkipSelf=1,Vl.Optional=2,Vl.Value=8,Vl[Vl.None]="None",Vl[Vl.SkipSelf]="SkipSelf",Vl[Vl.Optional]="Optional",Vl[Vl.Value]="Value";var Tl={};Tl.Array=0,Tl.Object=1,Tl.Pipe=2,Tl[Tl.Array]="Array",Tl[Tl.Object]="Object",Tl[Tl.Pipe]="Pipe";var Nl={};Nl.First=0,Nl.All=1,Nl[Nl.First]="First",Nl[Nl.All]="All";var Dl={};Dl.FirstCheck=1,Dl.ChecksEnabled=2,Dl.Errored=4,Dl.Destroyed=8,Dl[Dl.FirstCheck]="FirstCheck",Dl[Dl.ChecksEnabled]="ChecksEnabled",Dl[Dl.Errored]="Errored",Dl[Dl.Destroyed]="Destroyed";var Ml={};Ml.CheckAndUpdate=0,Ml.CheckNoChanges=1,Ml[Ml.CheckAndUpdate]="CheckAndUpdate",Ml[Ml.CheckNoChanges]="CheckNoChanges";var Il={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView: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},Rl=new Map,jl=0,Fl=0,Hl=new WeakMap,Ll={};Ll.Collect=0,Ll.AppendChild=1,Ll.InsertBefore=2,Ll.RemoveChild=3,Ll[Ll.Collect]="Collect",Ll[Ll.AppendChild]="AppendChild",Ll[Ll.InsertBefore]="InsertBefore",Ll[Ll.RemoveChild]="RemoveChild";var Ul=/^:([^:]+):(.+)$/,Gl=function(){},Bl=(function(){function e(){i(this,e)}Qa(e,[{key:"onDone",value:function(e){}},{key:"onStart",value:function(e){}},{key:"onDestroy",value:function(e){}},{key:"init",value:function(){}},{key:"hasStarted",value:function(){}},{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){}},{key:"destroy",value:function(){}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){}},{key:"parentPlayer",get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(e){throw new Error("NOT IMPLEMENTED: Base Class")}}]),e}(),function(){function e(){var t=this;i(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,o(function(){return t._onFinish()})}return Qa(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]),this._started=!0}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}}]),e}()),zl=new Object,$l=function(e){function t(e,r,o){return i(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o,r))}return r(t,e),Qa(t,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=ot(this._viewClass),i=r.nodes[0].element.componentProvider.index,o=Il.createRootView(e,t||[],n,r,zl),a=Ie(o,i).instance;return o.renderer.setAttribute(Me(o,0).renderElement,"ng-version",ps.full),new ql(o,new Zl(o),a)}}]),t}(Mu),ql=function(e){function t(e,r,o){i(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a._view=e,a._viewRef=r,a._component=o,a._elDef=a._view.def.nodes[0],a}return r(t,e),Qa(t,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new ru(Me(this._view,this._elDef.index).renderElement)}},{key:"injector",get:function(){return new Kl(this._view,this._elDef)}},{key:"instance",get:function(){return this._component}},{key:"hostView",get:function(){return this._viewRef}},{key:"changeDetectorRef",get:function(){return this._viewRef}},{key:"componentType",get:function(){return this._component.constructor}}]),t}(Du),Ql=function(){function e(t,n){i(this,e),this._view=t,this._elDef=n,this._data=Me(t,n.index)}return Qa(e,[{key:"clear",value:function(){for(var e=this._data.embeddedViews.length,t=e-1;t>=0;t--){var n=At(this._data,t);Il.destroyView(n)}}},{key:"get",value:function(e){var t=this._data.embeddedViews[e];if(t){var n=new Zl(t);return n.attachToViewContainerRef(this),n}return null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r){var i=n||this.parentInjector,o=e.create(i,r);return this.insert(o.hostView,t),o}},{key:"insert",value:function(e,t){var n=e,r=n._view;return xt(this._view,this._data,t,r),n.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){var n=this._data.embeddedViews.indexOf(e._view);return Pt(this._data,n,t),e}},{key:"indexOf",value:function(e){return this._data.embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=At(this._data,e);t&&Il.destroyView(t)}},{key:"detach",value:function(e){var t=At(this._data,e);return t?new Zl(t):null}},{key:"element",get:function(){return new ru(this._data.renderElement)}},{key:"injector",get:function(){return new Kl(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Ye(e),e=e.parent;return e?new Kl(e,t):this._view.root.injector}},{key:"length",get:function(){return this._data.embeddedViews.length}}]),e}(),Zl=function(){function e(t){i(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return Qa(e,[{key:"markForCheck",value:function(){Ze(this._view)}},{key:"detach",value:function(){this._view.state&=~Dl.ChecksEnabled}},{key:"detectChanges",value:function(){Il.checkAndUpdateView(this._view)}},{key:"checkNoChanges",value:function(){Il.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=Dl.ChecksEnabled}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Il.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,Tt(this._view),Il.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return st(this._view)}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(this._view.state&Dl.Destroyed)}}]),e}(),Wl=function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._parentView=e,o._def=r,o}return r(t,e),Qa(t,[{key:"createEmbeddedView",value:function(e){return new Zl(Il.createEmbeddedView(this._parentView,this._def,e))}},{key:"elementRef",get:function(){return new ru(Me(this._parentView,this._def.index).renderElement)}}]),t}(cl),Kl=function(){function e(t,n){i(this,e),this.view=t,this.elDef=n}return Qa(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Es.THROW_IF_NOT_FOUND,n=0!=(this.elDef.flags&Ol.HasComponent);return Il.resolveDep(this.view,this.elDef,n,{flags:Vl.None,token:e,tokenKey:Be(e)},t)}}]),e}(),Yl=function(){function e(t){i(this,e),this.delegate=t}return Qa(e,[{key:"selectRootElement",value:function(e){return this.delegate.selectRootElement(e)}},{key:"createElement",value:function(e,t){var n=dt(t),r=za(n,2),i=r[0],o=r[1],a=this.delegate.createElement(o,i);return e&&this.delegate.appendChild(e,a),a}},{key:"createViewRoot",value:function(e){return e}},{key:"createTemplateAnchor",value:function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}},{key:"createText",value:function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}},{key:"projectNodes",value:function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}},{key:"attachViewAfter",value:function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)}},{key:"detachView",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}},{key:"destroyView",value:function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"listenGlobal",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"setElementProperty",value:function(e,t,n){this.delegate.setProperty(e,t,n)}},{key:"setElementAttribute",value:function(e,t,n){var r=dt(t),i=za(r,2),o=i[0],a=i[1];null!=n?this.delegate.setAttribute(e,a,n,o):this.delegate.removeAttribute(e,a,o)}},{key:"setBindingDebugInfo",value:function(e,t,n){}},{key:"setElementClass",value:function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}},{key:"setElementStyle",value:function(e,t,n){null!=n?this.delegate.setStyle(e,t,n,!1,!1):this.delegate.removeStyle(e,t,!1)}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"setText",value:function(e,t){this.delegate.setValue(e,t)}},{key:"animate",value:function(){return new Bl}}]),e}(),Jl=Be(Ou),Xl=Be(Au),ec=Be(ru),tc=Be(hl),nc=Be(cl),rc=Be(ku),ic=Be(Es),oc=new Object,ac=function(){},sc={};sc.CreateViewNodes=0,sc.CheckNoChanges=1,sc.CheckAndUpdate=2,sc.Destroy=3,sc[sc.CreateViewNodes]="CreateViewNodes",sc[sc.CheckNoChanges]="CheckNoChanges",sc[sc.CheckAndUpdate]="CheckAndUpdate",sc[sc.Destroy]="Destroy";var uc=!1,lc={};lc.create=0,lc.detectChanges=1,lc.checkNoChanges=2,lc.destroy=3,lc.handleEvent=4,lc[lc.create]="create",lc[lc.detectChanges]="detectChanges",lc[lc.checkNoChanges]="checkNoChanges",lc[lc.destroy]="destroy",lc[lc.handleEvent]="handleEvent";var cc=void 0,hc=void 0,fc=void 0,dc=/([A-Z])/g,pc=function(){function e(t,n){i(this,e),this.view=t,this.nodeIndex=n,null==n&&(this.nodeIndex=n=0),this.nodeDef=t.def.nodes[n];for(var r=this.nodeDef,o=t;r&&r.type!==El.Element;)r=r.parent;if(!r)for(;!r&&o;)r=Ye(o),o=o.parent;this.elDef=r,this.elView=o}return Qa(e,[{key:"elOrCompView",get:function(){return Me(this.elView,this.elDef.index).componentView||this.view}},{key:"injector",get:function(){return Ft(this.elView,this.elDef)}},{key:"component",get:function(){return this.elOrCompView.component}},{key:"context",get:function(){return this.elOrCompView.context}},{key:"providerTokens",get:function(){var e=[];if(this.elDef)for(var t=this.elDef.index+1;t<=this.elDef.index+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];n.type!==El.Provider&&n.type!==El.Directive||e.push(n.provider.token),t+=n.childCount}return e}},{key:"references",get:function(){var e={};if(this.elDef){dr(this.elView,this.elDef,e);for(var t=this.elDef.index+1;t<=this.elDef.index+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];n.type!==El.Provider&&n.type!==El.Directive||dr(this.elView,n,e),t+=n.childCount}}return e}},{key:"source",get:function(){return this.nodeDef.type===El.Text?this.nodeDef.text.source:this.elDef.element.source}},{key:"componentRenderElement",get:function(){var e=fr(this.elOrCompView);return e?e.renderElement:void 0}},{key:"renderNode",get:function(){return this.nodeDef.type===El.Text?Je(this.view,this.nodeDef):Je(this.elView,this.elDef)}}]),e}(),vc=function(){function e(t){i(this,e),this.delegate=t}return Qa(e,[{key:"createRenderer",value:function(e,t){return new yc(this.delegate.createRenderer(e,t))}}]),e}(),yc=function(){function e(t){i(this,e),this.delegate=t}return Qa(e,[{key:"destroyNode",value:function(e){Te(Pe(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}},{key:"destroy",value:function(){this.delegate.destroy()}},{key:"createElement",value:function(e,t){var n=this.delegate.createElement(e,t),r=new _l(n,null,vr());return r.name=e,Ve(r),n}},{key:"createComment",value:function(e){var t=this.delegate.createComment(e);return Ve(new yl(t,null,vr())),t}},{key:"createText",value:function(e){var t=this.delegate.createText(e);return Ve(new yl(t,null,vr())),t}},{key:"appendChild",value:function(e,t){var n=Pe(e),r=Pe(t);n&&r&&n instanceof _l&&n.addChild(r),this.delegate.appendChild(e,t)}},{key:"insertBefore",value:function(e,t,n){var r=Pe(e),i=Pe(t),o=Pe(n);r&&i&&r instanceof _l&&r.insertBefore(o,i),this.delegate.insertBefore(e,t,n)}},{key:"removeChild",value:function(e,t){var n=Pe(e),r=Pe(t);n&&r&&n instanceof _l&&n.removeChild(r),this.delegate.removeChild(e,t)}},{key:"selectRootElement",value:function(e){var t=this.delegate.selectRootElement(e);return Ve(new _l(t,null,vr())),t}},{key:"setAttribute",value:function(e,t,n,r){var i=Pe(e);if(i&&i instanceof _l){var o=r?r+":"+t:t;i.attributes[o]=n}this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){var r=Pe(e);if(r&&r instanceof _l){var i=n?n+":"+t:t;r.attributes[i]=null}this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){var n=Pe(e);n&&n instanceof _l&&(n.classes[t]=!0),this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){var n=Pe(e);n&&n instanceof _l&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r,i){var o=Pe(e);o&&o instanceof _l&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r,i)}},{key:"removeStyle",value:function(e,t,n){var r=Pe(e);r&&r instanceof _l&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){var r=Pe(e);r&&r instanceof _l&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){if("string"!=typeof e){var r=Pe(e);r&&r.listeners.push(new vl(t,n))}return this.delegate.listen(e,t,n)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setValue",value:function(e,t){return this.delegate.setValue(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),_c=function e(){i(this,e)};_c.decorators=[{type:hs,args:[{providers:[nl,{provide:tl,useExisting:nl},Zs,tu,Ks,Tu,au,{provide:yu,useFactory:yr},{provide:_u,useFactory:_r},{provide:bl,useFactory:mr,deps:[[new vs(bl),new ys,new gs]]},{provide:Qs,useValue:gr,multi:!0}]}]}],_c.ctorParameters=function(){return[]};var mc=function(){function e(t){var n=this;i(this,e),this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null;var r=0,a=this._players.length;0==a?o(function(){return n._onFinish()}):this._players.forEach(function(e){e.parentPlayer=n,e.onDone(function(){++r>=a&&n._onFinish()})})}return Qa(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this._players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this._players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._destroyed||(this._onFinish(),this._players.forEach(function(e){return e.destroy()}),this._destroyed=!0,this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){this._players.forEach(function(t){t.setPosition(e)})}},{key:"getPosition",value:function(){var e=0;return this._players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e}},{key:"players",get:function(){return this._players}}]),e}(),gc=function(){function e(t){var n=this;i(this,e),this._players=t,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._players.forEach(function(e){e.parentPlayer=n}),this._onNext(!1)}return Qa(e,[{key:"_onNext",value:function(e){var t=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new Bl,o(function(){return t._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new Bl,this._onFinish();else{var n=this._players[this._currentIndex++];n.onDone(function(){return t._onNext(!0)}),this._activePlayer=n,e&&n.play()}}},{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()}},{key:"pause",value:function(){this._activePlayer.pause()}},{key:"restart",value:function(){this.reset(),this._players.length>0&&this._players[0].restart()}},{key:"reset",value:function(){this._players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"finish",value:function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._destroyed||(this._onFinish(),this._players.forEach(function(e){return e.destroy()}),this._destroyed=!0,this._activePlayer=new Bl,this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this._players[0].setPosition(e)}},{key:"getPosition",value:function(){return this._players[0].getPosition()}},{key:"players",get:function(){return this._players}}]),e}(),kc=function e(t){var n=t.fromState,r=t.toState,o=t.totalTime,a=t.phaseName,s=t.element,u=t.triggerName;i(this,e),this.fromState=n,this.toState=r,this.totalTime=o,this.phaseName=a,this.element=new ru(s),this.triggerName=u},bc=(function(){function e(t,n,r,o,a,s){i(this,e),this._player=t,this._element=n,this._triggerName=r,this._fromState=o,this._toState=a,this._totalTime=s}Qa(e,[{key:"_createEvent",value:function(e){return new kc({fromState:this._fromState,toState:this._toState,totalTime:this._totalTime,phaseName:e,element:this._element,triggerName:this._triggerName})}},{key:"onStart",value:function(e){var t=this,n=Zone.current.wrap(function(){return e(t._createEvent("start"))},"player.onStart");this._player.onStart(n)}},{key:"onDone",value:function(e){var t=this,n=Zone.current.wrap(function(){return e(t._createEvent("done"))},"player.onDone");this._player.onDone(n)}}]),e}(),function(){function e(t){throw i(this,e),this._delegate=t,new Error("RootRenderer is no longer supported. Please use the `RendererFactoryV2` instead!")}return Qa(e,[{key:"renderComponent",value:function(e){return new wc(this._delegate.renderComponent(e))}}]),e}()),wc=function(){function e(t){i(this,e),this._delegate=t}return Qa(e,[{key:"selectRootElement",value:function(e,t){var n=this._delegate.selectRootElement(e,t);return Ve(new _l(n,null,t)),n}},{key:"createElement",value:function(e,t,n){var r=this._delegate.createElement(e,t,n),i=new _l(r,Pe(e),n);return i.name=t,Ve(i),r}},{key:"createViewRoot",value:function(e){return this._delegate.createViewRoot(e)}},{key:"createTemplateAnchor",value:function(e,t){var n=this._delegate.createTemplateAnchor(e,t);return Ve(new yl(n,Pe(e),t)),n}},{key:"createText",value:function(e,t,n){var r=this._delegate.createText(e,t,n);return Ve(new yl(r,Pe(e),n)),r}},{key:"projectNodes",value:function(e,t){var n=Pe(e);if(s(n)&&n instanceof _l){var r=n;t.forEach(function(e){r.addChild(Pe(e))})}this._delegate.projectNodes(e,t)}},{key:"attachViewAfter",value:function(e,t){var n=Pe(e);if(s(n)){var r=n.parent;if(t.length>0&&s(r)){var i=[];t.forEach(function(e){return i.push(Pe(e))}),r.insertChildrenAfter(n,i)}}this._delegate.attachViewAfter(e,t)}},{key:"detachView",value:function(e){e.forEach(function(e){var t=Pe(e);t&&t.parent&&t.parent.removeChild(t)}),this._delegate.detachView(e)}},{key:"destroyView",value:function(e,t){t=t||[],t.forEach(function(e){Te(Pe(e))}),this._delegate.destroyView(e,t)}},{key:"listen",value:function(e,t,n){var r=Pe(e);return s(r)&&r.listeners.push(new vl(t,n)),this._delegate.listen(e,t,n)}},{key:"listenGlobal",value:function(e,t,n){return this._delegate.listenGlobal(e,t,n)}},{key:"setElementProperty",value:function(e,t,n){var r=Pe(e);s(r)&&r instanceof _l&&(r.properties[t]=n),this._delegate.setElementProperty(e,t,n)}},{key:"setElementAttribute",value:function(e,t,n){var r=Pe(e);s(r)&&r instanceof _l&&(r.attributes[t]=n),this._delegate.setElementAttribute(e,t,n)}},{key:"setBindingDebugInfo",value:function(e,t,n){this._delegate.setBindingDebugInfo(e,t,n)}},{key:"setElementClass",value:function(e,t,n){var r=Pe(e);s(r)&&r instanceof _l&&(r.classes[t]=n),this._delegate.setElementClass(e,t,n)}},{key:"setElementStyle",value:function(e,t,n){var r=Pe(e);s(r)&&r instanceof _l&&(r.styles[t]=n),this._delegate.setElementStyle(e,t,n)}},{key:"invokeElementMethod",value:function(e,t,n){this._delegate.invokeElementMethod(e,t,n)}},{key:"setText",value:function(e,t){this._delegate.setText(e,t)}},{key:"animate",value:function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];return this._delegate.animate(e,t,n,r,i,o,a)}}]),e}(),Cc={};Cc.HOST=0,Cc.COMPONENT=1,Cc.EMBEDDED=2,Cc[Cc.HOST]="HOST",Cc[Cc.COMPONENT]="COMPONENT",Cc[Cc.EMBEDDED]="EMBEDDED";var Ec=function(){function e(t,n,r,o){i(this,e),this._view=t,this._nodeIndex=n,this._tplRow=r,this._tplCol=o}return Qa(e,[{key:"_staticNodeInfo",get:function(){return s(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null}},{key:"context",get:function(){return this._view.context}},{key:"component",get:function(){var e=this._staticNodeInfo;return s(e)&&s(e.componentToken)?this.injector.get(e.componentToken):null}},{key:"componentRenderElement",get:function(){for(var e=this._view;s(e.parentView)&&e.type!==Cc.COMPONENT;)e=e.parentView;return e.parentElement}},{key:"injector",get:function(){return this._view.injector(this._nodeIndex)}},{key:"renderNode",get:function(){return s(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null}},{key:"providerTokens",get:function(){var e=this._staticNodeInfo;return s(e)?e.providerTokens:null}},{key:"source",get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol}},{key:"references",get:function(){var e=this,t={},n=this._staticNodeInfo;if(s(n)){var r=n.refTokens;Object.keys(r).forEach(function(n){var i=r[n],o=void 0;o=u(i)?e._view.allNodes?e._view.allNodes[e._nodeIndex]:null:e._view.injectorGet(i,e._nodeIndex,null),t[n]=o})}return t}}]),e}(),Oc=function(){function e(){i(this,e),this._map=new Map,this._allPlayers=[]}return Qa(e,[{key:"find",value:function(e,t){var n=this._map.get(e);if(s(n))return n[t]}},{key:"findAllPlayersByElement",value:function(e){var t=this._map.get(e);return t?Object.keys(t).map(function(e){return t[e]}):[]}},{key:"set",value:function(e,t,n){var r=this._map.get(e);s(r)||(r={}),s(r[t])&&this.remove(e,t),r[t]=n,this._allPlayers.push(n),this._map.set(e,r)}},{key:"getAllPlayers",value:function(){return this._allPlayers}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this._map.get(e);if(r){var i=r[t];if(!n||i===n){delete r[t];var o=this._allPlayers.indexOf(i);this._allPlayers.splice(o,1),0===Object.keys(r).length&&this._map.delete(e)}}}}]),e}(),Sc=function(){
  function e(t){i(this,e),this._animationQueue=t,this._players=new Oc}return Qa(e,[{key:"onAllActiveAnimationsDone",value:function(e){var t=this._players.getAllPlayers();t.length?new mc(t).onDone(function(){return e()}):e()}},{key:"queueAnimation",value:function(e,t,n){var r=this;this._animationQueue.enqueue(n),this._players.set(e,t,n),n.onDone(function(){return r._players.remove(e,t,n)})}},{key:"getAnimationPlayers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(t){var r=this._players.find(e,t);r&&kr(r,n)}else this._players.findAllPlayersByElement(e).forEach(function(e){return kr(e,n)});return n}}]),e}(),xc=function(e){function t(e,r){i(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._view=e,o._nodeIndex=r,o}return r(t,e),Qa(t,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ws;return this._view.injectorGet(e,this._nodeIndex,t)}}]),t}(Es),Ac=Gu("AppView#check(ascii id)"),Pc=new Object,Vc=new Object,Tc=function(){function e(t,n,r,o,a,s,u,l){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null;i(this,e),this.clazz=t,this.componentType=n,this.type=r,this.viewUtils=o,this.parentView=a,this.parentIndex=s,this.parentElement=u,this.cdMode=l,this.declaredViewContainer=c,this.numberOfChecks=0,this.throwOnChange=!1,this.ref=new pl(this,o.animationQueue),r===Cc.COMPONENT||r===Cc.HOST?this.renderer=o.renderComponent(n):this.renderer=a.renderer,this._directRenderer=this.renderer.directRenderer}return Qa(e,[{key:"create",value:function(e){return this.context=e,this.createInternal(null)}},{key:"createHostView",value:function(e,t,n){return this.context=Pc,this._hasExternalHostElement=s(e),this._hostInjector=t,this._hostProjectableNodes=n,this.createInternal(e)}},{key:"createInternal",value:function(e){return null}},{key:"createEmbeddedViewInternal",value:function(e){return null}},{key:"init",value:function(e,t,n){this.lastRootNode=e,this.allNodes=t,this.disposables=n,this.type===Cc.COMPONENT&&this.dirtyParentQueriesInternal()}},{key:"injectorGet",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ws,r=Vc,i=this;r===Vc;)s(t)&&(r=i.injectorGetInternal(e,t,Vc)),r===Vc&&i.type===Cc.HOST&&(r=i._hostInjector.get(e,n)),t=i.parentIndex,i=i.parentView;return r}},{key:"injectorGetInternal",value:function(e,t,n){return n}},{key:"injector",value:function(e){return new xc(this,e)}},{key:"detachAndDestroy",value:function(){this.viewContainer?this.viewContainer.detachView(this.viewContainer.nestedViews.indexOf(this)):this.appRef?this.appRef.detachView(this.ref):this._hasExternalHostElement&&this.detach(),this.destroy()}},{key:"destroy",value:function(){var e=this;if(this.cdMode!==is.Destroyed){var t=this.type===Cc.COMPONENT?this.parentElement:null;if(this.disposables)for(var n=0;n<this.disposables.length;n++)this.disposables[n]();this.destroyInternal(),this.dirtyParentQueriesInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return e.renderer.destroyView(t,e.allNodes)}):this.renderer.destroyView(t,this.allNodes),this.cdMode=is.Destroyed}}},{key:"destroyInternal",value:function(){}},{key:"detachInternal",value:function(){}},{key:"detach",value:function(){var e=this;if(this.detachInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return e._renderDetach()}):this._renderDetach(),this.declaredViewContainer&&this.declaredViewContainer!==this.viewContainer&&this.declaredViewContainer.projectedViews){var t=this.declaredViewContainer.projectedViews,n=t.indexOf(this);n>=t.length-1?t.pop():t.splice(n,1)}this.appRef=null,this.viewContainer=null,this.dirtyParentQueriesInternal()}},{key:"_renderDetach",value:function(){this._directRenderer?this.visitRootNodesInternal(this._directRenderer.remove,null):this.renderer.detachView(this.flatRootNodes)}},{key:"attachToAppRef",value:function(e){if(this.viewContainer)throw new Error("This view is already attached to a ViewContainer!");this.appRef=e,this.dirtyParentQueriesInternal()}},{key:"attachAfter",value:function(e,t){if(this.appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._renderAttach(e,t),this.viewContainer=e,this.declaredViewContainer&&this.declaredViewContainer!==e&&(this.declaredViewContainer.projectedViews||(this.declaredViewContainer.projectedViews=[]),this.declaredViewContainer.projectedViews.push(this)),this.dirtyParentQueriesInternal()}},{key:"moveAfter",value:function(e,t){this._renderAttach(e,t),this.dirtyParentQueriesInternal()}},{key:"_renderAttach",value:function(e,t){var n=t?t.lastRootNode:e.nativeElement;if(this._directRenderer){var r=this._directRenderer.nextSibling(n);if(r)this.visitRootNodesInternal(this._directRenderer.insertBefore,r);else{var i=this._directRenderer.parentElement(n);i&&this.visitRootNodesInternal(this._directRenderer.appendChild,i)}}else this.renderer.attachViewAfter(n,this.flatRootNodes)}},{key:"projectNodes",value:function(e,t){if(this._directRenderer)this.visitProjectedNodes(t,this._directRenderer.appendChild,e);else{var n=[];this.visitProjectedNodes(t,fe,n),this.renderer.projectNodes(e,n)}}},{key:"visitProjectedNodes",value:function(e,t,n){switch(this.type){case Cc.EMBEDDED:this.parentView.visitProjectedNodes(e,t,n);break;case Cc.COMPONENT:if(this.parentView.type===Cc.HOST)for(var r=this.parentView._hostProjectableNodes[e]||[],i=0;i<r.length;i++)t(r[i],n);else this.parentView.visitProjectableNodesInternal(this.parentIndex,e,t,n)}}},{key:"visitRootNodesInternal",value:function(e,t){}},{key:"visitProjectableNodesInternal",value:function(e,t,n,r){}},{key:"dirtyParentQueriesInternal",value:function(){}},{key:"internalDetectChanges",value:function(e){this.cdMode!==is.Detached&&this.detectChanges(e)}},{key:"detectChanges",value:function(e){var t=Ac(this.clazz);this.cdMode!==is.Checked&&this.cdMode!==is.Errored&&(this.cdMode===is.Destroyed&&this.throwDestroyedError("detectChanges"),this.throwOnChange=e,this.detectChangesInternal(),this.cdMode===is.CheckOnce&&(this.cdMode=is.Checked),this.numberOfChecks++,Bu(t))}},{key:"detectChangesInternal",value:function(){}},{key:"markAsCheckOnce",value:function(){this.cdMode=is.CheckOnce}},{key:"markPathToRootAsCheckOnce",value:function(){for(var e=this;s(e)&&e.cdMode!==is.Detached;)e.cdMode===is.Checked&&(e.cdMode=is.CheckOnce),e=e.type===Cc.COMPONENT?e.parentView:e.viewContainer?e.viewContainer.parentView:null}},{key:"eventHandler",value:function(e){return e}},{key:"throwDestroyedError",value:function(e){throw he(e)}},{key:"animationContext",get:function(){return this._animationContext||(this._animationContext=new Sc(this.viewUtils.animationQueue)),this._animationContext}},{key:"destroyed",get:function(){return this.cdMode===is.Destroyed}},{key:"changeDetectorRef",get:function(){return this.ref}},{key:"flatRootNodes",get:function(){var e=[];return this.visitRootNodesInternal(fe,e),e}}]),e}(),Nc=(function(e){function t(e,r,o,a,s,u,l,c,h){var f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;i(this,t);var d=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,o,a,s,u,l,c,f));return d.staticNodeDebugInfos=h,d._currentDebugContext=null,d}r(t,e),Qa(t,[{key:"create",value:function(e){this._resetDebug();try{return $a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"create",this).call(this,e)}catch(e){throw this._rethrowWithContext(e),e}}},{key:"createHostView",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._resetDebug();try{return $a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createHostView",this).call(this,e,n,r)}catch(e){throw this._rethrowWithContext(e),e}}},{key:"injectorGet",value:function(e,n,r){this._resetDebug();try{return $a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"injectorGet",this).call(this,e,n,r)}catch(e){throw this._rethrowWithContext(e),e}}},{key:"detach",value:function(){this._resetDebug();try{$a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"detach",this).call(this)}catch(e){throw this._rethrowWithContext(e),e}}},{key:"destroy",value:function(){this._resetDebug();try{$a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}catch(e){throw this._rethrowWithContext(e),e}}},{key:"detectChanges",value:function(e){this._resetDebug();try{$a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"detectChanges",this).call(this,e)}catch(e){throw this._rethrowWithContext(e),e}}},{key:"_resetDebug",value:function(){this._currentDebugContext=null}},{key:"debug",value:function(e,t,n){return this._currentDebugContext=new Ec(this,e,t,n)}},{key:"_rethrowWithContext",value:function(e){if(O(e)!=ce&&(O(e)!=le&&(this.cdMode=is.Errored),s(this._currentDebugContext)))throw ce(e,this._currentDebugContext)}},{key:"eventHandler",value:function(e){var n=this,r=$a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"eventHandler",this).call(this,e);return function(e,t){n._resetDebug();try{return r.call(n,e,t)}catch(e){throw n._rethrowWithContext(e),e}}}}]),t}(Tc),function(){function e(t,n,r,o){i(this,e),this.index=t,this.parentIndex=n,this.parentView=r,this.nativeElement=o}Qa(e,[{key:"detectChangesInNestedViews",value:function(e){if(this.nestedViews)for(var t=0;t<this.nestedViews.length;t++)this.nestedViews[t].detectChanges(e)}},{key:"destroyNestedViews",value:function(){if(this.nestedViews)for(var e=0;e<this.nestedViews.length;e++)this.nestedViews[e].destroy()}},{key:"visitNestedViewRootNodes",value:function(e,t){if(this.nestedViews)for(var n=0;n<this.nestedViews.length;n++)this.nestedViews[n].visitRootNodesInternal(e,t)}},{key:"mapNestedViews",value:function(e,t){var n=[];if(this.nestedViews)for(var r=0;r<this.nestedViews.length;r++){var i=this.nestedViews[r];i.clazz===e&&n.push(t(i))}if(this.projectedViews)for(var o=0;o<this.projectedViews.length;o++){var a=this.projectedViews[o];a.clazz===e&&n.push(t(a))}return n}},{key:"moveView",value:function(e,t){var n=this.nestedViews.indexOf(e);if(e.type===Cc.COMPONENT)throw new Error("Component views can't be moved!");var r=this.nestedViews;null==r&&(r=[],this.nestedViews=r),r.splice(n,1),r.splice(t,0,e);var i=t>0?r[t-1]:null;e.moveAfter(this,i)}},{key:"attachView",value:function(e,t){if(e.type===Cc.COMPONENT)throw new Error("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),t>=n.length?n.push(e):n.splice(t,0,e);var r=t>0?n[t-1]:null;e.attachAfter(this,r)}},{key:"detachView",value:function(e){var t=this.nestedViews[e];if(e>=this.nestedViews.length-1?this.nestedViews.pop():this.nestedViews.splice(e,1),t.type===Cc.COMPONENT)throw new Error("Component views can't be moved!");return t.detach(),t}},{key:"elementRef",get:function(){return new ru(this.nativeElement)}},{key:"vcRef",get:function(){return new fl(this)}},{key:"parentInjector",get:function(){return this.parentView.injector(this.parentIndex)}},{key:"injector",get:function(){return this.parentView.injector(this.index)}}]),e}(),function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),Dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mc=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ic=function(){function e(){Er(this,e)}return Mc(e,[{key:"getBaseHrefFromDOM",value:function(){}},{key:"onPopState",value:function(e){}},{key:"onHashChange",value:function(e){}},{key:"replaceState",value:function(e,t,n){}},{key:"pushState",value:function(e,t,n){}},{key:"forward",value:function(){}},{key:"back",value:function(){}},{key:"pathname",get:function(){return null}},{key:"search",get:function(){return null}},{key:"hash",get:function(){return null}}]),e}(),Rc=function(){function e(){Er(this,e)}return Mc(e,[{key:"path",value:function(e){}},{key:"prepareExternalUrl",value:function(e){}},{key:"pushState",value:function(e,t,n,r){}},{key:"replaceState",value:function(e,t,n,r){}},{key:"forward",value:function(){}},{key:"back",value:function(){}},{key:"onPopState",value:function(e){}},{key:"getBaseHref",value:function(){}}]),e}(),jc=new Wa("appBaseHref"),Fc=void 0;Fc="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window,Fc.assert=function(e){};var Hc=function(){function e(){Er(this,e)}return Mc(e,null,[{key:"parseIntAutoRadix",value:function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}},{key:"isNumeric",value:function(e){return!isNaN(e-parseFloat(e))}}]),e}(),Lc=null,Uc=function(){function e(t){var n=this;Er(this,e),this._subject=new iu,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(Nr(r)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,type:e.type})})}return Mc(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"isCurrentPathEqualTo",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+e.normalizeQueryParams(n))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(Tr(this._baseHref,Nr(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this._platformStrategy.pushState(null,"",e,t)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this._platformStrategy.replaceState(null,"",e,t)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"subscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this._subject.subscribe({next:e,error:t,complete:n})}}],[{key:"normalizeQueryParams",value:function(e){return e&&"?"!==e[0]?"?"+e:e}},{key:"joinWithSlash",value:function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}},{key:"stripTrailingSlash",value:function(e){return e.replace(/\/$/,"")}}]),e}();Uc.decorators=[{type:_s}],Uc.ctorParameters=function(){return[{type:Rc}]};var Gc=function(e){function t(e,n){Er(this,t);var r=wr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._platformLocation=e,r._baseHref="",Sr(n)&&(r._baseHref=n),r}return Cr(t,e),Mc(t,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function e(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],this._platformLocation.hash);return Sr(e)||(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Uc.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Uc.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Uc.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(Rc);Gc.decorators=[{type:_s}],Gc.ctorParameters=function(){return[{type:Ic},{type:void 0,decorators:[{type:ys},{type:vs,args:[jc]}]}]};var Bc=function(e){function t(e,n){Er(this,t);var r=wr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(r._platformLocation=e,xr(n)&&(n=r._platformLocation.getBaseHrefFromDOM()),xr(n))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Cr(t,e),Mc(t,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Uc.joinWithSlash(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Uc.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Uc.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Uc.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(Rc);Bc.decorators=[{type:_s}],Bc.ctorParameters=function(){return[{type:Ic},{type:void 0,decorators:[{type:ys},{type:vs,args:[jc]}]}]};var zc=function(){function e(){Er(this,e)}return Mc(e,[{key:"getPluralCategory",value:function(e){}}]),e}(),$c=function(e){function t(e){Er(this,t);var n=wr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.locale=e,n}return Cr(t,e),Mc(t,[{key:"getPluralCategory",value:function(e){switch(Mr(this.locale,e)){case qc.Zero:return"zero";case qc.One:return"one";case qc.Two:return"two";case qc.Few:return"few";case qc.Many:return"many";default:return"other"}}}]),t}(zc);$c.decorators=[{type:_s}],$c.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[bl]}]}]};var qc={};qc.Zero=0,qc.One=1,qc.Two=2,qc.Few=3,qc.Many=4,qc.Other=5,qc[qc.Zero]="Zero",qc[qc.One]="One",qc[qc.Two]="Two",qc[qc.Few]="Few",qc[qc.Many]="Many",qc[qc.Other]="Other";var Qc=function(){function e(t,n,r,i){Er(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._initialClasses=[]}return Mc(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_cleanupClasses",value:function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ar(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyInitialClasses",value:function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})}},{key:"_applyClasses",value:function(e,t){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):Object.keys(e).forEach(function(r){null!=e[r]&&n._toggleClass(r,!t)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){n._renderer.setElementClass(n._ngEl.nativeElement,e,!!t)})}},{key:"klass",set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)}},{key:"ngClass",set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ir(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();Qc.decorators=[{type:os,args:[{selector:"[ngClass]"}]}],Qc.ctorParameters=function(){return[{type:yu},{type:_u},{type:ru},{type:Ou}]},Qc.propDecorators={klass:[{type:us,args:["class"]}],ngClass:[{type:us}]};var Zc=function(){function e(t){Er(this,e),this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return Mc(e,[{key:"ngOnChanges",value:function(e){if(this._componentRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._componentRef.hostView)),this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;e.ngComponentOutletNgModuleFactory&&(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t):this._moduleRef=null),this._moduleRef&&(t=this._moduleRef.injector);var n=t.get(ju).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),e}();Zc.decorators=[{type:os,args:[{selector:"[ngComponentOutlet]"}]}],Zc.ctorParameters=function(){return[{type:hl}]},Zc.propDecorators={ngComponentOutlet:[{type:us}],ngComponentOutletInjector:[{type:us}],ngComponentOutletContent:[{type:us}],ngComponentOutletNgModuleFactory:[{type:us}]};var Wc=function(){function e(t,n,r){Er(this,e),this.$implicit=t,this.index=n,this.count=r}return Mc(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Kc=function(){function e(t,n,r){Er(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._differ=null}return Mc(e,[{key:"ngOnChanges",value:function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+Or(t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Wc(null,null,null),i),a=new Yc(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(r);else{var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new Yc(e,s);n.push(u)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);a.context.index=i,a.context.count=o}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForTrackBy",set:function(e){ke()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}]),e}();Kc.decorators=[{type:os,args:[{selector:"[ngFor][ngForOf]"}]}],Kc.ctorParameters=function(){return[{type:hl},{type:cl},{type:yu}]},Kc.propDecorators={ngForOf:[{type:us}],ngForTrackBy:[{type:us}],ngForTemplate:[{type:us}]};var Yc=function e(t,n){Er(this,e),this.record=t,this.view=n},Jc=function(){function e(t,n){Er(this,e),this._viewContainer=t,this._context=new Xc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return Mc(e,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(e){this._context.$implicit=e,this._updateView()}},{key:"ngIfThen",set:function(e){this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}]),e}();Jc.decorators=[{type:os,args:[{selector:"[ngIf]"}]}],Jc.ctorParameters=function(){return[{type:hl},{type:cl}]},Jc.propDecorators={ngIf:[{type:us}],ngIfThen:[{type:us}],ngIfElse:[{type:us}]};var Xc=function e(){Er(this,e),this.$implicit=null},eh=function(){function e(t,n){Er(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return Mc(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),th=function(){function e(){Er(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Mc(e,[{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++){this._defaultViews[t].enforceState(e)}}}},{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}}]),e}();th.decorators=[{type:os,args:[{selector:"[ngSwitch]"}]}],th.ctorParameters=function(){return[]},th.propDecorators={ngSwitch:[{type:us}]};var nh=function(){function e(t,n,r){Er(this,e),this.ngSwitch=r,r._addCase(),this._view=new eh(t,n)}return Mc(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();nh.decorators=[{type:os,args:[{selector:"[ngSwitchCase]"}]}],nh.ctorParameters=function(){return[{type:hl},{type:cl},{type:th,decorators:[{type:ks}]}]},nh.propDecorators={ngSwitchCase:[{type:us}]};var rh=function e(t,n,r){Er(this,e),r._addDefault(new eh(t,n))};rh.decorators=[{type:os,args:[{selector:"[ngSwitchDefault]"}]}],rh.ctorParameters=function(){return[{type:hl},{type:cl},{type:th,decorators:[{type:ks}]}]};var ih=function(){function e(t){Er(this,e),this._localization=t,this._caseViews={}}return Mc(e,[{key:"addCase",value:function(e,t){this._caseViews[e]=t}},{key:"_updateView",value:function(){this._clearViews();var e=Object.keys(this._caseViews),t=Dr(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(e){e&&(this._activeView=e,this._activeView.create())}},{key:"ngPlural",set:function(e){this._switchValue=e,this._updateView()}}]),e}();ih.decorators=[{type:os,args:[{selector:"[ngPlural]"}]}],ih.ctorParameters=function(){return[{type:zc}]},ih.propDecorators={ngPlural:[{type:us}]};var oh=function e(t,n,r,i){Er(this,e),this.value=t;var o=!isNaN(Number(t));i.addCase(o?"="+t:t,new eh(r,n))};oh.decorators=[{type:os,args:[{selector:"[ngPluralCase]"}]}],oh.ctorParameters=function(){return[{type:void 0,decorators:[{type:ts,args:["ngPluralCase"]}]},{type:cl},{type:hl},{type:ih,decorators:[{type:ks}]}]};var ah=function(){function e(t,n,r){Er(this,e),this._differs=t,this._ngEl=n,this._renderer=r}return Mc(e,[{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}},{key:"_setStyle",value:function(e,t){var n=e.split("."),r=Nc(n,2),i=r[0],o=r[1];t=null!=t&&o?""+t+o:t,this._renderer.setElementStyle(this._ngEl.nativeElement,i,t)}},{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}}]),e}();ah.decorators=[{type:os,args:[{selector:"[ngStyle]"}]}],ah.ctorParameters=function(){return[{type:_u},{type:ru},{type:Ou}]},ah.propDecorators={ngStyle:[{type:us}]};var sh=function(){function e(t){Er(this,e),this._viewContainerRef=t}return Mc(e,[{key:"ngOnChanges",value:function(e){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))}},{key:"ngOutletContext",set:function(e){this.ngTemplateOutletContext=e}}]),e}();sh.decorators=[{type:os,args:[{selector:"[ngTemplateOutlet]"}]}],sh.ctorParameters=function(){return[{type:hl}]},sh.propDecorators={ngTemplateOutletContext:[{type:us}],ngTemplateOutlet:[{type:us}],ngOutletContext:[{type:us}]};var uh=[Qc,Zc,Kc,Jc,sh,ah,th,nh,rh,ih,oh],lh=function(){function e(){Er(this,e)}return Mc(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),ch=function(){function e(){Er(this,e)}return Mc(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}(),hh=new ch,fh=new lh,dh=function(){function e(t){Er(this,e),this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return Mc(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,mu.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(ne(t))return hh;if(re(t))return fh;throw Rr(e,t)}},{
  key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();dh.decorators=[{type:ss,args:[{name:"async",pure:!1}]}],dh.ctorParameters=function(){return[{type:ku}]};var ph=function(){function e(){Er(this,e)}return Mc(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw Rr(e,t);return t.toLowerCase()}}]),e}();ph.decorators=[{type:ss,args:[{name:"lowercase"}]}],ph.ctorParameters=function(){return[]};var vh=function(){function e(){Er(this,e)}return Mc(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw Rr(e,t);return t.split(/\b/g).map(function(e){return jr(e)}).join("")}}]),e}();vh.decorators=[{type:ss,args:[{name:"titlecase"}]}],vh.ctorParameters=function(){return[]};var yh=function(){function e(){Er(this,e)}return Mc(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw Rr(e,t);return t.toUpperCase()}}]),e}();yh.decorators=[{type:ss,args:[{name:"uppercase"}]}],yh.ctorParameters=function(){return[]};var _h={};_h.Decimal=0,_h.Percent=1,_h.Currency=2,_h[_h.Decimal]="Decimal",_h[_h.Percent]="Percent",_h[_h.Currency]="Currency";var mh=function(){function e(){Er(this,e)}return Mc(e,null,[{key:"format",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.minimumIntegerDigits,o=r.minimumFractionDigits,a=r.maximumFractionDigits,s=r.currency,u=r.currencyAsSymbol,l=void 0!==u&&u,c={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:a,style:_h[n].toLowerCase()};return n==_h.Currency&&(c.currency=s,c.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(t,c).format(e)}}]),e}(),gh=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,kh={yMMMdjms:qr($r([Br("year",1),zr("month",3),Br("day",1),Br("hour",1),Br("minute",1),Br("second",1)])),yMdjm:qr($r([Br("year",1),Br("month",1),Br("day",1),Br("hour",1),Br("minute",1)])),yMMMMEEEEd:qr($r([Br("year",1),zr("month",4),zr("weekday",4),Br("day",1)])),yMMMMd:qr($r([Br("year",1),zr("month",4),Br("day",1)])),yMMMd:qr($r([Br("year",1),zr("month",3),Br("day",1)])),yMd:qr($r([Br("year",1),Br("month",1),Br("day",1)])),jms:qr($r([Br("hour",1),Br("second",1),Br("minute",1)])),jm:qr($r([Br("hour",1),Br("minute",1)]))},bh={yyyy:qr(Br("year",4)),yy:qr(Br("year",2)),y:qr(Br("year",1)),MMMM:qr(zr("month",4)),MMM:qr(zr("month",3)),MM:qr(Br("month",2)),M:qr(Br("month",1)),LLLL:qr(zr("month",4)),L:qr(zr("month",1)),dd:qr(Br("day",2)),d:qr(Br("day",1)),HH:Fr(Hr(qr(Gr(Br("hour",2),!1)))),H:Hr(qr(Gr(Br("hour",1),!1))),hh:Fr(Hr(qr(Gr(Br("hour",2),!0)))),h:Hr(qr(Gr(Br("hour",1),!0))),jj:qr(Br("hour",2)),j:qr(Br("hour",1)),mm:Fr(qr(Br("minute",2))),m:qr(Br("minute",1)),ss:Fr(qr(Br("second",2))),s:qr(Br("second",1)),sss:qr(Br("second",3)),EEEE:qr(zr("weekday",4)),EEE:qr(zr("weekday",3)),EE:qr(zr("weekday",2)),E:qr(zr("weekday",1)),a:function(e){return function(t,n){return e(t,n).split(" ")[1]}}(qr(Gr(Br("hour",1),!0))),Z:Ur("short"),z:Ur("long"),ww:qr({}),w:qr({}),G:qr(zr("era",1)),GG:qr(zr("era",2)),GGG:qr(zr("era",3)),GGGG:qr(zr("era",4))},wh=new Map,Ch=function(){function e(){Er(this,e)}return Mc(e,null,[{key:"format",value:function(e,t,n){return Qr(n,e,t)}}]),e}(),Eh=function(){function e(t){Er(this,e),this._locale=t}return Mc(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",r=void 0;if(Wr(t)||t!==t)return null;if("string"==typeof t&&(t=t.trim()),Kr(t))r=t;else if(Hc.isNumeric(t))r=new Date(parseFloat(t));else if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=t.split("-").map(function(e){return parseInt(e,10)}),o=Nc(i,3),a=o[0],s=o[1],u=o[2];r=new Date(a,s-1,u)}else r=new Date(t);if(!Kr(r)){var l=void 0;if("string"!=typeof t||!(l=t.match(/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/)))throw Rr(e,t);r=Yr(l)}return Ch.format(r,this._locale,e._ALIASES[n]||n)}}]),e}();Eh._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Eh.decorators=[{type:ss,args:[{name:"date",pure:!0}]}],Eh.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[bl]}]}]};var Oh=function(){function e(t){Er(this,e),this._localization=t}return Mc(e,[{key:"transform",value:function(t,n){if(null==t)return"";if("object"!==(void 0===n?"undefined":Dc(n))||null===n)throw Rr(e,n);return n[Dr(t,Object.keys(n),this._localization)].replace(/#/g,t.toString())}}]),e}();Oh.decorators=[{type:ss,args:[{name:"i18nPlural",pure:!0}]}],Oh.ctorParameters=function(){return[{type:zc}]};var Sh=function(){function e(){Er(this,e)}return Mc(e,[{key:"transform",value:function(t,n){if(null==t)return"";if("object"!==(void 0===n?"undefined":Dc(n))||"string"!=typeof t)throw Rr(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}]),e}();Sh.decorators=[{type:ss,args:[{name:"i18nSelect",pure:!0}]}],Sh.ctorParameters=function(){return[]};var xh=function(){function e(){Er(this,e)}return Mc(e,[{key:"transform",value:function(e){return JSON.stringify(e,null,2)}}]),e}();xh.decorators=[{type:ss,args:[{name:"json",pure:!1}]}],xh.ctorParameters=function(){return[]};var Ah=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ph=function(){function e(t){Er(this,e),this._locale=t}return Mc(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Xr(e,this._locale,t,_h.Decimal,n)}}]),e}();Ph.decorators=[{type:ss,args:[{name:"number"}]}],Ph.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[bl]}]}]};var Vh=function(){function e(t){Er(this,e),this._locale=t}return Mc(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Xr(e,this._locale,t,_h.Percent,n)}}]),e}();Vh.decorators=[{type:ss,args:[{name:"percent"}]}],Vh.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[bl]}]}]};var Th=function(){function e(t){Er(this,e),this._locale=t}return Mc(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Xr(e,this._locale,t,_h.Currency,i,n,r)}}]),e}();Th.decorators=[{type:ss,args:[{name:"currency"}]}],Th.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[bl]}]}]};var Nh=function(){function e(){Er(this,e)}return Mc(e,[{key:"transform",value:function(t,n,r){if(null==t)return t;if(!this.supports(t))throw Rr(e,t);return t.slice(n,r)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}();Nh.decorators=[{type:ss,args:[{name:"slice",pure:!1}]}],Nh.ctorParameters=function(){return[]};var Dh=[dh,yh,ph,xh,Nh,Ph,Vh,vh,Th,Eh,Oh,Sh],Mh=function e(){Er(this,e)};Mh.decorators=[{type:hs,args:[{declarations:[uh,Dh],exports:[uh,Dh],providers:[{provide:zc,useClass:$c}]}]}],Mh.ctorParameters=function(){return[]};var Ih=(new ds("4.0.0-rc.1"),function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}),Rh=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),jh=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Fh=function(){function e(){ri(this,e)}return jh(e,[{key:"animate",value:function(e,t,n,r,i,o){arguments.length>6&&void 0!==arguments[6]&&arguments[6];return new Bl}}]),e}(),Hh=function(){function e(){ri(this,e)}return jh(e,[{key:"animate",value:function(e,t,n,r,i,o,a){}}]),e}();Hh.NOOP=new Fh;var Lh=void 0;Lh="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var Uh=Lh;Uh.assert=function(e){};var Gh=null,Bh=function(){function e(){ri(this,e),this.resourceLoaderType=null}return jh(e,[{key:"hasProperty",value:function(e,t){}},{key:"setProperty",value:function(e,t,n){}},{key:"getProperty",value:function(e,t){}},{key:"invoke",value:function(e,t,n){}},{key:"logError",value:function(e){}},{key:"log",value:function(e){}},{key:"logGroup",value:function(e){}},{key:"logGroupEnd",value:function(){}},{key:"parse",value:function(e){}},{key:"querySelector",value:function(e,t){}},{key:"querySelectorAll",value:function(e,t){}},{key:"on",value:function(e,t,n){}},{key:"onAndCancel",value:function(e,t,n){}},{key:"dispatchEvent",value:function(e,t){}},{key:"createMouseEvent",value:function(e){}},{key:"createEvent",value:function(e){}},{key:"preventDefault",value:function(e){}},{key:"isPrevented",value:function(e){}},{key:"getInnerHTML",value:function(e){}},{key:"getTemplateContent",value:function(e){}},{key:"getOuterHTML",value:function(e){}},{key:"nodeName",value:function(e){}},{key:"nodeValue",value:function(e){}},{key:"type",value:function(e){}},{key:"content",value:function(e){}},{key:"firstChild",value:function(e){}},{key:"nextSibling",value:function(e){}},{key:"parentElement",value:function(e){}},{key:"childNodes",value:function(e){}},{key:"childNodesAsList",value:function(e){}},{key:"clearNodes",value:function(e){}},{key:"appendChild",value:function(e,t){}},{key:"removeChild",value:function(e,t){}},{key:"replaceChild",value:function(e,t,n){}},{key:"remove",value:function(e){}},{key:"insertBefore",value:function(e,t,n){}},{key:"insertAllBefore",value:function(e,t,n){}},{key:"insertAfter",value:function(e,t,n){}},{key:"setInnerHTML",value:function(e,t){}},{key:"getText",value:function(e){}},{key:"setText",value:function(e,t){}},{key:"getValue",value:function(e){}},{key:"setValue",value:function(e,t){}},{key:"getChecked",value:function(e){}},{key:"setChecked",value:function(e,t){}},{key:"createComment",value:function(e){}},{key:"createTemplate",value:function(e){}},{key:"createElement",value:function(e,t){}},{key:"createElementNS",value:function(e,t,n){}},{key:"createTextNode",value:function(e,t){}},{key:"createScriptTag",value:function(e,t,n){}},{key:"createStyleElement",value:function(e,t){}},{key:"createShadowRoot",value:function(e){}},{key:"getShadowRoot",value:function(e){}},{key:"getHost",value:function(e){}},{key:"getDistributedNodes",value:function(e){}},{key:"clone",value:function(e){}},{key:"getElementsByClassName",value:function(e,t){}},{key:"getElementsByTagName",value:function(e,t){}},{key:"classList",value:function(e){}},{key:"addClass",value:function(e,t){}},{key:"removeClass",value:function(e,t){}},{key:"hasClass",value:function(e,t){}},{key:"setStyle",value:function(e,t,n){}},{key:"removeStyle",value:function(e,t){}},{key:"getStyle",value:function(e,t){}},{key:"hasStyle",value:function(e,t,n){}},{key:"tagName",value:function(e){}},{key:"attributeMap",value:function(e){}},{key:"hasAttribute",value:function(e,t){}},{key:"hasAttributeNS",value:function(e,t,n){}},{key:"getAttribute",value:function(e,t){}},{key:"getAttributeNS",value:function(e,t,n){}},{key:"setAttribute",value:function(e,t,n){}},{key:"setAttributeNS",value:function(e,t,n,r){}},{key:"removeAttribute",value:function(e,t){}},{key:"removeAttributeNS",value:function(e,t,n){}},{key:"templateAwareRoot",value:function(e){}},{key:"createHtmlDocument",value:function(){}},{key:"getBoundingClientRect",value:function(e){}},{key:"getTitle",value:function(e){}},{key:"setTitle",value:function(e,t){}},{key:"elementMatches",value:function(e,t){}},{key:"isTemplateElement",value:function(e){}},{key:"isTextNode",value:function(e){}},{key:"isCommentNode",value:function(e){}},{key:"isElementNode",value:function(e){}},{key:"hasShadowRoot",value:function(e){}},{key:"isShadowRoot",value:function(e){}},{key:"importIntoDoc",value:function(e){}},{key:"adoptNode",value:function(e){}},{key:"getHref",value:function(e){}},{key:"getEventKey",value:function(e){}},{key:"resolveAndSetHref",value:function(e,t,n){}},{key:"supportsDOMEvents",value:function(){}},{key:"supportsNativeShadowDOM",value:function(){}},{key:"getGlobalEventTarget",value:function(e,t){}},{key:"getHistory",value:function(){}},{key:"getLocation",value:function(){}},{key:"getBaseHref",value:function(e){}},{key:"resetBaseElement",value:function(){}},{key:"getUserAgent",value:function(){}},{key:"setData",value:function(e,t,n){}},{key:"getComputedStyle",value:function(e){}},{key:"getData",value:function(e,t){}},{key:"setGlobalVar",value:function(e,t){}},{key:"supportsWebAnimation",value:function(){}},{key:"performanceNow",value:function(){}},{key:"getAnimationPrefix",value:function(){}},{key:"getTransitionEnd",value:function(){}},{key:"supportsAnimation",value:function(){}},{key:"supportsCookies",value:function(){}},{key:"getCookie",value:function(e){}},{key:"setCookie",value:function(e,t){}},{key:"attrToPropMap",get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e}}]),e}(),zh=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];ri(this,e),this.element=t,this.keyframes=n,this.options=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._duration=r.duration,this.previousStyles={},o.forEach(function(e){var t=e._captureStyles();Object.keys(t).forEach(function(e){return i.previousStyles[e]=t[e]})})}return jh(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(t){var n={};return Object.keys(t).forEach(function(r,i){var o=t[r];"*"==o&&(o=ci(e.element,r)),void 0!=o&&(n[r]=o)}),n}),n=Object.keys(this.previousStyles);if(n.length){var r=t[0],i=[];if(n.forEach(function(t){ii(r[t])||i.push(t),r[t]=e.previousStyles[t]}),i.length){var o;!function(){var n=e;for(o=1;o<t.length;o++)!function(){var e=t[o];i.forEach(function(t){e[t]=ci(n.element,t)})}()}()}}this._player=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=hi(t[t.length-1]),this._resetDomPlayerState(),this._player.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._player.play()}},{key:"pause",value:function(){this.init(),this._player.pause()}},{key:"finish",value:function(){this.init(),this._onFinish(),this._player.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this._player&&this._player.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._resetDomPlayerState(),this._onFinish(),this._destroyed=!0,this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this._player.currentTime=e*this.totalTime}},{key:"getPosition",value:function(){return this._player.currentTime/this.totalTime}},{key:"_captureStyles",value:function(){var e=this,t={};return this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:ci(e.element,n))}),t}},{key:"domPlayer",get:function(){return this._player}},{key:"totalTime",get:function(){return this._duration}}]),e}(),$h=function(){function e(){ri(this,e)}return jh(e,[{key:"animate",value:function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],s=[],u={};if(ii(t)&&(u=fi(t,{})),n.forEach(function(e){var t=fi(e.styles,u);t.offset=Math.max(0,Math.min(1,e.offset)),s.push(t)}),0==s.length)s=[u,u];else if(1==s.length){var l=u,c=s[0];c.offset=null,s=[l,c]}var h={duration:r,delay:i,fill:"both"};return o&&(h.easing=o),a=a.filter(di),new zh(e,s,h,a)}}]),e}(),qh=function(e){function t(){ri(this,t);var e=ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(ii(e.getStyle(n,"animationName")))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(ii(e.getStyle(n,r[i]+"AnimationName"))){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){ii(e.getStyle(n,t))&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return ni(t,e),jh(t,[{key:"getDistributedNodes",value:function(e){return e.getDistributedNodes()}},{key:"resolveAndSetHref",value:function(e,t,n){e.href=null==n?t:t+"/../"+n}},{key:"supportsDOMEvents",value:function(){return!0}},{key:"supportsNativeShadowDOM",value:function(){return"function"==typeof document.body.createShadowRoot}},{key:"getAnimationPrefix",value:function(){return this._animationPrefix?this._animationPrefix:""}},{key:"getTransitionEnd",value:function(){return this._transitionEnd?this._transitionEnd:""}},{key:"supportsAnimation",value:function(){return ii(this._animationPrefix)&&ii(this._transitionEnd)}}]),t}(Bh),Qh={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Zh={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Wh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},Kh=function(e){function t(){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ni(t,e),jh(t,[{key:"parse",value:function(e){throw new Error("parse not implemented")}},{key:"hasProperty",value:function(e,t){return t in e}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"getProperty",value:function(e,t){return e[t]}},{key:"invoke",value:function(e,t,n){e[t].apply(e,ei(n))}},{key:"logError",value:function(e){window.console&&(console.error?console.error(e):console.log(e))}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"querySelector",value:function(e,t){return e.querySelector(t)}},{key:"querySelectorAll",value:function(e,t){return e.querySelectorAll(t)}},{key:"on",value:function(e,t,n){e.addEventListener(t,n,!1)}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"createMouseEvent",value:function(e){var t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}},{key:"createEvent",value:function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}},{key:"preventDefault",value:function(e){e.preventDefault(),e.returnValue=!1}},{key:"isPrevented",value:function(e){return e.defaultPrevented||ii(e.returnValue)&&!e.returnValue}},{key:"getInnerHTML",value:function(e){return e.innerHTML}},{key:"getTemplateContent",value:function(e){return"content"in e&&e instanceof HTMLTemplateElement?e.content:null}},{key:"getOuterHTML",value:function(e){return e.outerHTML}},{key:"nodeName",value:function(e){return e.nodeName}},{key:"nodeValue",value:function(e){return e.nodeValue}},{key:"type",value:function(e){return e.type}},{key:"content",value:function(e){return this.hasProperty(e,"content")?e.content:e}},{key:"firstChild",value:function(e){return e.firstChild}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"parentElement",value:function(e){return e.parentNode}},{key:"childNodes",value:function(e){return e.childNodes}},{key:"childNodesAsList",value:function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n}},{key:"clearNodes",value:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"removeChild",value:function(e,t){e.removeChild(t)}},{key:"replaceChild",value:function(e,t,n){e.replaceChild(t,n)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"insertBefore",value:function(e,t,n){e.insertBefore(n,t)}},{key:"insertAllBefore",value:function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})}},{key:"insertAfter",value:function(e,t,n){e.insertBefore(n,t.nextSibling)}},{key:"setInnerHTML",value:function(e,t){e.innerHTML=t}},{key:"getText",value:function(e){return e.textContent}},{key:"setText",value:function(e,t){e.textContent=t}},{key:"getValue",value:function(e){return e.value}},{key:"setValue",value:function(e,t){e.value=t}},{key:"getChecked",value:function(e){return e.checked}},{key:"setChecked",value:function(e,t){e.checked=t}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createTemplate",value:function(e){var t=document.createElement("template");return t.innerHTML=e,t}},{key:"createElement",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).createElement(e)}},{key:"createElementNS",value:function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:document).createElementNS(e,t)}},{key:"createTextNode",value:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).createTextNode(e)}},{key:"createScriptTag",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r=n.createElement("SCRIPT");return r.setAttribute(e,t),r}},{key:"createStyleElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=t.createElement("style");return this.appendChild(n,this.createTextNode(e)),n}},{key:"createShadowRoot",value:function(e){return e.createShadowRoot()}},{key:"getShadowRoot",value:function(e){return e.shadowRoot}},{key:"getHost",value:function(e){return e.host}},{key:"clone",value:function(e){return e.cloneNode(!0)}},{key:"getElementsByClassName",value:function(e,t){return e.getElementsByClassName(t)}},{key:"getElementsByTagName",value:function(e,t){return e.getElementsByTagName(t)}},{key:"classList",value:function(e){return Array.prototype.slice.call(e.classList,0)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"hasClass",value:function(e,t){return e.classList.contains(t)}},{key:"setStyle",value:function(e,t,n){e.style[t]=n}},{key:"removeStyle",value:function(e,t){e.style[t]=""}},{key:"getStyle",value:function(e,t){return e.style[t]}},{key:"hasStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getStyle(e,t)||"";return n?r==n:r.length>0}},{key:"tagName",value:function(e){return e.tagName}},{key:"attributeMap",value:function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var i=n[r];t.set(i.name,i.value)}return t}},{key:"hasAttribute",value:function(e,t){return e.hasAttribute(t)}},{key:"hasAttributeNS",value:function(e,t,n){return e.hasAttributeNS(t,n)}},{key:"getAttribute",value:function(e,t){return e.getAttribute(t)}},{key:"getAttributeNS",value:function(e,t,n){return e.getAttributeNS(t,n)}},{key:"setAttribute",value:function(e,t,n){e.setAttribute(t,n)}},{key:"setAttributeNS",value:function(e,t,n,r){e.setAttributeNS(t,n,r)}},{key:"removeAttribute",value:function(e,t){e.removeAttribute(t)}},{key:"removeAttributeNS",value:function(e,t,n){e.removeAttributeNS(t,n)}},{key:"templateAwareRoot",value:function(e){return this.isTemplateElement(e)?this.content(e):e}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getBoundingClientRect",value:function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}},{key:"getTitle",value:function(e){return document.title}},{key:"setTitle",value:function(e,t){document.title=t||""}},{key:"elementMatches",value:function(e,t){return e instanceof HTMLElement&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}},{key:"isTemplateElement",value:function(e){return e instanceof HTMLElement&&"TEMPLATE"==e.nodeName}},{key:"isTextNode",value:function(e){return e.nodeType===Node.TEXT_NODE}},{key:"isCommentNode",value:function(e){return e.nodeType===Node.COMMENT_NODE}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"hasShadowRoot",value:function(e){return ii(e.shadowRoot)&&e instanceof HTMLElement}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"importIntoDoc",value:function(e){return document.importNode(this.templateAwareRoot(e),!0)}},{key:"adoptNode",value:function(e){return document.adoptNode(e)}},{key:"getHref",value:function(e){return e.href}},{key:"getEventKey",value:function(e){var t=e.key;if(oi(t)){if(t=e.keyIdentifier,oi(t))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Wh.hasOwnProperty(t)&&(t=Wh[t]))}return Zh[t]||t}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?document:"body"===t?document.body:void 0}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t=pi();return oi(t)?null:vi(t)}},{key:"resetBaseElement",value:function(){Yh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"setData",value:function(e,t,n){this.setAttribute(e,"data-"+t,n)}},{key:"getData",value:function(e,t){return this.getAttribute(e,"data-"+t)}},{key:"getComputedStyle",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return getComputedStyle(e)})},{key:"setGlobalVar",value:function(e,t){si(Uh,e,t)}},{key:"supportsWebAnimation",value:function(){return"function"==typeof Element.prototype.animate}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return yi(document.cookie,e)}},{key:"setCookie",value:function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}},{key:"attrToPropMap",get:function(){return Qh}}],[{key:"makeCurrent",value:function(){li(new t)}}]),t}(qh),Yh=null,Jh=void 0,Xh=new Wa("DocumentToken"),ef=function(e){function t(e){ri(this,t);var n=ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._doc=e,n._init(),n}return ni(t,e),jh(t,[{key:"_init",value:function(){this._location=ui().getLocation(),this._history=ui().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return ui().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){ui().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){ui().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){_i()?this._history.pushState(e,t,n):this._location.hash=n}},{key:"replaceState",value:function(e,t,n){_i()?this._history.replaceState(e,t,n):this._location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"location",get:function(){return this._location}},{key:"pathname",get:function(){return this._location.pathname},set:function(e){this._location.pathname=e}},{key:"search",get:function(){return this._location.search}},{key:"hash",get:function(){return this._location.hash}}]),t}(Ic);ef.decorators=[{type:_s}],ef.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]}]};var tf=function(){function e(t){ri(this,e),this._doc=t,this._dom=ui()}return jh(e,[{key:"addTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,t):null}},{key:"addTags",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(e,r){return r&&e.push(t._getOrCreateElement(r,n)),e},[]):[]}},{key:"getTag",value:function(e){return e?this._dom.querySelector(this._doc,"meta["+e+"]"):null}},{key:"getTags",value:function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]}},{key:"updateTag",value:function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])){var t=this._parseSelector(e),n=this.getTag(t);if(n&&this._containsAttributes(e,n))return n}var r=this._dom.createElement("meta");this._setMetaElementAttributes(e,r);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,r),r}},{key:"_setMetaElementAttributes",value:function(e,t){var n=this;return Object.keys(e).forEach(function(r){return n._dom.setAttribute(t,r,e[r])}),t}},{key:"_parseSelector",value:function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'}},{key:"_containsAttributes",value:function(e,t){var n=this;return Object.keys(e).every(function(r){return n._dom.getAttribute(t,r)===e[r]})}}]),e}();tf.decorators=[{type:_s}],tf.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]}]};var nf=new Wa("TRANSITION_ID"),rf=[{provide:Qs,useFactory:mi,deps:[nf,Xh],multi:!0}],of=function(){function e(){ri(this,e)}return jh(e,[{key:"addToWindow",value:function(e){Uh.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Uh.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Uh.getAllAngularRootElements=function(){return e.getAllRootElements()};var t=function(e){var t=Uh.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})};Uh.frameworkStabilizers||(Uh.frameworkStabilizers=[]),Uh.frameworkStabilizers.push(t)}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t)
  ;return ii(r)?r:n?ui().isShadowRoot(t)?this.findTestabilityInTree(e,ui().getHost(t),!0):this.findTestabilityInTree(e,ui().parentElement(t),!0):null}}],[{key:"init",value:function(){ge(new e)}}]),e}(),af=function(){function e(t){ri(this,e),this._doc=t}return jh(e,[{key:"getTitle",value:function(){return ui().getTitle(this._doc)}},{key:"setTitle",value:function(e){ui().setTitle(this._doc,e)}}]),e}();af.decorators=[{type:_s}],af.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]}]};var sf=function(){function e(){ri(this,e)}return jh(e,null,[{key:"merge",value:function(e,t){var n={},r=!0,i=!1,o=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;n[u]=e[u]}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}var l=!0,c=!1,h=void 0;try{for(var f,d=Object.keys(t)[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var p=f.value;n[p]=t[p]}}catch(e){c=!0,h=e}finally{try{!l&&d.return&&d.return()}finally{if(c)throw h}}return n}},{key:"equals",value:function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}}]),e}(),uf=new Wa("EventManagerPlugins"),lf=function(){function e(t,n){var r=this;ri(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return jh(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)}}]),e}();lf.decorators=[{type:_s}],lf.ctorParameters=function(){return[{type:Array,decorators:[{type:vs,args:[uf]}]},{type:ou}]};var cf=function(){function e(t){ri(this,e),this._doc=t}return jh(e,[{key:"supports",value:function(e){}},{key:"addEventListener",value:function(e,t,n){}},{key:"addGlobalEventListener",value:function(e,t,n){var r=ui().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)}}]),e}(),hf=function(){function e(){ri(this,e),this._stylesSet=new Set}return jh(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}();hf.decorators=[{type:_s}],hf.ctorParameters=function(){return[]};var ff=function(e){function t(e){ri(this,t);var n=ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return ni(t,e),jh(t,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return ui().remove(e)})}}]),t}(hf);ff.decorators=[{type:_s}],ff.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]}]};var df={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace"},pf="template bindings={}",vf=function(){function e(t,n,r,i,o){ri(this,e),this.document=t,this.eventManager=n,this.sharedStylesHost=r,this.animationDriver=i,this.appId=o,this.registeredComponents=new Map}return jh(e,[{key:"renderComponent",value:function(e){var t=this.registeredComponents.get(e.id);return t||(t=new mf(this,e,this.animationDriver,this.appId+"-"+e.id),this.registeredComponents.set(e.id,t)),t}}]),e}(),yf=function(e){function t(e,n,r,i,o){ri(this,t);ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,r,i,o));throw new Error("RootRenderer is no longer supported. Please use the `RendererFactoryV2` instead!")}return ni(t,e),t}(vf);yf.decorators=[{type:_s}],yf.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]},{type:lf},{type:ff},{type:Hh},{type:void 0,decorators:[{type:vs,args:[Ws]}]}]};var _f={remove:function(e){e.parentNode&&e.parentNode.removeChild(e)},appendChild:function(e,t){t.appendChild(e)},insertBefore:function(e,t){t.parentNode.insertBefore(e,t)},nextSibling:function(e){return e.nextSibling},parentElement:function(e){return e.parentNode}},mf=function(){function e(t,n,r,i){ri(this,e),this._rootRenderer=t,this.componentProto=n,this._animationDriver=r,this.directRenderer=_f,this._styles=Ei(i,n.styles,[]),n.encapsulation!==fs.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===fs.Emulated?(this._contentAttr=wi(i),this._hostAttr=Ci(i)):(this._contentAttr=null,this._hostAttr=null)}return jh(e,[{key:"selectRootElement",value:function(e,t){var n=void 0;if("string"==typeof e){if(!(n=this._rootRenderer.document.querySelector(e)))throw new Error('The selector "'+e+'" did not match any elements')}else n=e;for(;n.firstChild;)n.removeChild(n.firstChild);return n}},{key:"createElement",value:function(e,t,n){var r=void 0;if(Oi(t)){var i=Si(t);r=document.createElementNS(df[i[0]],i[1])}else r=document.createElement(t);return this._contentAttr&&r.setAttribute(this._contentAttr,""),e&&e.appendChild(r),r}},{key:"createViewRoot",value:function(e){var t=void 0;if(this.componentProto.encapsulation===fs.Native){t=e.createShadowRoot(),this._rootRenderer.sharedStylesHost.addHost(t);for(var n=0;n<this._styles.length;n++){var r=document.createElement("style");r.textContent=this._styles[n],t.appendChild(r)}}else this._hostAttr&&e.setAttribute(this._hostAttr,""),t=e;return t}},{key:"createTemplateAnchor",value:function(e,t){var n=document.createComment(pf);return e&&e.appendChild(n),n}},{key:"createText",value:function(e,t,n){var r=document.createTextNode(t);return e&&e.appendChild(r),r}},{key:"projectNodes",value:function(e,t){e&&ki(e,t)}},{key:"attachViewAfter",value:function(e,t){gi(e,t)}},{key:"detachView",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];n.parentNode&&n.parentNode.removeChild(n)}}},{key:"destroyView",value:function(e,t){this.componentProto.encapsulation===fs.Native&&e&&this._rootRenderer.sharedStylesHost.removeHost(e.shadowRoot)}},{key:"listen",value:function(e,t,n){return this._rootRenderer.eventManager.addEventListener(e,t,bi(n))}},{key:"listenGlobal",value:function(e,t,n){return this._rootRenderer.eventManager.addGlobalEventListener(e,t,bi(n))}},{key:"setElementProperty",value:function(e,t,n){e[t]=n}},{key:"setElementAttribute",value:function(e,t,n){var r=void 0,i=t;if(Oi(t)){var o=Si(t);i=o[1],t=o[0]+":"+o[1],r=df[o[0]]}ii(n)?r?e.setAttributeNS(r,t,n):e.setAttribute(t,n):ii(r)?e.removeAttributeNS(r,i):e.removeAttribute(t)}},{key:"setBindingDebugInfo",value:function(e,t,n){if(e.nodeType===Node.COMMENT_NODE){var r=e.nodeValue.replace(/\n/g,"").match(/^template bindings=(.*)$/),i=JSON.parse(r[1]);i[t]=n,e.nodeValue=pf.replace("{}",JSON.stringify(i,null,2))}else t=t.replace(/\$/g,"_"),this.setElementAttribute(e,t,n)}},{key:"setElementClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"setElementStyle",value:function(e,t,n){ii(n)?e.style[t]=ai(n):e.style[t]=""}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"setText",value:function(e,t){e.nodeValue=t}},{key:"animate",value:function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];return this._rootRenderer.document.body.contains(e)?this._animationDriver.animate(e,t,n,r,i,o,a):new Bl}}]),e}(),gf=/%COMP%/g,kf="_nghost-%COMP%",bf="_ngcontent-%COMP%",wf=/^:([^:]+):(.+)$/,Cf=function(){function e(t,n){ri(this,e),this.eventManager=t,this.sharedStylesHost=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ef(t)}return jh(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case fs.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Of(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case fs.Native:return new Sf(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=Ei(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}}]),e}();Cf.decorators=[{type:_s}],Cf.ctorParameters=function(){return[{type:lf},{type:ff}]};var Ef=function(){function e(t){ri(this,e),this.eventManager=t,this.data=Object.create(null)}return jh(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(df[t],e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e){var t="string"==typeof e?document.querySelector(e):e;if(!t)throw new Error('The selector "'+e+'" did not match any elements');return t.textContent="",t}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){r?e.setAttributeNS(df[r],r+":"+t,n):e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){n?e.removeAttributeNS(df[n],t):e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r,i){r||i?e.style.setProperty(t,n,i?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,bi(n)):this.eventManager.addEventListener(e,t,bi(n))}}]),e}(),Of=function(e){function t(e,n,r){ri(this,t);var i=ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));i.component=r;var o=Ei(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=wi(r.id),i.hostAttr=Ci(r.id),i}return ni(t,e),jh(t,[{key:"applyToHost",value:function(e){Ih(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,n){var r=Ih(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createElement",this).call(this,e,n);return Ih(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),t}(Ef),Sf=function(e){function t(e,n,r,i){ri(this,t);var o=ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=Ei(i.id,i.styles,[]),s=0;s<a.length;s++){var u=document.createElement("style");u.textContent=a[s],o.shadowRoot.appendChild(u)}return o}return ni(t,e),jh(t,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,n){return Ih(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),n)}},{key:"insertBefore",value:function(e,n,r){return Ih(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),n,r)}},{key:"removeChild",value:function(e,n){return Ih(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),n)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(Ih(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),t}(Ef),xf={ApplicationRef:tl,NgZone:ou},Af="ng.probe",Pf="ng.coreTokens",Vf=function e(t,n){ri(this,e),this.name=t,this.token=n},Tf=[{provide:Su,useFactory:Ai,deps:[vf,[Vf,new ys],[Ju,new ys]]}],Nf=function(e){function t(e){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return ni(t,e),jh(t,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){return e.removeEventListener(t,n,!1)}}}]),t}(cf);Nf.decorators=[{type:_s}],Nf.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]}]};var Df={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Mf=new Wa("HammerGestureConfig"),If=function(){function e(){ri(this,e),this.events=[],this.overrides={}}return jh(e,[{key:"buildHammer",value:function(e){var t=new Hammer(e);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(var n in this.overrides)t.get(n).set(this.overrides[n]);return t}}]),e}();If.decorators=[{type:_s}],If.ctorParameters=function(){return[]};var Rf=function(e){function t(e,n){ri(this,t);var r=ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._config=n,r}return ni(t,e),jh(t,[{key:"supports",value:function(e){if(!Df.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+e+" event");return!0}},{key:"addEventListener",value:function(e,t,n){var r=this,i=this.manager.getZone();return t=t.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(e),a=function(e){i.runGuarded(function(){n(e)})};return o.on(t,a),function(){return o.off(t,a)}})}},{key:"isCustomEvent",value:function(e){return this._config.events.indexOf(e)>-1}}]),t}(cf);Rf.decorators=[{type:_s}],Rf.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]},{type:If,decorators:[{type:vs,args:[Mf]}]}]};var jf=["alt","control","meta","shift"],Ff={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Hf=function(e){function t(e){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return ni(t,e),jh(t,[{key:"supports",value:function(e){return null!=t.parseEventName(e)}},{key:"addEventListener",value:function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ui().onAndCancel(e,i.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(jf.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=ui().getEventKey(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),jf.forEach(function(r){if(r!=n){(0,Ff[r])(e)&&(t+=r+".")}}),t+=n}},{key:"eventCallback",value:function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),t}(cf);Hf.decorators=[{type:_s}],Hf.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]}]};var Lf=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Uf=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Gf=null,Bf=null,zf=Mi("area,br,col,hr,img,wbr"),$f=Mi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qf=Mi("rp,rt"),Qf=Ii(qf,$f),Zf=Ii($f,Mi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Wf=Ii(qf,Mi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Kf=Ii(zf,Zf,Wf,Qf),Yf=Mi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jf=Mi("srcset"),Xf=Mi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ed=Ii(Yf,Jf,Xf),td=function(){function e(){ri(this,e),this.sanitizedSomething=!1,this.buf=[]}return jh(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild;t;)if(Bf.isElementNode(t)?this.startElement(t):Bf.isTextNode(t)?this.chars(Bf.nodeValue(t)):this.sanitizedSomething=!0,Bf.firstChild(t))t=Bf.firstChild(t);else for(;t;){if(Bf.isElementNode(t)&&this.endElement(t),Bf.nextSibling(t)){t=Bf.nextSibling(t);break}t=Bf.parentElement(t)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=this,n=Bf.nodeName(e).toLowerCase();if(!Kf.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),Bf.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();if(!ed.hasOwnProperty(r))return void(t.sanitizedSomething=!0);Yf[r]&&(e=Ti(e)),Jf[r]&&(e=Ni(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(Ri(e)),t.buf.push('"')}),this.buf.push(">")}},{key:"endElement",value:function(e){var t=Bf.nodeName(e).toLowerCase();Kf.hasOwnProperty(t)&&!zf.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Ri(e))}}]),e}(),nd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rd=/([^\#-~ |!])/g,id=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),od=/^url\(([^)]+)\)$/,ad=function(){function e(){ri(this,e)}return jh(e,[{key:"sanitize",value:function(e,t){}},{key:"bypassSecurityTrustHtml",value:function(e){}},{key:"bypassSecurityTrustStyle",value:function(e){}},{key:"bypassSecurityTrustScript",value:function(e){}},{key:"bypassSecurityTrustUrl",value:function(e){}},{key:"bypassSecurityTrustResourceUrl",value:function(e){}}]),e}(),sd=function(e){function t(e){ri(this,t);var n=ti(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._doc=e,n}return ni(t,e),jh(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Pu.NONE:return t;case Pu.HTML:return t instanceof ld?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Fi(this._doc,String(t)));case Pu.STYLE:return t instanceof cd?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Li(t));case Pu.SCRIPT:if(t instanceof hd)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case Pu.URL:return t instanceof dd||t instanceof fd?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Ti(String(t)));case Pu.RESOURCE_URL:if(t instanceof dd)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}}},{key:"checkNotSafeValue",value:function(e,t){if(e instanceof ud)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")}},{key:"bypassSecurityTrustHtml",value:function(e){return new ld(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new cd(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new hd(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new fd(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new dd(e)}}]),t}(ad);sd.decorators=[{type:_s}],sd.ctorParameters=function(){return[{type:void 0,decorators:[{type:vs,args:[Xh]}]}]};var ud=function(){function e(t){ri(this,e),this.changingThisBreaksApplicationSecurity=t}return jh(e,[{key:"getTypeName",value:function(){}},{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}]),e}(),ld=function(e){function t(){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ni(t,e),jh(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(ud),cd=function(e){function t(){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ni(t,e),jh(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(ud),hd=function(e){function t(){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ni(t,e),jh(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(ud),fd=function(e){function t(){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ni(t,e),jh(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(ud),dd=function(e){function t(){return ri(this,t),ti(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return ni(t,e),jh(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(ud),pd=[{provide:Js,useValue:"browser"},{provide:Ys,useValue:Ui,multi:!0},{provide:Ic,useClass:ef},{provide:Xh,useFactory:Bi,deps:[]}],vd=[{provide:Vu,useExisting:ad},{provide:ad,useClass:sd}],yd=we(kl,"browser",pd),_d=function(){function e(t){if(ri(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return jh(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Ws,useValue:t.appId},{provide:nf,useExisting:Ws},rf]}}}]),e}();_d.decorators=[{type:hs,args:[{providers:[vd,{provide:As,useFactory:Gi,deps:[]},{provide:uf,useClass:Nf,multi:!0},{provide:uf,useClass:Hf,multi:!0},{provide:uf,useClass:Rf,multi:!0},{provide:Mf,useClass:If},{provide:vf,useClass:yf},{provide:Su,useExisting:vf},Cf,{provide:xu,useExisting:Cf},{provide:hf,useExisting:ff},{provide:Hh,useFactory:zi},ff,zu,lf,Tf,tf,af],exports:[Mh,_c]}]}],_d.ctorParameters=function(){return[{type:_d,decorators:[{type:ys},{type:gs}]}]};var md="undefined"!=typeof window&&window||{},gd=function e(t,n){ri(this,e),this.msPerTick=t,this.numTicks=n},kd=(function(){function e(t){ri(this,e),this.appRef=t.injector.get(tl)}jh(e,[{key:"timeChangeDetection",value:function(e){var t=e&&e.record,n=ii(md.console.profile);t&&n&&md.console.profile("Change Detection");for(var r=ui().performanceNow(),i=0;i<5||ui().performanceNow()-r<500;)this.appRef.tick(),i++;var o=ui().performanceNow();t&&n&&md.console.profileEnd("Change Detection");var a=(o-r)/i;return md.console.log("ran "+i+" change detection cycles"),md.console.log(a.toFixed(2)+" ms per check"),new gd(a,i)}}]),e}(),function(){function e(){ri(this,e)}jh(e,null,[{key:"all",value:function(){return function(e){return!0}}},{key:"css",value:function(e){return function(t){return!!ii(t.nativeElement)&&ui().elementMatches(t.nativeElement,e)}}},{key:"directive",value:function(e){return function(t){return t.providerTokens.indexOf(e)!==-1}}}]),e}(),new ds("4.0.0-rc.1"),"$compile"),bd="$injector",wd="$parse",Cd="$$angularInjector",Ed="?^^"+Cd,Od="?ngModel",Sd=function(){function e(e){this.binding=e,this.parseBinding()}return e.prototype.parseBinding=function(){var e=this.binding.split(":");this.prop=e[0].trim(),this.attr=(e[1]||this.prop).trim(),this.bracketAttr="["+this.attr+"]",this.parenAttr="("+this.attr+")",this.bracketParenAttr="[("+this.attr+")]";var t=this.attr.charAt(0).toUpperCase()+this.attr.substr(1);this.onAttr="on"+t,this.bindAttr="bind"+t,this.bindonAttr="bindon"+t},e}(),xd=function(){function e(){}return e.prototype.groupProjectableNodes=function(e,t,n){return[n]},e}(),Ad={__UNINITIALIZED__:!0},Pd=function(){function e(e,t,n,r,i,o,a,s,u,l,c){this.id=e,this.info=t,this.element=n,this.attrs=r,this.scope=i,this.ngModel=o,this.parentInjector=a,this.$injector=s,this.$compile=u,this.$parse=l,this.componentFactory=c,this.inputChangeCount=0,this.inputChanges=null,this.componentRef=null,this.component=null,this.changeDetector=null,this.element[0].id=e,this.componentScope=i.$new()}return e.prototype.compileContents=function(){var e=this,t=[],n=this.parentInjector.get(xd),r=n.groupProjectableNodes(this.$injector,this.info.component,this.element.contents()),i=r.map(function(t){return e.$compile(t)});return this.element.empty(),i.forEach(function(n){n(e.scope,function(n){t.push(n),e.element.append(n)})}),t},e.prototype.createComponent=function(e){var t=Bs.resolveAndCreate([{provide:"$scope",useValue:this.componentScope}],this.parentInjector);this.componentRef=this.componentFactory.create(t,e,this.element[0]),this.changeDetector=this.componentRef.changeDetectorRef,this.component=this.componentRef.instance,Zi(this.ngModel,this.component)},e.prototype.setupInputs=function(){for(var e=this,t=this.attrs,n=this.info.inputs||[],r=0;r<n.length;r++){var i=new Sd(n[r]),o=null;if(t.hasOwnProperty(i.attr)){var a=function(t){var n=Ad;return function(r){n===Ad&&(n=r),e.updateInput(t,n,r),n=r}}(i.prop);t.$observe(i.attr,a)}else t.hasOwnProperty(i.bindAttr)?o=t[i.bindAttr]:t.hasOwnProperty(i.bracketAttr)?o=t[i.bracketAttr]:t.hasOwnProperty(i.bindonAttr)?o=t[i.bindonAttr]:t.hasOwnProperty(i.bracketParenAttr)&&(o=t[i.bracketParenAttr]);if(null!=o){var s=function(t){return function(n,r){return e.updateInput(t,r,n)}}(i.prop);this.componentScope.$watch(o,s)}}var u=this.info.component.prototype;u&&u.ngOnChanges&&(this.inputChanges={},this.componentScope.$watch(function(){return e.inputChangeCount},function(){var t=e.inputChanges;e.inputChanges={},e.component.ngOnChanges(t)})),this.componentScope.$watch(function(){return e.changeDetector&&e.changeDetector.detectChanges()})},e.prototype.setupOutputs=function(){for(var e=this,t=this.attrs,n=this.info.outputs||[],r=0;r<n.length;r++){var i=new Sd(n[r]),o=null,a=!1,s=i.bindonAttr?i.bindonAttr.substring(0,i.bindonAttr.length-6):null,u=i.bracketParenAttr?"[("+i.bracketParenAttr.substring(2,i.bracketParenAttr.length-8)+")]":null;if(t.hasOwnProperty(i.onAttr)?o=t[i.onAttr]:t.hasOwnProperty(i.parenAttr)?o=t[i.parenAttr]:t.hasOwnProperty(s)?(o=t[s],a=!0):t.hasOwnProperty(u)&&(o=t[u],a=!0),null!=o&&null!=a){var l=this.$parse(o),c=l.assign;if(a&&!c)throw new Error("Expression '"+o+"' is not assignable!");var h=this.component[i.prop];if(!h)throw new Error("Missing emitter '"+i.prop+"' on component '"+qi(this.info.component)+"'!");h.subscribe({next:a?function(t){return function(n){return t(e.scope,n)}}(c):function(t){return function(n){return t(e.scope,{$event:n})}}(l)})}}},e.prototype.registerCleanup=function(){var e=this;this.element.bind("$destroy",function(){e.componentScope.$destroy(),e.componentRef.destroy()})},e.prototype.getInjector=function(){return this.componentRef&&this.componentRef.injector},e.prototype.updateInput=function(e,t,n){this.inputChanges&&(this.inputChangeCount++,this.inputChanges[e]=new gu(t,n,t===n)),this.component[e]=n},e}(),Vd=0,Td=function(){function e(e){this.element=e,this.injectorKey=$i(Cd),this.callbacks=[],e.data(this.injectorKey,this)}return e.prototype.then=function(e){this.injector?e(this.injector):this.callbacks.push(e)},e.prototype.resolve=function(e){this.injector=e,this.element.data(this.injectorKey,e),this.element=null,this.callbacks.forEach(function(t){return t(e)}),this.callbacks.length=0},e}(),Nd=(new ds("4.0.0-rc.1"),{bootstrap:Ki,module:Ki,element:Ki,version:Ki,resumeBootstrap:Ki,getTestability:Ki});try{window.hasOwnProperty("angular")&&(Nd=window.angular)}catch(e){}var Dd,Md=Nd.bootstrap,Id=Nd.module,Rd=Nd.element,jd=[{provide:"$injector",useFactory:Ji},{provide:"$rootScope",useFactory:Xi,deps:["$injector"]},{provide:"$compile",useFactory:eo,deps:["$injector"]},{provide:"$parse",useFactory:to,deps:["$injector"]}],Fd=function(){function e(e,t){this.injector=e,this.ngZone=t}return e.prototype.bootstrap=function(e,t,n){var r=this;void 0===t&&(t=[]);var i=(Id("$$UpgradeModule.init",[]).value(Cd,this.injector).config(["$provide",bd,function(e,t){t.has("$$testability")&&e.decorator("$$testability",["$delegate",function(e){var t=e.whenStable,n=r.injector,i=function(r){t.call(e,function(){var t=n.get(zu);t.isStable()?r():t.whenStable(i.bind(e,r))})};return e.whenStable=i,e}])}]).run([bd,function(t){r.$injector=t,Yi(t),r.injector.get(bd),Rd(e).data($i(Cd),r.injector),setTimeout(function(){var e=t.get("$rootScope"),n=r.ngZone.onMicrotaskEmpty.subscribe(function(){return e.$digest()});e.$on("$destroy",function(){n.unsubscribe()})},0)}]),Id("$$UpgradeModule",["$$UpgradeModule.init"].concat(t))),o=window.angular;if(o.resumeBootstrap=void 0,this.ngZone.run(function(){Md(e,[i.name],n)}),o.resumeBootstrap){var a=o.resumeBootstrap,s=this.ngZone;o.resumeBootstrap=function(){var e=this,t=arguments;o.resumeBootstrap=a,s.run(function(){o.resumeBootstrap.apply(e,t)})}}},e}();Fd.decorators=[{type:hs,args:[{providers:[jd,xd]}]}],Fd.ctorParameters=function(){return[{type:Es},{type:ou}]};var Hd=e(function(e,t){function n(e){return!!e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function r(e){return!!e&&"function"==typeof e.on&&"function"==typeof e.off}function i(e){return!!e&&"[object NodeList]"===d.call(e)}function o(e){return!!e&&"[object HTMLCollection]"===d.call(e)}function a(e){return!!e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var s=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=ba,l=fa,c=ua,h=ha,f=pa,d=Object.prototype.toString,p=function(e){function t(t,n,r,i){e.call(this),this.sourceObj=t,this.eventName=n,this.selector=r,this.options=i}return s(t,e),t.create=function(e,n,r,i){return c.isFunction(r)&&(i=r,r=void 0),new t(e,n,i,r)},t.setupSubscription=function(e,s,u,l,c){var h;if(i(e)||o(e))for(var d=0,p=e.length;d<p;d++)t.setupSubscription(e[d],s,u,l,c);else if(a(e)){var v=e;e.addEventListener(s,u,c),h=function(){return v.removeEventListener(s,u)}}else if(r(e)){var y=e;e.on(s,u),h=function(){return y.off(s,u)}}else{if(!n(e))throw new TypeError("Invalid event target");var _=e;e.addListener(s,u),h=function(){return _.removeListener(s,u)}}l.add(new f.Subscription(h))},t.prototype._subscribe=function(e){
  var n=this.sourceObj,r=this.eventName,i=this.options,o=this.selector,a=o?function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=l.tryCatch(o).apply(void 0,t);r===h.errorObject?e.error(h.errorObject.e):e.next(r)}:function(t){return e.next(t)};t.setupSubscription(n,r,a,e,i)},t}(u.Observable);t.FromEventObservable=p}),Ld=e(function(e,t){var n=Hd;t.fromEvent=n.FromEventObservable.create}),Ud=(e(function(e){var t=ba,n=Ld;t.Observable.fromEvent=n.fromEvent}),e(function(e,t){function n(e,t,n){return this.lift(new o(e,t,n))}var r=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=_a;t._do=n;var o=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.nextOrObserver,this.error,this.complete))},e}(),a=function(e){function t(t,n,r,o){e.call(this,t);var a=new i.Subscriber(n,r,o);a.syncErrorThrowable=!0,this.add(a),this.safeSubscriber=a}return r(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.error(e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(i.Subscriber)})),Gd=(e(function(e){var t=ba,n=Ud;t.Observable.prototype.do=n._do,t.Observable.prototype._do=n._do}),e(function(e,t){function n(e,t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new o(e,t))}var r=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=_a;t.map=n;var o=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}();t.MapOperator=o;var a=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return r(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.Subscriber)})),Bd=(e(function(e){var t=ba,n=Gd;t.Observable.prototype.map=n.map}),e(function(e,t){function n(e,t){return this.lift(new o(e,t))}var r=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=_a;t.filter=n;var o=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return r(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.Subscriber)})),zd=(e(function(e){var t=ba,n=Bd;t.Observable.prototype.filter=n.filter}),e(function(e,t){function n(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new a(e,t,n))}var r=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=Ta,o=xa;t.mergeMap=n;var a=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=a;var s=function(e){function t(t,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(i.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.resultSelector?this._notifyResultSelector(e,t,n,r):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,n,r){var i;try{i=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(i)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeMapSubscriber=s})),$d=(e(function(e){var t=ba,n=zd;t.Observable.prototype.mergeMap=n.mergeMap,t.Observable.prototype.flatMap=n.mergeMap}),e(function(e,t){function n(e){return this.lift(new a(e))}var r=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=xa,o=Ta;t.takeUntil=n;var a=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.notifier))},e}(),s=function(e){function t(t,n){e.call(this,t),this.notifier=n,this.add(o.subscribeToResult(this,n))}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.complete()},t.prototype.notifyComplete=function(){},t}(i.OuterSubscriber)})),qd=(e(function(e){var t=ba,n=$d;t.Observable.prototype.takeUntil=n.takeUntil}),e(function(e,t){function n(e){return void 0===e&&(e=-1),0===e?new o.EmptyObservable:e<0?this.lift(new a(-1,this)):this.lift(new a(e-1,this))}var r=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=_a,o=Ea;t.repeat=n;var a=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.count,this.source))},e}(),s=function(e){function t(t,n,r){e.call(this,t),this.count=n,this.source=r}return r(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,r=t.count;if(0===r)return e.prototype.complete.call(this);r>-1&&(this.count=r-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,n.subscribe(this)}},t}(i.Subscriber)})),Qd=(e(function(e){var t=ba,n=qd;t.Observable.prototype.repeat=n.repeat}),e(function(e){var t=ba,n=Da;t.Observable.prototype.merge=n.merge}),function(){function e(){}return e}());Qd.spaceBar=32,Qd.enter=13,Qd.a=65,Qd.z=90,Qd.backSpace=8,Qd.zero=48,Qd.nine=57;var Zd=function(){function e(e){this.isCurrent=!1,this.lineBreak=!1,this.placeHolder=!1,this.deleteChar=!1,this.isSelected=!1,e===Qd.enter?(this.value="\n",this.lineBreak=!0):e===-1?(this.value="",this.placeHolder=!0):e===Qd.backSpace?this.deleteChar=!0:this.value=String.fromCharCode(e).toLowerCase()}return e}(),Wd=function(){function e(){this.characters=[],this.firstSelectedCharacter=-1,this.currentChar=new Zd(-1),this.characters.push(this.currentChar),this.characters[0].isCurrent=!0}return e.prototype.deselectPreviousCharacter=function(){if(this.currentChar){var e=this.characters.indexOf(this.currentChar);this.characters[e].isCurrent=!1}},e.prototype.clearSelection=function(e){this.firstSelectedCharacter=-1,e&&(this.firstSelectedCharacter=this.characters.indexOf(e.character)),this.characters.forEach(function(e){return e.isSelected=!1})},e.prototype.edit=function(e,t){if(e.deleteChar){var n=this.characters.indexOf(this.currentChar);n>=1&&(this.characters.splice(n,1),this.characters.length>1?(this.characters[n-1].isCurrent=!0,this.currentChar=this.characters[n-1]):1===this.characters.length&&(this.characters[0].isCurrent=!0,this.currentChar=this.characters[0]))}else if(this.characters.splice(t,0,e),e.lineBreak){this.deselectPreviousCharacter();var r=new Zd(-1);this.characters.splice(t+1,0,r),this.placeCursor(r)}else this.placeCursor(e)},e.prototype.placeCursor=function(e){this.deselectPreviousCharacter();var t=this.characters.indexOf(e);this.characters[t].isCurrent=!0,this.currentChar=e},e.prototype.selectCharacter=function(e){for(var t=this.characters.indexOf(e),n=this.firstSelectedCharacter;n<=t;n++)this.characters[n].isSelected=!0},e.prototype.processInput=function(e,t){if("modify"===t){var n=this.characters.indexOf(this.currentChar);n<0&&(n=this.characters.length-1),this.edit(e,n+1)}"select"===t&&this.placeCursor(e),"range"===t&&this.selectCharacter(e)},e}(),Kd=function(){function e(){this.currentDocument=new Wd}return e.prototype.isSuportedCharacter=function(e){return e>=Qd.a&&e<Qd.z||(e===Qd.enter||e===Qd.spaceBar||e===Qd.backSpace||e>=Qd.zero&&e<=Qd.nine)},e.prototype.getCharacterFromElement=function(e,t){var n=[].slice.call(this.editor.children).indexOf(e.target);return n>=0?{operation:t,character:this.currentDocument.characters[n],element:e}:null},e.prototype.ngOnInit=function(){var e=this;this.editor=document.getElementById("page"),this.keyUp=wa.fromEvent(document,"keyup").filter(function(t){return e.isSuportedCharacter(t.which)}).map(function(e){return{operation:"modify",character:new Zd(e.which),element:e}}),this.mouseDown=wa.fromEvent(this.editor,"mousedown").do(function(t){return e.currentDocument.clearSelection(e.getCharacterFromElement(t,"range"))}).flatMap(function(t){return wa.fromEvent(e.editor,"mousemove")}).map(function(t){return e.getCharacterFromElement(t,"range")}).filter(function(e){return null!==e}).takeUntil(wa.fromEvent(this.editor,"mouseup")).repeat(),this.click=wa.fromEvent(this.editor,"click").map(function(t){return e.getCharacterFromElement(t,"select")}).filter(function(e){return null!==e}),this.keyDown=wa.fromEvent(document,"keydown").filter(function(e){return e.which===Qd.spaceBar||e.which===Qd.backSpace}).map(function(e){return{element:e}}),this.keyUp.merge(this.click).merge(this.mouseDown).merge(this.keyDown).subscribe(function(t){e.currentDocument.processInput(t.character,t.operation),t.element.preventDefault()})},e}();Kd.decorators=[{type:as,args:[{selector:"editor",templateUrl:"./text-editor.html"}]}],Kd.ctorParameters=function(){return[]};var Yd=function(){function e(){}return e}();Yd.decorators=[{type:as,args:[{selector:"algorithms",templateUrl:"./algorithms.html"}]}],Yd.ctorParameters=function(){return[]};var Jd=e(function(e,t){function n(e){var t=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}var r=sa;t.toPromise=n}),Xd=Jd.toPromise,ep=e(function(e,t){function n(e){var t=e.value,n=e.subscriber;n.closed||(n.next(t),n.complete())}function r(e){var t=e.err,n=e.subscriber;n.closed||n.error(t)}var i=aa&&aa.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},o=sa,a=ba,s=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return i(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,i=this.promise,a=this.scheduler;if(null==a)this._isScalar?e.closed||(e.next(this.value),e.complete()):i.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){o.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return a.schedule(n,0,{value:this.value,subscriber:e})}else i.then(function(r){t.value=r,t._isScalar=!0,e.closed||e.add(a.schedule(n,0,{value:r,subscriber:e}))},function(t){e.closed||e.add(a.schedule(r,0,{err:t,subscriber:e}))}).then(null,function(e){o.root.setTimeout(function(){throw e})})},t}(a.Observable);t.PromiseObservable=s}),tp=e(function(e,t){var n=ep;t.fromPromise=n.PromiseObservable.create}),np=tp.fromPromise,rp=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},op=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ap=function(){function e(){oo(this,e)}return op(e,[{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.control?this.control.getError(e,t):null}},{key:"control",get:function(){throw new Error("unimplemented")}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}(),sp=function(e){function t(){return oo(this,t),ro(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return io(t,e),op(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(ap),up=function(){function e(){oo(this,e)}return op(e,null,[{key:"merge",value:function(e,t){var n={},r=!0,i=!1,o=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;n[u]=e[u]}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}var l=!0,c=!1,h=void 0;try{for(var f,d=Object.keys(t)[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var p=f.value;n[p]=t[p]}}catch(e){c=!0,h=e}finally{try{!l&&d.return&&d.return()}finally{if(c)throw h}}return n}},{key:"equals",value:function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}}]),e}(),lp=function(){function e(){oo(this,e)}return op(e,null,[{key:"findLast",value:function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}},{key:"removeAll",value:function(e,t){for(var n=0;n<t.length;++n){var r=e.indexOf(t[n]);r>-1&&e.splice(r,1)}}},{key:"remove",value:function(e,t){var n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},{key:"equals",value:function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}},{key:"flatten",value:function(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e.flatten(n):n;return t.concat(r)},[])}}]),e}(),cp=new Wa("NgValidators"),hp=new Wa("NgAsyncValidators"),fp=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,dp=function(){function e(){oo(this,e)}return op(e,null,[{key:"equalsTo",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){if(t.length<1)throw new Error("You must compare to at least 1 other field");var n=!0,r=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e.parent.get(s);if(!u)throw new Error("Field: "+s+" undefined, are you sure that "+s+" exists in the group");if(u.value!==e.value)return{equalsTo:{unequalField:s}}}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return null}}},{key:"required",value:function(e){return ho(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return e.value===!0?null:{required:!0}}},{key:"email",value:function(e){return fp.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){if(ho(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}},{key:"maxLength",value:function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}},{key:"pattern",value:function(t){if(!t)return e.nullValidator;var n=void 0,r=void 0;return"string"==typeof t?(r="^"+t+"$",n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(ho(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(ao);return 0==t.length?null:function(e){return yo(po(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(ao);return 0==t.length?null:function(e){var n=vo(e,t).map(fo);return Promise.all(n).then(yo)}}}]),e}(),pp=new Wa("NgValueAccessor"),vp={provide:pp,useExisting:C(function(){return yp}),multi:!0},yp=function(){function e(t,n){oo(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return op(e,[{key:"writeValue",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();yp.decorators=[{type:os,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[vp]}]}],yp.ctorParameters=function(){return[{type:Ou},{type:ru}]};var _p={provide:pp,useExisting:C(function(){return mp}),multi:!0},mp=function(){function e(t,n){oo(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return op(e,[{key:"writeValue",value:function(e){var t=null==e?"":e;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",t)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();mp.decorators=[{type:os,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[_p]}]}],mp.ctorParameters=function(){return[{type:Ou},{type:ru}]};var gp={provide:pp,useExisting:C(function(){return kp}),multi:!0},kp=function(){function e(t,n){oo(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return op(e,[{key:"writeValue",value:function(e){var t=null==e?"":e;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",t)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();kp.decorators=[{type:os,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[gp]}]}],kp.ctorParameters=function(){return[{type:Ou},{type:ru}]};var bp=function(e){function t(){oo(this,t);var e=ro(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return io(t,e),op(t,[{key:"viewToModelUpdate",value:function(e){}},{key:"validator",get:function(){return go()}},{key:"asyncValidator",get:function(){return go()}}]),t}(ap),wp={provide:pp,useExisting:C(function(){return Ep}),multi:!0},Cp=function(){function e(){oo(this,e),this._accessors=[]}return op(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)}}]),e}();Cp.decorators=[{type:_s}],Cp.ctorParameters=function(){return[]};var Ep=function(){function e(t,n,r,i){oo(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return op(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(bp),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}]),e}();Ep.decorators=[{type:os,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[wp]}]}],Ep.ctorParameters=function(){return[{type:Ou},{type:ru},{type:Cp},{type:Es}]},Ep.propDecorators={name:[{type:us}],formControlName:[{type:us}],value:[{type:us}]};var Op={provide:pp,useExisting:C(function(){return Sp}),multi:!0},Sp=function(){function e(t,n){oo(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return op(e,[{key:"writeValue",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();Sp.decorators=[{type:os,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Op]}]}],Sp.ctorParameters=function(){return[{type:Ou},{type:ru}]};var xp={provide:pp,useExisting:C(function(){return Ap}),multi:!0},Ap=function(){function e(t,n){oo(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=uo}return op(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=ko(t,e);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=n,e(t._getOptionValue(n))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=Array.from(this._optionMap.keys())[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(this._compareWith(this._optionMap.get(a),e))return a}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return null}},{key:"_getOptionValue",value:function(e){var t=bo(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}}]),e}();Ap.decorators=[{type:os,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[xp]}]}],Ap.ctorParameters=function(){return[{type:Ou},{type:ru}]},Ap.propDecorators={compareWith:[{type:us}]};var Pp=function(){function e(t,n,r){oo(this,e),this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}return op(e,[{key:"_setElementValue",value:function(e){this._renderer.setElementProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(ko(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}}]),e}();Pp.decorators=[{type:os,args:[{selector:"option"}]}],Pp.ctorParameters=function(){return[{type:ru},{type:Ou},{type:Ap,decorators:[{type:ys},{type:ks}]}]},Pp.propDecorators={ngValue:[{type:us,args:["ngValue"]}],value:[{type:us,args:["value"]}]};var Vp={provide:pp,useExisting:C(function(){return Tp}),multi:!0},Tp=function(){function e(t,n){oo(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=uo}return op(e,[{key:"writeValue",value:function(e){var t=this;this.value=e;var n=void 0;if(Array.isArray(e)){var r=e.map(function(e){return t._getOptionId(e)});n=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else n=function(e,t){e._setSelected(!1)};this._optionMap.forEach(n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=t._getOptionValue(a.value);r.push(s)}else for(var u=n.options,l=0;l<u.length;l++){var c=u.item(l);if(c.selected){var h=t._getOptionValue(c.value);r.push(h)}}t.value=r,e(r)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=Array.from(this._optionMap.keys())[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(this._compareWith(this._optionMap.get(a)._value,e))return a}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return null}},{key:"_getOptionValue",value:function(e){var t=Co(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}}]),e}();Tp.decorators=[{type:os,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[Vp]}]}],Tp.ctorParameters=function(){return[{type:Ou},{type:ru}]},Tp.propDecorators={compareWith:[{type:us}]};var Np=function(){function e(t,n,r){oo(this,e),this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}return op(e,[{key:"_setElementValue",value:function(e){this._renderer.setElementProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setElementProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(wo(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(wo(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}}]),e}();Np.decorators=[{type:os,args:[{selector:"option"}]}],Np.ctorParameters=function(){return[{type:ru},{type:Ou},{type:Tp,decorators:[{type:ys},{type:ks}]}]},Np.propDecorators={ngValue:[{type:us,args:["ngValue"]}],value:[{type:us,args:["value"]}]};var Dp=[yp,Sp,kp,Ap,Tp,Ep],Mp=function(e){function t(){return oo(this,t),ro(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return io(t,e),op(t,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return Eo(this.name,this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Vo(this._validators)}},{key:"asyncValidator",get:function(){return To(this._asyncValidators)}}]),t}(sp),Ip=function(){function e(t){oo(this,e),
  this._cd=t}return op(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),Rp={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},jp=function(e){function t(e){return oo(this,t),ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return io(t,e),t}(Ip);jp.decorators=[{type:os,args:[{selector:"[formControlName],[ngModel],[formControl]",host:Rp}]}],jp.ctorParameters=function(){return[{type:bp,decorators:[{type:ms}]}]};var Fp=function(e){function t(e){return oo(this,t),ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return io(t,e),t}(Ip);Fp.decorators=[{type:os,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:Rp}]}],Fp.ctorParameters=function(){return[{type:sp,decorators:[{type:ms}]}]};var Hp=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oo(this,t);var n=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.__isAsync=e,n}return io(t,e),op(t,[{key:"emit",value:function(e){rp(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,r){var i=void 0,o=function(e){return null},a=function(){return null};return e&&"object"===(void 0===e?"undefined":ip(e))?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),rp(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"subscribe",this).call(this,i,o,a)}}]),t}(Ha),Lp=function(){function e(t,n){oo(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return op(e,[{key:"setValidators",value:function(e){this.validator=jo(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Fo(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf;this._touched=!0,this._parent&&!t&&this._parent.markAsTouched({onlySelf:t})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf;this._touched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!t&&this._parent._updateTouched({onlySelf:t})}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf;this._pristine=!1,this._parent&&!t&&this._parent.markAsDirty({onlySelf:t})}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf;this._pristine=!0,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!t&&this._parent._updatePristine({onlySelf:t})}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf;this._status="PENDING",this._parent&&!t&&this._parent.markAsPending({onlySelf:t})}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf,n=e.emitEvent;this._status="DISABLED",this._errors=null,this._forEachChild(function(e){e.disable({onlySelf:!0})}),this._updateValue(),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf,n=e.emitEvent;this._status="VALID",this._forEachChild(function(e){e.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n}),this._updateAncestors(t),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"setValue",value:function(e,t){}},{key:"patchValue",value:function(e,t){}},{key:"reset",value:function(e,t){}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf,n=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(n)),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!t&&this._parent.updateValueAndValidity({onlySelf:t,emitEvent:n})}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0},t=e.emitEvent;this._forEachChild(function(e){return e._updateTreeValidity({emitEvent:t})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t})}},{key:"_setInitialStatus",value:function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this._status="PENDING";var n=Ro(this.asyncValidator(this));if(!re(n))throw new Error("expected the following validator to return Promise or Observable: "+this.asyncValidator+". If you are using FormBuilder; did you forget to brace your validators in an array?");this._asyncValidationSubscription=n.subscribe({next:function(n){return t.setErrors(n,{emitEvent:e})}})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.emitEvent;this._errors=e,this._updateControlsErrors(n!==!1)}},{key:"get",value:function(e){return Io(this,e,".")}},{key:"getError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t?this.get(t):this;return n&&n._errors?n._errors[e]:null}},{key:"hasError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this._status=this._calculateStatus(),e&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this._valueChanges=new Hp,this._statusChanges=new Hp}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_updateValue",value:function(){}},{key:"_forEachChild",value:function(e){}},{key:"_anyControls",value:function(e){}},{key:"_allControlsDisabled",value:function(){}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!t&&this._parent._updatePristine({onlySelf:t})}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!t&&this._parent._updateTouched({onlySelf:t})}},{key:"_isBoxedValue",value:function(e){return"object"===(void 0===e?"undefined":ip(e))&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"value",get:function(){return this._value}},{key:"parent",get:function(){return this._parent}},{key:"status",get:function(){return this._status}},{key:"valid",get:function(){return"VALID"===this._status}},{key:"invalid",get:function(){return"INVALID"===this._status}},{key:"pending",get:function(){return"PENDING"==this._status}},{key:"disabled",get:function(){return"DISABLED"===this._status}},{key:"enabled",get:function(){return"DISABLED"!==this._status}},{key:"errors",get:function(){return this._errors}},{key:"pristine",get:function(){return this._pristine}},{key:"dirty",get:function(){return!this.pristine}},{key:"touched",get:function(){return this._touched}},{key:"untouched",get:function(){return!this._touched}},{key:"valueChanges",get:function(){return this._valueChanges}},{key:"statusChanges",get:function(){return this._statusChanges}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Up=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;oo(this,t);var i=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,jo(n),Fo(r)));return i._onChange=[],i._applyFormState(e),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return io(t,e),op(t,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onlySelf,i=n.emitEvent,o=n.emitModelToViewChange,a=n.emitViewToModelChange;this._value=e,this._onChange.length&&o!==!1&&this._onChange.forEach(function(e){return e(t._value,a!==!1)}),this.updateValueAndValidity({onlySelf:r,emitEvent:i})}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onlySelf,r=t.emitEvent;this._applyFormState(e),this.markAsPristine({onlySelf:n}),this.markAsUntouched({onlySelf:n}),this.setValue(this._value,{onlySelf:n,emitEvent:r})}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this._value=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=e}}]),t}(Lp),Gp=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;oo(this,t);var i=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r));return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return io(t,e),op(t,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(e),Object.keys(e).forEach(function(n){t._throwIfControlMissing(n),t.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:r,emitEvent:i})}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onlySelf,i=n.emitEvent;Object.keys(e).forEach(function(n){t.controls[n]&&t.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:r,emitEvent:i})}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onlySelf,r=t.emitEvent;this._forEachChild(function(t,n){t.reset(e[n],{onlySelf:!0,emitEvent:r})}),this.updateValueAndValidity({onlySelf:n,emitEvent:r}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Up?t.value:t.getRawValue(),e})}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this._value=this._reduceValue()}},{key:"_anyControls",value:function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n}},{key:"_allControlsDisabled",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=Object.keys(this.controls)[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var o=r.value;if(this.controls[o].enabled)return!1}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})}}]),t}(Lp),Bp=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;oo(this,t);var i=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r));return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return io(t,e),op(t,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(e),e.forEach(function(e,n){t._throwIfControlMissing(n),t.at(n).setValue(e,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:r,emitEvent:i})}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.onlySelf,i=n.emitEvent;e.forEach(function(e,n){t.at(n)&&t.at(n).patchValue(e,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:r,emitEvent:i})}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onlySelf,r=t.emitEvent;this._forEachChild(function(t,n){t.reset(e[n],{onlySelf:!0,emitEvent:r})}),this.updateValueAndValidity({onlySelf:n,emitEvent:r}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Up?e.value:e.getRawValue()})}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this._value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})}},{key:"_allControlsDisabled",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.controls[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){if(r.value.enabled)return!1}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),t}(Lp),zp={provide:sp,useExisting:C(function(){return qp})},$p=Promise.resolve(null),qp=function(e){function t(e,n){oo(this,t);var r=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._submitted=!1,r.ngSubmit=new Hp,r.form=new Gp({},Vo(e),To(n)),r}return io(t,e),op(t,[{key:"addControl",value:function(e){var t=this;$p.then(function(){var n=t._findContainer(e.path);e._control=n.registerControl(e.name,e.control),Oo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1})})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;$p.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"addFormGroup",value:function(e){var t=this;$p.then(function(){var n=t._findContainer(e.path),r=new Gp({});xo(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;$p.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;$p.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this._submitted=!1}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"submitted",get:function(){return this._submitted}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),t}(sp);qp.decorators=[{type:os,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[zp],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],qp.ctorParameters=function(){return[{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]}]};var Qp={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; let i=index">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},Zp=function(){function e(){oo(this,e)}return op(e,null,[{key:"modelParentException",value:function(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      '+Qp.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+Qp.ngModelWithFormGroup)}},{key:"formGroupNameException",value:function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+Qp.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Qp.ngModelGroup)}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}},{key:"modelGroupParentException",value:function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+Qp.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Qp.ngModelGroup)}}]),e}(),Wp={provide:sp,useExisting:C(function(){return Kp})},Kp=function(e){function t(e,n,r){oo(this,t);var i=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i._parent=e,i._validators=n,i._asyncValidators=r,i}return io(t,e),op(t,[{key:"_checkParentType",value:function(){this._parent instanceof t||this._parent instanceof qp||Zp.modelGroupParentException()}}]),t}(Mp);Kp.decorators=[{type:os,args:[{selector:"[ngModelGroup]",providers:[Wp],exportAs:"ngModelGroup"}]}],Kp.ctorParameters=function(){return[{type:sp,decorators:[{type:ks},{type:gs}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]}]},Kp.propDecorators={name:[{type:us,args:["ngModelGroup"]}]};var Yp={provide:bp,useExisting:C(function(){return Xp})},Jp=Promise.resolve(null),Xp=function(e){function t(e,n,r,i){oo(this,t);var o=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._control=new Up,o._registered=!1,o._composing=!1,o.update=new Hp,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=Mo(o,i),o}return io(t,e),op(t,[{key:"compositionStart",value:function(){this._composing=!0}},{key:"compositionEnd",value:function(){this._composing=!1,this.update.emit(this.viewModel)}},{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),No(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,!this._composing&&this.update.emit(e)}},{key:"_setUpControl",value:function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_isStandalone",value:function(){return!this._parent||this.options&&this.options.standalone}},{key:"_setUpStandalone",value:function(){Oo(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof Kp)&&this._parent instanceof Mp?Zp.formGroupNameException():this._parent instanceof Kp||this._parent instanceof qp||Zp.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Zp.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;Jp.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Jp.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})}},{key:"control",get:function(){return this._control}},{key:"path",get:function(){return this._parent?Eo(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Vo(this._rawValidators)}},{key:"asyncValidator",get:function(){return To(this._rawAsyncValidators)}}]),t}(bp);Xp.decorators=[{type:os,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Yp],exportAs:"ngModel"}]}],Xp.ctorParameters=function(){return[{type:sp,decorators:[{type:ys},{type:ks}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[pp]}]}]},Xp.propDecorators={name:[{type:us}],isDisabled:[{type:us,args:["disabled"]}],model:[{type:us,args:["ngModel"]}],options:[{type:us,args:["ngModelOptions"]}],update:[{type:ls,args:["ngModelChange"]}],compositionStart:[{type:cs,args:["compositionstart"]}],compositionEnd:[{type:cs,args:["compositionend"]}]};var ev=function(){function e(){oo(this,e)}return op(e,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Qp.formControlName)}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+Qp.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Qp.ngModelGroup)}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Qp.formControlName)}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Qp.formGroupName)}},{key:"arrayParentException",value:function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+Qp.formArrayName)}},{key:"disabledAttrWarning",value:function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}}]),e}(),tv={provide:bp,useExisting:C(function(){return nv})},nv=function(e){function t(e,n,r){oo(this,t);var i=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.update=new Hp,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=Mo(i,r),i}return io(t,e),op(t,[{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(Oo(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),No(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){ev.disabledAttrWarning()}},{key:"path",
  get:function(){return[]}},{key:"validator",get:function(){return Vo(this._rawValidators)}},{key:"asyncValidator",get:function(){return To(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),t}(bp);nv.decorators=[{type:os,args:[{selector:"[formControl]",providers:[tv],exportAs:"ngForm"}]}],nv.ctorParameters=function(){return[{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[pp]}]}]},nv.propDecorators={form:[{type:us,args:["formControl"]}],model:[{type:us,args:["ngModel"]}],update:[{type:ls,args:["ngModelChange"]}],isDisabled:[{type:us,args:["disabled"]}]};var rv={provide:sp,useExisting:C(function(){return iv})},iv=function(e){function t(e,n){oo(this,t);var r=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._validators=e,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Hp,r}return io(t,e),op(t,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Oo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){lp.remove(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);xo(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);xo(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this._submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t._control!==n&&(So(t._control,t),n&&Oo(n,t),t._control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=Vo(this._validators);this.form.validator=dp.compose([this.form.validator,e]);var t=To(this._asyncValidators);this.form.asyncValidator=dp.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){this.form||ev.missingFormException()}},{key:"submitted",get:function(){return this._submitted}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),t}(sp);iv.decorators=[{type:os,args:[{selector:"[formGroup]",providers:[rv],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],iv.ctorParameters=function(){return[{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]}]},iv.propDecorators={form:[{type:us,args:["formGroup"]}],ngSubmit:[{type:ls}]};var ov={provide:sp,useExisting:C(function(){return av})},av=function(e){function t(e,n,r){oo(this,t);var i=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i._parent=e,i._validators=n,i._asyncValidators=r,i}return io(t,e),op(t,[{key:"_checkParentType",value:function(){Ho(this._parent)&&ev.groupParentException()}}]),t}(Mp);av.decorators=[{type:os,args:[{selector:"[formGroupName]",providers:[ov]}]}],av.ctorParameters=function(){return[{type:sp,decorators:[{type:ys},{type:ks},{type:gs}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]}]},av.propDecorators={name:[{type:us,args:["formGroupName"]}]};var sv={provide:sp,useExisting:C(function(){return uv})},uv=function(e){function t(e,n,r){oo(this,t);var i=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i._parent=e,i._validators=n,i._asyncValidators=r,i}return io(t,e),op(t,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){Ho(this._parent)&&ev.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return Eo(this.name,this._parent)}},{key:"validator",get:function(){return Vo(this._validators)}},{key:"asyncValidator",get:function(){return To(this._asyncValidators)}}]),t}(sp);uv.decorators=[{type:os,args:[{selector:"[formArrayName]",providers:[sv]}]}],uv.ctorParameters=function(){return[{type:sp,decorators:[{type:ys},{type:ks},{type:gs}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]}]},uv.propDecorators={name:[{type:us,args:["formArrayName"]}]};var lv={provide:bp,useExisting:C(function(){return cv})},cv=function(e){function t(e,n,r,i){oo(this,t);var o=ro(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._added=!1,o.update=new Hp,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=Mo(o,i),o}return io(t,e),op(t,[{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),No(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_checkParentType",value:function(){!(this._parent instanceof av)&&this._parent instanceof Mp?ev.ngModelGroupException():this._parent instanceof av||this._parent instanceof iv||this._parent instanceof uv||ev.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(e){ev.disabledAttrWarning()}},{key:"path",get:function(){return Eo(this.name,this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Vo(this._rawValidators)}},{key:"asyncValidator",get:function(){return To(this._rawAsyncValidators)}},{key:"control",get:function(){return this._control}}]),t}(bp);cv.decorators=[{type:os,args:[{selector:"[formControlName]",providers:[lv]}]}],cv.ctorParameters=function(){return[{type:sp,decorators:[{type:ys},{type:ks},{type:gs}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[cp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[hp]}]},{type:Array,decorators:[{type:ys},{type:ms},{type:vs,args:[pp]}]}]},cv.propDecorators={name:[{type:us,args:["formControlName"]}],model:[{type:us,args:["ngModel"]}],update:[{type:ls,args:["ngModelChange"]}],isDisabled:[{type:us,args:["disabled"]}]};var hv={provide:cp,useExisting:C(function(){return dv}),multi:!0},fv={provide:cp,useExisting:C(function(){return pv}),multi:!0},dv=function(){function e(){oo(this,e)}return op(e,[{key:"validate",value:function(e){return this.required?dp.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&e!==!1&&""+e!="false",this._onChange&&this._onChange()}}]),e}();dv.decorators=[{type:os,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[hv],host:{"[attr.required]":'required ? "" : null'}}]}],dv.ctorParameters=function(){return[]},dv.propDecorators={required:[{type:us}]};var pv=function(e){function t(){return oo(this,t),ro(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return io(t,e),op(t,[{key:"validate",value:function(e){return this.required?dp.requiredTrue(e):null}}]),t}(dv);pv.decorators=[{type:os,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[fv],host:{"[attr.required]":'required ? "" : null'}}]}],pv.ctorParameters=function(){return[]};var vv={provide:cp,useExisting:C(function(){return yv}),multi:!0},yv=function(){function e(){oo(this,e)}return op(e,[{key:"validate",value:function(e){return this._enabled?dp.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"email",set:function(e){this._enabled=""===e||e===!0||"true"===e,this._onChange&&this._onChange()}}]),e}();yv.decorators=[{type:os,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[vv]}]}],yv.ctorParameters=function(){return[]},yv.propDecorators={email:[{type:us}]};var _v={provide:cp,useExisting:C(function(){return mv}),multi:!0},mv=function(){function e(){oo(this,e)}return op(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=dp.minLength(parseInt(this.minlength,10))}}]),e}();mv.decorators=[{type:os,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[_v],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],mv.ctorParameters=function(){return[]},mv.propDecorators={minlength:[{type:us}]};var gv={provide:cp,useExisting:C(function(){return kv}),multi:!0},kv=function(){function e(){oo(this,e)}return op(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=dp.maxLength(parseInt(this.maxlength,10))}}]),e}();kv.decorators=[{type:os,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[gv],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],kv.ctorParameters=function(){return[]},kv.propDecorators={maxlength:[{type:us}]};var bv={provide:cp,useExisting:C(function(){return wv}),multi:!0},wv=function(){function e(){oo(this,e)}return op(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=dp.pattern(this.pattern)}}]),e}();wv.decorators=[{type:os,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[bv],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],wv.ctorParameters=function(){return[]},wv.propDecorators={pattern:[{type:us}]};var Cv=function(){function e(){oo(this,e)}return op(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Gp(this._reduceControls(e),ao(t)?t.validator:null,ao(t)?t.asyncValidator:null)}},{key:"control",value:function(e){return new Up(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}},{key:"array",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Bp(e.map(function(e){return t._createControl(e)}),n,r)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){if(e instanceof Up||e instanceof Gp||e instanceof Bp)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)}}]),e}();Cv.decorators=[{type:_s}],Cv.ctorParameters=function(){return[]};var Ev=(new ds("4.0.0-rc.1"),function e(){oo(this,e)});Ev.decorators=[{type:os,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],Ev.ctorParameters=function(){return[]};var Ov=[Ev,Pp,Np,mp,kp,Sp,yp,Ap,Tp,Ep,jp,Fp,dv,mv,kv,wv,pv,yv],Sv=[Xp,Kp,qp],xv=[nv,iv,cv,av,uv],Av=function e(){oo(this,e)};Av.decorators=[{type:hs,args:[{declarations:Ov,exports:Ov}]}],Av.ctorParameters=function(){return[]};var Pv=function e(){oo(this,e)};Pv.decorators=[{type:hs,args:[{declarations:Sv,providers:[Cp],exports:[Av,Sv]}]}],Pv.ctorParameters=function(){return[]};var Vv=function e(){oo(this,e)};Vv.decorators=[{type:hs,args:[{declarations:[xv],providers:[Cv,Cp],exports:[Av,xv]}]}],Vv.ctorParameters=function(){return[]};var Tv=function(){function e(){this.questions=[]}return e.prototype.toGroup=function(){var e={};return this.questions.forEach(function(t){t.required?e[t.key]=new Up("",dp.required):e[t.key]=new Up("")}),new Gp(e)},e}(),Nv=function(){function e(){}return e}(),Dv=function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Mv=function(e){function t(){var t=e.call(this)||this;return t.controlType="textbox",t}return Dv(t,e),t}(Nv),Iv=function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Rv=function(e){function t(){var t=e.call(this)||this;return t.options=[],t.controlType="dropdown",t}return Iv(t,e),t}(Nv),jv=function(){function e(){this.questionModel=new Tv;var e=new Mv;e.key="lastName",e.text="Last name",e.required=!0,e.order=2,this.questionModel.questions.push(e),e=new Mv,e.key="firstName",e.text="First name",e.required=!0,e.order=1,this.questionModel.questions.push(e),e=new Mv,e.key="emailAddress",e.text="Email",e.required=!1,e.type="email",e.order=3,this.questionModel.questions.push(e);var t=new Rv;t.key="country",t.text="Country",t.options.push({key:"usa",value:"USA"}),t.options.push({key:"germany",value:"Germany"}),t.options.push({key:"canada",value:"Canada"}),t.options.push({key:"australia",value:"Australia"}),t.order=4,this.questionModel.questions.push(t),this.questionModel.questions.sort(function(e,t){return e.order-t.order})}return e}();jv.decorators=[{type:as,args:[{selector:"survey-demo",template:'<div><h1>Survey using Dynamic Form</h1><survey [model]="questionModel"></survey></div>'}]}],jv.ctorParameters=function(){return[]};var Fv=function(){function e(){this.payLoad=null}return e.prototype.ngOnInit=function(){this.form=this.model.toGroup()},e.prototype.onSubmit=function(){this.payLoad=JSON.stringify(this.form.value)},e}();Fv.decorators=[{type:as,args:[{selector:"survey",templateUrl:"./survey.html"}]}],Fv.ctorParameters=function(){return[]},Fv.propDecorators={model:[{type:us}]};var Hv=function(){function e(){}return e.sort=function(e){for(var t=1;t<e.items.length;t++)!function(t){setTimeout(function(){for(var n=e.items[t].val,r=t-1;r>=0&&e.items[r].val>n;)e.items[r+1].val=e.items[r].val,r-=1;e.items[r+1].val=n,e.setCurrent(e.items[r+1])},1e3*t)}(t)},e}(),Lv=function(){function e(){this.list=new Uv,this.list.items=[new Gv(5),new Gv(33),new Gv(5),new Gv(5),new Gv(2),new Gv(-2),new Gv(4),new Gv(88),new Gv(6),new Gv(400),new Gv(1),new Gv(58),new Gv(30)]}return e.prototype.sortList=function(){Hv.sort(this.list)},e}();Lv.decorators=[{type:as,args:[{selector:"insertion-sort",inputs:["list: list"],templateUrl:"./insertion-sort.html"}]}],Lv.ctorParameters=function(){return[]};var Uv=function(){function e(){}return e.prototype.setCurrent=function(e){this.clearAll(),e.current=!0},e.prototype.clearAll=function(){this.items.forEach(function(e){return e.current=!1})},e}(),Gv=function(){function e(e){this.val=e,this.current=!1}return e.prototype.getClass=function(){return this.current?"current-item":null},e}(),Bv=function(){function e(){this.messageSubject=new Ha,console.log("UpgradePubSubService created")}return e.prototype.sendMessage=function(e,t){this.messageSubject.next({message:e,key:t})},e.prototype.getMessages=function(){return this.messageSubject.asObservable()},e}(),zv=function(){function e(e){this.service=e}return e.prototype.ngOnInit=function(){var e=this;this.service.getMessages().filter(function(e){return"old"===e.key}).subscribe(function(t){e.message=t.message})},e.prototype.sendMessage=function(){this.service.sendMessage("Hello old Angular! This is new Angular","new")},e}();zv.decorators=[{type:as,args:[{template:'<div>{{message}}</div>\n             <button (click)="sendMessage()">Send Message From New Angular</button> \n             '}]}],zv.ctorParameters=function(){return[{type:Bv}]};var $v=function(){function e(){}return e.prototype.ngDoBootstrap=function(){},e}();$v.decorators=[{type:hs,args:[{declarations:[Yd,Lv,jv,Fv,Kd,zv],entryComponents:[Yd,Lv,jv,Fv,Kd,zv],imports:[_d,Fd,Vv],providers:[Bv]}]}],$v.ctorParameters=function(){return[]};var qv=[],Qv=ze({encapsulation:2,styles:qv,data:{animation:[]}}),Zv=(ze({encapsulation:2,styles:[],data:{animation:[]}}),Mt("insertion-sort",Lv,Go)),Wv=[],Kv=ze({encapsulation:2,styles:Wv,data:{animation:[]}}),Yv=(ze({encapsulation:2,styles:[],data:{animation:[]}}),Mt("algorithms",Yd,zo)),Jv=[],Xv=ze({encapsulation:2,styles:Jv,data:{animation:[]}}),ey=(ze({encapsulation:2,styles:[],data:{animation:[]}}),Mt("survey",Fv,Jo)),ty=[],ny=ze({encapsulation:2,styles:ty,data:{animation:[]}}),ry=(ze({encapsulation:2,styles:[],data:{animation:[]}}),Mt("survey-demo",jv,ea)),iy=[],oy=ze({encapsulation:2,styles:iy,data:{animation:[]}}),ay=(ze({encapsulation:2,styles:[],data:{animation:[]}}),Mt("editor",Kd,ra)),sy=[],uy=ze({encapsulation:2,styles:sy,data:{animation:[]}}),ly=(ze({encapsulation:2,styles:[],data:{animation:[]}}),Mt("ng-component",zv,oa)),cy=function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},hy=function(e){function t(t){return e.call(this,t,[Yv,Zv,ry,ey,ay,ly],[])||this}return cy(t,e),Object.defineProperty(t.prototype,"_LOCALE_ID_7",{get:function(){return null==this.__LOCALE_ID_7&&(this.__LOCALE_ID_7=mr(this.parent.get(bl,null))),this.__LOCALE_ID_7},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_NgLocalization_8",{get:function(){return null==this.__NgLocalization_8&&(this.__NgLocalization_8=new $c(this._LOCALE_ID_7)),this.__NgLocalization_8},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ApplicationRef_14",{get:function(){return null==this.__ApplicationRef_14&&(this.__ApplicationRef_14=this._ɵf_13),this.__ApplicationRef_14},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_Compiler_15",{get:function(){return null==this.__Compiler_15&&(this.__Compiler_15=new tu),this.__Compiler_15},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_APP_ID_16",{get:function(){return null==this.__APP_ID_16&&(this.__APP_ID_16=ie()),this.__APP_ID_16},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_HAMMER_GESTURE_CONFIG_17",{get:function(){return null==this.__HAMMER_GESTURE_CONFIG_17&&(this.__HAMMER_GESTURE_CONFIG_17=new If),this.__HAMMER_GESTURE_CONFIG_17},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_EVENT_MANAGER_PLUGINS_18",{get:function(){return null==this.__EVENT_MANAGER_PLUGINS_18&&(this.__EVENT_MANAGER_PLUGINS_18=[new Nf(this.parent.get(Xh)),new Hf(this.parent.get(Xh)),new Rf(this.parent.get(Xh),this._HAMMER_GESTURE_CONFIG_17)]),this.__EVENT_MANAGER_PLUGINS_18},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_EventManager_19",{get:function(){return null==this.__EventManager_19&&(this.__EventManager_19=new lf(this._EVENT_MANAGER_PLUGINS_18,this.parent.get(ou))),this.__EventManager_19},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_AnimationDriver_21",{get:function(){return null==this.__AnimationDriver_21&&(this.__AnimationDriver_21=zi()),this.__AnimationDriver_21},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ɵDomRootRenderer_22",{get:function(){return null==this.__ɵDomRootRenderer_22&&(this.__ɵDomRootRenderer_22=new yf(this.parent.get(Xh),this._EventManager_19,this._ɵDomSharedStylesHost_20,this._AnimationDriver_21,this._APP_ID_16)),this.__ɵDomRootRenderer_22},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_RootRenderer_23",{get:function(){return null==this.__RootRenderer_23&&(this.__RootRenderer_23=Ai(this._ɵDomRootRenderer_22,this.parent.get(Vf,null),this.parent.get(Ju,null))),this.__RootRenderer_23},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_DomSanitizer_24",{get:function(){return null==this.__DomSanitizer_24&&(this.__DomSanitizer_24=new sd(this.parent.get(Xh))),this.__DomSanitizer_24},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_Sanitizer_25",{get:function(){return null==this.__Sanitizer_25&&(this.__Sanitizer_25=this._DomSanitizer_24),this.__Sanitizer_25},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ɵz_26",{get:function(){return null==this.__ɵz_26&&(this.__ɵz_26=new au(this.parent.get(ou))),this.__ɵz_26},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ɵViewUtils_27",{get:function(){return null==this.__ɵViewUtils_27&&(this.__ɵViewUtils_27=new Tu(this._RootRenderer_23,this._Sanitizer_25,this._ɵz_26)),this.__ɵViewUtils_27},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_IterableDiffers_28",{get:function(){return null==this.__IterableDiffers_28&&(this.__IterableDiffers_28=yr()),this.__IterableDiffers_28},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_KeyValueDiffers_29",{get:function(){return null==this.__KeyValueDiffers_29&&(this.__KeyValueDiffers_29=_r()),this.__KeyValueDiffers_29},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ɵDomRendererFactoryV2_30",{get:function(){return null==this.__ɵDomRendererFactoryV2_30&&(this.__ɵDomRendererFactoryV2_30=new Cf(this._EventManager_19,this._ɵDomSharedStylesHost_20)),this.__ɵDomRendererFactoryV2_30},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_RendererFactoryV2_31",{get:function(){return null==this.__RendererFactoryV2_31&&(this.__RendererFactoryV2_31=this._ɵDomRendererFactoryV2_30),this.__RendererFactoryV2_31},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ɵSharedStylesHost_32",{get:function(){return null==this.__ɵSharedStylesHost_32&&(this.__ɵSharedStylesHost_32=this._ɵDomSharedStylesHost_20),this.__ɵSharedStylesHost_32},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_Meta_33",{get:function(){return null==this.__Meta_33&&(this.__Meta_33=new tf(this.parent.get(Xh))),this.__Meta_33},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_Title_34",{get:function(){return null==this.__Title_34&&(this.__Title_34=new af(this.parent.get(Xh))),this.__Title_34},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"__injector_35",{get:function(){return null==this.___injector_35&&(this.___injector_35=Ji()),this.___injector_35},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"__rootScope_36",{get:function(){return null==this.___rootScope_36&&(this.___rootScope_36=Xi(this.__injector_35)),this.___rootScope_36},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"__compile_37",{get:function(){return null==this.___compile_37&&(this.___compile_37=eo(this.__injector_35)),this.___compile_37},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"__parse_38",{get:function(){return null==this.___parse_38&&(this.___parse_38=to(this.__injector_35)),this.___parse_38},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ɵf_39",{get:function(){return null==this.__ɵf_39&&(this.__ɵf_39=new xd),this.__ɵf_39},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_FormBuilder_40",{get:function(){return null==this.__FormBuilder_40&&(this.__FormBuilder_40=new Cv),this.__FormBuilder_40},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_ɵi_41",{get:function(){return null==this.__ɵi_41&&(this.__ɵi_41=new Cp),this.__ɵi_41},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_UpgradePubSubService_42",{get:function(){return null==this.__UpgradePubSubService_42&&(this.__UpgradePubSubService_42=new Bv),this.__UpgradePubSubService_42},enumerable:!0,configurable:!0}),t.prototype.createInternal=function(){return this._CommonModule_0=new Mh,this._ApplicationModule_1=new _c,this._BrowserModule_2=new _d(this.parent.get(_d,null)),this._UpgradeModule_3=new Fd(this,this.parent.get(ou)),this._ɵba_4=new Av,this._ReactiveFormsModule_5=new Vv,this._AngularModule_6=new $v,this._ErrorHandler_9=Gi(),this._APP_INITIALIZER_10=[gr],this._ApplicationInitStatus_11=new Zs(this._APP_INITIALIZER_10),this._Testability_12=new zu(this.parent.get(ou)),this._ɵf_13=new nl(this.parent.get(ou),this.parent.get(eu),this,this._ErrorHandler_9,this,this._ApplicationInitStatus_11,this.parent.get($u,null),this._Testability_12),this._ɵDomSharedStylesHost_20=new ff(this.parent.get(Xh)),this._AngularModule_6},t.prototype.getInternal=function(e,t){return e===Mh?this._CommonModule_0:e===_c?this._ApplicationModule_1:e===_d?this._BrowserModule_2:e===Fd?this._UpgradeModule_3:e===Av?this._ɵba_4:e===Vv?this._ReactiveFormsModule_5:e===$v?this._AngularModule_6:e===bl?this._LOCALE_ID_7:e===zc?this._NgLocalization_8:e===As?this._ErrorHandler_9:e===Qs?this._APP_INITIALIZER_10:e===Zs?this._ApplicationInitStatus_11:e===zu?this._Testability_12:e===nl?this._ɵf_13:e===tl?this._ApplicationRef_14:e===tu?this._Compiler_15:e===Ws?this._APP_ID_16:e===Mf?this._HAMMER_GESTURE_CONFIG_17:e===uf?this._EVENT_MANAGER_PLUGINS_18:e===lf?this._EventManager_19:e===ff?this._ɵDomSharedStylesHost_20:e===Hh?this._AnimationDriver_21:e===vf?this._ɵDomRootRenderer_22:e===Su?this._RootRenderer_23:e===ad?this._DomSanitizer_24:e===Vu?this._Sanitizer_25:e===au?this._ɵz_26:e===Tu?this._ɵViewUtils_27:e===yu?this._IterableDiffers_28:e===_u?this._KeyValueDiffers_29:e===Cf?this._ɵDomRendererFactoryV2_30:e===xu?this._RendererFactoryV2_31:e===hf?this._ɵSharedStylesHost_32:e===tf?this._Meta_33:e===af?this._Title_34:"$injector"===e?this.__injector_35:"$rootScope"===e?this.__rootScope_36:"$compile"===e?this.__compile_37:"$parse"===e?this.__parse_38:e===xd?this._ɵf_39:e===Cv?this._FormBuilder_40:e===Cp?this._ɵi_41:e===Bv?this._UpgradePubSubService_42:t},t.prototype.destroyInternal=function(){this._ɵf_13.ngOnDestroy(),this._ɵDomSharedStylesHost_20.ngOnDestroy()},t}(ol),fy=new rl(hy,$v);angular.module("angular-legacy").directive("algorithms",Wi({component:Yd})),angular.module("angular-legacy").directive("survey",Wi({component:jv})),angular.module("angular-legacy").directive("editor",Wi({component:Kd})),angular.module("angular-legacy").directive("message",Wi({component:zv})),angular.module("angular-legacy").service("messageService",function(e){var t=function(t){return t.get(e)};return t.$inject=[Cd],t}(Bv)),yd().bootstrapModuleFactory(fy).then(function(e){e.injector.get(Fd).bootstrap(document.body,["angular-legacy"])})}();
  //# sourceMappingURL=upgrade-build.js.map
  