-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-es2015.f3e7c0c0d5ff35f4a42e.js
1 lines (1 loc) · 261 KB
/
main-es2015.f3e7c0c0d5ff35f4a42e.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("XNiG"),s=n("9ppp");class i extends r.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("ZUHj"),s=n("l7GE"),i=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function c(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(c((n,r)=>Object(a.a)(t(n,r)).pipe(Object(o.a)((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new l(t,n)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.a{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const s=new i.a(this,e,n),o=this.destination;o.add(s);const a=Object(r.a)(this,t,void 0,void 0,s);a!==s&&o.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");class s extends r.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("n6bG"),s=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends i.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const r=new l(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==s.a&&(a=Object.create(e),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("HDdC"),s=n("SeVD"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>{const s=t[o.a]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Object(l.a)(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[c.a](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.a?t:new r.a(Object(s.a)(t))}},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i}));var r=n("HDdC");const s=new r.a(t=>t.complete());function i(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):s}},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("7o/Q"),s=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("mCNh"),c=n("2fFW");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof r.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),s=n("4I5i"),i=n("EY2u");function o(t){return e=>0===t?Object(i.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends r.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj");function o(t){return function(e){const n=new a(t),r=e.lift(n);return n.caught=r}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends r.a{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new s.a(this,void 0,void 0);this.add(r);const o=Object(i.a)(this,n,void 0,void 0,r);o!==r&&this.add(o)}}}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("z+Ro"),s=n("yCtX"),i=n("jZKg");function o(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(i.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return s}));const s=r()},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return r}))},PCNd:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("ofXK"),s=n("tyNb"),i=n("sbAP"),o=n("fXoL");let a=(()=>{class t{}return t.\u0275mod=o.Db({type:t}),t.\u0275inj=o.Cb({factory:function(e){return new(e||t)},imports:[[r.c,i.b,s.f]]}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("ngJS"),s=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[i.a])return e=t,t=>{const n=e[i.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var e,n,u}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},SxV6:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("sVev"),s=n("pLZG"),i=n("IzEk"),o=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(s.a)((e,n)=>t(e,n,l)):c.a,Object(i.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new r.a))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),s=n("z+Ro"),i=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(e)(Object(o.a)(t,n))}},XDbj:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("sVev"),s=n("7o/Q");function i(t=c){return e=>e.lift(new o(t))}class o{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new r.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var r=n("HDdC"),s=n("7o/Q"),i=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].next(t)}}error(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),i.a.EMPTY):this.isStopped?(t.complete(),i.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new r.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):i.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("quSY");class s extends r.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("51Dv"),s=n("SeVD"),i=n("HDdC");function o(t,e,n,o,a=new r.a(t,n,o)){if(!a.closed)return e instanceof i.a?e.subscribe(a):Object(s.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ"),s=n("SpAZ");function i(t=Number.POSITIVE_INFINITY){return Object(r.a)(s.a,t)}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function c(t,e){return"function"==typeof e?n=>n.pipe(c((n,r)=>Object(a.a)(t(n,r)).pipe(Object(o.a)((t,s)=>e(n,t,r,s))))):e=>e.lift(new l(t))}class l{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends r.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const o=new s.a(this,e,n),a=this.destination;a.add(o),this.innerSubscription=Object(i.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return Xs})),n.d(e,"b",(function(){return da})),n.d(e,"c",(function(){return aa})),n.d(e,"d",(function(){return ia})),n.d(e,"e",(function(){return oa})),n.d(e,"f",(function(){return sc})),n.d(e,"g",(function(){return Za})),n.d(e,"h",(function(){return Ms})),n.d(e,"i",(function(){return Sa})),n.d(e,"j",(function(){return $i})),n.d(e,"k",(function(){return ga})),n.d(e,"l",(function(){return zi})),n.d(e,"m",(function(){return un})),n.d(e,"n",(function(){return zo})),n.d(e,"o",(function(){return J})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return Q})),n.d(e,"r",(function(){return Ys})),n.d(e,"s",(function(){return co})),n.d(e,"t",(function(){return lo})),n.d(e,"u",(function(){return pa})),n.d(e,"v",(function(){return ht})),n.d(e,"w",(function(){return Qa})),n.d(e,"x",(function(){return ut})),n.d(e,"y",(function(){return za})),n.d(e,"z",(function(){return ja})),n.d(e,"A",(function(){return y})),n.d(e,"B",(function(){return ha})),n.d(e,"C",(function(){return ua})),n.d(e,"D",(function(){return Wi})),n.d(e,"E",(function(){return Bi})),n.d(e,"F",(function(){return Gi})),n.d(e,"G",(function(){return Ki})),n.d(e,"H",(function(){return Jn})),n.d(e,"I",(function(){return _})),n.d(e,"J",(function(){return Xa})),n.d(e,"K",(function(){return po})),n.d(e,"L",(function(){return Da})),n.d(e,"M",(function(){return Qi})),n.d(e,"N",(function(){return mo})),n.d(e,"O",(function(){return bt})),n.d(e,"P",(function(){return ai})),n.d(e,"Q",(function(){return qa})),n.d(e,"R",(function(){return In})),n.d(e,"S",(function(){return jn})),n.d(e,"T",(function(){return nc})),n.d(e,"U",(function(){return Ua})),n.d(e,"V",(function(){return fa})),n.d(e,"W",(function(){return Ls})),n.d(e,"X",(function(){return Ro})),n.d(e,"Y",(function(){return Kn})),n.d(e,"Z",(function(){return tr})),n.d(e,"ab",(function(){return Rn})),n.d(e,"bb",(function(){return yn})),n.d(e,"cb",(function(){return _n})),n.d(e,"db",(function(){return xn})),n.d(e,"eb",(function(){return Cn})),n.d(e,"fb",(function(){return wn})),n.d(e,"gb",(function(){return Sn})),n.d(e,"hb",(function(){return Io})),n.d(e,"ib",(function(){return ec})),n.d(e,"jb",(function(){return To})),n.d(e,"kb",(function(){return ko})),n.d(e,"lb",(function(){return vn})),n.d(e,"mb",(function(){return $})),n.d(e,"nb",(function(){return ci})),n.d(e,"ob",(function(){return Si})),n.d(e,"pb",(function(){return Ci})),n.d(e,"qb",(function(){return oi})),n.d(e,"rb",(function(){return jo})),n.d(e,"sb",(function(){return Ft})),n.d(e,"tb",(function(){return P})),n.d(e,"ub",(function(){return bn})),n.d(e,"vb",(function(){return Mi})),n.d(e,"wb",(function(){return br})),n.d(e,"xb",(function(){return di})),n.d(e,"yb",(function(){return ea})),n.d(e,"zb",(function(){return wt})),n.d(e,"Ab",(function(){return It})),n.d(e,"Bb",(function(){return S})),n.d(e,"Cb",(function(){return x})),n.d(e,"Db",(function(){return Ot})),n.d(e,"Eb",(function(){return Tt})),n.d(e,"Fb",(function(){return pi})),n.d(e,"Gb",(function(){return wi})),n.d(e,"Hb",(function(){return _i})),n.d(e,"Ib",(function(){return vi})),n.d(e,"Jb",(function(){return Ni})),n.d(e,"Kb",(function(){return ot})),n.d(e,"Lb",(function(){return gi})),n.d(e,"Mb",(function(){return sa})),n.d(e,"Nb",(function(){return mi})),n.d(e,"Ob",(function(){return xi})),n.d(e,"Pb",(function(){return na})),n.d(e,"Qb",(function(){return ji})),n.d(e,"Rb",(function(){return Fo})),n.d(e,"Sb",(function(){return $o})),n.d(e,"Tb",(function(){return ki})),n.d(e,"Ub",(function(){return Ti})),n.d(e,"Vb",(function(){return bi})),n.d(e,"Wb",(function(){return Uo})),n.d(e,"Xb",(function(){return Lo})),n.d(e,"Yb",(function(){return ta})),n.d(e,"Zb",(function(){return er})),n.d(e,"ac",(function(){return Et})),n.d(e,"bc",(function(){return fi})),n.d(e,"cc",(function(){return Ai})),n.d(e,"dc",(function(){return Ri})),n.d(e,"ec",(function(){return Pi}));var r=n("XNiG"),s=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("7o/Q");function c(){return function(t){return t.lift(new l(t))}}class l{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new u(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class u extends a.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class h extends i.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new s.a,t.add(this.source.subscribe(new f(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}refCount(){return c()(this)}}const d=(()=>{const t=h.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class f extends r.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function p(){return new r.a}function g(t){return{toString:t}.toString()}function m(t,e,n){return g(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const b=m("Inject",t=>({token:t})),y=m("Optional"),v=m("Self"),_=m("SkipSelf");var w=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function C(t){for(let e in t)if(t[e]===C)return e;throw Error("Could not find renamed property on target object.")}function S(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function x(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function O(t){return E(t,t[I])||E(t,t[A])}function E(t,e){return e&&e.token===t?e:null}function j(t){return t&&(t.hasOwnProperty(T)||t.hasOwnProperty(R))?t[T]:null}const I=C({"\u0275prov":C}),T=C({"\u0275inj":C}),k=C({"\u0275provFallback":C}),A=C({ngInjectableDef:C}),R=C({ngInjectorDef:C});function P(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(P).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function N(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const D=C({__forward_ref__:C});function H(t){return t.__forward_ref__=H,t.toString=function(){return P(this())},t}function M(t){return"function"==typeof(e=t)&&e.hasOwnProperty(D)&&e.__forward_ref__===H?t():t;var e}const U="undefined"!=typeof globalThis&&globalThis,L="undefined"!=typeof window&&window,V="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,F="undefined"!=typeof global&&global,$=U||F||L||V,z=C({"\u0275cmp":C}),q=C({"\u0275dir":C}),B=C({"\u0275pipe":C}),G=C({"\u0275mod":C}),W=C({"\u0275loc":C}),Z=C({"\u0275fac":C}),K=C({__NG_ELEMENT_ID__:C});class Q{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=S({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const J=new Q("INJECTOR",-1),Y={},X=/\n/gm,tt=C({provide:String,useValue:C});let et,nt=void 0;function rt(t){const e=nt;return nt=t,e}function st(t){const e=et;return et=t,e}function it(t,e=w.Default){if(void 0===nt)throw new Error("inject() must be called from an injection context");return null===nt?at(t,void 0,e):nt.get(t,e&w.Optional?null:void 0,e)}function ot(t,e=w.Default){return(et||it)(M(t),e)}function at(t,e,n){const r=O(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&w.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${P(t)}]`)}function ct(t){const e=[];for(let n=0;n<t.length;n++){const r=M(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=w.Default;for(let e=0;e<r.length;e++){const s=r[e];s instanceof y||"Optional"===s.ngMetadataName||s===y?n|=w.Optional:s instanceof _||"SkipSelf"===s.ngMetadataName||s===_?n|=w.SkipSelf:s instanceof v||"Self"===s.ngMetadataName||s===v?n|=w.Self:t=s instanceof b||s===b?s.token:s}e.push(ot(t,n))}else e.push(ot(r))}return e}class lt{get(t,e=Y){if(e===Y){const e=new Error(`NullInjectorError: No provider for ${P(t)}!`);throw e.name="NullInjectorError",e}return e}}class ut{}class ht{}function dt(t,e){t.forEach(t=>Array.isArray(t)?dt(t,e):e(t))}function ft(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function pt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gt(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}const mt=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),bt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),yt={},vt=[];let _t=0;function wt(t){return g(()=>{const e=t.type,n=e.prototype,r={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===mt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||bt.Emulated,id:"c",styles:t.styles||vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,a=t.pipes;return s.id+=_t++,s.inputs=jt(t.inputs,r),s.outputs=jt(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=i?()=>("function"==typeof i?i():i).map(Ct):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(St):null,s})}function Ct(t){return kt(t)||function(t){return t[q]||null}(t)}function St(t){return function(t){return t[B]||null}(t)}const xt={};function Ot(t){const e={type:t.type,bootstrap:t.bootstrap||vt,declarations:t.declarations||vt,imports:t.imports||vt,exports:t.exports||vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&g(()=>{xt[t.id]=t.type}),e}function Et(t,e){return g(()=>{const n=Rt(t,!0);n.declarations=e.declarations||vt,n.imports=e.imports||vt,n.exports=e.exports||vt})}function jt(t,e){if(null==t)return yt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const It=wt;function Tt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function kt(t){return t[z]||null}function At(t,e){return t.hasOwnProperty(Z)?t[Z]:null}function Rt(t,e){const n=t[G]||null;if(!n&&!0===e)throw new Error(`Type ${P(t)} does not have '\u0275mod' property.`);return n}function Pt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Nt(t){return Array.isArray(t)&&!0===t[1]}function Dt(t){return 0!=(8&t.flags)}function Ht(t){return 2==(2&t.flags)}function Mt(t){return 1==(1&t.flags)}function Ut(t){return null!==t.template}function Lt(t){return 0!=(512&t[2])}let Vt=void 0;function Ft(t){Vt=t}function $t(t){return!!t.listen}const zt={createRenderer:(t,e)=>void 0!==Vt?Vt:"undefined"!=typeof document?document:void 0};function qt(t){for(;Array.isArray(t);)t=t[0];return t}function Bt(t,e){return qt(e[t.index])}function Gt(t,e){return t.data[e+19]}function Wt(t,e){const n=e[t];return Pt(n)?n:n[0]}function Zt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Kt(t){return 4==(4&t[2])}function Qt(t){return 128==(128&t[2])}function Jt(t,e){return null===t||null==e?null:t[e]}function Yt(t){t[18]=0}const Xt={lFrame:be(null),bindingsEnabled:!0,checkNoChangesMode:!1};function te(){return Xt.bindingsEnabled}function ee(){return Xt.lFrame.lView}function ne(){return Xt.lFrame.tView}function re(){return Xt.lFrame.previousOrParentTNode}function se(t,e){Xt.lFrame.previousOrParentTNode=t,Xt.lFrame.isParent=e}function ie(){return Xt.lFrame.isParent}function oe(){Xt.lFrame.isParent=!1}function ae(){return Xt.checkNoChangesMode}function ce(t){Xt.checkNoChangesMode=t}function le(){const t=Xt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ue(){return Xt.lFrame.bindingIndex++}function he(t,e){const n=Xt.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function de(){return Xt.lFrame.currentQueryIndex}function fe(t){Xt.lFrame.currentQueryIndex=t}function pe(t,e){const n=me();Xt.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function ge(t,e){const n=me(),r=t[1];Xt.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function me(){const t=Xt.lFrame,e=null===t?null:t.child;return null===e?be(t):e}function be(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function ye(){const t=Xt.lFrame;return Xt.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const ve=ye;function _e(){const t=ye();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function we(){return Xt.lFrame.selectedIndex}function Ce(t){Xt.lFrame.selectedIndex=t}function Se(){const t=Xt.lFrame;return Gt(t.tView,t.selectedIndex)}function xe(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function Oe(t,e,n){Ie(t,e,3,n)}function Ee(t,e,n,r){(3&t[2])===n&&Ie(t,e,n,r)}function je(t,e){let n=t[2];(3&n)===e&&(n&=1023,n+=1,t[2]=n)}function Ie(t,e,n,r){const s=null!=r?r:-1;let i=0;for(let o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(i=e[o],null!=r&&i>=r)break}else e[o]<0&&(t[18]+=65536),(i<s||-1==s)&&(Te(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Te(t,e,n,r){const s=n[r]<0,i=n[r+1],o=t[s?-n[r]:n[r]];s?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,i.call(o)):i.call(o)}class ke{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ae(t,e,n){const r=$t(t);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],a=n[s++],c=n[s++];r?t.setAttribute(e,a,c,o):e.setAttributeNS(o,a,c)}else{const o=i,a=n[++s];Pe(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function Re(t){return 3===t||4===t||6===t}function Pe(t){return 64===t.charCodeAt(0)}function Ne(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?n=s:0===n||De(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function De(t,e,n,r,s){let i=0,o=t.length;if(-1===e)o=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[i+1]=s));if(r===t[i+1])return void(t[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(t.splice(o,0,e),i=o+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==s&&t.splice(i++,0,s)}function He(t){return-1!==t}function Me(t){return 32767&t}function Ue(t){return t>>16}function Le(t,e){let n=Ue(t),r=e;for(;n>0;)r=r[15],n--;return r}function Ve(t){return"string"==typeof t?t:null==t?"":""+t}function Fe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ve(t)}const $e=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($))();function ze(t){return t instanceof Function?t():t}let qe=!0;function Be(t){const e=qe;return qe=t,e}let Ge=0;function We(t,e){const n=Ke(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Ze(r.data,t),Ze(e,null),Ze(r.blueprint,null));const s=Qe(t,e),i=t.injectorIndex;if(He(s)){const t=Me(s),n=Le(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function Ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ke(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Je(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[K]:n.charCodeAt(0)||0;null==r&&(r=n[K]=Ge++);const s=255&r,i=1<<s,o=64&s,a=32&s,c=e.data;128&s?o?a?c[t+7]|=i:c[t+6]|=i:a?c[t+5]|=i:c[t+4]|=i:o?a?c[t+3]|=i:c[t+2]|=i:a?c[t+1]|=i:c[t]|=i}(t,e,n)}function Ye(t,e,n,r=w.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[K];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){pe(e,t);try{const t=s();if(null!=t||r&w.Optional)return t;throw new Error(`No provider for ${Fe(n)}!`)}finally{ve()}}else if("number"==typeof s){if(-1===s)return new on(t,e);let i=null,o=Ke(t,e),a=-1,c=r&w.Host?e[16][6]:null;for((-1===o||r&w.SkipSelf)&&(a=-1===o?Qe(t,e):e[o+8],sn(r,!1)?(i=e[1],o=Me(a),e=Le(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(rn(s,o,t.data)){const t=tn(o,e,n,i,r,c);if(t!==Xe)return t}sn(r,e[1].data[o+8]===c)&&rn(s,o,e)?(i=t,o=Me(a),e=Le(a,e)):o=-1}}}if(r&w.Optional&&void 0===s&&(s=null),0==(r&(w.Self|w.Host))){const t=e[9],i=st(void 0);try{return t?t.get(n,s,r&w.Optional):at(n,s,r&w.Optional)}finally{st(i)}}if(r&w.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Fe(n)}]`)}const Xe={};function tn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],c=en(a,o,n,null==r?Ht(a)&&qe:r!=o&&3===a.type,s&w.Host&&i===a);return null!==c?nn(e,o,c,a):Xe}function en(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=65535&i,c=t.directiveStart,l=i>>16,u=s?a+l:t.directiveEnd;for(let h=r?a:a+l;h<u;h++){const t=o[h];if(h<c&&n===t||h>=c&&t.type===n)return h}if(s){const t=o[c];if(t&&Ut(t)&&t.type===n)return c}return null}function nn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof ke){const o=s;if(o.resolving)throw new Error(`Circular dep for ${Fe(i[n])}`);const a=Be(o.canSeeViewProviders);let c;o.resolving=!0,o.injectImpl&&(c=st(o.injectImpl)),pe(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:s,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{o.injectImpl&&st(c),Be(a),o.resolving=!1,ve()}}return s}function rn(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<<t)}function sn(t,e){return!(t&w.Self||t&w.Host&&e)}class on{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Ye(this._tNode,this._lView,t,void 0,e)}}function an(t){return t.ngDebugContext}function cn(t){return t.ngOriginalError}function ln(t,...e){t.error(...e)}class un{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||ln}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?an(t)?an(t):this._findContext(cn(t)):null}_findOriginalError(t){let e=cn(t);for(;e&&cn(e);)e=cn(e);return e}}class hn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class dn extends hn{getTypeName(){return"HTML"}}class fn extends hn{getTypeName(){return"Style"}}class pn extends hn{getTypeName(){return"Script"}}class gn extends hn{getTypeName(){return"URL"}}class mn extends hn{getTypeName(){return"ResourceURL"}}function bn(t){return t instanceof hn?t.changingThisBreaksApplicationSecurity:t}function yn(t,e){const n=vn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function vn(t){return t instanceof hn&&t.getTypeName()||null}function _n(t){return new dn(t)}function wn(t){return new fn(t)}function Cn(t){return new pn(t)}function Sn(t){return new gn(t)}function xn(t){return new mn(t)}let On=!0,En=!1;function jn(){return En=!0,On}function In(){if(En)throw new Error("Cannot enable prod mode after platform setup.");On=!1}class Tn{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const kn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,An=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Rn(t){return(t=String(t)).match(kn)||t.match(An)?t:(jn()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Pn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Nn(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Dn=Pn("area,br,col,hr,img,wbr"),Hn=Pn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Mn=Pn("rp,rt"),Un=Nn(Mn,Hn),Ln=Nn(Dn,Nn(Hn,Pn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Nn(Mn,Pn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Un),Vn=Pn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fn=Pn("srcset"),$n=Nn(Vn,Fn,Pn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),zn=Pn("script,style,template");class qn{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Ln.hasOwnProperty(e))return this.sanitizedSomething=!0,!zn.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,i=e.toLowerCase();if(!$n.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;Vn[i]&&(o=Rn(o)),Fn[i]&&(r=o,o=(r=String(r)).split(",").map(t=>Rn(t.trim())).join(", ")),this.buf.push(" ",e,'="',Wn(o),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ln.hasOwnProperty(e)&&!Dn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Wn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Bn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gn=/([^\#-~ |!])/g;function Wn(t){return t.replace(/&/g,"&").replace(Bn,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Gn,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let Zn;function Kn(t,e){let n=null;try{Zn=Zn||new Tn(t);let r=e?String(e):"";n=Zn.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Zn.getInertBodyElement(r)}while(r!==i);const o=new qn,a=o.sanitizeChildren(Qn(n)||n);return jn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Qn(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Qn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Jn=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Yn=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Xn=/^url\(([^)]+)\)$/;function tr(t){if(!(t=String(t).trim()))return"";const e=t.match(Xn);return e&&Rn(e[1])===e[1]||t.match(Yn)&&function(t){let e=!0,n=!0;for(let r=0;r<t.length;r++){const s=t.charAt(r);"'"===s&&n?e=!e:'"'===s&&e&&(n=!n)}return e&&n}(t)?t:(jn()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function er(t){const e=function(){const t=ee();return t&&t[12]}();return e?e.sanitize(Jn.URL,t)||"":yn(t,"URL")?bn(t):Rn(Ve(t))}function nr(t,e){t.__ngContext__=e}function rr(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function sr(){throw new Error("Cannot mix multi providers and regular providers")}function ir(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}function or(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==ir(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<t.length&&"string"==typeof(s=t[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function ar(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function cr(t,e,n){let r=4;const s=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(Re(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!o)if(4&r){if(r=2|1&r,""!==c&&!ar(t,c,n)||""===c&&1===e.length){if(lr(r))return!1;o=!0}}else{const l=8&r?c:e[++a];if(8&r&&null!==t.attrs){if(!or(t.attrs,l,n)){if(lr(r))return!1;o=!0}continue}const u=ur(8&r?"class":c,s,0==t.type&&"ng-template"!==t.tagName,n);if(-1===u){if(lr(r))return!1;o=!0;continue}if(""!==l){let t;t=u>i?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==ir(e,l,0)||2&r&&l!==t){if(lr(r))return!1;o=!0}}}}else{if(!o&&!lr(r)&&!lr(c))return!1;if(o&&lr(c))continue;o=!1,r=c|1&r}}return lr(r)||o}function lr(t){return 0==(1&t)}function ur(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s<e.length;){const r=e[s];if(r===t)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){if(t[n]===e)return n;n++}return-1}(e,t)}function hr(t,e,n=!1){for(let r=0;r<e.length;r++)if(cr(t,e[r],n))return!0;return!1}function dr(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function fr(t,e){return t?":not("+e.trim()+")":e}function pr(t){let e=t[0],n=1,r=2,s="",i=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||lr(o)||(e+=fr(i,s),s=""),r=o,i=i||!lr(r);n++}return""!==s&&(e+=fr(i,s)),e}const gr={};function mr(t){const e=t[3];return Nt(e)?e[3]:e}function br(t){yr(ne(),ee(),we()+t,ae())}function yr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Oe(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Ee(e,r,0,n)}Ce(n)}function vr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const n=t.data[i];fe(s),n.contentQueries(2,e[i],i)}}}function _r(t,e,n){return $t(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function wr(t,e,n,r,s,i,o,a,c,l){const u=e.blueprint.slice();return u[0]=s,u[2]=140|r,Yt(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=i,u[16]=2==e.type?t[16]:u,u}function Cr(t,e,n,r,s,i){const o=n+19,a=t.data[o]||function(t,e,n,r,s,i){const o=re(),a=ie(),c=a?o:o&&o.parent,l=t.data[n]=Ar(0,c&&c!==e?c:null,r,n,s,i);return null===t.firstChild&&(t.firstChild=l),o&&(!a||null!=o.child||null===l.parent&&2!==o.type?a||(o.next=l):o.child=l),l}(t,e,o,r,s,i);return se(a,!0),a}function Sr(t,e,n){ge(e,e[6]);try{const r=t.viewQuery;null!==r&&ts(1,r,n);const s=t.template;null!==s&&Er(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&vr(t,e),t.staticViewQueries&&ts(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)Kr(t,e[n])}(e,i)}finally{e[2]&=-5,_e()}}function xr(t,e,n,r){const s=e[2];if(256==(256&s))return;ge(e,e[6]);const i=ae();try{Yt(e),Xt.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Er(t,e,n,2,r);const o=3==(3&s);if(!i)if(o){const n=t.preOrderCheckHooks;null!==n&&Oe(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Ee(e,n,0,null),je(e,0)}if(function(t){let e=t[13];for(;null!==e;){let n;if(Nt(e)&&(n=e[2])>>1==-1){for(let t=9;t<e.length;t++){const n=e[t],r=n[1];Qt(n)&&xr(r,n,r.template,n[8])}0!=(1&n)&&Wr(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&vr(t,e),!i)if(o){const n=t.contentCheckHooks;null!==n&&Oe(e,n)}else{const n=t.contentHooks;null!==n&&Ee(e,n,1),je(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,s=-1,i=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(i=0-o,Ce(i),r+=9+n[++t],s=r):r+=o:(null!==o&&(he(r,s),o(2,e[s])),s++)}}}finally{Ce(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Zr(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&ts(2,c,r),!i)if(o){const n=t.viewCheckHooks;null!==n&&Oe(e,n)}else{const n=t.viewHooks;null!==n&&Ee(e,n,2),je(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73)}finally{_e()}}function Or(t,e,n,r){const s=e[10],i=!ae(),o=Kt(e);try{i&&!o&&s.begin&&s.begin(),o&&Sr(t,e,r),xr(t,e,n,r)}finally{i&&!o&&s.end&&s.end()}}function Er(t,e,n,r,s){const i=we();try{Ce(-1),2&r&&e.length>19&&yr(t,e,0,ae()),n(r,s)}finally{Ce(i)}}function jr(t,e,n){te()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||We(n,e),nr(r,e);const o=n.initialInputs;for(let a=s;a<i;a++){const r=t.data[a],i=Ut(r);i&&zr(e,n,r);const c=nn(e,t,a,n);nr(c,e),null!==o&&qr(0,a-s,c,r,0,o),i&&(Wt(n.index,e)[8]=c)}}(t,e,n,Bt(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,i=t.expandoInstructions,o=t.firstCreatePass,a=n.index-19;try{Ce(a);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Mr(r,s):o&&i.push(null)}}finally{Ce(-1)}}(t,e,n))}function Ir(t,e,n=Bt){const r=e.localNames;if(null!==r){let s=e.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Tr(t){return t.tView||(t.tView=kr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function kr(t,e,n,r,s,i,o,a,c,l){const u=19+r,h=u+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:gr);return n}(u,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:l}}function Ar(t,e,n,r,s,i){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Rr(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const s=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,s):n[r]=[e,s]}return n}function Pr(t,e,n,r,s,i,o,a){const c=Bt(e,n);let l,u=e.inputs;var h;!a&&null!=u&&(l=u[r])?(is(t,n,l,r,s),Ht(e)&&function(t,e){const n=Wt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.tagName||"",r):s,$t(i)?i.setProperty(c,r,s):Pe(r)||(c.setProperty?c.setProperty(r,s):c[r]=s))}function Nr(t,e,n,r){let s=!1;if(te()){const i=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];hr(n,o.selectors,!1)&&(s||(s=[]),Je(We(n,e),t,o.type),Ut(o)?(2&n.flags&&rr(n),Lr(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===r?null:{"":-1};if(null!==i){let r=0;s=!0,Fr(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}Ur(t,n,i.length);let a=!1,c=!1;for(let s=0;s<i.length;s++){const l=i[s];n.mergedAttrs=Ne(n.mergedAttrs,l.hostAttrs),$r(t,e,l),Vr(t.data.length-1,l,o),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128),!a&&(l.onChanges||l.onInit||l.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-19),a=!0),c||!l.onChanges&&!l.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),c=!0),Dr(t,l),r+=l.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,i=[];let o=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=r[c],e=t.inputs;i.push(null!==s?Br(e,s):null),o=Rr(e,c,o),a=Rr(t.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=o,e.outputs=a}(t,n),Hr(t,e,r)}o&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],s)}}}(n,r,o)}return n.mergedAttrs=Ne(n.mergedAttrs,n.attrs),s}function Dr(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Hr(t,e,n){for(let r=0;r<n;r++)e.push(gr),t.blueprint.push(gr),t.data.push(null)}function Mr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ur(t,e,n){const r=19-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,s,n)}function Lr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Vr(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ut(e)&&(n[""]=t)}}function Fr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function $r(t,e,n){t.data.push(n);const r=n.factory||(n.factory=At(n.type)),s=new ke(r,Ut(n),null);t.blueprint.push(s),e.push(s)}function zr(t,e,n){const r=Bt(e,t),s=Tr(n),i=t[10],o=Qr(t,wr(t,s,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n)));t[e.index]=o}function qr(t,e,n,r,s,i){const o=i[e];if(null!==o){const t=r.setInput;for(let e=0;e<o.length;){const s=o[e++],i=o[e++],a=o[e++];null!==t?r.setInput(n,a,s,i):n[i]=a}}}function Br(t,e){let n=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[r+1])),r+=2}else r+=2;else r+=4}return n}function Gr(t,e,n,r){return new Array(t,!0,-2,e,null,null,r,n,null)}function Wr(t,e){const n=t[5];for(let r=0;r<n.length;r++){const t=n[r],s=t[3][3][16];if(s!==e&&0==(16&s[2])){const e=t[1];xr(e,t,e.template,t[8])}}}function Zr(t,e){const n=Wt(e,t);if(Qt(n)&&80&n[2]){const t=n[1];xr(t,n,t.template,n[8])}}function Kr(t,e){const n=Wt(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),Sr(r,n,n[8])}function Qr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Jr(t){for(;t;){t[2]|=64;const e=mr(t);if(Lt(t)&&!e)return t;t=e}return null}function Yr(t,e,n){const r=e[10];r.begin&&r.begin();try{xr(t,e,t.template,n)}catch(s){throw ss(e,s),s}finally{r.end&&r.end()}}function Xr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Zt(n),s=r[1];Or(s,r,s.template,n)}}(t[8])}function ts(t,e,n){fe(0),e(t,n)}const es=(()=>Promise.resolve(null))();function ns(t){return t[7]||(t[7]=[])}function rs(t){return t.cleanup||(t.cleanup=[])}function ss(t,e){const n=t[9],r=n?n.get(un,null):null;r&&r.handleError(e)}function is(t,e,n,r,s){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],c=e[o],l=t.data[o];null!==l.setInput?l.setInput(c,s,r,a):c[a]=s}}function os(t,e){const n=e[3];return-1===t.index?Nt(n)?n:null:n}function as(t,e){const n=os(t,e);return n?vs(e[11],n[7]):null}function cs(t,e,n,r,s){if(null!=r){let i,o=!1;Nt(r)?i=r:Pt(r)&&(o=!0,r=r[0]);const a=qt(r);0===t&&null!==n?null==s?bs(e,n,a):ms(e,n,a,s||null):1===t&&null!==n?ms(e,n,a,s||null):2===t?function(t,e,n){const r=vs(t,e);r&&function(t,e,n,r){$t(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==qt(n)&&cs(e,t,r,i,s);for(let o=9;o<n.length;o++){const s=n[o];xs(s[1],s,t,e,r,i)}}(e,t,i,n,s)}}function ls(t,e,n,r){const s=as(t.node,e);s&&xs(t,e,e[11],n?1:2,s,r)}function us(t,e){const n=t[5],r=n.indexOf(e);n.splice(r,1)}function hs(t,e){if(t.length<=9)return;const n=9+e,r=t[n];if(r){const s=r[17];null!==s&&s!==t&&us(s,r),e>0&&(t[n-1][4]=r[4]);const i=pt(t,9+e);ls(r[1],r,!1,null);const o=i[5];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function ds(t,e){if(!(256&e[2])){const n=e[11];$t(n)&&n.destroyNode&&xs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return ps(t[1],t);for(;e;){let n=null;if(Pt(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Pt(e)&&ps(e[1],e),e=fs(e,t);null===e&&(e=t),Pt(e)&&ps(e[1],e),n=e&&e[4]}e=n}}(e)}}function fs(t,e){let n;return Pt(t)&&(n=t[6])&&2===n.type?os(n,t):t[3]===e?null:t[3]}function ps(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof ke)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const s=n[r+1],i="function"==typeof s?s(e):qt(e[s]),o=t[n[r+2]],a=n[r+3];"boolean"==typeof a?i.removeEventListener(n[r],o,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&$t(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Nt(e[3])){r!==e[3]&&us(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function gs(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?as(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Bt(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==bt.ShadowDom&&n!==bt.Native)return null}return Bt(r,n)}function ms(t,e,n,r){$t(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function bs(t,e,n){$t(t)?t.appendChild(e,n):e.appendChild(n)}function ys(t,e,n,r){null!==r?ms(t,e,n,r):bs(t,e,n)}function vs(t,e){return $t(t)?t.parentNode(e):e.parentNode}function _s(t,e){if(2===t.type){const n=os(t,e);return null===n?null:Cs(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Bt(t,e):null}function ws(t,e,n,r){const s=gs(t,r,e);if(null!=s){const t=e[11],i=_s(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)ys(t,s,n[e],i);else ys(t,s,n,i)}}function Cs(t,e){const n=9+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return Bt(n,e);if(0===r)return Cs(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return Nt(t)?Cs(-1,t):qt(t)}}{const r=e[16],s=r[6],i=mr(r),o=s.projection[n.projection];return null!=o?t(i,o):t(e,n.next)}}return null}(t,r)}return e[7]}function Ss(t,e,n,r,s,i,o){for(;null!=n;){const a=r[n.index],c=n.type;o&&0===e&&(a&&nr(qt(a),r),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(Ss(t,e,n.child,r,s,i,!1),cs(e,t,s,a,i)):1===c?Os(t,e,r,n,s,i):cs(e,t,s,a,i)),n=o?n.projectionNext:n.next}}function xs(t,e,n,r,s,i){Ss(n,r,t.node.child,e,s,i,!1)}function Os(t,e,n,r,s,i){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)cs(e,t,s,a[c],i);else Ss(t,e,a,o[3],s,i,!0)}function Es(t,e,n){$t(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function js(t,e,n){$t(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Is{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,s,i=!1){for(;null!==r;){const o=n[r.index];if(null!==o&&s.push(qt(o)),Nt(o))for(let e=9;e<o.length;e++){const n=o[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,s)}const a=r.type;if(4===a||5===a)t(e,n,r.child,s);else if(1===a){const e=n[16],i=e[6],o=mr(e);let a=i.projection[r.projection];null!==a&&null!==o&&t(o[1],o,a,s,!0)}r=i?r.projectionNext:r.next}return s}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}ds(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,ns(n=this._lView).push(r),e.firstCreatePass&&rs(e).push(n[7].length-1,null)}markForCheck(){Jr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Yr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ce(!0);try{Yr(t,e,n)}finally{ce(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,xs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ts extends Is{constructor(t){super(t),this._view=t}detectChanges(){Xr(this._view)}checkNoChanges(){!function(t){ce(!0);try{Xr(t)}finally{ce(!1)}}(this._view)}get context(){return null}}let ks,As,Rs;function Ps(t,e,n){return ks||(ks=class extends t{}),new ks(Bt(e,n))}function Ns(t,e,n,r){return As||(As=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=wr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(e)),Sr(e,n,t);const s=new Is(n);return s._tViewNode=n[6],s}}),0===n.type?new As(r,n,Ps(e,n,r)):null}function Ds(t,e,n,r){let s;Rs||(Rs=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Ps(e,this._hostTNode,this._hostView)}get injector(){return new on(this._hostTNode,this._hostView)}get parentInjector(){const t=Qe(this._hostTNode,this._hostView),e=Le(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=Ue(t),s=e,i=e[6];for(;r>1;)s=s[15],i=s[6],r--;return i}(t,this._hostView,this._hostTNode);return He(t)&&null!=n?new on(n,e):new on(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(ut,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Nt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Rs(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,r){const s=9+r,i=n.length;r>0&&(n[s-1][4]=e),r<i-9?(e[4]=n[s],ft(n,9+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[5],r=e[3][3][16];16!=(16&r[2])&&e[16]!==r&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(o,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,s),ls(r,n,!0,Cs(s,this._lContainer)),t.attachToViewContainerRef(this),ft(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);(function(t,e){const n=hs(t,e);n&&ds(n[1],n)})(this._lContainer,e),pt(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=hs(this._lContainer,e);return n&&null!=pt(this._lContainer[8],e)?new Is(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=r[n.index];if(Nt(i))s=i,function(t,e){t[2]=-2}(s);else{let t;if(4===n.type)t=qt(i);else if(t=r[11].createComment(""),Lt(r)){const e=r[11],s=Bt(n,r);ms(e,vs(e,s),t,function(t,e){return $t(t)?t.nextSibling(e):e.nextSibling}(e,s))}else ws(r[1],r,t,n);r[n.index]=s=Gr(i,r,t,n),Qr(r,s)}return new Rs(s,n,r)}function Hs(t=!1){return function(t,e,n){if(!n&&Ht(t)){const n=Wt(t.index,e);return new Is(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Is(e[16],e):null}(re(),ee(),t)}let Ms=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Us(),t})();const Us=Hs,Ls=new Q("Set Injector scope."),Vs={},Fs={},$s=[];let zs=void 0;function qs(){return void 0===zs&&(zs=new lt),zs}function Bs(t,e=null,n=null,r){return new Gs(t,n,e||qs(),r)}class Gs{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&dt(e,n=>this.processProvider(n,t,e)),dt([t],t=>this.processInjectorType(t,[],s)),this.records.set(J,Zs(void 0,this));const i=this.records.get(Ls);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:P(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Y,n=w.Default){this.assertNotDestroyed();const r=rt(this);try{if(!(n&w.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Q)&&O(t);e=n&&this.injectableDefInScope(n)?Zs(Ws(t),Vs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&w.Self?qs():this.parent).get(t,e=n&w.Optional&&e===Y?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(P(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=P(e);if(Array.isArray(e))s=e.map(P).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):P(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(X,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{rt(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(P(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=M(t)))return!1;let r=j(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=j(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{dt(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];dt(r,t=>this.processProvider(t,n,r||$s))}}this.injectorDefTypes.add(i),this.records.set(i,Zs(r.factory,Vs));const a=r.providers;if(null!=a&&!o){const e=t;dt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Qs(t=M(t))?t:M(t&&t.provide);const s=function(t,e,n){return Ks(t)?Zs(void 0,t.useValue):Zs(function(t,e,n){let r=void 0;if(Qs(t)){const e=M(t);return At(e)||Ws(e)}if(Ks(t))r=()=>M(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...ct(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>ot(M(t.useExisting));else{const s=M(t&&(t.useClass||t.provide));if(s||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${P(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return At(s)||Ws(s);r=()=>new s(...ct(t.deps))}var s;return r}(t,e,n),Vs)}(t,e,n);if(Qs(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&sr()}else{let e=this.records.get(r);e?void 0===e.multi&&sr():(e=Zs(void 0,Vs,!0),e.factory=()=>ct(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Fs?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(P(t)):e.value===Vs&&(e.value=Fs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Ws(t){const e=O(t),n=null!==e?e.factory:At(t);if(null!==n)return n;const r=j(t);if(null!==r)return r.factory;if(t instanceof Q)throw new Error(`Token ${P(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gt(e,"?");throw new Error(`Can't resolve all parameters for ${P(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[I]||t[A]||t[k]&&t[k]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Zs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ks(t){return null!==t&&"object"==typeof t&&tt in t}function Qs(t){return"function"==typeof t}const Js=function(t,e,n){return function(t,e=null,n=null,r){const s=Bs(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ys=(()=>{class t{static create(t,e){return Array.isArray(t)?Js(t,e,""):Js(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Y,t.NULL=new lt,t.\u0275prov=S({token:t,providedIn:"any",factory:()=>ot(J)}),t.__NG_ELEMENT_ID__=-1,t})();const Xs=new Q("AnalyzeForEntryComponents");let ti=new Map;const ei=new Set;function ni(t){return"string"==typeof t?t:t.text()}function ri(t,e){let n=t.styles,r=t.classes,s=0;for(let i=0;i<e.length;i++){const t=e[i];"number"==typeof t?s=t:1==s?r=N(r,t):2==s&&(n=N(n,t+": "+e[++i]+";"))}null!==n&&(t.styles=n),null!==r&&(t.classes=r)}let si=null;function ii(){if(!si){const t=$.Symbol;if(t&&t.iterator)si=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(si=n)}}}return si}function oi(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class ai{constructor(t){this.wrapped=t}static wrap(t){return new ai(t)}static unwrap(t){return ai.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof ai}}function ci(t){return!!li(t)&&(Array.isArray(t)||!(t instanceof Map)&&ii()in t)}function li(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ui(t,e,n){return t[e]=n}function hi(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function di(t,e,n,r){const s=ee();return hi(s,ue(),e)&&(ne(),function(t,e,n,r,s,i){const o=Bt(t,e),a=e[11];if(null==r)$t(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const e=null==s?Ve(r):s(r,t.tagName||"",n);$t(a)?a.setAttribute(o,n,e,i):i?o.setAttributeNS(i,n,e):o.setAttribute(n,e)}}(Se(),s,t,e,n,r)),di}function fi(t,e,n,r,s,i,o,a){const c=ee(),l=ne(),u=t+19,h=l.firstCreatePass?function(t,e,n,r,s,i,o,a,c){const l=e.consts,u=Cr(e,n[6],t,0,o||null,Jt(l,a));Nr(e,n,u,Jt(l,c)),xe(e,u);const h=u.tViews=kr(2,-1,r,s,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l),d=Ar(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,l,c,e,n,r,s,i,o):l.data[u];se(h,!1);const d=c[11].createComment("");ws(l,c,d,h),nr(d,c),Qr(c,c[u]=Gr(d,c,d,h)),Mt(h)&&jr(l,c,h),null!=o&&Ir(c,h,a)}function pi(t,e=w.Default){const n=ee();return null==n?ot(t,e):Ye(re(),n,M(t),e)}function gi(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const s=n[r];if(Re(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(s===e)return n[r+1];r+=2}}}return null}(re(),t)}function mi(){throw new Error("invalid")}function bi(t,e,n){const r=ee();return hi(r,ue(),e)&&Pr(ne(),Se(),r,t,e,r[11],n,!1),bi}function yi(t,e,n,r,s){const i=s?"class":"style";is(t,n,e.inputs[i],i,r)}function vi(t,e,n,r){const s=ee(),i=ne(),o=19+t,a=s[11],c=s[o]=_r(e,a,Xt.lFrame.currentNamespace),l=i.firstCreatePass?function(t,e,n,r,s,i,o){const a=e.consts,c=Jt(a,i),l=Cr(e,n[6],t,3,s,c);return Nr(e,n,l,Jt(a,o)),null!==l.mergedAttrs&&ri(l,l.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,l),l}(t,i,s,0,e,n,r):i.data[o];se(l,!0);const u=l.mergedAttrs;null!==u&&Ae(a,c,u);const h=l.classes;null!==h&&js(a,c,h);const d=l.styles;null!==d&&Es(a,c,d),ws(i,s,c,l),0===Xt.lFrame.elementDepthCount&&nr(c,s),Xt.lFrame.elementDepthCount++,Mt(l)&&(jr(i,s,l),function(t,e,n){if(Dt(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}(i,l,s)),null!==r&&Ir(s,l)}function _i(){let t=re();ie()?oe():(t=t.parent,se(t,!1));const e=t;Xt.lFrame.elementDepthCount--;const n=ne();n.firstCreatePass&&(xe(n,t),Dt(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&yi(n,e,ee(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&yi(n,e,ee(),e.styles,!1)}function wi(t,e,n,r){vi(t,e,n,r),_i()}function Ci(t){return!!t&&"function"==typeof t.then}function Si(t){return!!t&&"function"==typeof t.subscribe}function xi(t,e,n=!1,r){const s=ee(),i=ne(),o=re();return function(t,e,n,r,s,i,o=!1,a){const c=Mt(r),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=ns(e);let h=!0;if(3===r.type){const d=Bt(r,e),f=a?a(d):yt,p=f.target||d,g=u.length,m=a?t=>a(qt(t[r.index])).target:r.index;if($t(n)){let o=null;if(!a&&c&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const t=s[i];if(t===n&&s[i+1]===r){const t=e[7],n=s[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Ei(r,e,i,!1);const t=n.listen(f.name||p,s,i);u.push(i,t),l&&l.push(s,m,g,g+1)}}else i=Ei(r,e,i,!0),p.addEventListener(s,i,o),u.push(i),l&&l.push(s,m,g,o)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(i),o=u.length;u.push(i,t),l&&l.push(s,r.index,o,-(o+1))}}}(i,s,s[11],o,t,e,n,r),xi}function Oi(t,e,n){try{return!1!==e(n)}catch(r){return ss(t,r),!1}}function Ei(t,e,n,r){return function s(i){if(i===Function)return n;const o=2&t.flags?Wt(t.index,e):e;0==(32&e[2])&&Jr(o);let a=Oi(e,n,i),c=s.__ngNextListenerFn__;for(;c;)a=Oi(e,c,i)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function ji(t=1){return function(t){return(Xt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Xt.lFrame.contextLView))[8]}(t)}function Ii(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const i=e[s];if("*"!==i){if(null===r?hr(t,i,!0):dr(r,i))return s}else n=s}return n}function Ti(t){const e=ee()[16][6];if(!e.projection){const n=e.projection=gt(t?t.length:1,null),r=n.slice();let s=e.child;for(;null!==s;){const e=t?Ii(s,t):0;null!==e&&(r[e]?r[e].projectionNext=s:n[e]=s,r[e]=s),s=s.next}}}function ki(t,e=0,n){const r=ee(),s=ne(),i=Cr(s,r[6],t,1,null,n||null);null===i.projection&&(i.projection=e),oe(),function(t,e,n){Os(e[11],0,e,n,gs(t,n,e),_s(n.parent||e[6],e))}(s,r,i)}function Ai(t,e=""){const n=ee(),r=ne(),s=t+19,i=r.firstCreatePass?Cr(r,n[6],t,3,null,null):r.data[s],o=n[s]=function(t,e){return $t(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);ws(r,n,o,i),se(i,!1)}function Ri(t){return Pi("",t,""),Ri}function Pi(t,e,n){const r=ee(),s=function(t,e,n,r){return hi(t,ue(),n)?e+Ve(n)+r:gr}(r,t,e,n);return s!==gr&&function(t,e,n){const r=function(t,e){return qt(e[t+19])}(e,t),s=t[11];$t(s)?s.setValue(r,n):r.textContent=n}(r,we(),s),Pi}function Ni(t,e,n){const r=ee();return hi(r,ue(),e)&&Pr(ne(),Se(),r,t,e,r[11],n,!0),Ni}function Di(t,e){const n=Zt(t)[1],r=n.data.length-1;xe(n,{directiveStart:r,directiveEnd:r+1})}class Hi{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Mi(t){t.type.prototype.ngOnChanges&&(t.setInput=Ui,t.onChanges=function(){const t=Li(this),e=t&&t.current;if(e){const n=t.previous;if(n===yt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Ui(t,e,n,r){const s=Li(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:yt,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],c=o[a];i[a]=new Hi(c&&c.currentValue,e,o===yt),t[r]=e}function Li(t){return t.__ngSimpleChanges__||null}Mi.ngInherit=!0;class Vi{}class Fi{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${P(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let $i=(()=>{class t{}return t.NULL=new Fi,t})(),zi=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>qi(t),t})();const qi=function(t){return Ps(t,re(),ee())};class Bi{}const Gi=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let Wi=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Zi(),t})();const Zi=function(){const t=ee(),e=Wt(re().index,t);return function(t){const e=t[11];if($t(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Pt(e)?e:t)};let Ki=(()=>{class t{}return t.\u0275prov=S({token:t,providedIn:"root",factory:()=>null}),t})();class Qi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ji=new Qi("9.1.1");class Yi{constructor(){}supports(t){return ci(t)}create(t){return new to(t)}}const Xi=(t,e)=>e;class to{constructor(t){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||Xi}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex<so(n,r,s)?e:n,o=so(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{s||(s=[]);const t=o-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;e<=i&&i<t&&(s[n]=r+1)}s[i.previousIndex]=e-t}}o!==a&&t(i,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ci(t))throw new Error(`Error trying to diff '${P(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,s=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==s&&oi(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,e)),oi(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),i=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[ii()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&oi(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),oi(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(oi(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(oi(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new eo(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ro),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ro),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class eo{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class no{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&oi(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ro{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new no,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function so(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+e+s}class io{constructor(){}supports(t){return t instanceof Map||li(t)}create(){return new oo}}class oo{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||li(t)))throw new Error(`Error trying to diff '${P(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new ao(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){oi(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class ao{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let co=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new _,new y]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=S({token:t,providedIn:"root",factory:()=>new t([new Yi])}),t})(),lo=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new _,new y]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=S({token:t,providedIn:"root",factory:()=>new t([new io])}),t})();const uo=[new io],ho=new co([new Yi]),fo=new lo(uo);let po=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>go(t,zi),t})();const go=function(t,e){return Ns(t,e,re(),ee())};let mo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>bo(t,zi),t})();const bo=function(t,e){return Ds(t,e,re(),ee())},yo={};class vo extends $i{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=kt(t);return new Co(e,this.ngModule)}}function _o(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const wo=new Q("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>$e});class Co extends Vi{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(pr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return _o(this.componentDef.inputs)}get outputs(){return _o(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,yo,s);return i!==yo||r===yo?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(Bi,zt),o=s.get(Ki,null),a=i.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if($t(t))return t.selectRootElement(e,n===bt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):_r(c,i.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:$e,clean:es,playerHandler:null,flags:0},f=kr(0,-1,null,1,0,null,null,null,null,null),p=wr(null,f,d,u,null,null,i,a,o,s);let g,m;ge(p,null);try{const t=function(t,e,n,r,s,i){const o=n[1];n[19]=t;const a=Cr(o,null,0,3,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ri(a,c),null!==t&&(Ae(s,t,c),null!==a.classes&&js(s,t,a.classes),null!==a.styles&&Es(s,t,a.styles)));const l=r.createRenderer(t,e),u=wr(n,Tr(e),null,e.onPush?64:16,n[19],a,r,l,void 0);return o.firstCreatePass&&(Je(We(a,n),o,e.type),Lr(o,a),Fr(a,n.length,1)),Qr(n,u),n[19]=u}(l,this.componentDef,p,i,a);if(l)if(n)Ae(a,l,["ng-version",Ji.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===s?""!==i&&e.push(i,t[++r]):8===s&&n.push(i);else{if(!lr(s))break;s=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ae(a,l,t),e&&e.length>0&&js(a,l,e.join(" "))}m=Gt(p[1],0),e&&(m.projection=e.map(t=>Array.from(t))),g=function(t,e,n,r,s){const i=n[1],o=function(t,e,n){const r=re();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ur(t,r,1),$r(t,e,n));const s=nn(e,t,e.length-1,r);nr(s,e);const i=Bt(r,e);return i&&nr(i,e),s}(i,n,e);r.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=re();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ce(a.index-19);const t=n[1];Dr(t,e),Hr(t,n,e.hostVars),Mr(e,o)}return o}(t,this.componentDef,p,d,[Di]),Sr(f,p,null)}finally{_e()}const b=new So(this.componentType,g,Ps(zi,m,p),p,m);return n&&!h||(b.hostView._tViewNode.child=m),b}}class So extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Ts(r),this.hostView._tViewNode=function(t,e,n,r){let s=t.node;return null==s&&(t.node=s=Ar(0,null,2,-1,null,null)),r[6]=s}(r[1],0,0,r),this.componentType=t}get injector(){return new on(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const xo=void 0;var Oo=["en",[["a","p"],["AM","PM"],xo],[["AM","PM"],xo,xo],[["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"]],xo,[["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"]],xo,[["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}",xo,"{1} 'at' {0}",xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Eo={};function jo(t,e,n){"string"!=typeof e&&(n=e,e=t[Ro.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Eo[e]=t,n&&(Eo[e][Ro.ExtraData]=n)}function Io(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ao(e);if(n)return n;const r=e.split("-")[0];if(n=Ao(r),n)return n;if("en"===r)return Oo;throw new Error(`Missing locale data for the locale "${t}".`)}function To(t){return Io(t)[Ro.CurrencyCode]||null}function ko(t){return Io(t)[Ro.PluralCase]}function Ao(t){return t in Eo||(Eo[t]=$.ng&&$.ng.common&&$.ng.common.locales&&$.ng.common.locales[t]),Eo[t]}const Ro=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let Po="en-US";function No(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Po=t.toLowerCase().replace(/_/g,"-"))}const Do=new Map;class Ho extends ut{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new vo(this);const n=Rt(t),r=t[W]||null;r&&No(r),this._bootstrapComponents=ze(n.bootstrap),this._r3Injector=Bs(t,e,[{provide:ut,useValue:this},{provide:$i,useValue:this.componentFactoryResolver}],P(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ys.THROW_IF_NOT_FOUND,n=w.Default){return t===Ys||t===ut||t===J?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Mo extends ht{constructor(t){super(),this.moduleType=t,null!==Rt(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${P(e)} vs ${P(e.name)}`)})(t,Do.get(t),e),Do.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Ho(this.moduleType,t)}}function Uo(t,e,n){const r=le()+t,s=ee();return s[r]===gr?ui(s,r,n?e.call(n):e()):function(t,e){return t[e]}(s,r)}function Lo(t,e,n,r){return Vo(ee(),le(),t,e,n,r)}function Vo(t,e,n,r,s,i){const o=e+n;return hi(t,o,s)?ui(t,o+1,i?r.call(i,s):r(s)):function(t,e){const n=t[e];return n===gr?void 0:n}(t,o+1)}function Fo(t,e){const n=ne();let r;const s=t+19;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=At(r.type)),o=st(pi),a=i();return st(o),function(t,e,n,r){const s=n+19;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=r}(n,ee(),t,a),a}function $o(t,e,n){const r=ee(),s=function(t,e){return t[e+19]}(r,t);return function(t,e){return ai.isWrapped(e)&&(e=ai.unwrap(e),t[Xt.lFrame.bindingIndex]=gr),e}(r,function(t,e){return t[1].data[e+19].pure}(r,t)?Vo(r,le(),e,s.transform,n,s):s.transform(n))}class zo extends r.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,i,o);return t instanceof s.a&&t.add(a),a}}function qo(){return this._results[ii()]()}class Bo{constructor(){this.dirty=!0,this._results=[],this.changes=new zo,this.length=0;const t=ii(),e=Bo.prototype;e[t]||(e[t]=qo)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?(n===e&&(n=e.slice(0,r)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Go{constructor(t){this.queryList=t,this.matches=null}clone(){return new Go(this.queryList)}setDirty(){this.queryList.setDirty()}}class Wo{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new Wo(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==ra(t,e).matches&&this.queries[e].setDirty()}}class Zo{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class Ko{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,r);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new Ko(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Qo{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Qo(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,Jo(e,n[r]))}else{const n=this.metadata.predicate;n===po?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,en(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===zi||r===mo||r===po&&0===e.type)this.addMatch(e.index,-2);else{const n=en(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Jo(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Yo(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?Ps(zi,t,e):0===t.type?Ns(po,zi,t,e):null}(e,t):-2===n?function(t,e,n){return n===zi?Ps(zi,e,t):n===po?Ns(po,zi,e,t):n===mo?Ds(mo,zi,e,t):void 0}(t,e,r):nn(t,t[1],n,e)}function Xo(t,e,n,r){const s=e[5].queries[r];if(null===s.matches){const r=t.data,i=n.matches,o=[];for(let t=0;t<i.length;t+=2){const s=i[t];o.push(s<0?null:Yo(e,r[s],i[t+1],n.metadata.read))}s.matches=o}return s.matches}function ta(t){const e=ee(),n=ne(),r=de();fe(r+1);const s=ra(n,r);if(t.dirty&&Kt(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const i=s.crossesNgTemplate?function t(e,n,r,s){const i=e.queries.getByIndex(r),o=i.matches;if(null!==o){const a=Xo(e,n,i,r);for(let e=0;e<o.length;e+=2){const r=o[e];if(r>0)s.push(a[e/2]);else{const i=o[e+1],a=n[-r];for(let e=9;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,i,s)}if(null!==a[5]){const e=a[5];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,i,s)}}}}}return s}(n,e,r,[]):Xo(n,e,s,r);t.reset(i),t.notifyOnChanges()}return!0}return!1}function ea(t,e,n,r){!function(t,e,n,r,s,i,o,a){t.firstCreatePass&&(function(t,e,n){null===t.queries&&(t.queries=new Ko),t.queries.track(new Qo(e,n))}(t,new Zo(n,r,!1,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),function(t,e){const n=new Bo;!function(t,e,n,r){const s=ns(e);s.push(n),t.firstCreatePass&&rs(t).push(r,s.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new Wo),e[5].queries.push(new Go(n))}(t,e)}(ne(),ee(),e,n,r,0,re(),t)}function na(){return t=ee(),e=de(),t[5].queries[e].queryList;var t,e}function ra(t,e){return t.queries.getByIndex(e)}function sa(t=w.Default){const e=Hs(!0);if(null!=e||t&w.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const ia=new Q("Application Initializer");let oa=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Ci(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ot(ia,8))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const aa=new Q("AppId"),ca={provide:aa,useFactory:function(){return`${la()}${la()}${la()}`},deps:[]};function la(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ua=new Q("Platform Initializer"),ha=new Q("Platform ID"),da=new Q("appBootstrapListener");let fa=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const pa=new Q("LocaleId"),ga=new Q("DefaultCurrencyCode");class ma{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ba=function(t){return new Mo(t)},ya=ba,va=function(t){return Promise.resolve(ba(t))},_a=function(t){const e=ba(t),n=ze(Rt(t).declarations).reduce((t,e)=>{const n=kt(e);return n&&t.push(new Co(n)),t},[]);return new ma(e,n)},wa=_a,Ca=function(t){return Promise.resolve(_a(t))};let Sa=(()=>{class t{constructor(){this.compileModuleSync=ya,this.compileModuleAsync=va,this.compileModuleAndAllComponentsSync=wa,this.compileModuleAndAllComponentsAsync=Ca}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const xa=new Q("compilerOptions"),Oa=(()=>Promise.resolve(0))();function Ea(t){"undefined"==typeof Zone?Oa.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ja{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zo(!1),this.onMicrotaskEmpty=new zo(!1),this.onStable=new zo(!1),this.onError=new zo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=$.requestAnimationFrame,e=$.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($,()=>{t.lastRequestAnimationFrameId=-1,Aa(t),ka(t)}),Aa(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return Ra(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),Pa(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return Ra(t),e.invoke(r,s,i,o,a)}finally{Pa(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Aa(t),ka(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ja.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ja.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,Ta,Ia,Ia);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Ia(){}const Ta={};function ka(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Aa(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Ra(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Pa(t){t._nesting--,ka(t)}class Na{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zo,this.onMicrotaskEmpty=new zo,this.onStable=new zo,this.onError=new zo}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Da=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ja.assertNotInAngularZone(),Ea(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ea(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(ot(ja))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})(),Ha=(()=>{class t{constructor(){this._applications=new Map,Va.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Va.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();class Ma{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ua(t){Va=t}let La,Va=new Ma,Fa=function(t,e,n){const r=t.get(xa,[]).concat(e),s=new Mo(n);if(0===ti.size)return Promise.resolve(s);const i=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(r.map(t=>t.providers));if(0===i.length)return Promise.resolve(s);const o=function(){const t=$.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=Ys.create({providers:i}).get(o.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=r.then(ni))}return e}return ti.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(r(t.templateUrl).then(e=>{t.template=e}));const i=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;i&&i.forEach((e,n)=>{o.push(""),s.push(r(e).then(r=>{o[a+n]=r,i.splice(i.indexOf(e),1),0==i.length&&(t.styleUrls=void 0)}))});const c=Promise.all(s).then(()=>function(t){ei.delete(t)}(n));e.push(c)}),ti=new Map,Promise.all(e).then(()=>{})}().then(()=>s)};const $a=new Q("AllowMultipleToken");class za{constructor(t,e){this.name=t,this.token=e}}function qa(t,e,n=[]){const r=`Platform: ${e}`,s=new Q(r);return(e=[])=>{let i=Ba();if(!i||i.injector.get($a,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ls,useValue:"platform"});!function(t){if(La&&!La.destroyed&&!La.injector.get($a,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");La=t.get(Ga);const e=t.get(ua,null);e&&e.forEach(t=>t())}(Ys.create({providers:t,name:r}))}return function(t){const e=Ba();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Ba(){return La&&!La.destroyed?La:null}let Ga=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Na:("zone.js"===t?void 0:t)||new ja({enableLongStackTrace:jn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:ja,useValue:n}];return n.run(()=>{const e=Ys.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(un,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Ka(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return Ci(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(oa);return t.runInitializers(),t.donePromise.then(()=>(No(s.injector.get(pa,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Wa({},e);return Fa(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Za);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${P(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ot(Ys))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function Wa(t,e){return Array.isArray(e)?e.reduce(Wa,t):Object.assign(Object.assign({},t),e)}let Za=(()=>{class t{constructor(t,e,n,r,s,a){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=jn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ja.assertNotInAngularZone(),Ea(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ja.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.pipe(t=>{return c()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,d);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){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.");let n;n=t instanceof Vi?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ut),s=n.create(Ys.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(Da,null);return i&&s.injector.get(Ha).registerApplication(s.location.nativeElement,i),this._loadComponent(s),jn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Ka(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(da,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Ka(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ot(ja),ot(fa),ot(Ys),ot(un),ot($i),ot(oa))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function Ka(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Qa{}class Ja{}const Ya={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Xa=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ya}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>tc(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>tc(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(ot(Sa),ot(Ja,8))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function tc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const ec=function(t){return null},nc=qa(null,"core",[{provide:ha,useValue:"unknown"},{provide:Ga,deps:[Ys]},{provide:Ha,deps:[]},{provide:fa,deps:[]}]),rc=[{provide:Za,useClass:Za,deps:[ja,fa,Ys,un,$i,oa]},{provide:wo,deps:[ja],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:oa,useClass:oa,deps:[[new y,ia]]},{provide:Sa,useClass:Sa,deps:[]},ca,{provide:co,useFactory:function(){return ho},deps:[]},{provide:lo,useFactory:function(){return fo},deps:[]},{provide:pa,useFactory:function(t){return No(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new b(pa),new y,new _]]},{provide:ga,useValue:"USD"}];let sc=(()=>{class t{constructor(t){}}return t.\u0275mod=Ot({type:t}),t.\u0275inj=x({factory:function(e){return new(e||t)(ot(Za))},providers:rc}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("2fFW"),s=n("NJ4a");const i={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC"),s=n("quSY");function i(t,e){return new r.a(n=>{const r=new s.a;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return N})),n.d(e,"b",(function(){return H})),n.d(e,"c",(function(){return R}));var r=n("ofXK"),s=n("fXoL");class i extends r.p{constructor(){super()}supportsDOMEvents(){return!0}}class o extends i{static makeCurrent(){Object(r.t)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(r.s)(document.cookie,t)}}let a,c=null;const l=new s.q("TRANSITION_ID"),u=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(r.r)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,r.d,s.r],multi:!0}];class h{static init(){Object(s.U)(new h)}addToWindow(t){s.mb.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},s.mb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.mb.getAllAngularRootElements=()=>t.getAllRootElements(),s.mb.frameworkStabilizers||(s.mb.frameworkStabilizers=[]),s.mb.frameworkStabilizers.push(t=>{const e=s.mb.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(r.r)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.q("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(d),s.Kb(s.z))},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})();class p{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=Object(r.r)().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let g=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})(),m=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.r)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(r.d))},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})();const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},y=/%COMP%/g;function v(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?v(t,s,n):(s=s.replace(y,t),n.push(s))}return n}function _(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.O.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case s.O.Native:case s.O.ShadowDom:return new x(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=v(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(f),s.Kb(m),s.Kb(s.c))},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=b[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=b[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&s.F.DashCase?t.style.setProperty(e,n,r&s.F.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.F.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,_(n)):this.eventManager.addEventListener(t,e,_(n))}}class S extends C{constructor(t,e,n,r){super(t),this.component=n;const s=v(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(y,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class x extends C{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===s.O.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=v(r.id,r.styles,[]);for(let s=0;s<i.length;s++){const t=document.createElement("style");t.textContent=i[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let O=(()=>{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(r.d))},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],j={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},I={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},T={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let k=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.r)().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(E.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&I.hasOwnProperty(e)&&(e=I[e]))}return j[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(r=>{r!=n&&(0,T[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(r.d))},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})();const A=[{provide:s.B,useValue:r.q},{provide:s.C,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:r.d,useFactory:function(){return Object(s.sb)(document),document},deps:[]}],R=Object(s.Q)(s.T,"browser",A),P=[[],{provide:s.W,useValue:"root"},{provide:s.m,useFactory:function(){return new s.m},deps:[]},{provide:d,useClass:O,multi:!0,deps:[r.d,s.z,s.B]},{provide:d,useClass:k,multi:!0,deps:[r.d]},[],{provide:w,useClass:w,deps:[f,m,s.c]},{provide:s.E,useExisting:w},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.d]},{provide:s.L,useClass:s.L,deps:[s.z]},{provide:f,useClass:f,deps:[d,s.z]},[]];let N=(()=>{class t{constructor(t){if(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.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:l,useExisting:s.c},u]}}}return t.\u0275mod=s.Db({type:t}),t.\u0275inj=s.Cb({factory:function(e){return new(e||t)(s.Kb(t,12))},providers:P,imports:[r.c,s.f]}),t})();function D(){return new H(Object(s.Kb)(r.d))}let H=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(r.d))},t.\u0275prov=Object(s.Bb)({factory:D,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");class s extends r.a{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}}class i{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},lzgZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("fXoL");let s=(()=>{class t{constructor(){}getPostDateFormRoute(t){return/(\d{4}-\d{2}-\d{2})/g.exec(t)[0]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Bb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i}));var r=n("SpAZ");function s(...t){return i(t)}function i(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return z})),n.d(e,"c",(function(){return q})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return S})),n.d(e,"h",(function(){return y})),n.d(e,"i",(function(){return A})),n.d(e,"j",(function(){return P})),n.d(e,"k",(function(){return D})),n.d(e,"l",(function(){return U})),n.d(e,"m",(function(){return w})),n.d(e,"n",(function(){return l})),n.d(e,"o",(function(){return G})),n.d(e,"p",(function(){return a})),n.d(e,"q",(function(){return B})),n.d(e,"r",(function(){return i})),n.d(e,"s",(function(){return k})),n.d(e,"t",(function(){return o}));var r=n("fXoL");let s=null;function i(){return s}function o(t){s||(s=t)}class a{}const c=new r.q("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Bb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(r.Kb)(d)}const h=new r.q("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=i().getLocation(),this._history=i().getHistory()}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(c))},t.\u0275prov=Object(r.Bb)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(r.Kb)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Bb)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=Object(r.Kb)(c).location;return new w(Object(r.Kb)(l),e&&e.origin||"")}const _=new r.q("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+b(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+b(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(l),r.Kb(_,8))},t.\u0275prov=r.Bb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+b(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+b(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(l),r.Kb(_,8))},t.\u0275prov=r.Bb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{constructor(t,e){this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(y),r.Kb(l))},t.normalizeQueryParams=b,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=Object(r.Bb)({factory:x,token:t,providedIn:"root"}),t})();function x(){return new S(Object(r.Kb)(y),Object(r.Kb)(l))}function O(t){return t.replace(/\/index.html$/,"")}const E=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),j=r.kb;class I{}let T=(()=>{class t extends I{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(j(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.u))},t.\u0275prov=r.Bb({token:t,factory:t.\u0275fac}),t})();function k(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let A=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r.nb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r.tb)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(r.Fb(r.s),r.Fb(r.t),r.Fb(r.l),r.Fb(r.D))},t.\u0275dir=r.Ab({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let P=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(r.S)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new R(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new N(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new N(t,s);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Fb(r.N),r.Fb(r.K),r.Fb(r.s))},t.\u0275dir=r.Ab({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class N{constructor(t,e){this.record=t,this.view=e}}let D=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new H,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){M("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){M("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Fb(r.N),r.Fb(r.K))},t.\u0275dir=r.Ab({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class H{constructor(){this.$implicit=null,this.ngIf=null}}function M(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.tb)(e)}'.`)}let U=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(r.Fb(r.l),r.Fb(r.t),r.Fb(r.D))},t.\u0275dir=r.Ab({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})();class L{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const F=new V,$=new L;let z=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Object(r.qb)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.P.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(r.pb)(e))return F;if(Object(r.ob)(e))return $;throw n=t,Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r.tb)(n)}'`);var n}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(r.Mb())},t.\u0275pipe=r.Eb({name:"async",type:t,pure:!1}),t})(),q=(()=>{class t{}return t.\u0275mod=r.Db({type:t}),t.\u0275inj=r.Cb({factory:function(e){return new(e||t)},providers:[{provide:I,useClass:T}]}),t})();const B="browser";let G=(()=>{class t{}return t.\u0275prov=Object(r.Bb)({token:t,providedIn:"root",factory:()=>new W(Object(r.Kb)(c),window,Object(r.Kb)(r.m))}),t})();class W{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t,e){return function(n){return n.lift(new i(t,e))}}class i{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("DH7j"),s=n("XoHu"),i=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(i.a)(a))try{a.call(this)}catch(u){e=u instanceof o?c(u.errors):[u]}if(Object(r.a)(l)){let t=-1,n=l.length;for(;++t<n;){const n=l[t];if(Object(s.a)(n))try{n.unsubscribe()}catch(u){e=e||[],u instanceof o?e=e.concat(c(u.errors)):e.push(u)}}}if(e)throw new o(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function c(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}},sVev:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sbAP:function(t,e,n){"use strict";function r(t,e,n,r){return new(n||(n=Promise))((function(s,i){function o(t){try{c(r.next(t))}catch(e){i(e)}}function a(t){try{c(r.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}c((r=r.apply(t,e||[])).next())}))}n.d(e,"a",(function(){return et})),n.d(e,"b",(function(){return rt})),n.d(e,"c",(function(){return X}));var s=n("fXoL"),i=n("tyNb"),o=n("2Vo4"),a=n("HDdC"),c=n("KqfI");const l=new a.a(c.a);var u=n("LRne"),h=n("XNiG"),d=n("quSY");class f extends d.a{constructor(t,e){super()}schedule(t,e=0){return this}}class p extends f{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class g extends p{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let m=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class b extends m{constructor(t,e=m.now){super(t,()=>b.delegate&&b.delegate!==this?b.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return b.delegate&&b.delegate!==this?b.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class y extends b{}const v=new y(g);var _=n("7o/Q"),w=n("EY2u");let C=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(u.a)(this.value);case"E":return t=this.error,new a.a(e=>e.error(t));case"C":return Object(w.b)()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class S extends _.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(S.dispatch,this.delay,new x(t,this.destination)))}_next(t){this.scheduleMessage(C.createNext(t))}_error(t){this.scheduleMessage(C.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(C.createComplete()),this.unsubscribe()}}class x{constructor(t,e){this.notification=t,this.destination=e}}var O=n("9ppp"),E=n("Ylt2");class j extends h.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new I(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=n.length;let i;if(this.closed)throw new O.a;if(this.isStopped||this.hasError?i=d.a.EMPTY:(this.observers.push(t),i=new E.a(this,t)),r&&t.add(t=new S(t,r)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),i}_getNow(){return(this.scheduler||v).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,s=r.length;let i=0;for(;i<s&&!(t-r[i].time<n);)i++;return s>e&&(i=Math.max(i,s-e)),i>0&&r.splice(0,i),r}}class I{constructor(t,e){this.time=t,this.value=e}}var T=n("VRyK"),k=n("pLZG"),A=n("eIep"),R=n("vkgz"),P=n("SxV6"),N=n("lJxs");function D(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let s,i,o=0,a=!1,c=!1;return function(l){o++,s&&!a||(a=!1,s=new j(t,e,r),i=l.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,i=void 0,s.complete()}}));const u=s.subscribe(this);this.add(()=>{o--,u.unsubscribe(),i&&!c&&n&&0===o&&(i.unsubscribe(),i=void 0,s=void 0)})}}(r))}function H(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>Object(N.a)(function(t,e){return n=>{let r=n;for(let s=0;s<e;s++){const e=r[t[s]];if(void 0===e)return;r=e}return r}}(t,e))(n)}var M=n("IzEk");class U{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new L(t,this.predicate,this.inclusive))}}class L extends _.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var V=n("JIr8"),F=n("ofXK");const $=["*"],z={useTransferState:!0,alwaysMonitor:!1,manualIdle:!1},q=new s.q("scullyLibConfig",{factory:()=>z});function B(t,e="json"){return new Promise((n,r)=>{const s=new XMLHttpRequest;s.responseType=e,s.addEventListener("load",t=>{if(200!==s.status)return r(s);n(s.response)}),s.addEventListener("error",(...t)=>r(t)),s.open("get",t,!0),s.send()})}const G=()=>window&&"running"===window.ScullyIO,W=()=>window&&"generated"===window.ScullyIO;function Z(t,e){return t.endsWith("/")&&e.startsWith("/")?`${t}${e.substr(1)}`:t.endsWith("/")||e.startsWith("/")?`${t}${e}`:`${t}/${e}`}const K=t=>(t.includes("#")&&(t=t.split("#")[0]),t.includes("?")&&(t=t.split("?")[0]),t.endsWith("/")?t.slice(0,-1):t);let Q=(()=>{class t{constructor(t,e){this.document=t,this.router=e,this.inlineOnly=!1,this.currentBaseUrl="//",this.stateBS=new o.a({}),this.state$=this.stateBS.pipe(Object(k.a)(t=>void 0!==t)),this.nextUrl=this.router.events.pipe(Object(k.a)(t=>t instanceof i.c),Object(A.a)(t=>this.initialUrl===t.url?(this.initialUrl="__done__with__Initial__navigation__",l):Object(u.a)(t)),Object(R.a)(()=>this.stateBS.next(void 0)),Object(A.a)(t=>this.router.events.pipe(Object(k.a)(e=>e instanceof i.b&&e.url===t.url),Object(P.a)())),Object(N.a)(t=>K(t.urlAfterRedirects||t.url)),D(1))}startMonitoring(){window&&window["ScullyIO-injected"]&&window["ScullyIO-injected"].inlineStateOnly&&(this.inlineOnly=!0),this.setupEnvForTransferState(),this.setupStartNavMonitoring()}setupEnvForTransferState(){if(G()){this.injectScript();const t=window["ScullyIO-exposed"]||{};t.transferState&&(this.stateBS.next(t.transferState),this.saveState(t.transferState))}else W()&&(this.initialUrl=window.location.pathname||"__no_NO_no__",this.initialUrl="/"!==this.initialUrl&&this.initialUrl.endsWith("/")?this.initialUrl.slice(0,-1):this.initialUrl,this.stateBS.next(window&&window["ScullyIO-transfer-state"]||{}))}injectScript(){this.script=this.document.createElement("script"),this.script.setAttribute("id","ScullyIO-transfer-state");let t=document.body.lastChild;for(;"SCRIPT"===t.previousSibling.nodeName;)t=t.previousSibling;document.body.insertBefore(this.script,t)}getState(t){return this.fetchTransferState(),this.state$.pipe(H(t))}stateHasKey(t){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(t)}stateKeyHasValue(t){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(t)&&null!=this.stateBS.value[t]}setState(t,e){const n=Object.assign(Object.assign({},this.stateBS.value),{[t]:e});this.stateBS.next(n),this.saveState(n)}saveState(t){G()&&(this.script.textContent=`window['ScullyIO-transfer-state']=/** ___SCULLY_STATE_START___ */${JSON.stringify(t)}/** ___SCULLY_STATE_END___ */`)}setupStartNavMonitoring(){W()&&this.nextUrl.subscribe()}useScullyTransferState(t,e){return W()?this.getState(t):e.pipe(Object(R.a)(e=>this.setState(t,e)))}fetchTransferState(){return r(this,void 0,void 0,(function*(){const t=t=>t.split("/").filter(t=>""!==t.trim())[0];yield new Promise(t=>setTimeout(t,0));const e=yield this.nextUrl.pipe(Object(M.a)(1)).toPromise(),n=t(e);this.currentBaseUrl!==n&&(this.currentBaseUrl=n,this.nextUrl.pipe(function(t,e=!1){return n=>n.lift(new U(t,e))}(e=>t(e)===this.currentBaseUrl),Object(A.a)(t=>this.inlineOnly?this.readFromIndex(t):this.readFromJson(t)),Object(V.a)(t=>(console.warn("Error while loading of parsing Scully state:",t),Object(u.a)({}))),Object(R.a)(t=>{this.stateBS.next(t)})).subscribe({complete:()=>{this.currentBaseUrl="//"}}))}))}readFromJson(t){return B(J(Z(t,"/data.json")))}readFromIndex(t){return B(J(Z(t,"/index.html")),"text").then(t=>{const e=t.split("/** ___SCULLY_STATE_START___ */")[1].split("/** ___SCULLY_STATE_END___ */")[0];return JSON.parse(e)})}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(F.d),s.Kb(i.d))},t.\u0275prov=Object(s.Bb)({factory:function(){return new t(Object(s.Kb)(F.d),Object(s.Kb)(i.d))},token:t,providedIn:"root"}),t})();function J(t){return t.startsWith("/")?t.slice(1):t}let Y=(()=>{class t{constructor(t,e,n,r){var s;this.zone=t,this.router=e,this.initialUrl=((s=window&&window.location.pathname).endsWith("/")?s.slice(0,-1):s)||"",this.imState=new o.a({idle:!1,timeOut:5e3}),this.idle$=this.imState.pipe(H("idle")),this.initApp=new Event("AngularInitialized",{bubbles:!0,cancelable:!1}),this.appReady=new Event("AngularReady",{bubbles:!0,cancelable:!1}),this.appTimeout=new Event("AngularTimeout",{bubbles:!0,cancelable:!1}),this.scullyLibConfig=Object.assign({},z,n);const a=!!(window["ScullyIO-exposed"]||{}).manualIdle;!this.scullyLibConfig.manualIdle&&window&&(this.scullyLibConfig.alwaysMonitor||G())&&(window.dispatchEvent(this.initApp),this.router.events.pipe(Object(k.a)(t=>t instanceof i.b&&void 0!==t.urlAfterRedirects),Object(k.a)(t=>!a||t.urlAfterRedirects!==this.initialUrl),Object(R.a)(()=>this.zoneIdleCheck())).subscribe()),this.scullyLibConfig.manualIdle&&window.dispatchEvent(this.initApp),this.scullyLibConfig.useTransferState&&r.startMonitoring()}fireManualMyAppReadyEvent(){return r(this,void 0,void 0,(function*(){return window.dispatchEvent(this.appReady)}))}init(){return r(this,void 0,void 0,(function*(){return this.idle$.pipe(Object(M.a)(1)).toPromise()}))}zoneIdleCheck(){return r(this,void 0,void 0,(function*(){if(void 0===Zone)return this.simpleTimeout();const t=Zone.current.get("TaskTrackingZone");if(void 0===t)return this.simpleTimeout();this.imState.value.idle&&(yield this.setState("idle",!1)),this.zone.runOutsideAngular(()=>{let e,n=0;const r=Date.now(),s=()=>{clearTimeout(e),Date.now()-r>3e4?window.dispatchEvent(this.appTimeout):t.macroTasks.length>0&&void 0!==t.macroTasks.find(t=>t.source.includes("XMLHttpRequest"))||n<1?e=setTimeout(()=>{n+=1,s()},50):this.zone.run(()=>{setTimeout(()=>{window.dispatchEvent(this.appReady),this.setState("idle",!0)},250)})};s()})}))}simpleTimeout(){return r(this,void 0,void 0,(function*(){console.warn("Scully is using timeouts, add the needed polyfills instead!"),yield new Promise(t=>setTimeout(t,this.imState.value.timeOut)),window.dispatchEvent(this.appReady)}))}setPupeteerTimeoutValue(t){this.imState.next(Object.assign(Object.assign({},this.imState.value),{timeOut:t}))}setState(t,e){this.imState.next(Object.assign(Object.assign({},this.imState.value),{[t]:e}))}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(s.z),s.Kb(i.d),s.Kb(q),s.Kb(Q))},t.\u0275prov=Object(s.Bb)({factory:function(){return new t(Object(s.Kb)(s.z),Object(s.Kb)(i.d),Object(s.Kb)(q),Object(s.Kb)(Q))},token:t,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t){this.router=t,this.refresh=new j(1),this.allRoutes$=this.refresh.pipe(Object(A.a)(()=>B("assets/scully-routes.json")),Object(V.a)(()=>(console.warn("Scully routes file not found, are you running the Scully generated version of your site?"),Object(u.a)([]))),Object(k.a)(t=>Array.isArray(t)),Object(N.a)(this.cleanDups),D({refCount:!1,bufferSize:1})),this.available$=this.allRoutes$.pipe(Object(N.a)(t=>t.filter(t=>!t.hasOwnProperty("published")||!1!==t.published)),D({refCount:!1,bufferSize:1})),this.unPublished$=this.allRoutes$.pipe(Object(N.a)(t=>t.filter(t=>!!t.hasOwnProperty("published")&&!1===t.published)),D({refCount:!1,bufferSize:1})),this.topLevel$=this.available$.pipe(Object(N.a)(t=>t.filter(t=>!t.route.slice(1).includes("/"))),D({refCount:!1,bufferSize:1})),this.reload()}getCurrent(){return location?Object(T.a)(Object(u.a)(new i.b(0,"","")),this.router.events).pipe(Object(k.a)(t=>t instanceof i.b),Object(A.a)(()=>this.available$),Object(N.a)(t=>{const e=K(encodeURI(location.pathname).trim());return t.find(t=>e===K(t.route.trim())||t.slugs&&Array.isArray(t.slugs)&&t.slugs.find(t=>e.endsWith(K(t.trim()))))})):Object(u.a)()}cleanDups(t){const e=new Map;return t.forEach(t=>e.set(JSON.stringify(Object.assign(Object.assign({},t),{route:tt(t)?"":t.route})),t)),[...e.values()]}reload(){this.refresh.next()}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(i.d))},t.\u0275prov=Object(s.Bb)({factory:function(){return new t(Object(s.Kb)(i.d))},token:t,providedIn:"root"}),t})();function tt(t){const e=Object.keys(t);return!(1===e.length&&e.includes("route")||2===e.length&&e.includes("route")&&e.includes("title"))}let et=(()=>{class t{constructor(t,e,n){this.elmRef=t,this.srs=e,this.router=n,this.elm=this.elmRef.nativeElement,this.routes=this.srs.allRoutes$.pipe(Object(M.a)(1)).toPromise(),this.routeUpdates$=this.router.events.pipe(Object(k.a)(t=>t instanceof i.b),Object(k.a)(t=>this.lastHandled&&!this.lastHandled.endsWith(t.urlAfterRedirects)),Object(R.a)(t=>this.replaceContent())),this.routeSub=this.routeUpdates$.subscribe()}ngOnInit(){this.elm&&this.handlePage()}handlePage(){return r(this,void 0,void 0,(function*(){const t=K(location.href);if(this.lastHandled===t)return;this.lastHandled=t;const e=document.createElement("template"),n=this.getCSSId(this.elm);if(window.scullyContent){const t=window.scullyContent.html;e.innerHTML=n!==window.scullyContent.cssId?t.split(window.scullyContent.cssId).join(n):t}else yield B(t+"/index.html","text").catch(t=>{if(Object(s.S)()){const t=new URL(location.href);return B(`http://localhost:1668/${K(t.pathname)}/index.html`,"text")}throw new Error(t)}).then(t=>{try{const r=t.split("\x3c!--scullyContent-begin--\x3e")[1].split("\x3c!--scullyContent-end--\x3e")[0];if(r.includes("_ngcontent")){const t="_ngcontent"+r.split("_ngcontent")[1].split("=")[0];e.innerHTML=r.split(t).join(n)}}catch(r){e.innerHTML='<h2 id="___scully-parsing-error___">Sorry, could not parse static page content</h2>\n <p>This might happen if you are not using the static generated pages.</p>'}}).catch(t=>{e.innerHTML='<h2 id="___scully-parsing-error___">Sorry, could not load static page content</h2>',console.error("problem during loading static scully content",t)});const r=this.elm.parentElement||document.body,i=document.createComment("scullyContent-begin"),o=document.createComment("scullyContent-end");r.insertBefore(i,this.elm),r.insertBefore(e.content,this.elm),r.insertBefore(o,this.elm),setTimeout(()=>document.querySelectorAll("[href]").forEach(this.upgradeToRoutelink.bind(this)),10)}))}upgradeToRoutelink(t){return r(this,void 0,void 0,(function*(){const e=yield this.routes,n=K(t.getAttribute("href").toLowerCase()),s=e.find(t=>K(t.route.toLowerCase())===n);n&&s&&!n.startsWith("#")&&(t.onclick=t=>r(this,void 0,void 0,(function*(){const e=s.route.split("/"),n=location.pathname.split("/");n.pop(),t.preventDefault(),(yield this.router.navigate(e).catch(t=>(console.error("routing error",t),!1)))&&n.every((t,n)=>e[n]===t)&&e.length!==n.length+1&&setTimeout(()=>this.replaceContent(),10)})))}))}replaceContent(){window.scullyContent=void 0;const t=this.elm.parentElement;let e=function(t,e){const n=[],r=document.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode:t=>t.nodeValue&&!t.nodeValue.includes("scullyContent-begin")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});let s;for(;s=r.nextNode();)n.push(s);return n}(t)[0];for(;e&&e!==this.elm;){const n=e.nextSibling;t.removeChild(e),e=n}this.handlePage()}getCSSId(t){return t.getAttributeNames().find(t=>t.startsWith("_ngcontent"))||"none_found"}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Fb(s.l),s.Fb(X),s.Fb(i.d))},t.\u0275cmp=s.zb({type:t,selectors:[["scully-content"]],ngContentSelectors:$,decls:1,vars:0,template:function(t,e){1&t&&(s.Ub(),s.Tb(0))},styles:["\n :host {\n display: none;\n }\n scully-content {\n display: none;\n }\n "],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275mod=s.Db({type:t}),t.\u0275inj=s.Cb({factory:function(e){return new(e||t)}}),t})(),rt=(()=>{class t{constructor(t){this.idle=t}static forRoot(e=z){return{ngModule:t,providers:[{provide:q,useValue:e}]}}}return t.\u0275mod=s.Db({type:t}),t.\u0275inj=s.Cb({factory:function(e){return new(e||t)(s.Kb(Y))},imports:[[nt],nt]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return se})),n.d(e,"b",(function(){return X})),n.d(e,"c",(function(){return Y})),n.d(e,"d",(function(){return fn})),n.d(e,"e",(function(){return pn})),n.d(e,"f",(function(){return In})),n.d(e,"g",(function(){return yn}));var r=n("ofXK"),s=n("fXoL"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("HDdC"),l=n("sVev"),u=n("z+Ro"),h=n("DH7j"),d=n("l7GE"),f=n("ZUHj"),p=n("yCtX");const g={};class m{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new b(t,this.resultSelector))}}class b extends d.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(g),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(Object(f.a)(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,s){const i=this.values,o=this.toRespond?i[n]===g?--this.toRespond:this.toRespond:0;i[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}var y=n("EY2u");function v(t){return new c.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(o.a)(n):Object(y.b)()).subscribe(e)})}var _=n("XNiG"),w=n("lJxs"),C=n("bHdf");function S(){return Object(C.a)(1)}var x=n("pLZG"),O=n("7o/Q"),E=n("4I5i");function j(t){return function(e){return 0===t?Object(y.b)():e.lift(new I(t))}}class I{constructor(t){if(this.total=t,this.total<0)throw new E.a}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends O.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(r[s])}}t.complete()}}var k=n("XDbj"),A=n("xbPD"),R=n("SpAZ");function P(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(x.a)((e,n)=>t(e,n,r)):R.a,j(1),n?Object(A.a)(e):Object(k.a)(()=>new l.a))}var N=n("JIr8"),D=n("SxV6"),H=n("5+tZ");class M{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new U(t,this.predicate,this.thisArg,this.source))}}class U extends O.a{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var L=n("eIep"),V=n("IzEk");function F(...t){return S()(Object(i.a)(...t))}function $(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new z(t,e,n))}}class z{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new q(t,this.accumulator,this.seed,this.hasSeed))}}class q extends O.a{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function B(t,e){return Object(H.a)(t,e,1)}var G=n("mCNh"),W=n("vkgz"),Z=n("quSY");class K{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Q(t,this.callback))}}class Q extends O.a{constructor(t,e){super(t),this.add(new Z.a(e))}}class J{constructor(t,e){this.id=t,this.url=e}}class Y extends J{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class X extends J{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class tt extends J{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class et extends J{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nt extends J{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt extends J{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class st extends J{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class it extends J{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ot extends J{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class at{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ct{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ht{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ft{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.zb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Gb(0,"router-outlet")},directives:function(){return[yn]},encapsulation:2}),t})();class gt{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mt(t){return new gt(t)}function bt(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function yt(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const s={};for(let i=0;i<r.length;i++){const e=r[i],n=t[i];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:s}}class vt{constructor(t,e){this.routes=t,this.module=e}}function _t(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];wt(r,Ct(e,r))}}function wt(t,e){if(!t)throw new Error(`\n Invalid configuration of route '${e}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&_t(t.children,e)}function Ct(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function St(t){const e=t.children&&t.children.map(St),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=pt),n}function xt(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!Ot(t[s],e[s]))return!1;return!0}function Ot(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function Et(t){return Array.prototype.concat.apply([],t)}function jt(t){return t.length>0?t[t.length-1]:null}function It(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Tt(t){return Object(s.ob)(t)?t:Object(s.pb)(t)?Object(o.a)(Promise.resolve(t)):Object(i.a)(t)}function kt(t,e,n){return n?function(t,e){return xt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Nt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Ot(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,s){if(n.segments.length>s.length)return!!Nt(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!Nt(n.segments,s))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Nt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,i)}}(e,n,n.segments)}(t.root,e.root)}class At{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return Ut.serialize(this)}}class Rt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,It(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}}class Pt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap}toString(){return Bt(this)}}function Nt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Dt(t,e){let n=[];return It(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),It(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class Ht{}class Mt{parse(t){const e=new Qt(t);return new At(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return Lt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return It(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Dt(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${Lt(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Ft(e)}=${Ft(t)}`).join("&"):`${Ft(e)}=${Ft(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Ut=new Mt;function Lt(t){return t.segments.map(t=>Bt(t)).join("/")}function Vt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft(t){return Vt(t).replace(/%3B/gi,";")}function $t(t){return Vt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zt(t){return decodeURIComponent(t)}function qt(t){return zt(t.replace(/\+/g,"%20"))}function Bt(t){return`${$t(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$t(t)}=${$t(e[t])}`).join("")}`;var e}const Gt=/^[^\/()?;=#]+/;function Wt(t){const e=t.match(Gt);return e?e[0]:""}const Zt=/^[^=?&#]+/,Kt=/^[^?&#]+/;class Qt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Rt(t,e)),n}parseSegment(){const t=Wt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Pt(zt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Wt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Wt(this.remaining);t&&(n=t,this.capture(n))}t[zt(e)]=zt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Zt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=qt(e),s=qt(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Wt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new Rt([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Jt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Yt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Yt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Yt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Yt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Xt(t,n);if(r.length)return r.unshift(e),r}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Jt{constructor(t,e){super(t),this.snapshot=e,ce(this,t)}toString(){return this.snapshot.toString()}}function re(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),r=new a.a([new Pt("",{})]),s=new a.a({}),i=new a.a({}),o=new a.a({}),c=new a.a(""),l=new se(r,s,o,c,i,"primary",e,n.root);return l.snapshot=n.root,new ne(new te(l,[]),n)}class se{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(w.a)(t=>mt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(w.a)(t=>mt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ie(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class oe{constructor(t,e,n,r,s,i,o,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Jt{constructor(t,e){super(e),this.url=t,ce(this,e)}toString(){return le(this._root)}}function ce(t,e){e.value._routerState=t,e.children.forEach(e=>ce(t,e))}function le(t){const e=t.children.length>0?` { ${t.children.map(le).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,xt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),xt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!xt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),xt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function he(t,e){var n,r;return xt(t.params,e.params)&&Nt(n=t.url,r=e.url)&&n.every((t,e)=>xt(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function fe(t,e,n,r,s){let i={};return r&&It(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new At(n.root===t?e:function t(e,n,r){const s={};return It(e.children,(e,i)=>{s[i]=e===n?r:t(e,n,r)}),new Rt(e.segments,s)}(n.root,t,e),i,s)}class pe{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&de(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==jt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ge{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function me(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function be(t,e,n){if(t||(t=new Rt([],{})),0===t.segments.length&&t.hasChildren())return ye(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(r>=n.length)return i;const e=t.segments[s],o=me(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ce(o,a,e))return i;r+=2}else{if(!Ce(o,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new Rt(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new Rt(t.segments.slice(r.pathIndex),t.children),ye(e,0,s)}return r.match&&0===s.length?new Rt(t.segments,{}):r.match&&!t.hasChildren()?ve(t,e,n):r.match?ye(t,0,s):ve(t,e,n)}function ye(t,e,n){if(0===n.length)return new Rt(t.segments,{});{const r=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),s={};return It(r,(n,r)=>{null!==n&&(s[r]=be(t.children[r],e,n))}),It(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new Rt(t.segments,s)}}function ve(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const t=_e(n[s].outlets);return new Rt(r,t)}if(0===s&&de(n[0])){r.push(new Pt(t.segments[e].path,n[0])),s++;continue}const i=me(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&de(o)?(r.push(new Pt(i,we(o))),s+=2):(r.push(new Pt(i,{})),s++)}return new Rt(r,{})}function _e(t){const e={};return It(t,(t,n)=>{null!==t&&(e[n]=ve(new Rt([],{}),0,t))}),e}function we(t){const e={};return It(t,(t,n)=>e[n]=`${t}`),e}function Ce(t,e,n){return t==n.path&&xt(e,n.parameters)}class Se{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),It(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=ee(t),s=t.value.component?n.children:e;It(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=ee(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new dt(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ut(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(ue(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),xe(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function xe(t){ue(t.value),t.children.forEach(xe)}function Oe(t){return"function"==typeof t}function Ee(t){return t instanceof At}class je{constructor(t){this.segmentGroup=t||null}}class Ie{constructor(t){this.urlTree=t}}function Te(t){return new c.a(e=>e.error(new je(t)))}function ke(t){return new c.a(e=>e.error(new Ie(t)))}function Ae(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Re{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(s.x)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(w.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(N.a)(t=>{if(t instanceof Ie)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof je)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(w.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(N.a)(t=>{if(t instanceof je)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Rt([],{primary:t}):t;return new At(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(w.a)(t=>new Rt([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],r=[],s={};return It(t,(t,i)=>{const o=e(i,t).pipe(Object(w.a)(t=>s[i]=t));"primary"===i?n.push(o):r.push(o)}),i.a.apply(null,n.concat(r)).pipe(S(),P(),Object(w.a)(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,o){return Object(i.a)(...n).pipe(Object(w.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,s,o).pipe(Object(N.a)(t=>{if(t instanceof je)return Object(i.a)(null);throw t}))),S(),Object(D.a)(t=>!!t),Object(N.a)((t,n)=>{if(t instanceof l.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Object(i.a)(new Rt([],{}));throw new je(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return He(r)!==i?Te(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):Te(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ke(s):this.lineralizeSegments(n,s).pipe(Object(H.a)(n=>{const s=new Rt(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=Pe(e,r,s);if(!o)return Te(e);const u=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?ke(u):this.lineralizeSegments(r,u).pipe(Object(H.a)(r=>this.expandSegment(t,e,n,r.concat(s.slice(c)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(w.a)(t=>(n._loadedConfig=t,new Rt(r,{})))):Object(i.a)(new Rt(r,{}));const{matched:s,consumedSegments:o,lastChild:a}=Pe(e,n,r);if(!s)return Te(e);const c=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(H.a)(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>De(t,e,n)&&"primary"!==He(n))}(t,n,r)?{segmentGroup:Ne(new Rt(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==He(r)&&(n[He(r)]=new Rt([],{}));return n}(r,new Rt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>De(t,e,n))}(t,n,r)?{segmentGroup:Ne(new Rt(t.segments,function(t,e,n,r){const s={};for(const i of n)De(t,e,i)&&!r[He(i)]&&(s[He(i)]=new Rt([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,r);return 0===a.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(Object(w.a)(t=>new Rt(o,t))):0===r.length&&0===a.length?Object(i.a)(new Rt(o,{})):this.expandSegment(n,s,r,a,"primary",!0).pipe(Object(w.a)(t=>new Rt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new vt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?Object(o.a)(r).pipe(Object(w.a)(r=>{const s=t.get(r);let i;if(function(t){return t&&Oe(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!Oe(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Tt(i)})).pipe(S(),(s=t=>!0===t,t=>t.lift(new M(s,void 0,t)))):Object(i.a)(!0);var s}(t.injector,e,n).pipe(Object(H.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(w.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(bt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new vt([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Ae(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new At(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return It(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return It(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new Rt(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Pe(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||yt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ne(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Rt(t.segments.concat(e.segments),e.children)}return t}function De(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function He(t){return t.outlet||"primary"}class Me{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ue{constructor(t,e){this.component=t,this.route=e}}function Le(t,e,n){const r=t._root;return function t(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=ee(n);return e.children.forEach(e=>{!function(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,c=r?r.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Nt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Nt(t.url,e.url)||!xt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!xt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Me(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?c?c.children:null:r,s,i),l&&i.canDeactivateChecks.push(new Ue(c&&c.outlet&&c.outlet.component||null,a))}else a&&Fe(n,c,i),i.canActivateChecks.push(new Me(s)),t(e,null,o.component?c?c.children:null:r,s,i)}(e,o[e.value.outlet],r,s.concat([e.value]),i),delete o[e.value.outlet]}),It(o,(t,e)=>Fe(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function Ve(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Fe(t,e,n){const r=ee(t),s=t.value;It(r,(t,r)=>{Fe(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Ue(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const $e=Symbol("INITIAL_VALUE");function ze(){return Object(L.a)(t=>function(...t){let e=null,n=null;return Object(u.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(h.a)(t[0])&&(t=t[0]),Object(p.a)(t,n).lift(new m(e))}(...t.map(t=>t.pipe(Object(V.a)(1),function(...t){const e=t[t.length-1];return Object(u.a)(e)?(t.pop(),n=>F(t,n,e)):e=>F(t,e)}($e)))).pipe($((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==$e)return t;if(r===$e&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Ee(r))return r}return t},t)},$e),Object(x.a)(t=>t!==$e),Object(w.a)(t=>Ee(t)?t:!0===t),Object(V.a)(1)))}function qe(t,e){return null!==t&&e&&e(new ht(t)),Object(i.a)(!0)}function Be(t,e){return null!==t&&e&&e(new lt(t)),Object(i.a)(!0)}function Ge(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(i.a)(!0);const s=r.map(r=>v(()=>{const s=Ve(r,e,n);let i;if(function(t){return t&&Oe(t.canActivate)}(s))i=Tt(s.canActivate(e,t));else{if(!Oe(s))throw new Error("Invalid CanActivate guard");i=Tt(s(e,t))}return i.pipe(Object(D.a)())}));return Object(i.a)(s).pipe(ze())}function We(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>v(()=>{const s=e.guards.map(s=>{const i=Ve(s,e.node,n);let o;if(function(t){return t&&Oe(t.canActivateChild)}(i))o=Tt(i.canActivateChild(r,t));else{if(!Oe(i))throw new Error("Invalid CanActivateChild guard");o=Tt(i(r,t))}return o.pipe(Object(D.a)())});return Object(i.a)(s).pipe(ze())}));return Object(i.a)(s).pipe(ze())}class Ze{}class Ke{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=Ye(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new te(n,e),s=new ae(this.url,r);return this.inheritParamsAndData(s._root),Object(i.a)(s)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=ie(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Dt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof Ze))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new Ze}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Ze;if((t.outlet||"primary")!==r)throw new Ze;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?jt(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,en(t),r,t.component,t,Qe(e),Je(e)+n.length,nn(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ze;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||yt)(n,t,e);if(!r)throw new Ze;const s={};It(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new oe(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,en(t),r,t.component,t,Qe(e),Je(e)+i.length,nn(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Ye(e,i,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new te(s,t)]}if(0===a.length&&0===l.length)return[new te(s,[])];const u=this.processSegment(a,c,l,"primary");return[new te(s,u)]}}function Qe(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Je(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ye(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>Xe(t,e,n)&&"primary"!==tn(n))}(t,n,r)){const s=new Rt(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==tn(i)){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[tn(i)]=n}return s}(t,e,r,new Rt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Xe(t,e,n))}(t,n,r)){const i=new Rt(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Xe(t,n,a)&&!s[tn(a)]){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[tn(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new Rt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Xe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function tn(t){return t.outlet||"primary"}function en(t){return t.data||{}}function nn(t){return t.resolve||{}}function rn(t,e,n,r){const s=Ve(t,e,r);return Tt(s.resolve?s.resolve(e,n):s(e,n))}function sn(t){return function(e){return e.pipe(Object(L.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(w.a)(()=>e)):Object(o.a)([e])}))}}class on{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const an=new s.q("ROUTES");class cn{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(w.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new vt(Et(r.injector.get(an)).map(St),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):Tt(t()).pipe(Object(H.a)(t=>t instanceof s.v?Object(i.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class ln{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function un(t){throw t}function hn(t,e,n){return e.parse("/")}function dn(t,e){return Object(i.a)(null)}let fn=(()=>{class t{constructor(t,e,n,r,i,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new _.a,this.errorHandler=un,this.malformedUriErrorHandler=hn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dn,afterPreactivation:dn},this.urlHandlingStrategy=new ln,this.routeReuseStrategy=new on,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(s.x),this.console=i.get(s.V);const u=i.get(s.z);this.isNgZoneEnabled=u instanceof s.z,this.resetConfig(l),this.currentUrlTree=new At(new Rt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cn(o,c,t=>this.triggerEvent(new at(t)),t=>this.triggerEvent(new ct(t))),this.routerState=re(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({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()}setupNavigations(t){const e=this.events;return t.pipe(Object(x.a)(t=>0!==t.id),Object(w.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(L.a)(t=>{let n=!1,r=!1;return Object(i.a)(t).pipe(Object(W.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(L.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(Object(L.a)(t=>{const n=this.transitions.getValue();return e.next(new Y(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?y.a:[t]}),Object(L.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(L.a)(t=>function(t,e,n,r,s){return new Re(t,e,n,r,s).apply()}(r,s,o,t.extractedUrl,a).pipe(Object(w.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(W.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(Object(H.a)(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new Ke(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(Object(w.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(W.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(W.a)(t=>{const n=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:a}=t,c=new Y(n,this.serializeUrl(r),s,o);e.next(c);const l=re(r,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),y.a}),sn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(W.a)(t=>{const e=new rt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(w.a)(t=>Object.assign(Object.assign({},t),{guards:Le(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(H.a)(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(o.a)(t).pipe(Object(H.a)(t=>function(t,e,n,r,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=Ve(i,e,s);let a;if(function(t){return t&&Oe(t.canDeactivate)}(o))a=Tt(o.canDeactivate(t,e,n,r));else{if(!Oe(o))throw new Error("Invalid CanDeactivate guard");a=Tt(o(t,e,n,r))}return a.pipe(Object(D.a)())});return Object(i.a)(a).pipe(ze())}(t.component,t.route,n,e,r)),Object(D.a)(t=>!0!==t,!0))}(c,r,s,t).pipe(Object(H.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(o.a)(e).pipe(B(e=>Object(o.a)([Be(e.route.parent,r),qe(e.route,r),We(t,e.path,n),Ge(t,e.route,n)]).pipe(S(),Object(D.a)(t=>!0!==t,!0))),Object(D.a)(t=>!0!==t,!0))}(r,a,t,e):Object(i.a)(n)),Object(w.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(W.a)(t=>{if(Ee(t.guardsResult)){const e=bt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(W.a)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(x.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new tt(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),sn(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(W.a)(t=>{const e=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(Object(H.a)(t=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=t;return s.length?Object(o.a)(s).pipe(B(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Object(i.a)({});if(1===s.length){const i=s[0];return rn(t[i],e,n,r).pipe(Object(w.a)(t=>({[i]:t})))}const a={};return Object(o.a)(s).pipe(Object(H.a)(s=>rn(t[s],e,n,r).pipe(Object(w.a)(t=>(a[s]=t,t))))).pipe(P(),Object(w.a)(()=>a))}(t._resolve,t,e,r).pipe(Object(w.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ie(t,n).resolve),null)))}(t.route,r,e,n)),function(t,e){return arguments.length>=2?function(n){return Object(G.a)($(t,e),j(1),Object(A.a)(e))(n)}:function(e){return Object(G.a)($((e,n,r)=>t(e,n,r+1)),j(1))(e)}}((t,e)=>t),Object(w.a)(e=>t)):Object(i.a)(t)}))}),Object(W.a)(t=>{const e=new ot(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),sn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(w.a)(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(e,n,r){return n.children.map(n=>{for(const s of r.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,r);return new te(s,i)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new se(new a.a((s=n.value).url),new a.a(s.params),new a.a(s.queryParams),new a.a(s.fragment),new a.a(s.data),s.outlet,s.component,s),i=n.children.map(n=>t(e,n));return new te(r,i)}}var s}(t,e._root,n?n._root:void 0);return new ne(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(W.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(c=this.rootContexts,l=this.routeReuseStrategy,u=t=>this.triggerEvent(t),Object(w.a)(t=>(new Se(l,t.targetRouterState,t.currentRouterState,u).activate(c),t))),Object(W.a)({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new tt(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new K(s))),Object(N.a)(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Ee(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new tt(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new et(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return y.a}));var s,c,l,u}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){_t(t),this.config=t.map(St),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=e;Object(s.S)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:i;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,s){if(0===n.length)return fe(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pe(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return It(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new pe(n,e,r)}(n);if(i.toRoot())return fe(e.root,new Rt([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new ge(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ge(n.snapshot._urlSegment,!0,0);const r=de(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new ge(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?ye(o.segmentGroup,o.index,i.commands):be(o.segmentGroup,o.index,i.commands);return fe(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.S)()&&this.isNgZoneEnabled&&!s.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Ee(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(Ee(t))return kt(this.currentUrlTree,t,e);const n=this.parseUrl(t);return kt(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,c;s?(o=s.resolve,a=s.reject,c=s.promise):c=new Promise((t,e)=>{o=t,a=e});const l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.Nb()},t.\u0275dir=s.Ab({type:t}),t})(),pn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof X&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.S)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:gn(this.skipLocationChange),replaceUrl:gn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:gn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:gn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Fb(fn),s.Fb(se),s.Fb(r.h))},t.\u0275dir=s.Ab({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Ob("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Jb("href",e.href,s.Zb),s.xb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.vb]}),t})();function gn(t){return""===t||!!t}class mn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new bn,this.attachRef=null}}class bn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new mn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let yn=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.n,this.deactivateEvents=new s.n,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new vn(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Fb(bn),s.Fb(s.N),s.Fb(s.j),s.Lb("name"),s.Fb(s.h))},t.\u0275dir=s.Ab({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class vn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===bn?this.childContexts:this.parent.get(t,e)}}class _n{}class wn{preload(t,e){return Object(i.a)(null)}}let Cn=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new cn(e,n,e=>t.triggerEvent(new at(e)),e=>t.triggerEvent(new ct(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(x.a)(t=>t instanceof X),B(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.x);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return Object(o.a)(n).pipe(Object(C.a)(),Object(w.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(H.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(fn),s.Kb(s.w),s.Kb(s.i),s.Kb(s.r),s.Kb(_n))},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})(),Sn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Y?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ft&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ft(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){s.Nb()},t.\u0275dir=s.Ab({type:t}),t})();const xn=new s.q("ROUTER_CONFIGURATION"),On=new s.q("ROUTER_FORROOT_GUARD"),En=[r.g,{provide:Ht,useClass:Mt},{provide:fn,useFactory:function(t,e,n,s,i,o,a,c={},l,u){const h=new fn(null,t,e,n,s,i,o,Et(a));if(l&&(h.urlHandlingStrategy=l),u&&(h.routeReuseStrategy=u),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(r.r)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[Ht,bn,r.g,s.r,s.w,s.i,an,xn,[class{},new s.A],[class{},new s.A]]},bn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[fn]},{provide:s.w,useClass:s.J},Cn,wn,class{preload(t,e){return e().pipe(Object(N.a)(()=>Object(i.a)(null)))}},{provide:xn,useValue:{enableTracing:!1}}];function jn(){return new s.y("Router",fn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[En,Rn(e),{provide:On,useFactory:An,deps:[[fn,new s.A,new s.I]]},{provide:xn,useValue:n||{}},{provide:r.h,useFactory:kn,deps:[r.n,[new s.p(r.a),new s.A],xn]},{provide:Sn,useFactory:Tn,deps:[fn,r.o,xn]},{provide:_n,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:wn},{provide:s.y,multi:!0,useFactory:jn},[Pn,{provide:s.d,multi:!0,useFactory:Nn,deps:[Pn]},{provide:Hn,useFactory:Dn,deps:[Pn]},{provide:s.b,multi:!0,useExisting:Hn}]]}}static forChild(e){return{ngModule:t,providers:[Rn(e)]}}}return t.\u0275mod=s.Db({type:t}),t.\u0275inj=s.Cb({factory:function(e){return new(e||t)(s.Kb(On,8),s.Kb(fn,8))}}),t})();function Tn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Sn(t,e,n)}function kn(t,e,n={}){return n.useHash?new r.e(t,e):new r.m(t,e)}function An(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Rn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:an,multi:!0,useValue:t}]}let Pn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new _.a}appInitializer(){return this.injector.get(r.f,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(fn),r=this.injector.get(xn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(xn),n=this.injector.get(Cn),r=this.injector.get(Sn),i=this.injector.get(fn),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(s.r))},t.\u0275prov=s.Bb({token:t,factory:t.\u0275fac}),t})();function Nn(t){return t.appInitializer.bind(t)}function Dn(t){return t.bootstrapListener.bind(t)}const Hn=new s.q("Router Initializer")},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),s=n("KqfI"),i=n("n6bG");function o(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends r.a{constructor(t,e,n,r){super(t),this._tapNext=s.a,this._tapError=s.a,this._tapComplete=s.a,this._tapError=n||s.a,this._tapComplete=r||s.a,Object(i.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s.a,this._tapError=e.error||s.a,this._tapComplete=e.complete||s.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q");function s(t=null){return e=>e.lift(new i(t))}class i{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends r.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),s=n("ngJS"),i=n("jZKg");function o(t,e){return e?Object(i.a)(t,e):new r.a(Object(s.a)(t))}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("fXoL"),s=n("jhN1"),i=n("tyNb"),o=n("yCtX"),a=n("DH7j"),c=n("7o/Q"),l=n("l7GE"),u=n("ZUHj"),h=n("Lhse");class d{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new f(t,this.resultSelector))}}class f extends c.a{constructor(t,e,n=Object.create(null)){super(t),this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:null,this.values=n}_next(t){const e=this.iterators;Object(a.a)(t)?e.push(new g(t)):e.push("function"==typeof t[h.a]?new p(t[h.a]()):new m(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;n<e;n++){let e=t[n];e.stillUnsubscribed?this.destination.add(e.subscribe(e,n)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,n=this.destination;for(let i=0;i<e;i++){let e=t[i];if("function"==typeof e.hasValue&&!e.hasValue())return}let r=!1;const s=[];for(let i=0;i<e;i++){let e=t[i],o=e.next();if(e.hasCompleted()&&(r=!0),o.done)return void n.complete();s.push(o.value)}this.resultSelector?this._tryresultSelector(s):n.next(s),r&&n.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class p{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return t&&t.done}}class g{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[h.a](){return this}next(t){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class m extends l.a{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[h.a](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t,e,n,r,s){this.buffer.push(e),this.parent.checkIterators()}subscribe(t,e){return Object(u.a)(this,this.observable,this,e)}}var b=n("pLZG"),y=n("lJxs"),v=n("sbAP"),_=n("lzgZ");let w=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.zb({type:t,selectors:[["app-header"]],decls:10,vars:0,consts:[[1,"intro-header",2,"background-image","url('assets/images/bg1920x872.jpg')"],[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],[1,"site-heading"],[1,"small"],[1,"subheading"]],template:function(t,e){1&t&&(r.Ib(0,"header",0),r.Ib(1,"div",1),r.Ib(2,"div",2),r.Ib(3,"div",3),r.Ib(4,"div",4),r.Ib(5,"h1"),r.cc(6,"Thomas Blog"),r.Hb(),r.Gb(7,"hr",5),r.Ib(8,"span",6),r.cc(9,"Learning Code, Writing Code"),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb())},styles:[""]}),t})();var C=n("ofXK");const S=function(t){return[t]};function x(t,e){if(1&t&&(r.Ib(0,"div"),r.Ib(1,"div",7),r.Ib(2,"a",8),r.Ib(3,"h2",9),r.cc(4),r.Hb(),r.Hb(),r.Ib(5,"p",10),r.cc(6),r.Hb(),r.Hb(),r.Gb(7,"hr"),r.Hb()),2&t){const t=e.$implicit;r.wb(2),r.Vb("routerLink",r.Xb(3,S,t.route)),r.wb(2),r.ec(" ",t.title," "),r.wb(2),r.ec("on ",t.date,"")}}const O=function(t){return{"d-none":t}};let E=(()=>{class t{constructor(t,e,n,r){this.scullyService=t,this.route=e,this.router=n,this.blogService=r,this.itemCount=0,this.router.events.pipe(Object(b.a)(t=>t instanceof i.b)).subscribe(()=>{this.loadData()})}ngOnInit(){}loadData(){this.links$=function(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),Object(o.a)(t,void 0).lift(new d(e))}(this.scullyService.available$,this.route.queryParams).pipe(Object(y.a)(([t,e])=>{this.page=parseInt(e.page||1,10);const n=t.filter(t=>!!t.title).reverse().slice(10*(this.page-1),10*this.page);return n.forEach(t=>t.date=this.blogService.getPostDateFormRoute(t.route)),this.itemCount=n.length,n}))}previous(){let t=this.page-1;0===t&&(t=1),this.router.navigate(["/"],{queryParams:{page:t},replaceUrl:!0})}next(){this.router.navigate(["/"],{queryParams:{page:this.page+1},replaceUrl:!0})}}return t.\u0275fac=function(e){return new(e||t)(r.Fb(v.c),r.Fb(i.a),r.Fb(i.d),r.Fb(_.a))},t.\u0275cmp=r.zb({type:t,selectors:[["app-home"]],decls:14,vars:9,consts:[[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],[4,"ngFor","ngForOf"],[1,"pager"],[1,""],["href","javascript:void(0)",3,"ngClass","click"],[1,"post-preview"],[3,"routerLink"],[1,"post-title"],[1,"post-meta"]],template:function(t,e){1&t&&(r.Ib(0,"div"),r.Gb(1,"app-header"),r.Ib(2,"div",0),r.Ib(3,"div",1),r.Ib(4,"div",2),r.bc(5,x,8,5,"div",3),r.Rb(6,"async"),r.Ib(7,"ul",4),r.Ib(8,"li",5),r.Ib(9,"a",6),r.Ob("click",(function(){return e.previous()})),r.cc(10,"\u2190 Prev"),r.Hb(),r.Hb(),r.Ib(11,"li",5),r.Ib(12,"a",6),r.Ob("click",(function(){return e.next()})),r.cc(13,"Next \u2192"),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb()),2&t&&(r.wb(5),r.Vb("ngForOf",r.Sb(6,3,e.links$)),r.wb(4),r.Vb("ngClass",r.Xb(5,O,1===e.page)),r.wb(3),r.Vb("ngClass",r.Xb(7,O,10!==e.itemCount)))},directives:[w,C.j,C.i,i.e],pipes:[C.b],styles:[".d-none[_ngcontent-%COMP%]{display:none}"]}),t})(),j=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.zb({type:t,selectors:[["app-skill-tree"]],decls:31,vars:0,consts:[[1,"skill"],[1,"progress-wrap"],[1,"progress"],["role","progressbar","aria-valuenow","40","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color1",2,"width","99%"],[1,"bar-width"],["role","progressbar","aria-valuenow","80","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color4",2,"width","95%"],["role","progressbar","aria-valuenow","20","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color2",2,"width","95%"],["role","progressbar","aria-valuenow","60","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color3",2,"width","70%"]],template:function(t,e){1&t&&(r.Ib(0,"div",0),r.Ib(1,"h2"),r.cc(2,"My Skills"),r.Hb(),r.Ib(3,"div",1),r.Ib(4,"h3"),r.cc(5,"C#"),r.Hb(),r.Ib(6,"div",2),r.Ib(7,"div",3),r.Ib(8,"span",4),r.cc(9,"99%"),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Ib(10,"div",1),r.Ib(11,"h3"),r.cc(12,"JavaScript"),r.Hb(),r.Ib(13,"div",2),r.Ib(14,"div",5),r.Ib(15,"span",4),r.cc(16,"95%"),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Ib(17,"div",1),r.Ib(18,"h3"),r.cc(19,"Angular"),r.Hb(),r.Ib(20,"div",2),r.Ib(21,"div",6),r.Ib(22,"span",4),r.cc(23,"95%"),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Ib(24,"div",1),r.Ib(25,"h3"),r.cc(26,"Vue.js"),r.Hb(),r.Ib(27,"div",2),r.Ib(28,"div",7),r.Ib(29,"span",4),r.cc(30,"70%"),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb())},styles:['.skill[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:25px}.progress-wrap[_ngcontent-%COMP%]{position:relative}.progress[_ngcontent-%COMP%] .color1[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color1[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#2d7da4}.progress[_ngcontent-%COMP%] .color2[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color2[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#6aa42f}.progress[_ngcontent-%COMP%] .color3[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color3[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#fc3}.progress[_ngcontent-%COMP%] .color4[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color4[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#db3615}.progress[_ngcontent-%COMP%], .progress-bar[_ngcontent-%COMP%]{height:15px;line-height:15px;background:#e6e6e6;box-shadow:none;border-radius:0;overflow:visible;text-align:right}.progress[_ngcontent-%COMP%]{position:relative}.progress[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{position:absolute;width:40px;height:20px;line-height:20px;text-align:center;font-size:12px;font-weight:700;top:-30px;border-radius:2px;margin-left:-30px}.progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:" ";position:absolute;width:auto;height:auto;border-width:8px 5px;border-style:solid;bottom:-15px;right:8px}.progress[_ngcontent-%COMP%] .color1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#2d7da4 transparent transparent}.progress[_ngcontent-%COMP%] .color2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#6aa42f transparent transparent}.progress[_ngcontent-%COMP%] .color3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#fc3 transparent transparent}.progress[_ngcontent-%COMP%] .color4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#db3615 transparent transparent}']}),t})();const I=[{path:"",component:E},{path:"about",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.zb({type:t,selectors:[["app-about"]],decls:12,vars:0,consts:[[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"]],template:function(t,e){1&t&&(r.Ib(0,"div"),r.Gb(1,"app-header"),r.Ib(2,"div",0),r.Ib(3,"div",1),r.Ib(4,"div",2),r.Ib(5,"p"),r.cc(6," \u6211\u4e00\u76f4\u5f9e\u4e8b\u7684\u90fd\u662f\u7db2\u9801\u958b\u767c\u7684\u5de5\u4f5c\uff0c\u4e5f\u5c31\u662fWeb Develper\uff0c\u4e00\u958b\u59cb\u662f\u5f9e\u5f8c\u7aef\u8d77\u5bb6\uff0c\u6700\u5148\u63a5\u89f8\u7684\u662f.Net\uff0cC#\u53caVB.net\u90fd\u6709\u4f7f\u7528\u904e\uff0c\u9019\u5e7e\u5e74\u958b\u59cb\u504f\u5411\u524d\u7aef\uff0c\u5c0dJavaScript\u611f\u8208\u8da3\uff0c\u96a8\u8457Node.js\u7684\u63a8\u51fa\uff0c\u4e4b\u5f8cAngular\u53cavue.js\u7684\u51fa\u73fe\uff0c\u6f38\u6f38\u5730\u524d\u5f8c\u7aef\u90fd\u662f\u4f7f\u7528JavaScript\u958b\u767c\u3002 "),r.Hb(),r.Ib(7,"p"),r.cc(8," \u672cBlog\u4e3b\u8981\u6703\u5beb\u4e00\u4e9b\u7a0b\u5f0f\u7684\u5b78\u7fd2\u7b46\u8a18\u53ca\u958b\u767c\u7d93\u9a57\u8ac7\u3002 "),r.Hb(),r.Hb(),r.Hb(),r.Ib(9,"div",1),r.Ib(10,"div",2),r.Gb(11,"app-skill-tree"),r.Hb(),r.Hb(),r.Hb(),r.Hb())},directives:[w,j],styles:[""]}),t})()},{path:"blog",loadChildren:()=>n.e(5).then(n.bind(null,"U4+L")).then(t=>t.BlogModule)}];let T=(()=>{class t{}return t.\u0275mod=r.Db({type:t}),t.\u0275inj=r.Cb({factory:function(e){return new(e||t)},imports:[[i.f.forRoot(I)],i.f]}),t})();class k{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new A(t,this.compare,this.keySelector))}}class A extends c.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}const R=function(){return["/"]},P=function(){return["/about"]};let N=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.zb({type:t,selectors:[["app-blog-nav"]],decls:21,vars:6,consts:[[1,"navbar","navbar-default","navbar-custom","navbar-fixed-top"],[1,"container-fluid"],[1,"navbar-header","page-scroll"],["type","button","data-toggle","collapse","data-target","#bs-example-navbar-collapse-1",1,"navbar-toggle"],[1,"sr-only"],[1,"fa","fa-bars"],[1,"navbar-brand",3,"routerLink"],["id","bs-example-navbar-collapse-1",1,"collapse","navbar-collapse"],[1,"nav","navbar-nav","navbar-right"],[3,"routerLink"],["href","https://thomascsd.github.io/repos/","target","_blank"]],template:function(t,e){1&t&&(r.Ib(0,"nav",0),r.Ib(1,"div",1),r.Ib(2,"div",2),r.Ib(3,"button",3),r.Ib(4,"span",4),r.cc(5,"Toggle navigation"),r.Hb(),r.cc(6," Menu "),r.Gb(7,"i",5),r.Hb(),r.Ib(8,"a",6),r.cc(9,"Thomas Blog"),r.Hb(),r.Hb(),r.Ib(10,"div",7),r.Ib(11,"ul",8),r.Ib(12,"li"),r.Ib(13,"a",9),r.cc(14,"Blog"),r.Hb(),r.Hb(),r.Ib(15,"li"),r.Ib(16,"a",10),r.cc(17,"Repos"),r.Hb(),r.Hb(),r.Ib(18,"li"),r.Ib(19,"a",9),r.cc(20,"About"),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Hb()),2&t&&(r.wb(8),r.Vb("routerLink",r.Wb(3,R)),r.wb(5),r.Vb("routerLink",r.Wb(4,R)),r.wb(6),r.Vb("routerLink",r.Wb(5,P)))},directives:[i.e],styles:[""]}),t})(),D=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.zb({type:t,selectors:[["app-footer"]],decls:16,vars:0,consts:[[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],[1,"list-inline","text-center"],["href","https://www.twitter.com/thomascsd"],[1,"fa-stack","fa-lg"],[1,"fa","fa-circle","fa-stack-2x"],[1,"fa","fa-twitter","fa-stack-1x","fa-inverse"],["href","https://github.com/thomascsd"],[1,"fa","fa-github","fa-stack-1x","fa-inverse"],[1,"copyright","text-muted"]],template:function(t,e){1&t&&(r.Ib(0,"footer"),r.Ib(1,"div",0),r.Ib(2,"div",1),r.Ib(3,"div",2),r.Ib(4,"ul",3),r.Ib(5,"li"),r.Ib(6,"a",4),r.Ib(7,"span",5),r.Gb(8,"i",6),r.Gb(9,"i",7),r.Hb(),r.Hb(),r.Hb(),r.Ib(10,"li"),r.Ib(11,"a",8),r.Ib(12,"span",5),r.Gb(13,"i",6),r.Gb(14,"i",9),r.Hb(),r.Hb(),r.Hb(),r.Hb(),r.Gb(15,"p",10),r.Hb(),r.Hb(),r.Hb(),r.Hb())},styles:[""]}),t})(),H=(()=>{class t{constructor(t){this.router=t}ngOnInit(){var t;this.router.events.pipe((t=(t,e)=>!(e instanceof i.b)||t.url===e.url,e=>e.lift(new k(t,void 0)))).subscribe(t=>{gtag("event","page_view",{page_path:t.url})})}}return t.\u0275fac=function(e){return new(e||t)(r.Fb(i.d))},t.\u0275cmp=r.zb({type:t,selectors:[["app-root"]],decls:5,vars:0,template:function(t,e){1&t&&(r.Ib(0,"div"),r.Gb(1,"app-blog-nav"),r.Gb(2,"router-outlet"),r.Gb(3,"hr"),r.Gb(4,"app-footer"),r.Hb())},directives:[N,i.g,D],styles:[""]}),t})();var M=n("PCNd");let U=(()=>{class t{}return t.\u0275mod=r.Db({type:t,bootstrap:[H]}),t.\u0275inj=r.Cb({factory:function(e){return new(e||t)},providers:[],imports:[[s.a,T,v.b,M.a]]}),t})();Object(r.R)(),s.c().bootstrapModule(U).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);