!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return Object(i.a)(e(n,o)).pipe(Object(r.a)(function(e,r){return t(n,e,o,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;p(this,e),this.project=t,this.concurrent=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){u(n,e);var t=c(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return p(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return m(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.b)},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n("n6bG"),i=n("gRHU"),o=n("quSY"),a=n("2QA8"),l=n("2fFW"),h=n("NJ4a"),d=function(e){u(n,e);var t=c(n);function n(e,r,o){var a;switch(p(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!e){a.destination=i.a;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(f(a))):(a.syncErrorThrowable=!0,a.destination=new y(f(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new y(f(a),e,r,o)}return a}return m(n,[{key:a.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,s(v(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(o.a),y=function(e){u(n,e);var t=c(n);function n(e,o,a,s){var u,l;p(this,n),(u=t.call(this))._parentSubscriber=e;var c=f(u);return Object(r.a)(o)?l=o:o&&(l=o.next,a=o.error,s=o.complete,o!==i.a&&(c=Object.create(o),Object(r.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(f(u)))),u._context=c,u._next=l,u._error=a,u._complete=s,u}return m(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(h.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(h.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};l.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),l.a.useDeprecatedSynchronousErrorHandling)throw n;Object(h.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!l.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return l.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(h.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(d)},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("HDdC"),i=n("SeVD"),o=n("quSY"),a=n("kJWO"),s=n("jZKg"),u=n("Lhse"),l=n("c2HN"),c=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[a.a]}(e))return function(e,t){return new r.a(function(n){var r=new o.a;return r.add(t.schedule(function(){var i=e[a.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Object(l.a)(e))return function(e,t){return new r.a(function(n){var r=new o.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if(Object(c.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[u.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,i=new o.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[u.a](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r,i=n("7o/Q"),o=n("2QA8"),a=n("gRHU"),s=n("kJWO"),u=n("SpAZ"),l=n("2fFW"),c=((r=function(){function e(t){p(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return m(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new i.a(e,t,n):new i.a(a.a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,o=t.isStopped;if(n||o)return!1;e=r&&r instanceof i.a?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5+tZ");function i(e,t){return Object(r.a)(e,t,1)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},fXoL:function(r,i,l){"use strict";l.d(i,"a",function(){return cn}),l.d(i,"b",function(){return gs}),l.d(i,"c",function(){return ds}),l.d(i,"d",function(){return hs}),l.d(i,"e",function(){return fs}),l.d(i,"f",function(){return hu}),l.d(i,"g",function(){return tu}),l.d(i,"h",function(){return ka}),l.d(i,"i",function(){return As}),l.d(i,"j",function(){return Zo}),l.d(i,"k",function(){return ks}),l.d(i,"l",function(){return Yo}),l.d(i,"m",function(){return kr}),l.d(i,"n",function(){return Za}),l.d(i,"o",function(){return Zi}),l.d(i,"p",function(){return mn}),l.d(i,"q",function(){return ln}),l.d(i,"r",function(){return lo}),l.d(i,"s",function(){return pa}),l.d(i,"t",function(){return ya}),l.d(i,"u",function(){return bs}),l.d(i,"v",function(){return Ra}),l.d(i,"w",function(){return ru}),l.d(i,"x",function(){return ja}),l.d(i,"y",function(){return Gs}),l.d(i,"z",function(){return Ps}),l.d(i,"A",function(){return gn}),l.d(i,"B",function(){return ms}),l.d(i,"C",function(){return ys}),l.d(i,"D",function(){return ea}),l.d(i,"E",function(){return $o}),l.d(i,"F",function(){return Cr}),l.d(i,"G",function(){return na}),l.d(i,"H",function(){return vr}),l.d(i,"I",function(){return bn}),l.d(i,"J",function(){return au}),l.d(i,"K",function(){return Oa}),l.d(i,"L",function(){return Us}),l.d(i,"M",function(){return hn}),l.d(i,"N",function(){return ra}),l.d(i,"O",function(){return Ia}),l.d(i,"P",function(){return X}),l.d(i,"Q",function(){return Js}),l.d(i,"R",function(){return Ws}),l.d(i,"S",function(){return lu}),l.d(i,"T",function(){return qs}),l.d(i,"U",function(){return _s}),l.d(i,"V",function(){return Ji}),l.d(i,"W",function(){return Bo}),l.d(i,"X",function(){return fr}),l.d(i,"Y",function(){return Gn}),l.d(i,"Z",function(){return Ln}),l.d(i,"ab",function(){return Mn}),l.d(i,"bb",function(){return Bn}),l.d(i,"cb",function(){return zn}),l.d(i,"db",function(){return qn}),l.d(i,"eb",function(){return Vn}),l.d(i,"fb",function(){return Mo}),l.d(i,"gb",function(){return uu}),l.d(i,"hb",function(){return qo}),l.d(i,"ib",function(){return zo}),l.d(i,"jb",function(){return Un}),l.d(i,"kb",function(){return ne}),l.d(i,"lb",function(){return vo}),l.d(i,"mb",function(){return Oo}),l.d(i,"nb",function(){return To}),l.d(i,"ob",function(){return Uo}),l.d(i,"pb",function(){return ze}),l.d(i,"qb",function(){return R}),l.d(i,"rb",function(){return Hn}),l.d(i,"sb",function(){return Fe}),l.d(i,"tb",function(){return ai}),l.d(i,"ub",function(){return mo}),l.d(i,"vb",function(){return ss}),l.d(i,"wb",function(){return de}),l.d(i,"xb",function(){return be}),l.d(i,"yb",function(){return F}),l.d(i,"zb",function(){return H}),l.d(i,"Ab",function(){return me}),l.d(i,"Bb",function(){return ke}),l.d(i,"Cb",function(){return bo}),l.d(i,"Db",function(){return Co}),l.d(i,"Eb",function(){return Eo}),l.d(i,"Fb",function(){return So}),l.d(i,"Gb",function(){return Do}),l.d(i,"Hb",function(){return xn}),l.d(i,"Ib",function(){return sn}),l.d(i,"Jb",function(){return cs}),l.d(i,"Kb",function(){return xo}),l.d(i,"Lb",function(){return us}),l.d(i,"Mb",function(){return ko}),l.d(i,"Nb",function(){return Ro}),l.d(i,"Ob",function(){return Wa}),l.d(i,"Pb",function(){return as}),l.d(i,"Qb",function(){return yr}),l.d(i,"Rb",function(){return pr}),l.d(i,"Sb",function(){return ge}),l.d(i,"Tb",function(){return _o}),l.d(i,"Ub",function(){return Po}),l.d(i,"Vb",function(){return Io}),l.d(i,"Wb",function(){return No});var h=l("XNiG"),d=l("quSY"),y=l("HDdC"),g=l("z+Ro"),_=l("bHdf"),b=l("yCtX"),k=l("7o/Q");function w(){return function(e){return e.lift(new E(e))}}var S,E=function(){function e(t){p(this,e),this.connectable=t}return m(e,[{key:"call",value: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){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).connectable=r,i}return m(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(k.a),T=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return m(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d.a).add(this.source.subscribe(new x(this.getSubject(),this))),e.closed&&(this._connection=null,e=d.a.EMPTY)),e}},{key:"refCount",value:function(){return w()(this)}}]),n}(y.a),O={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(S=T.prototype)._subscribe},_isComplete:{value:S._isComplete,writable:!0},getSubject:{value:S.getSubject},connect:{value:S.connect},refCount:{value:S.refCount}},x=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).connectable=r,i}return m(n,[{key:"_error",value:function(e){this._unsubscribe(),s(v(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),s(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(h.b);function A(){return new h.a}function j(e){for(var t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function R(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(R).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function P(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var I=j({__forward_ref__:j});function N(e){return e.__forward_ref__=N,e.toString=function(){return R(this())},e}function D(e){return"function"==typeof(t=e)&&t.hasOwnProperty(I)&&t.__forward_ref__===N?e():e;var t}function F(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function H(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function L(e){return U(e,z)||U(e,B)}function U(e,t){return e.hasOwnProperty(t)?e[t]:null}function M(e){return e&&(e.hasOwnProperty(V)||e.hasOwnProperty(Q))?e[V]:null}var q,z=j({"\u0275prov":j}),V=j({"\u0275inj":j}),B=j({ngInjectableDef:j}),Q=j({ngInjectorDef:j}),K=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function W(e){var t=q;return q=e,t}function Z(e,t,n){var r=L(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&K.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(R(e),"]"))}function G(e){return{toString:e}.toString()}var J=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),X=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Y="undefined"!=typeof globalThis&&globalThis,$="undefined"!=typeof window&&window,ee="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,te="undefined"!=typeof global&&global,ne=Y||te||$||ee,re={},ie=[],oe=j({"\u0275cmp":j}),ae=j({"\u0275dir":j}),se=j({"\u0275pipe":j}),ue=j({"\u0275mod":j}),le=j({"\u0275loc":j}),ce=j({"\u0275fac":j}),he=j({__NG_ELEMENT_ID__:j}),fe=0;function de(e){return G(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===J.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||X.Emulated,id:"c",styles:e.styles||ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=fe++,n.inputs=_e(e.inputs,t),n.outputs=_e(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(ve)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(pe)}:null,n})}function ve(e){return we(e)||function(e){return e[ae]||null}(e)}function pe(e){return function(e){return e[se]||null}(e)}var ye={};function me(e){var t={type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&G(function(){ye[e.id]=e.type}),t}function ge(e,t){return G(function(){var n=Se(e,!0);n.declarations=t.declarations||ie,n.imports=t.imports||ie,n.exports=t.exports||ie})}function _e(e,t){if(null==e)return re;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var be=de;function ke(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function we(e){return e[oe]||null}function Se(e,t){var n=e[ue]||null;if(!n&&!0===t)throw new Error("Type ".concat(R(e)," does not have '\u0275mod' property."));return n}function Ee(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ce(e){return Array.isArray(e)&&!0===e[1]}function Te(e){return 0!=(8&e.flags)}function Oe(e){return 2==(2&e.flags)}function xe(e){return 1==(1&e.flags)}function Ae(e){return null!==e.template}function je(e,t){return e.hasOwnProperty(ce)?e[ce]:null}var Re=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,r))).code=e,i}return n}(o(Error));function Pe(e){return"string"==typeof e?e:null==e?"":String(e)}function Ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Pe(e)}function Ne(e,t){var n=t?" in "+t:"";throw new Re("201","No provider for ".concat(Ie(e)," found").concat(n))}var De=function(){function e(t,n,r){p(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return m(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Fe(){return He}function He(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ue),Le}function Le(){var e=Me(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===re)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ue(e,t,n,r){var i=Me(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:re,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new De(u&&u.currentValue,t,a===re),e[r]=t}function Me(e){return e.__ngSimpleChanges__||null}Fe.ngInherit=!0;var qe=void 0;function ze(e){qe=e}function Ve(e){return!!e.listen}var Be={createRenderer:function(e,t){return void 0!==qe?qe:"undefined"!=typeof document?document:void 0}};function Qe(e){for(;Array.isArray(e);)e=e[0];return e}function Ke(e,t){return Qe(t[e.index])}function We(e,t){return e.data[t]}function Ze(e,t){var n=t[e];return Ee(n)?n:n[0]}function Ge(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Je(e){return 4==(4&e[2])}function Xe(e){return 128==(128&e[2])}function Ye(e,t){return null==t?null:e[t]}function $e(e){e[18]=0}function et(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var tt={lFrame:_t(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function nt(){return tt.bindingsEnabled}function rt(){return tt.lFrame.lView}function it(){return tt.lFrame.tView}function ot(){for(var e=at();null!==e&&64===e.type;)e=e.parent;return e}function at(){return tt.lFrame.currentTNode}function st(e,t){var n=tt.lFrame;n.currentTNode=e,n.isParent=t}function ut(){return tt.lFrame.isParent}function lt(){return tt.isInCheckNoChangesMode}function ct(e){tt.isInCheckNoChangesMode=e}function ht(){return tt.lFrame.bindingIndex++}function ft(e){tt.lFrame.currentDirectiveIndex=e}function dt(){return tt.lFrame.currentQueryIndex}function vt(e){tt.lFrame.currentQueryIndex=e}function pt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function yt(e,t,n){if(n&K.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&K.Host||(r=pt(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var o=tt.lFrame=gt();return o.currentTNode=t,o.lView=e,!0}function mt(e){var t=gt(),n=e[1];tt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gt(){var e=tt.lFrame,t=null===e?null:e.child;return null===t?_t(e):t}function _t(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function bt(){var e=tt.lFrame;return tt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kt=bt;function wt(){var e=bt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function St(){return tt.lFrame.selectedIndex}function Et(e){tt.lFrame.selectedIndex=e}function Ct(){var e=tt.lFrame;return We(e.tView,e.selectedIndex)}function Tt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Pt=function e(t,n,r){p(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function It(e,t,n){for(var r=Ve(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var qt=!0;function zt(e){var t=qt;return qt=e,t}var Vt=0;function Bt(e,t){var n=Kt(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Qt(r.data,e),Qt(t,null),Qt(r.blueprint,null));var i=Wt(e,t),o=e.injectorIndex;if(Lt(i))for(var a=Ut(i),s=Mt(i,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=i,o}function Qt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Wt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Zt(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(he)&&(r=n[he]),null==r&&(r=n[he]=Vt++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:K.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(he)?e[he]:void 0;return"number"==typeof t?t>=0?255&t:$t:t}(n);if("function"==typeof o){if(!yt(t,e,r))return r&K.Host?Gt(i,n,r):Jt(t,n,r,i);try{var a=o();if(null!=a||r&K.Optional)return a;Ne(n)}finally{kt()}}else if("number"==typeof o){var s=null,u=Kt(e,t),l=-1,c=r&K.Host?t[16][6]:null;for((-1===u||r&K.SkipSelf)&&(-1!==(l=-1===u?Wt(e,t):t[u+8])&&on(r,!1)?(s=t[1],u=Ut(l),t=Mt(l,t)):u=-1);-1!==u;){var h=t[1];if(rn(o,u,h.data)){var f=en(u,t,n,s,r,c);if(f!==Yt)return f}-1!==(l=t[u+8])&&on(r,t[1].data[u+8]===c)&&rn(o,u,t)?(s=h,u=Ut(l),t=Mt(l,t)):u=-1}}}return Jt(t,n,r,i)}var Yt={};function $t(){return new an(ot(),rt())}function en(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=tn(s,a,n,null==r?Oe(s)&&qt:r!=a&&0!=(3&s.type),i&K.Host&&o===s);return null!==u?nn(t,a,u,s):Yt}function tn(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=i?s+l:e.directiveEnd,h=r?s:s+l;h=u&&f.type===n)return h}if(i){var d=a[u];if(d&&Ae(d)&&d.type===n)return u}return null}function nn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Pt){var a=i;a.resolving&&function(e,t){throw new Re("200","Circular dependency in DI detected for "+e)}(Ie(o[n]));var s=zt(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?W(a.injectImpl):null;yt(e,r,K.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=He(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&W(u),zt(s),a.resolving=!1,kt()}}return i}function rn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var yn,mn=un("Inject",function(e){return{token:e}}),gn=un("Optional"),_n=un("Self"),bn=un("SkipSelf"),kn=un("Host"),wn={},Sn=/\n/gm,En=j({provide:String,useValue:j}),Cn=void 0;function Tn(e){var t=Cn;return Cn=e,t}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default;if(void 0===Cn)throw new Error("inject() must be called from an injection context");return null===Cn?Z(e,void 0,t):Cn.get(e,t&K.Optional?null:void 0,t)}function xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default;return(q||On)(D(e),t)}function An(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();rr.hasOwnProperty(t)&&!$n.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(hr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}]),e}(),lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cr=/([^\#-~ |!])/g;function hr(e){return e.replace(/&/g,"&").replace(lr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(cr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function fr(e,t){var n=null;try{Yn=Yn||function(e){var t=new Kn(e);return function(){try{return!!(new window.DOMParser).parseFromString(jn(""),"text/html")}catch(e){return!1}}()?new Qn(t):t}(e);var r=t?String(t):"";n=Yn.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Yn.getInertBodyElement(r)}while(r!==o);return(new ur).sanitizeChildren(dr(n)||n)}finally{if(n)for(var a=dr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function dr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function pr(e){var t=mr();return t?t.sanitize(vr.URL,e)||"":Ln(e,"URL")?Hn(e):Gn(Pe(e))}function yr(e){var t=mr();if(t)return t.sanitize(vr.RESOURCE_URL,e)||"";if(Ln(e,"ResourceURL"))return Hn(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function mr(){var e=rt();return e&&e[12]}function gr(e){return e.ngDebugContext}function _r(e){return e.ngOriginalError}function br(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&(e[r-1][4]=i[4]);var a=pn(e,10+t);Qr(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Dr(e,t){if(!(256&t[2])){var n=t[11];Ve(n)&&n.destroyNode&&Qr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Fr(e[1],e);for(;t;){var n=null;if(Ee(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Ee(t)&&Fr(t[1],t),t=t[3];null===t&&(t=e),Ee(t)&&Fr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Fr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=n[o+1]];n[o].call(c)}if(null!==r){for(var h=i+1;ho?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==Gr(f,l,0)||2&r&&l!==h){if(ei(r))return!1;a=!0}}}}else{if(!a&&!ei(r)&&!ei(u))return!1;if(a&&ei(u))continue;a=!1,r=u|1&r}}return ei(r)||a}function ei(e){return 0==(1&e)}function ti(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||ei(a)||(t+=ri(o,i),i=""),r=a,o=o||!ei(r);n++}return""!==i&&(t+=ri(o,i)),t}var oi={};function ai(e){si(it(),rt(),St()+e,lt())}function si(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Ot(t,i,n)}else{var o=e.preOrderHooks;null!==o&&xt(t,o,0,n)}Et(n)}function ui(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&si(e,t,20,lt()),n(r,i)}finally{Et(o)}}function yi(e,t,n){nt()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Bt(n,t),wr(r,t);for(var a=n.initialInputs,s=i;s2&&void 0!==arguments[2]?arguments[2]:Ke,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function Ci(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ti(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Oi(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&Di(n)}}function Di(e){for(var t=xr(e);null!==t;t=Ar(t))for(var n=10;n0&&Di(r)}var o=e[1].components;if(null!==o)for(var a=0;a0&&Di(s)}}function Fi(e,t){var n=Ze(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:wn;if(t===wn){var n=new Error("NullInjectorError: No provider for ".concat(R(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Ji=new ln("Set Injector scope."),Xi={},Yi={},$i=[],eo=void 0;function to(){return void 0===eo&&(eo=new Gi),eo}function no(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=arguments.length>3?arguments[3]:void 0;return new ro(e,n,t||to(),r)}var ro=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&dn(n,function(e){return i.processProvider(e,t,n)}),dn([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(Zi,oo(void 0,this));var s=this.records.get(Ji);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:R(t))}return m(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K.Default;this.assertNotDestroyed();var r,i=Tn(this);try{if(!(n&K.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof ln)&&L(e);o=a&&this.injectableDefInScope(a)?oo(io(e),Xi):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&K.Self?to():this.parent).get(e,t=n&K.Optional&&t===wn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(R(e)),i)throw s;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=R(t);if(Array.isArray(t))i=t.map(R).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):R(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Sn,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Tn(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(R(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=D(e)))return!1;var i=M(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=M(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{dn(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;dn(i,function(e){return r.processProvider(e,n,i||$i)})},c=0;c0){var n=function(e,t){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function ao(e){return null!==e&&"object"==typeof e&&En in e}function so(e){return"function"==typeof e}var uo=function(e,t,n){return 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=arguments.length>3?arguments[3]:void 0,i=no(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},lo=function(){var e=function(){function e(){p(this,e)}return m(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?uo(e,t,""):uo(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=wn,e.NULL=new Gi,e.\u0275prov=F({token:e,providedIn:"any",factory:function(){return xn(Zi)}}),e.__NG_ELEMENT_ID__=-1,e}();function co(e,t){Tt(Ge(e)[1],ot())}var ho=null;function fo(){if(!ho){var e=ne.Symbol;if(e&&e.iterator)ho=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:K.Default,n=rt();return null===n?xn(e,t):Xt(ot(),n,D(e),t)}function ko(e,t,n){var r=rt();return yo(r,ht(),t)&&wi(it(),Ct(),r,e,t,r[11],n,!1),ko}function wo(e,t,n,r,i){var o=i?"class":"style";Ki(e,n,t.inputs[o],o,r)}function So(e,t,n,r){var i=rt(),o=it(),a=20+e,s=i[11],u=i[a]=Pr(s,t,tt.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=ci(t,e,2,i,Ye(s,o));return Si(t,n,u,Ye(s,a)),null!==u.attrs&&Wi(u,u.attrs,!1),null!==u.mergedAttrs&&Wi(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,i,0,t,n,r):o.data[a];st(l,!0);var c=l.mergedAttrs;null!==c&&It(s,u,c);var h=l.classes;null!==h&&Zr(s,u,h);var f=l.styles;null!==f&&Wr(s,u,f),64!=(64&l.flags)&&qr(o,i,u,l),0===tt.lFrame.elementDepthCount&&wr(u,i),tt.lFrame.elementDepthCount++,xe(l)&&(yi(o,i,l),function(e,t,n){if(Te(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=rt(),o=it(),a=ot();return function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=xe(r),l=e.firstCreatePass&&Bi(e),c=Vi(t),h=!0;if(3&r.type){var f=Ke(r,t),d=s?s(f):re,v=d.target||f,p=c.length,y=s?function(e){return s(Qe(e[r.index])).target}:r.index;if(Ve(n)){var m=null;if(!s&&u&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=jo(r,t,o,!1);var g=n.listen(d.name||v,i,o);c.push(o,g),l&&l.push(i,y,p,p+1)}}else o=jo(r,t,o,!0),v.addEventListener(i,o,a),c.push(o),l&&l.push(i,y,p,a)}else o=jo(r,t,o,!1);var _,b=r.outputs;if(h&&null!==b&&(_=b[i])){var k=_.length;if(k)for(var w=0;w1&&void 0!==arguments[1]?arguments[1]:"",n=rt(),r=it(),i=e+20,o=r.firstCreatePass?ci(r,i,1,t,null):r.data[i],a=n[i]=function(e,t){return Ve(e)?e.createText(t):e.createTextNode(t)}(n[11],t);qr(r,n,a,o),st(o,!1)}function Io(e){return No("",e,""),Io}function No(e,t,n){var r=rt(),i=go(r,e,t,n);return i!==oi&&function(e,t,n){var r=function(e,t){return Qe(t[e])}(t,e);!function(e,t,n){Ve(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}(r,St(),i),No}function Do(e,t,n){var r=rt();return yo(r,ht(),t)&&wi(it(),Ct(),r,e,t,r[11],n,!0),Do}var Fo=void 0,Ho=["en",[["a","p"],["AM","PM"],Fo],[["AM","PM"],Fo,Fo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Fo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Fo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Fo,"{1} 'at' {0}",Fo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Lo={};function Uo(e,t,n){"string"!=typeof t&&(n=t,t=e[Bo.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Lo[t]=e,n&&(Lo[t][Bo.ExtraData]=n)}function Mo(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Vo(t);if(n)return n;var r=t.split("-")[0];if(n=Vo(r))return n;if("en"===r)return Ho;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function qo(e){return Mo(e)[Bo.CurrencyCode]||null}function zo(e){return Mo(e)[Bo.PluralCase]}function Vo(e){return e in Lo||(Lo[e]=ne.ng&&ne.ng.common&&ne.ng.common.locales&&ne.ng.common.locales[e]),Lo[e]}var Bo=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Qo(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Ko=function e(){p(this,e)},Wo=function(){function e(){p(this,e)}return m(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(R(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Zo=function(){var e=function e(){p(this,e)};return e.NULL=new Wo,e}();function Go(){}function Jo(e,t){return new Yo(Ke(e,t))}var Xo=function(){return Jo(ot(),rt())},Yo=function(){var e=function e(t){p(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Xo,e}(),$o=function e(){p(this,e)},ea=function(){var e=function e(){p(this,e)};return e.__NG_ELEMENT_ID__=function(){return ta()},e}(),ta=function(){var e=rt(),t=Ze(ot().index,e);return function(e){return e[11]}(Ee(t)?t:e)},na=function(){var e=function e(){p(this,e)};return e.\u0275prov=F({token:e,providedIn:"root",factory:function(){return null}}),e}(),ra=function e(t){p(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},ia=new ra("11.0.7"),oa=function(){function e(){p(this,e)}return m(e,[{key:"supports",value:function(e){return vo(e)}},{key:"create",value:function(e){return new sa(e)}}]),e}(),aa=function(e,t){return t},sa=function(){function e(t){p(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||aa}return m(e,[{key:"forEachItem",value:function(e){var t;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.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(Qe(a)),Ce(a))for(var s=10;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Dr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){bi(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Li(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ui(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){ct(!0);try{Ui(e,t,n)}finally{ct(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Qr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return ma(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),_a=function(e){u(n,e);var t=c(n);function n(e){var r;return p(this,n),(r=t.call(this,e))._view=e,r}return m(n,[{key:"detectChanges",value:function(){Mi(this._view)}},{key:"checkNoChanges",value:function(){!function(e){ct(!0);try{Mi(e)}finally{ct(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(ga),ba=wa,ka=function(){var e=function e(){p(this,e)};return e.__NG_ELEMENT_ID__=ba,e.__ChangeDetectorRef__=!0,e}();function wa(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Oe(e)){var r=Ze(e.index,t);return new ga(r,r)}return 47&e.type?new ga(t[16],t):null}(ot(),rt(),e)}var Sa=[new fa],Ea=new pa([new oa]),Ca=new ya(Sa),Ta=function(){return Aa(ot(),rt())},Oa=function(){var e=function e(){p(this,e)};return e.__NG_ELEMENT_ID__=Ta,e}(),xa=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return m(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=li(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),fi(t,n,e),new ga(n)}}]),n}(Oa);function Aa(e,t){return 4&e.type?new xa(t,e,Jo(e,t)):null}var ja=function e(){p(this,e)},Ra=function e(){p(this,e)},Pa=function(){return Ha(ot(),rt())},Ia=function(){var e=function e(){p(this,e)};return e.__NG_ELEMENT_ID__=Pa,e}(),Na=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return m(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Da(this._lContainer);return null!==t&&t[e]||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,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(ja,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var r=e._lView,i=r[1];if(Ce(r[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=r[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Jo(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new an(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Wt(this._hostTNode,this._hostLView);if(Lt(e)){var t=Mt(e,this._hostLView),n=Ut(e);return new an(t[1].data[n+8],t)}return new an(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(Ia);function Da(e){return e[8]}function Fa(e){return e[8]||(e[8]=[])}function Ha(e,t){var n,r=t[e.index];if(Ce(r))n=r;else{var i;if(8&e.type)i=Qe(r);else{var o=t[11];i=o.createComment("");var a=Ke(e,t);Hr(o,Mr(o,a),i,function(e,t){return Ve(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Ii(r,t,i,e),Hi(t,n)}return new Na(n,e,t)}var La={},Ua=function(e){u(n,e);var t=c(n);function n(e){var r;return p(this,n),(r=t.call(this)).ngModule=e,r}return m(n,[{key:"resolveComponentFactory",value:function(e){var t=we(e);return new za(t,this.ngModule)}}]),n}(Zo);function Ma(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var qa=new ln("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Sr}}),za=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(ii).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return m(n,[{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,La,i);return o!==La||r===La?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get($o,Be),u=a.get(na,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Ve(e))return e.selectRootElement(t,n===X.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Pr(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Sr,clean:zi,playerHandler:null,flags:0},v=_i(0,null,null,1,0,null,null,null,null,null),p=li(null,v,d,f,null,null,s,l,u,a);mt(p);try{var y=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=ci(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(Wi(s,u,!0),null!==e&&(It(i,e,u),null!==s.classes&&Zr(i,e,s.classes),null!==s.styles&&Wr(i,e,s.styles)));var l=r.createRenderer(e,t),c=li(n,gi(t),null,t.onPush?64:16,n[20],s,r,l,null,null);return a.firstCreatePass&&(Zt(Bt(s,n),a,t.type),Ti(a,s),xi(s,n.length,1)),Hi(n,c),n[20]=c}(h,this.componentDef,p,s,l);if(h)if(n)It(l,h,["ng-version",ia.full]);else{var m=function(e){for(var t=[],n=[],r=1,i=2;r0&&Zr(l,h,_.join(" "))}if(o=We(v,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:lo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K.Default;return e===lo||e===ja||e===Zi?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(ja),Ka=function(e){u(r,e);var t=c(r);function r(e){var i,o,a;return p(this,r),(i=t.call(this)).moduleType=e,null!==Se(e)&&(o=e,a=new Set,function e(t){var r=Se(t,!0),i=r.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(R(t)," vs ").concat(R(t.name)))}(i,Ba.get(i),t),Ba.set(i,t));var o,s=n(Er(r.imports));try{for(s.s();!(o=s.n()).done;){var u=o.value;a.has(u)||(a.add(u),e(u))}}catch(l){s.e(l)}finally{s.f()}}(o)),i}return m(r,[{key:"create",value:function(e){return new Qa(this.moduleType,e)}}]),r}(Ra);function Wa(e,t,n,r,i){return function(e,t,n,r,i,o,a){var s=t+n;return function(e,t,n,r){var i=yo(e,t,n);return yo(e,t+1,r)||i}(e,s,i,o)?function(e,t,n){return e[t]=n}(e,s+2,a?r.call(a,i,o):r(i,o)):function(e,t){var n=e[t];return n===oi?void 0:n}(e,s+2)}(rt(),(o=tt.lFrame,-1===(a=o.bindingRootIndex)&&(a=o.bindingRootIndex=o.tView.bindingStartIndex),a),e,t,n,r,i);var o,a}var Za=function(e){u(n,e);var t=c(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,n),(e=t.call(this)).__isAsync=r,e}return m(n,[{key:"emit",value:function(e){s(v(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(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)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=s(v(n.prototype),"subscribe",this).call(this,i,o,a);return e instanceof d.a&&e.add(u),u}}]),n}(h.a);function Ga(){return this._results[fo()]()}var Ja=function(){function e(){p(this,e),this.dirty=!0,this._results=[],this.changes=new Za,this.length=0;var t=fo(),n=e.prototype;n[t]||(n[t]=Ga)}return m(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:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=fn(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Xa=function(){function e(t){p(this,e),this.queryList=t,this.matches=null}return m(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Ya=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,e),this.queries=t}return m(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;p(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},es=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,e),this.queries=t}return m(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return m(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&void 0!==arguments[0]?arguments[0]:K.Default,t=wa(!0);if(null!=t||e&K.Optional)return t;Ne("ChangeDetectorRef")}var hs=new ln("Application Initializer"),fs=function(){var e=function(){function e(t){var n=this;p(this,e),this.appInits=t,this.resolve=Go,this.reject=Go,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return m(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(xn(Ps))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}(),Ms=function(){var e=function(){function e(){p(this,e),this._applications=new Map,Vs.addToWindow(this)}return m(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{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 Vs.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function qs(e){Vs=e}var zs,Vs=new(function(){function e(){p(this,e)}return m(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Bs=!0,Qs=!1;function Ks(){return Qs=!0,Bs}function Ws(){if(Qs)throw new Error("Cannot enable prod mode after platform setup.");Bs=!1}var Zs=new ln("AllowMultipleToken"),Gs=function e(t,n){p(this,e),this.name=t,this.token=n};function Js(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new ln(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Xs();if(!o||o.injector.get(Zs,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Ji,useValue:"platform"});!function(e){if(zs&&!zs.destroyed&&!zs.injector.get(Zs,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zs=e.get(Ys);var t=e.get(ys,null);t&&t.forEach(function(e){return e()})}(lo.create({providers:a,name:r}))}return function(e){var t=Xs();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}(i)}}function Xs(){return zs&&!zs.destroyed?zs:null}var Ys=function(){var e=function(){function e(t){p(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return m(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Ls:("zone.js"===n?void 0:n)||new Ps({enableLongStackTrace:Ks(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Ps,useValue:o}];return o.run(function(){var t=lo.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(kr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){nu(i._modules,n),e.unsubscribe()})}),function(e,t,r){try{var o=((a=n.injector.get(fs)).runInitializers(),a.donePromise.then(function(){return Qo(n.injector.get(bs,"en-US")||"en-US"),i._moduleDoBootstrap(n),n}));return To(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(r,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=$s({},n);return function(e,t,n){var r=new Ka(n);return Promise.resolve(r)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(R(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:"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:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(xn(lo))},e.\u0275prov=F({token:e,factory:e.\u0275fac}),e}();function $s(e,t){return Array.isArray(t)?t.reduce($s,e):Object.assign(Object.assign({},e),t)}var eu,tu=((eu=function(){function e(t,n,r,i,o,a){var s=this;p(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new y.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new y.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ps.assertNotInAngularZone(),Rs(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ps.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof y.a?t[0]:Object(_.a)(r)(Object(b.a)(t,i))}(u,l.pipe(function(e){return w()((t=A,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,O);return r.source=e,r.subjectFactory=n,r})(e));var t}))}return m(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ko?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ja),o=n.create(lo.NULL,[],t||n.selector,i),a=o.location.nativeElement,s=o.injector.get(Us,null),u=s&&o.injector.get(Ms);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),nu(r.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),Ks()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,r=n(this._views);try{for(r.s();!(t=r.n()).done;)t.value.detectChanges()}catch(i){r.e(i)}finally{r.f()}}catch(o){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(o)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;nu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(gs,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||eu)(xn(Ps),xn(_s),xn(lo),xn(kr),xn(Zo),xn(fs))},eu.\u0275prov=F({token:eu,factory:eu.\u0275fac}),eu);function nu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ru=function e(){p(this,e)},iu=function e(){p(this,e)},ou={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},au=function(){var t=function(){function t(e,n){p(this,t),this._compiler=e,this._config=n||ou}return m(t,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(t){var n=this,r=e(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),l("zn8P")(i).then(function(e){return e[o]}).then(function(e){return su(e,i,o)}).then(function(e){return n._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(t){var n=e(t.split("#"),2),r=n[0],i=n[1],o="NgFactory";return void 0===i&&(i="default",o=""),l("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return su(e,r,i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(xn(As),xn(iu,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t}();function su(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var uu=function(e){return null},lu=Js(null,"core",[{provide:ms,useValue:"unknown"},{provide:Ys,deps:[lo]},{provide:Ms,deps:[]},{provide:_s,deps:[]}]),cu=[{provide:tu,useClass:tu,deps:[Ps,_s,lo,kr,Zo,fs]},{provide:qa,deps:[Ps],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:fs,useClass:fs,deps:[[new gn,hs]]},{provide:As,useClass:As,deps:[]},vs,{provide:pa,useFactory:function(){return Ea},deps:[]},{provide:ya,useFactory:function(){return Ca},deps:[]},{provide:bs,useFactory:function(e){return Qo(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new mn(bs),new gn,new bn]]},{provide:ks,useValue:"USD"}],hu=function(){var e=function e(t){p(this,e)};return e.\u0275mod=me({type:e}),e.\u0275inj=H({factory:function(t){return new(t||e)(xn(tu))},providers:cu}),e}()},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("HDdC"),i=n("quSY");function o(e,t){return new r.a(function(n){var r=new i.a,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jhN1:function(e,t,n){"use strict";n.d(t,"a",function(){return z}),n.d(t,"b",function(){return F}),n.d(t,"c",function(){return B}),n.d(t,"d",function(){return W}),n.d(t,"e",function(){return M}),n.d(t,"f",function(){return T});var r,i=n("ofXK"),o=n("fXoL"),a=function(e){u(n,e);var t=c(n);function n(){return p(this,n),t.apply(this,arguments)}return m(n,[{key:"getProperty",value:function(e,t){return e[t]}},{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:"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:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=l||(l=document.querySelector("base"))?l.getAttribute("href"):null;return null==n?null:(t=n,r||(r=document.createElement("a")),r.setAttribute("href",t),"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname)}},{key:"resetBaseElement",value:function(){l=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{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 Object(i.o)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){Object(i.p)(new n)}}]),n}(function(e){u(n,e);var t=c(n);function n(){return p(this,n),t.call(this)}return m(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(i.l)),l=null,h=new o.q("TRANSITION_ID"),f=[{provide:o.d,useFactory:function(e,t,n){return function(){n.get(o.e).donePromise.then(function(){var n=Object(i.n)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[h,i.c,o.r],multi:!0}],d=function(){function e(){p(this,e)}return m(e,[{key:"addToWindow",value:function(e){o.kb.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},o.kb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},o.kb.getAllAngularRootElements=function(){return e.getAllRootElements()},o.kb.frameworkStabilizers||(o.kb.frameworkStabilizers=[]),o.kb.frameworkStabilizers.push(function(e){var t=o.kb.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(i.n)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(o.T)(new e)}}]),e}(),y=new o.q("EventManagerPlugins"),g=function(){var e=function(){function e(t,n){var r=this;p(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return m(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-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&I.hasOwnProperty(t)&&(t=I[t]))}return P[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),R.forEach(function(r){r!=n&&(0,N[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(o.Hb(i.c))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),F=function(){var e=function e(){p(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o.yb)({factory:function(){return Object(o.Hb)(L)},token:e,providedIn:"root"}),e}();function H(e){return new L(e.get(i.c))}var L=function(){var e=function(e){u(n,e);var t=c(n);function n(e){var r;return p(this,n),(r=t.call(this))._doc=e,r}return m(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case o.H.NONE:return t;case o.H.HTML:return Object(o.Z)(t,"HTML")?Object(o.rb)(t):Object(o.X)(this._doc,String(t));case o.H.STYLE:return Object(o.Z)(t,"Style")?Object(o.rb)(t):t;case o.H.SCRIPT:if(Object(o.Z)(t,"Script"))return Object(o.rb)(t);throw new Error("unsafe value used in a script context");case o.H.URL:return Object(o.jb)(t),Object(o.Z)(t,"URL")?Object(o.rb)(t):Object(o.Y)(String(t));case o.H.RESOURCE_URL:if(Object(o.Z)(t,"ResourceURL"))return Object(o.rb)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return Object(o.ab)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return Object(o.db)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return Object(o.cb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return Object(o.eb)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return Object(o.bb)(e)}}]),n}(F);return e.\u0275fac=function(t){return new(t||e)(o.Hb(i.c))},e.\u0275prov=Object(o.yb)({factory:function(){return H(Object(o.Hb)(o.o))},token:e,providedIn:"root"}),e}(),U=[{provide:o.B,useValue:i.m},{provide:o.C,useValue:function(){a.makeCurrent(),d.init()},multi:!0},{provide:i.c,useFactory:function(){return Object(o.pb)(document),document},deps:[]}],M=Object(o.Q)(o.S,"browser",U),q=[[],{provide:o.V,useValue:"root"},{provide:o.m,useFactory:function(){return new o.m},deps:[]},{provide:y,useClass:j,multi:!0,deps:[i.c,o.z,o.B]},{provide:y,useClass:D,multi:!0,deps:[i.c]},[],{provide:T,useClass:T,deps:[g,k,o.c]},{provide:o.E,useExisting:T},{provide:b,useExisting:k},{provide:k,useClass:k,deps:[i.c]},{provide:o.L,useClass:o.L,deps:[o.z]},{provide:g,useClass:g,deps:[y,o.z]},[]],z=function(){var e=function(){function e(t){if(p(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 m(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:h,useExisting:o.c},f]}}}]),e}();return e.\u0275mod=o.Ab({type:e}),e.\u0275inj=o.zb({factory:function(t){return new(t||e)(o.Hb(e,12))},providers:q,imports:[i.b,o.f]}),e}();function V(){return new B(Object(o.Hb)(i.c))}var B=function(){var e=function(){function e(t){p(this,e),this._doc=t,this._dom=Object(i.n)()}return m(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._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta[".concat(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){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}},{key:"_setMetaElementAttributes",value:function(e,t){var n=this;return Object.keys(e).forEach(function(r){return t.setAttribute(n._getMetaKeyMap(r),e[r])}),t}},{key:"_parseSelector",value:function(e){var t=e.name?"name":"property";return"".concat(t,'="').concat(e[t],'"')}},{key:"_containsAttributes",value:function(e,t){var n=this;return Object.keys(e).every(function(r){return t.getAttribute(n._getMetaKeyMap(r))===e[r]})}},{key:"_getMetaKeyMap",value:function(e){return Q[e]||e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(i.c))},e.\u0275prov=Object(o.yb)({factory:V,token:e,providedIn:"root"}),e}(),Q={httpEquiv:"http-equiv"};function K(){return new W(Object(o.Hb)(i.c))}var W=function(){var e=function(){function e(t){p(this,e),this._doc=t}return m(e,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(i.c))},e.\u0275prov=Object(o.yb)({factory:K,token:e,providedIn:"root"}),e}();"undefined"!=typeof window&&window},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){p(this,e),this.project=t,this.thisArg=n}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||f(o),o}return m(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(r.a)},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+E(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+E(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+E(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(o.Hb(v),o.Hb(O,8))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),A=function(){var e=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return m(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=w(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+E(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+E(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()}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(o.Hb(v),o.Hb(O,8))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){var r=this;p(this,e),this._subject=new o.n,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=S(P(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return m(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+E(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,P(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]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+E(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+E(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(C),o.Hb(v))},e.normalizeQueryParams=E,e.joinWithSlash=w,e.stripTrailingSlash=S,e.\u0275prov=Object(o.yb)({factory:R,token:e,providedIn:"root"}),e}();function R(){return new j(Object(o.Hb)(C),Object(o.Hb)(v))}function P(e){return e.replace(/\/index.html$/,"")}var I=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),N=o.ib,D=function e(){p(this,e)},F=function(){var e=function(e){u(n,e);var t=c(n);function n(e){var r;return p(this,n),(r=t.call(this)).locale=e,r}return m(n,[{key:"getPluralCategory",value:function(e,t){switch(N(t||this.locale)(e)){case I.Zero:return"zero";case I.One:return"one";case I.Two:return"two";case I.Few:return"few";case I.Many:return"many";default:return"other"}}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(o.Hb(o.u))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}();function H(t,r){r=encodeURIComponent(r);var i,o=n(t.split(";"));try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.indexOf("="),u=e(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),l=u[0],c=u[1];if(l.trim()===r)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var L=function(){function e(t,n,r,i){p(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return m(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}(),U=function(){var e=function(){function e(t,n,r){p(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return m(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{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 L(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new M(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new M(e,s);n.push(u)}});for(var r=0;r0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return m(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var n=e.name.toLowerCase();switch(e.op){case"a":case"s":var r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);var i=("a"===e.op?this.headers.get(n):void 0)||[];i.push.apply(i,t(r)),this.headers.set(n,i);break;case"d":var o=e.value;if(o){var a=this.headers.get(n);if(!a)return;0===(a=a.filter(function(e){return-1===o.indexOf(e)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),_=function(){function e(){p(this,e)}return m(e,[{key:"encodeKey",value:function(e){return b(e)}},{key:"encodeValue",value:function(e){return b(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function b(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var k=function(){function t(){var n,r,i,o=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,t),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new _,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(n=a.fromString,r=this.encoder,i=new Map,n.length>0&&n.split("&").forEach(function(t){var n=t.indexOf("="),o=e(-1==n?[r.decodeKey(t),""]:[r.decodeKey(t.slice(0,n)),r.decodeValue(t.slice(n+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(e){var t=a.fromObject[e];o.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return m(t,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function w(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function S(e){return"undefined"!=typeof Blob&&e instanceof Blob}function E(e){return"undefined"!=typeof FormData&&e instanceof FormData}var C=function(){function e(t,n,r,i){var o;if(p(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new g),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(l=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},l)),new e(n,r,o,{params:l,headers:u,reportProgress:s,responseType:i,withCredentials:a})}}]),e}(),T=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),O=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,e),this.headers=t.headers||new g,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},x=function(e){u(n,e);var t=c(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(e=t.call(this,r)).type=T.ResponseHeader,e}return m(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(O),A=function(e){u(n,e);var t=c(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(e=t.call(this,r)).type=T.Response,e.body=void 0!==r.body?r.body:null,e}return m(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(O),j=function(e){u(n,e);var t=c(n);function n(e){var r;return p(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(O);function R(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var P=function(){var e=function(){function e(t){p(this,e),this.handler=t}return m(e,[{key:"request",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof C)n=e;else{var o=void 0;o=i.headers instanceof g?i.headers:new g(i.headers);var s=void 0;i.params&&(s=i.params instanceof k?i.params:new k({fromObject:i.params})),n=new C(e,t,void 0!==i.body?i.body:null,{headers:o,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var u=Object(a.a)(n).pipe(Object(l.a)(function(e){return r.handler.handle(e)}));if(e instanceof C||"events"===i.observe)return u;var c=u.pipe(Object(h.a)(function(e){return e instanceof A}));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(f.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return c.pipe(Object(f.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return c.pipe(Object(f.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return c.pipe(Object(f.a)(function(e){return e.body}))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new k).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,R(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,R(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,R(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(v))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),I=function(){function e(t,n){p(this,e),this.next=t,this.interceptor=n}return m(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),N=new o.q("HTTP_INTERCEPTORS"),D=function(){var e=function(){function e(){p(this,e)}return m(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),F=/^\)\]\}',?\n/,H=function e(){p(this,e)},L=function(){var e=function(){function e(){p(this,e)}return m(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),U=function(){var e=function(){function e(t){p(this,e),this.xhrFactory=t}return m(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new g(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new x({headers:i,status:t,statusText:n,url:o})},l=function(){var t=u(),i=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(F,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new A({body:l,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new j({error:l,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,i=new j({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},h=!1,f=function(t){h||(n.next(u()),h=!0);var i={type:T.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:T.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",l),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:T.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),e.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(H))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),M=new o.q("XSRF_COOKIE_NAME"),q=new o.q("XSRF_HEADER_NAME"),z=function e(){p(this,e)},V=function(){var e=function(){function e(t,n,r){p(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return m(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(d.o)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(d.c),o.Hb(o.B),o.Hb(M))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),B=function(){var e=function(){function e(t,n){p(this,e),this.tokenService=t,this.headerName=n}return m(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(z),o.Hb(q))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),Q=function(){var e=function(){function e(t,n){p(this,e),this.backend=t,this.injector=n,this.chain=null}return m(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(N,[]);this.chain=t.reduceRight(function(e,t){return new I(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Hb(y),o.Hb(o.r))},e.\u0275prov=o.yb({token:e,factory:e.\u0275fac}),e}(),K=function(){var e=function(){function e(){p(this,e)}return m(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:B,useClass:D}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:M,useValue:t.cookieName}:[],t.headerName?{provide:q,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275mod=o.Ab({type:e}),e.\u0275inj=o.zb({factory:function(t){return new(t||e)},providers:[B,{provide:N,useExisting:B,multi:!0},{provide:z,useClass:V},{provide:M,useValue:"XSRF-TOKEN"},{provide:q,useValue:"X-XSRF-TOKEN"}]}),e}(),W=function(){var e=function e(){p(this,e)};return e.\u0275mod=o.Ab({type:e}),e.\u0275inj=o.zb({factory:function(t){return new(t||e)},providers:[P,{provide:v,useClass:Q},U,{provide:y,useExisting:U},L,{provide:H,useExisting:L}],imports:[[K.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},tyNb:function(e,r,i){"use strict";i.d(r,"a",function(){return Tt}),i.d(r,"b",function(){return Yn}),i.d(r,"c",function(){return $n}),i.d(r,"d",function(){return pr}),i.d(r,"e",function(){return ir});var o=i("ofXK"),a=i("fXoL"),l=i("Cfvw"),h=i("LRne"),d=i("XNiG"),y=i("9ppp"),g=function(e){u(n,e);var t=c(n);function n(e){var r;return p(this,n),(r=t.call(this))._value=e,r}return m(n,[{key:"_subscribe",value:function(e){var t=s(v(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new y.a;return this._value}},{key:"next",value:function(e){s(v(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(d.a),_=i("z+Ro"),b=i("DH7j"),k=i("7o/Q"),w=function(e){u(n,e);var t=c(n);function n(){return p(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(k.a),S=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(k.a),E=i("SeVD"),C=i("HDdC");function T(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new S(e,n,r);if(!i.closed)return t instanceof C.a?t.subscribe(i):Object(E.a)(t)(i)}var O=i("yCtX"),x={},A=function(){function e(t){p(this,e),this.resultSelector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.resultSelector))}}]),e}(),j=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return m(n,[{key:"_next",value:function(e){this.values.push(x),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n=2&&(n=!0),function(r){return r.lift(new Z(e,t,n))}}var Z=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new G(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),G=function(e){u(n,e);var t=c(n);function n(e,r,i,o){var a;return p(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return m(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(k.a),J=i("pLZG");function X(e){return function(t){var n=new Y(e),r=t.lift(n);return n.caught=r}}var Y=function(){function e(t){p(this,e),this.selector=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.selector,this.caught))}}]),e}(),$=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return m(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void s(v(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new F.a(this);this.add(r);var i=Object(F.c)(t,r);i!==r&&this.add(i)}}}]),n}(F.b),ee=i("bOdf");function te(e){return function(t){return 0===e?I():t.lift(new ne(e))}}var ne=function(){function e(t){if(p(this,e),this.total=t,this.total<0)throw new M}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new re(e,this.total))}}]),e}(),re=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return m(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:se;return function(t){return t.lift(new oe(e))}}var oe=function(){function e(t){p(this,e),this.errorFactory=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ae(e,this.errorFactory))}}]),e}(),ae=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return m(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(k.a);function se(){return new R}function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new le(e))}}var le=function(){function e(t){p(this,e),this.defaultValue=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ce(e,this.defaultValue))}}]),e}(),ce=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return m(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(k.a),he=i("SpAZ");function fe(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(J.a)(function(t,n){return e(t,n,r)}):he.a,q(1),n?ue(t):ie(function(){return new R}))}}var de=i("5+tZ");function ve(){}var pe=i("n6bG");function ye(e,t,n){return function(r){return r.lift(new me(e,t,n))}}var me=function(){function e(t,n,r){p(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ge(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),ge=function(e){u(n,e);var t=c(n);function n(e,r,i,o){var a;return p(this,n),(a=t.call(this,e))._tapNext=ve,a._tapError=ve,a._tapComplete=ve,a._tapError=i||ve,a._tapComplete=o||ve,Object(pe.a)(r)?(a._context=f(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||ve,a._tapError=r.error||ve,a._tapComplete=r.complete||ve),a}return m(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(k.a),_e=i("quSY"),be=function(){function e(t){p(this,e),this.callback=t}return m(e,[{key:"call",value:function(e,t){return t.subscribe(new ke(e,this.callback))}}]),e}(),ke=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).add(new _e.a(r)),i}return n}(k.a),we=function e(t,n){p(this,e),this.id=t,this.url=n},Se=function(e){u(n,e);var t=c(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return m(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(we),Ee=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return m(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(we),Ce=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this,e,r)).reason=i,o}return m(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(we),Te=function(e){u(n,e);var t=c(n);function n(e,r,i){var o;return p(this,n),(o=t.call(this,e,r)).error=i,o}return m(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(we),Oe=function(e){u(n,e);var t=c(n);function n(e,r,i,o){var a;return p(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(we),xe=function(e){u(n,e);var t=c(n);function n(e,r,i,o){var a;return p(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(we),Ae=function(e){u(n,e);var t=c(n);function n(e,r,i,o,a){var s;return p(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return m(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(we),je=function(e){u(n,e);var t=c(n);function n(e,r,i,o){var a;return p(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(we),Re=function(e){u(n,e);var t=c(n);function n(e,r,i,o){var a;return p(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return m(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(we),Pe=function(){function e(t){p(this,e),this.route=t}return m(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Ie=function(){function e(t){p(this,e),this.route=t}return m(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Ne=function(){function e(t){p(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),De=function(){function e(t){p(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Fe=function(){function e(t){p(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),He=function(){function e(t){p(this,e),this.snapshot=t}return m(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Le=function(){function e(t,n,r){p(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return m(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),Ue=function(){function e(t){p(this,e),this.params=t||{}}return m(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Me(e){return new Ue(e)}function qe(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function ze(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function We(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ze(e){return Object(a.mb)(e)?e:Object(a.nb)(e)?Object(l.a)(Promise.resolve(e)):Object(h.a)(e)}function Ge(e,t,n){return n?function(e,t){return Ve(e,t)}(e.queryParams,t.queryParams)&&Je(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Be(e[n],t[n])})}(e.queryParams,t.queryParams)&&Xe(e.root,t.root)}function Je(e,t){if(!nt(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Je(e.children[n],t.children[n]))return!1}return!0}function Xe(e,t){return Ye(e,t,t.segments)}function Ye(e,t,n){if(e.segments.length>n.length)return!!nt(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!nt(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!Xe(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!nt(e.segments,i)&&!!e.children.primary&&Ye(e.children.primary,t,o)}var $e=function(){function e(t,n,r){p(this,e),this.root=t,this.queryParams=n,this.fragment=r}return m(e,[{key:"toString",value:function(){return ot.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Me(this.queryParams)),this._queryParamMap}}]),e}(),et=function(){function e(t,n){var r=this;p(this,e),this.segments=t,this.children=n,this.parent=null,We(n,function(e,t){return e.parent=r})}return m(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return at(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),tt=function(){function e(t,n){p(this,e),this.path=t,this.parameters=n}return m(e,[{key:"toString",value:function(){return dt(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Me(this.parameters)),this._parameterMap}}]),e}();function nt(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var rt=function e(){p(this,e)},it=function(){function e(){p(this,e)}return m(e,[{key:"parse",value:function(e){var t=new gt(e);return new $e(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+st(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(lt(e),"=").concat(lt(t))}).join("&"):"".concat(lt(e),"=").concat(lt(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),ot=new it;function at(e){return e.segments.map(function(e){return dt(e)}).join("/")}function st(e,t){if(!e.hasChildren())return at(e);if(t){var n=e.children.primary?st(e.children.primary,!1):"",r=[];return We(e.children,function(e,t){"primary"!==t&&r.push("".concat(t,":").concat(st(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(e,t){var n=[];return We(e.children,function(e,r){"primary"===r&&(n=n.concat(t(e,r)))}),We(e.children,function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return"primary"===n?[st(e.children.primary,!1)]:["".concat(n,":").concat(st(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(at(e),"/").concat(i[0]):"".concat(at(e),"/(").concat(i.join("//"),")")}function ut(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt(e){return ut(e).replace(/%3B/gi,";")}function ct(e){return ut(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ht(e){return decodeURIComponent(e)}function ft(e){return ht(e.replace(/\+/g,"%20"))}function dt(e){return"".concat(ct(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(ct(e),"=").concat(ct(t[e]))}).join("")));var t}var vt=/^[^\/()?;=#]+/;function pt(e){var t=e.match(vt);return t?t[0]:""}var yt=/^[^=?&#]+/,mt=/^[^?&#]+/,gt=function(){function e(t){p(this,e),this.url=t,this.remaining=t}return m(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new et(e,t)),n}},{key:"parseSegment",value:function(){var e=pt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new tt(ht(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=pt(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=pt(this.remaining);r&&(n=r,this.capture(n))}e[ht(t)]=ht(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(yt);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(mt);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=ft(t),o=ft(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=pt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new et([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),_t=function(){function e(t){p(this,e),this._root=t}return m(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=bt(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=bt(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=kt(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return kt(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function bt(e,t){if(e===t.value)return t;var r,i=n(t.children);try{for(i.s();!(r=i.n()).done;){var o=bt(e,r.value);if(o)return o}}catch(a){i.e(a)}finally{i.f()}return null}function kt(e,t){if(e===t.value)return[t];var r,i=n(t.children);try{for(i.s();!(r=i.n()).done;){var o=kt(e,r.value);if(o.length)return o.unshift(t),o}}catch(a){i.e(a)}finally{i.f()}return[]}var wt=function(){function e(t,n){p(this,e),this.value=t,this.children=n}return m(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function St(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Et=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,e)).snapshot=r,jt(f(i),e),i}return m(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(_t);function Ct(e,t){var n=function(e,t){var n=new xt([],{},{},"",{},"primary",t,null,e.root,-1,{});return new At("",new wt(n,[]))}(e,t),r=new g([new tt("",{})]),i=new g({}),o=new g({}),a=new g({}),s=new g(""),u=new Tt(r,i,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new Et(new wt(u,[]),n)}var Tt=function(){function e(t,n,r,i,o,a,s,u){p(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return m(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(D.a)(function(e){return Me(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(D.a)(function(e){return Me(e)}))),this._queryParamMap}}]),e}();function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var xt=function(){function e(t,n,r,i,o,a,s,u,l,c,h){p(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return m(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Me(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Me(this.queryParams)),this._queryParamMap}}]),e}(),At=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this,r)).url=e,jt(f(i),r),i}return m(n,[{key:"toString",value:function(){return Rt(this._root)}}]),n}(_t);function jt(e,t){t.value._routerState=e,t.children.forEach(function(t){return jt(e,t)})}function Rt(e){var t=e.children.length>0?" { ".concat(e.children.map(Rt).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Pt(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ve(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ve(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Ft(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(Ht);if(i&&i!==Ke(r))throw new Error("{outlets:{}} has to be the last command")}return m(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),qt=function e(t,n,r){p(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function zt(e,t,n){if(e||(e=new et([],{})),0===e.segments.length&&e.hasChildren())return Vt(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],s=n[r];if(Ht(s))break;var u=""+s,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Wt(u,l,a))return o;r+=2}else{if(!Wt(u,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},cn):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(t.matcher||ze)(n,e,t);if(!i)return Object.assign({},cn);var o={};We(i.posParams,function(e,t){o[t]=e.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function fn(e,t,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(r.length>0&&function(e,t,n){return n.some(function(n){return dn(e,t,n)&&"primary"!==un(n)})}(e,r,i)){var a=new et(t,function(e,t,r,i){var o={};o.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,s=n(r);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(""===u.path&&"primary"!==un(u)){var l=new et([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,o[un(u)]=l}}}catch(c){s.e(c)}finally{s.f()}return o}(e,t,i,new et(r,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function(e,t,n){return n.some(function(n){return dn(e,t,n)})}(e,r,i)){var s=new et(e.segments,function(e,t,r,i,o,a){var s,u={},l=n(i);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(dn(e,r,c)&&!o[un(c)]){var h=new et([],{});h._sourceSegment=e,h._segmentIndexShift="legacy"===a?e.segments.length:t.length,u[un(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),u)}(e,t,r,i,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:r}}var u=new et(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:r}}function dn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function vn(e,t,n,r){return!!(un(e)===r||"primary"!==r&&dn(t,n,e))&&("**"===e.path||hn(t,e,n).matched)}function pn(e,t,n){return 0===t.length&&!e.children[n]}var yn=function e(t){p(this,e),this.segmentGroup=t||null},mn=function e(t){p(this,e),this.urlTree=t};function gn(e){return new C.a(function(t){return t.error(new yn(e))})}function _n(e){return new C.a(function(t){return t.error(new mn(e))})}function bn(e){return new C.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var kn=function(){function e(t,n,r,i,o){p(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(a.x)}return m(e,[{key:"apply",value:function(){var e=this,t=fn(this.urlTree.root,[],[],this.config).segmentGroup,n=new et(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(Object(D.a)(function(t){return e.createUrlTree(wn(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(X(function(t){if(t instanceof mn)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof yn)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(D.a)(function(n){return t.createUrlTree(wn(n),e.queryParams,e.fragment)})).pipe(X(function(e){if(e instanceof yn)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var r=e.segments.length>0?new et([],{primary:e}):e;return new $e(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(D.a)(function(e){return new et([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o=2;return function(r){return r.pipe(e?Object(J.a)(function(t,n){return e(t,n,r)}):he.a,te(1),n?ue(t):ie(function(){return new R}))}}())}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this;return Object(l.a)(n).pipe(Object(ee.a)(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(X(function(e){if(e instanceof yn)return Object(h.a)(null);throw e}))}),fe(function(e){return!!e}),X(function(e,n){if(e instanceof R||"EmptyError"===e.name){if(pn(t,r,i))return Object(h.a)(new et([],{}));throw new yn(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return vn(r,t,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):gn(t):gn(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?_n(o):this.lineralizeSegments(n,o).pipe(Object(de.a)(function(n){var o=new et(n,{});return i.expandSegment(e,o,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=hn(t,r,i),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return gn(t);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?_n(f):this.lineralizeSegments(r,f).pipe(Object(de.a)(function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(D.a)(function(e){return n._loadedConfig=e,new et(r,{})})):Object(h.a)(new et(r,{}));var a=hn(t,n,r),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return gn(t);var c=r.slice(l);return this.getChildConfig(e,n,r).pipe(Object(de.a)(function(e){var r=e.module,a=e.routes,s=fn(t,u,c,a),l=s.segmentGroup,f=s.slicedSegments,d=new et(l.segments,l.children);if(0===f.length&&d.hasChildren())return o.expandChildren(r,a,d).pipe(Object(D.a)(function(e){return new et(u,e)}));if(0===a.length&&0===f.length)return Object(h.a)(new et(u,{}));var v=un(n)===i;return o.expandSegment(r,d,a,f,v?"primary":i,!0).pipe(Object(D.a)(function(e){return new et(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Object(h.a)(new Jt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(h.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(de.a)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(D.a)(function(e){return t._loadedConfig=e,e})):function(e){return new C.a(function(t){return t.error(qe("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object(h.a)(new Jt([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;if(!i||0===i.length)return Object(h.a)(!0);var o=i.map(function(r){var i,o=e.get(r);if(function(e){return e&&Xt(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!Xt(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return Ze(i)});return Object(h.a)(o).pipe(en(),ye(function(e){if(Yt(e)){var t=qe('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(D.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(h.a)(n);if(r.numberOfChildren>1||!r.children.primary)return bn(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new $e(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return We(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return We(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new et(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var r,i=0,o=n(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(s){o.e(s)}finally{o.f()}return e}}]),e}();function wn(e){for(var t={},n=0,r=Object.keys(e.children);n0||o.hasChildren())&&(t[i]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new et(e.segments.concat(t.segments),t.children)}return e}(new et(e.segments,t))}var Sn=function e(t){p(this,e),this.path=t,this.route=this.path[this.path.length-1]},En=function e(t,n){p(this,e),this.component=t,this.route=n};function Cn(e,t,n){var r=e._root;return On(r,t?t._root:null,n,[r.value])}function Tn(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function On(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=St(t);return e.children.forEach(function(e){!function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!nt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!nt(e.url,t.url)||!Ve(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!It(e,t)||!Ve(e.queryParams,t.queryParams);case"paramsChange":default:return!It(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Sn(r)):(o.data=a.data,o._resolvedData=a._resolvedData),On(e,t,o.component?s?s.children:null:n,r,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new En(s.outlet.component,a))}else a&&xn(t,s,i),i.canActivateChecks.push(new Sn(r)),On(e,null,o.component?s?s.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),We(o,function(e,t){return xn(e,n.getContext(t),i)}),i}function xn(e,t,n){var r=St(e),i=e.value;We(r,function(e,r){xn(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new En(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function An(e,t){return null!==e&&t&&t(new Fe(e)),Object(h.a)(!0)}function jn(e,t){return null!==e&&t&&t(new Ne(e)),Object(h.a)(!0)}function Rn(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(h.a)(!0);var i=r.map(function(r){return N(function(){var i,o=Tn(r,t,n);if(function(e){return e&&Xt(e.canActivate)}(o))i=Ze(o.canActivate(t,e));else{if(!Xt(o))throw new Error("Invalid CanActivate guard");i=Ze(o(t,e))}return i.pipe(fe())})});return Object(h.a)(i).pipe(en())}function Pn(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return N(function(){var i=t.guards.map(function(i){var o,a=Tn(i,t.node,n);if(function(e){return e&&Xt(e.canActivateChild)}(a))o=Ze(a.canActivateChild(r,e));else{if(!Xt(a))throw new Error("Invalid CanActivateChild guard");o=Ze(a(r,e))}return o.pipe(fe())});return Object(h.a)(i).pipe(en())})});return Object(h.a)(i).pipe(en())}var In=function e(){p(this,e)};function Nn(e){return new C.a(function(t){return t.error(e)})}var Dn=function(){function e(t,n,r,i,o,a){p(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return m(e,[{key:"recognize",value:function(){var e=fn(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new xt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new wt(n,t),i=new At(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=Ot(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,r){for(var i=[],o=0,a=Object.keys(r.children);o0?Ke(n).parameters:{};i=new xt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ln(e),un(e),e.component,e,Fn(t),Hn(t)+n.length,Un(e))}else{var u=hn(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),i=new xt(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ln(e),un(e),e.component,e,Fn(t),Hn(t)+o.length,Un(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=fn(t,o,a,l.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return null===d?null:[new wt(i,d)]}if(0===l.length&&0===f.length)return[new wt(i,[])];var v=un(e)===r,p=this.processSegment(l,h,f,v?"primary":r);return null===p?null:[new wt(i,p)]}}]),e}();function Fn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Hn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Ln(e){return e.data||{}}function Un(e){return e.resolve||{}}function Mn(e){return function(t){return t.pipe(H(function(t){var n=e(t);return n?Object(l.a)(n).pipe(Object(D.a)(function(){return t})):Object(l.a)([t])}))}}var qn=function(e){u(n,e);var t=c(n);function n(){return p(this,n),t.apply(this,arguments)}return n}(function(){function e(){p(this,e)}return m(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),zn=new a.q("ROUTES"),Vn=function(){function e(t,n,r,i){p(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return m(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(D.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Jt(Qe(i.injector.get(zn)).map(sn),i)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(l.a)(this.loader.load(e)):Ze(e()).pipe(Object(de.a)(function(e){return e instanceof a.v?Object(h.a)(e):Object(l.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),Bn=function e(){p(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Qn,this.attachRef=null},Qn=function(){function e(){p(this,e),this.contexts=new Map}return m(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new Bn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Kn=function(){function e(){p(this,e)}return m(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Wn(e){throw e}function Zn(e,t,n){return t.parse("/")}function Gn(e,t){return Object(h.a)(null)}var Jn,Xn,Yn=((Xn=function(){function e(t,n,r,i,o,s,u,l){var c=this;p(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new d.a,this.errorHandler=Wn,this.malformedUriErrorHandler=Zn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gn,afterPreactivation:Gn},this.urlHandlingStrategy=new Kn,this.routeReuseStrategy=new qn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(a.x),this.console=o.get(a.U);var h=o.get(a.z);this.isNgZoneEnabled=h instanceof a.z,this.resetConfig(l),this.currentUrlTree=new $e(new et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Vn(s,u,function(e){return c.triggerEvent(new Pe(e))},function(e){return c.triggerEvent(new Ie(e))}),this.routerState=Ct(this.currentUrlTree,this.rootComponentType),this.transitions=new g({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return m(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(J.a)(function(e){return 0!==e.id}),Object(D.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),H(function(e){var r,i,o,a,s=!1,u=!1;return Object(h.a)(e).pipe(ye(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),H(function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(h.a)(e).pipe(H(function(e){var r=t.transitions.getValue();return n.next(new Se(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?P:[e]}),H(function(e){return Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(H(function(e){return function(e,t,n,r,i){return new kn(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(Object(D.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))}))}),ye(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,o){return function(r){return r.pipe(Object(de.a)(function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new Dn(e,t,n,r,i,o).recognize();return null===a?Nn(new In):Object(h.a)(a)}catch(s){return Nn(s)}}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(Object(D.a)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var a}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),ye(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),ye(function(e){var r=new Oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,f=e.restoredState,d=e.extras,v=new Se(u,t.serializeUrl(l),c,f);n.next(v);var p=Ct(l,t.rootComponentType).snapshot;return Object(h.a)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),P}),Mn(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),ye(function(e){var n=new xe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(D.a)(function(e){return Object.assign(Object.assign({},e),{guards:Cn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return function(n){return n.pipe(Object(de.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Object(h.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(l.a)(e).pipe(Object(de.a)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(h.a)(!0);var a=o.map(function(o){var a,s=Tn(o,t,i);if(function(e){return e&&Xt(e.canDeactivate)}(s))a=Ze(s.canDeactivate(e,t,n,r));else{if(!Xt(s))throw new Error("Invalid CanDeactivate guard");a=Ze(s(e,t,n,r))}return a.pipe(fe())});return Object(h.a)(a).pipe(en())}(e.component,e.route,n,t,r)}),fe(function(e){return!0!==e},!0))}(s,r,i,e).pipe(Object(de.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(l.a)(t).pipe(Object(ee.a)(function(t){return Object(l.a)([jn(t.route.parent,r),An(t.route,r),Pn(e,t.path,n),Rn(e,t.route,n)]).pipe(Q(),fe(function(e){return!0!==e},!0))}),fe(function(e){return!0!==e},!0))}(r,a,e,t):Object(h.a)(n)}),Object(D.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),ye(function(e){if(Yt(e.guardsResult)){var n=qe('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}}),ye(function(e){var n=new Ae(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),Object(J.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Ce(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Mn(function(e){if(e.guards.canActivateChecks.length)return Object(h.a)(e).pipe(ye(function(e){var n=new je(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),H(function(e){var r,i,o=!1;return Object(h.a)(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,function(e){return e.pipe(Object(de.a)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object(h.a)(e);var o=0;return Object(l.a)(n).pipe(Object(ee.a)(function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(h.a)({});var o={};return Object(l.a)(i).pipe(Object(de.a)(function(i){return function(e,t,n,r){var i=Tn(e,t,r);return Ze(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(ye(function(e){o[i]=e}))}),te(1),Object(de.a)(function(){return Object.keys(o).length===i.length?Object(h.a)(o):P}))}(e._resolve,e,t,r).pipe(Object(D.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Ot(e,n).resolve),null}))}(e.route,t,r,i)}),ye(function(){return o++}),te(1),Object(de.a)(function(t){return o===n.length?Object(h.a)(e):P}))}))}),ye({next:function(){return o=!0},complete:function(){if(!o){var r=new Ce(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),ye(function(e){var n=new Re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Mn(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Object(D.a)(function(e){var n=function(e,t,n){var r=Nt(e,t._root,n?n._root:void 0);return new Et(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),ye(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,o=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},Object(D.a)(function(e){return new Zt(o,e.targetRouterState,e.currentRouterState,a).activate(i),e})),ye({next:function(){s=!0},complete:function(){s=!0}}),(r=function(){if(!s&&!u){t.resetUrlToCurrentUrlTree();var r=new Ce(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null},function(e){return e.lift(new be(r))}),X(function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var i=Yt(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Ce(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new Te(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(l){e.reject(l)}}var s;return P}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(i,t,r,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){rn(e),this.config=e.map(sn),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.relativeTo,i=n.queryParams,o=n.fragment,a=n.queryParamsHandling,s=n.preserveFragment,u=r||this.routerState.root,l=s?this.currentUrlTree.fragment:o,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,n,r,i,o){if(0===r.length)return Lt(n.root,n.root,n,i,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Mt(!0,0,e);var n=0,r=!1,i=e.reduce(function(e,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return We(i.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(t(e),[{outlets:a}])}if(i.segmentPath)return[].concat(t(e),[i.segmentPath])}return"string"!=typeof i?[].concat(t(e),[i]):0===o?(i.split("/").forEach(function(t,i){0==i&&"."===t||(0==i&&""===t?r=!0:".."===t?n++:""!=t&&e.push(t))}),e):[].concat(t(e),[i])},[]);return new Mt(r,n,i)}(r);if(a.toRoot())return Lt(n.root,new et([],{}),n,i,o);var s=function(e,t,n){if(e.isAbsolute)return new qt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new qt(r,r===t.root,0)}var i=Ft(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new qt(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,n,e),u=s.processChildren?Vt(s.segmentGroup,s.index,a.commands):zt(s.segmentGroup,s.index,a.commands);return Lt(s.segmentGroup,u,n,i,o)}(u,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Yt(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};p(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return m(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Se?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ee&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Le&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Le(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||nr)(a.Hb(Yn),a.Hb(o.k),a.Hb(void 0))},nr.\u0275prov=a.yb({token:nr,factory:nr.\u0275fac}),nr),cr=new a.q("ROUTER_CONFIGURATION"),hr=new a.q("ROUTER_FORROOT_GUARD"),fr=[o.f,{provide:rt,useClass:it},{provide:Yn,useFactory:function(e,t,n,r,i,a,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,h=new Yn(null,e,t,n,r,i,a,Qe(s));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(u,h),u.enableTracing){var f=Object(o.n)();h.events.subscribe(function(e){f.logGroup("Router Event: "+e.constructor.name),f.log(e.toString()),f.log(e),f.logGroupEnd()})}return h},deps:[rt,Qn,o.f,a.r,a.w,a.i,zn,cr,[function(){return function e(){p(this,e)}}(),new a.A],[function(){return function e(){p(this,e)}}(),new a.A]]},Qn,{provide:Tt,useFactory:function(e){return e.routerState.root},deps:[Yn]},{provide:a.w,useClass:a.J},ur,sr,function(){function e(){p(this,e)}return m(e,[{key:"preload",value:function(e,t){return t().pipe(X(function(){return Object(h.a)(null)}))}}]),e}(),{provide:cr,useValue:{enableTracing:!1}}];function dr(){return new a.y("Router",Yn)}var vr,pr=((vr=function(){function e(t,n){p(this,e)}return m(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[fr,_r(t),{provide:hr,useFactory:gr,deps:[[Yn,new a.A,new a.I]]},{provide:cr,useValue:n||{}},{provide:o.g,useFactory:mr,deps:[o.j,[new a.p(o.a),new a.A],cr]},{provide:lr,useFactory:yr,deps:[Yn,o.k,cr]},{provide:ar,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:sr},{provide:a.y,multi:!0,useFactory:dr},[kr,{provide:a.d,multi:!0,useFactory:wr,deps:[kr]},{provide:Er,useFactory:Sr,deps:[kr]},{provide:a.b,multi:!0,useExisting:Er}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[_r(t)]}}}]),e}()).\u0275mod=a.Ab({type:vr}),vr.\u0275inj=a.zb({factory:function(e){return new(e||vr)(a.Hb(hr,8),a.Hb(Yn,8))}}),vr);function yr(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new lr(e,t,n)}function mr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new o.d(e,t):new o.i(e,t)}function gr(e){return"guarded"}function _r(e){return[{provide:a.a,multi:!0,useValue:e},{provide:zn,multi:!0,useValue:e}]}var br,kr=((br=function(){function e(t){p(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new d.a}return m(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(o.e,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(Yn),i=e.injector.get(cr);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?Object(h.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(cr),n=this.injector.get(ur),r=this.injector.get(lr),i=this.injector.get(Yn),o=this.injector.get(a.g);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||br)(a.Hb(a.r))},br.\u0275prov=a.yb({token:br,factory:br.\u0275fac}),br);function wr(e){return e.appInitializer.bind(e)}function Sr(e){return e.bootstrapListener.bind(e)}var Er=new a.q("Router Initializer")},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function a(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},zUnb:function(r,i,o){"use strict";o.r(i);var a,l,h=o("fXoL"),f=o("jhN1"),d=o("tyNb"),y=[{path:"",loadChildren:function(){return o.e(5).then(o.bind(null,"h+/3")).then(function(e){return e.MalayalamNewsModule})}}],g=((a=function e(){p(this,e)}).\u0275mod=h.Ab({type:a}),a.\u0275inj=h.zb({factory:function(e){return new(e||a)},imports:[[d.d.forRoot(y,{relativeLinkResolution:"legacy"})],d.d]}),a),_=o("ofXK"),b=((l=function(){function e(t,n,r,i){p(this,e),this.router=t,this.injector=n,this.platformId=r,this.document=i}return m(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||l)(h.Cb(d.b),h.Cb(h.r),h.Cb(h.B),h.Cb(_.c))},l.\u0275cmp=h.wb({type:l,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&h.Db(0,"router-outlet")},directives:[d.e],styles:[""]}),l),k=function e(){p(this,e)};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function S(e){return{type:6,styles:e,offset:null}}function E(e){Promise.resolve(null).then(e)}var C=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return m(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._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;E(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),T=function(){function e(t){var n=this;p(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,a=this.players.length;0==a?E(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++r==a&&n._onFinish()}),e.onDestroy(function(){++i==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return m(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:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{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(){this.parentPlayer||this.init(),this._onStart(),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._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),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){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function O(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function x(e){switch(e.length){case 0:return new C;case 1:return e[0];default:return new T(e)}}function A(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(r.forEach(function(e){var n=e.offset,r=n==u,c=r&&l||{};Object.keys(e).forEach(function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),s){case"!":s=i[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,a)}c[r]=s}),r||s.push(c),l=c,u=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function j(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&R(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&R(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&R(n,"destroy",e))})}}function R(e,t,n){var r=n.totalTime,i=P(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function P(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function I(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function N(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var D=function(e,t){return!1},F=function(e,t){return!1},H=function(e,t,n){return[]},L=O();(L||"undefined"!=typeof Element)&&(D=function(e,t){return e.contains(t)},F=function(){if(L||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:F}(),H=function(e,t,n){var r=[];if(n)for(var i=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else Y(e,n);return n}function ee(e,t,n){return n?t+":"+n+";":""}function te(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],a=i[2],s=i[3];t.push(me(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(me(s,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Se(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return de(n,e,t)}),options:Se(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=de(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Se(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Ee(X(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Ee(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Ee((n=n||X(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:S({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=S(s)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(we(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,u,l,c,h=t.collectedStyles[t.currentQuerySelector],f=h[r],d=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),d=!1),o=f.startTime),d&&(h[r]={startTime:o,endTime:i}),t.options&&(a=e[r],s=t.options,u=t.errors,l=s.params||{},(c=ae(a)).length&&c.forEach(function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(we(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(we(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),s=s||c<0||c>1,a=a||c0&&i0?i==f?1:h*i:o[i],s=a*p;t.currentTime=d+v.delay+s,v.duration=s,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)}),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:de(this,ie(e.animation),t),options:Se(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Se(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Se(e.options)}}},{key:"visitQuery",value:function(t,n){var r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;var o=e(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ge,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(t.selector),2),a=o[0],s=o[1];n.currentQuerySelector=r.length?r+" "+a:a,I(n.collectedStyles,n.currentQuerySelector,{});var u=de(this,ie(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:Se(t.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:X(e.timings,t.errors,!0);return{type:12,animation:de(this,ie(e.animation),t),timings:n,options:null}}}]),t}(),ke=function e(t){p(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function we(e){return!Array.isArray(e)&&"object"==typeof e}function Se(e){var t;return e?(e=Y(e)).params&&(e.params=(t=e.params)?Y(t):null):e={},e}function Ee(e,t,n){return{duration:e,delay:t,easing:n}}function Ce(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var Te=function(){function e(){p(this,e),this._map=new Map}return m(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,n){var r,i=this._map.get(e);i||this._map.set(e,i=[]),(r=i).push.apply(r,t(n))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Oe=new RegExp(":enter","g"),xe=new RegExp(":leave","g");function Ae(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new je).buildKeyframes(e,t,n,r,i,o,a,s,u,l)}var je=function(){function e(){p(this,e)}return m(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new Te;var c=new Pe(e,t,u,r,i,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),de(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[Ce(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?G(n.duration):null,o=null!=n.delay?G(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),de(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Re);var a=G(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return de(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?G(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),de(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return X(t.params?se(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?G(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Re);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);o&&s.delayNextStep(o),r===t.element&&(u=s.currentTimeline),de(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;de(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}]),e}(),Re={},Pe=function(){function e(t,n,r,i,o,a,s,u){p(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Re,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Ie(this._driver,n,0),s.push(this.currentTimeline)}return m(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=G(r.duration)),null!=r.delay&&(i.delay=G(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=se(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Re,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Ne(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,n,r,i,o,a){var s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(Oe,"."+this._enterClassName)).replace(xe,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),s.push.apply(s,t(u))}return o||0!=s.length||a.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),Ie=function(){function e(t,n,r,i){p(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return m(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]="*"}):$(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=se(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:"*"),i._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=$(o,!0);Object.keys(s).forEach(function(e){var r=s[e];"!"==r?t.add(e):"*"==r&&n.add(e)}),r||(s.offset=a/e.duration),i.push(s)});var o=t.size?ue(t.values()):[],a=n.size?ue(n.values()):[];if(r){var s=i[0],u=Y(s);s.offset=0,u.offset=1,i=[s,u]}return Ce(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),Ne=function(e){u(n,e);var t=c(n);function n(e,r,i,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,n),(u=t.call(this,e,r,s.delay)).element=r,u.keyframes=i,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return m(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=$(e[0],!1);u.offset=0,o.push(u);var l=$(e[0],!1);l.offset=De(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=$(e[h],!1);f.offset=De((n+f.offset*r)/a),o.push(f)}r=a,n=0,i="",e=o}return Ce(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(Ie);function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Fe,He,Le=function e(){p(this,e)},Ue=function(e){u(n,e);var t=c(n);function n(){return p(this,n),t.apply(this,arguments)}return m(n,[{key:"normalizePropertyName",value:function(e,t){return ce(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(Me[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}]),n}(Le),Me=(Fe="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),He={},Fe.forEach(function(e){return He[e]=!0}),He);function qe(e,t,n,r,i,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var ze={},Ve=function(){function e(t,n,r){p(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return m(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||ze,f=this.buildStyles(n,a&&a.params||ze,c),d=s&&s.params||ze,v=this.buildStyles(r,d,c),p=new Set,y=new Map,m=new Map,g="void"===r,_={params:Object.assign(Object.assign({},h),d)},b=l?[]:Ae(e,t,this.ast.animation,i,o,f,v,_,u,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return qe(t,this._triggerName,n,r,g,f,v,[],[],y,m,k,c);b.forEach(function(e){var n=e.element,r=I(y,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=I(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&p.add(n)});var w=ue(p.values());return qe(t,this._triggerName,n,r,g,f,v,b,w,y,m,k)}}]),e}(),Be=function(){function e(t,n){p(this,e),this.styles=t,this.defaultParams=n}return m(e,[{key:"buildStyles",value:function(e,t){var n={},r=Y(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=se(o,r,t)),n[e]=o})}}),n}}]),e}(),Qe=function(){function e(t,n){var r=this;p(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Be(e.style,e.options&&e.options.params||{})}),Ke(this.states,"true","1"),Ke(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Ve(t,e,r.states))}),this.fallbackTransition=new Ve(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return m(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function Ke(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var We=new Te,Ze=function(){function e(t,n,r){p(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return m(e,[{key:"register",value:function(e,t){var n=[],r=_e(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=A(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=Ae(this._driver,t,a,"ng-enter","ng-leave",{},{},i,We,o)).forEach(function(e){var t=I(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,"*")})});var u=x(n.map(function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,r){var i=P(t,"","","");return j(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),Ge=[],Je={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ye=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var o=Y(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return m(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}},{key:"params",get:function(){return this.options.params}}]),e}(),$e=new Ye("void"),et=function(){function e(t,n,r){p(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,st(n,this._hostClassName)}return m(e,[{key:"listen",value:function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=I(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};a.push(s);var u=I(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(st(e,"ng-trigger"),st(e,"ng-trigger-"+t),u[t]=$e),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new nt(this.id,t,e),s=this._engine.statesByElement.get(e);s||(st(e,"ng-trigger"),st(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new Ye(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=$e),"void"===l.value||u.value!==l.value){var c=I(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!i)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||(st(e,"ng-animate-queued"),a.onStart(function(){ut(e,"ng-animate-queued")})),a.onDone(function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),st(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ut(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if(rt(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return rt(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return x(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Je,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;O--)this._namespaceList[O].drainQueuedTransitions(n).forEach(function(e){var t=e.player,n=e.element;if(C.push(t),r.collectedEnterElements.length){var a=n.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var h=!f||!r.driver.containsElement(f,n),d=S.get(n),v=p.get(n),y=r._buildInstruction(e,i,v,d,h);if(y.errors&&y.errors.length)T.push(y);else{if(h)return t.onStart(function(){return re(n,y.fromStyles)}),t.onDestroy(function(){return ne(n,y.toStyles)}),void o.push(t);if(e.isFallbackTransition)return t.onStart(function(){return re(n,y.fromStyles)}),t.onDestroy(function(){return ne(n,y.toStyles)}),void o.push(t);y.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(n,y.timelines),s.push({instruction:y,player:t,element:n}),y.queriedElements.forEach(function(e){return I(u,e,[]).push(t)}),y.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),y.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=c.get(t);r||c.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(T.length){var A=[];T.forEach(function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return A.push("- ".concat(e,"\n"))})}),C.forEach(function(e){return e.destroy()}),this.reportError(A)}var j=new Map,R=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(R.set(t,t),r._beforeAnimationBuild(e.player.namespaceId,e.instruction,j))}),o.forEach(function(e){var t=e.element;r._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){I(j,t,[]).push(e),e.destroy()})});var P=m.filter(function(e){return ht(e,l,c)}),N=new Map;ot(N,this.driver,_,c,"*").forEach(function(e){ht(e,l,c)&&P.push(e)});var D=new Map;v.forEach(function(e,t){ot(D,r.driver,new Set(e),l,"!")}),P.forEach(function(e){var t=N.get(e),n=D.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var F=[],H=[],L={};s.forEach(function(e){var t=e.element,n=e.player,s=e.instruction;if(i.has(t)){if(h.has(t))return n.onDestroy(function(){return ne(t,s.toStyles)}),n.disabled=!0,n.overrideTotalTime(s.totalTime),void o.push(n);var u=L;if(R.size>1){for(var l=t,c=[];l=l.parentNode;){var f=R.get(l);if(f){u=f;break}c.push(l)}c.forEach(function(e){return R.set(e,u)})}var d=r._buildAnimation(n.namespaceId,s,j,a,D,N);if(n.setRealPlayer(d),u===L)F.push(n);else{var v=r.playersByElement.get(u);v&&v.length&&(n.parentPlayer=x(v)),o.push(n)}}else re(t,s.fromStyles),n.onDestroy(function(){return ne(t,s.toStyles)}),H.push(n),h.has(t)&&o.push(n)}),H.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=x(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var U=0;U0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new C(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),nt=function(){function e(t,n,r){p(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new C,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return m(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return j(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){I(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function rt(e){return e&&1===e.nodeType}function it(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ot(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(it(e))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Xe,a.push(r))}),e.set(r,o)});var s=0;return n.forEach(function(e){return it(e,o[s++])}),a}function at(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;function o(e){if(!e)return 1;var t=i.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:r.has(a)?1:o(a),i.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function st(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function ut(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function lt(e,t,n){x(n).onDone(function(){return e.processLeaveNode(t)})}function ct(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function dt(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=pt(t[0]),t.length>1&&(r=pt(t[t.length-1]))):t&&(n=pt(t)),n||r?new vt(e,n,r):null}var vt=function(){var e=function(){function e(t,n,r){p(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return m(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ne(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ne(this._element,this._initialStyles),this._endStyles&&(ne(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(re(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(re(this._element,this._endStyles),this._endStyles=null),ne(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function pt(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),kt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=St(e,"").split(","),(r=bt(n,t))>=0&&(n.splice(r,1),wt(e,"",n.join(","))))}}]),e}();function gt(e,t,n){wt(e,"PlayState",n,_t(e,t))}function _t(e,t){var n=St(e,"");return n.indexOf(",")>0?bt(n.split(","),t):bt([n],t)}function bt(e,t){for(var n=0;n=0)return n;return-1}function kt(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function wt(e,t,n,r){var i="animation"+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function St(e,t){return e.style["animation"+t]||""}var Et=function(){function e(t,n,r,i,o,a,s,u){p(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return m(e,[{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:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new mt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:ve(e.element,r))})}this.currentSnapshot=t}}]),e}(),Ct=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=Q(r),i}return m(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),s(v(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),s(v(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,s(v(n.prototype),"destroy",this).call(this))}}]),n}(C),Tt=function(){function e(){p(this,e),this._count=0,this._head=document.querySelector("head")}return m(e,[{key:"validateStyleProperty",value:function(e){return q(e)}},{key:"matchesElement",value:function(e,t){return z(e,t)}},{key:"containsElement",value:function(e,t){return V(e,t)}},{key:"query",value:function(e,t,n){return B(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Q(e)});var r="@keyframes ".concat(t," {\n"),i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof Et}),s={};he(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=fe(e,t,s));if(0==n)return new Ct(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(c);var h=dt(e,t),f=new Et(e,t,l,n,r,i,u,h);return f.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),f}}]),e}(),Ot=function(){function e(t,n,r,i){p(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return m(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{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._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:ve(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),xt=function(){function e(){p(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(At().toString()),this._cssKeyframesDriver=new Tt}return m(e,[{key:"validateStyleProperty",value:function(e){return q(e)}},{key:"matchesElement",value:function(e,t){return z(e,t)}},{key:"containsElement",value:function(e,t){return V(e,t)}},{key:"query",value:function(e,t,n){return B(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},l=o.filter(function(e){return e instanceof Ot});he(n,r)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=dt(e,t=fe(e,t=t.map(function(e){return $(e,!1)}),u));return new Ot(e,t,s,c)}}]),e}();function At(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var jt,Rt=((jt=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:h.P.None,styles:[],data:{animation:[]}}),i}return m(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?w(e):e;return Nt(this._renderer,null,t,"register",[n]),new Pt(t,this._renderer)}}]),n}(k)).\u0275fac=function(e){return new(e||jt)(h.Hb(h.E),h.Hb(_.c))},jt.\u0275prov=h.yb({token:jt,factory:jt.\u0275fac}),jt),Pt=function(e){u(n,e);var t=c(n);function n(e,r){var i;return p(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return m(n,[{key:"create",value:function(e,t){return new It(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){p(this,e)}}()),It=function(){function e(t,n,r,i){p(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return m(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),qt=function(t){u(r,t);var n=c(r);function r(e,t,i,o){var a;return p(this,r),(a=n.call(this,t,i,o)).factory=e,a.namespaceId=t,a}return m(r,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(t,n,r){var i,o,a=this;if("@"==n.charAt(0)){var s,u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t),l=n.substr(1),c="";return"@"!=l.charAt(0)&&(o=(i=l).indexOf("."),l=(s=e([i.substring(0,o),i.substr(o+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,u,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,r,e)})}return this.delegate.listen(t,n,r)}}]),r}(Mt),zt=((Ft=function(e){u(n,e);var t=c(n);function n(e,r,i){return p(this,n),t.call(this,e.body,r,i)}return n}(ft)).\u0275fac=function(e){return new(e||Ft)(h.Hb(_.c),h.Hb(Z),h.Hb(Le))},Ft.\u0275prov=h.yb({token:Ft,factory:Ft.\u0275fac}),Ft),Vt=[{provide:Z,useFactory:function(){return"function"==typeof At()?new xt:new Tt}},{provide:new h.q("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:k,useClass:Rt},{provide:Le,useFactory:function(){return new Ue}},{provide:ft,useClass:zt},{provide:h.E,useFactory:function(e,t,n){return new Ut(e,t,n)},deps:[f.f,ft,h.z]}],Bt=((Ht=function e(){p(this,e)}).\u0275mod=h.Ab({type:Ht}),Ht.\u0275inj=h.zb({factory:function(e){return new(e||Ht)},providers:Vt,imports:[f.a]}),Ht),Qt=o("tk/3"),Kt=((Lt=function e(){p(this,e)}).\u0275mod=h.Ab({type:Lt,bootstrap:[b]}),Lt.\u0275inj=h.zb({factory:function(e){return new(e||Lt)},providers:[],imports:[[f.a.withServerTransition({appId:"serverApp"}),g,Bt,Qt.b]]}),Lt);Object(h.R)(),document.addEventListener("DOMContentLoaded",function(){f.e().bootstrapModule(Kt).catch(function(e){return console.error(e)})})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l});var r=n("7o/Q"),i=n("HDdC"),o=n("SeVD"),a=function(e){u(n,e);var t=c(n);function n(e){var r;return p(this,n),(r=t.call(this)).parent=e,r}return m(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(r.a),s=function(e){u(n,e);var t=c(n);function n(){return p(this,n),t.apply(this,arguments)}return m(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(r.a);function l(e,t){if(!t.closed)return e instanceof i.a?e.subscribe(t):Object(o.a)(e)(t)}}},[[0,0]]])}();