(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);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}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{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 h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:o}=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;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}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 g extends f{constructor(t,e,n,r){let s;super(),this._parentSubscriber=t;let o=this;i(e)?s=e:e&&(s=e.next,n=e.error,r=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;s.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}=s;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):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);s.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(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}function v(...t){return y(t)}function y(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let w=(()=>{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:i}=this,r=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:y(t)(this)}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class x extends h{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)}}class O extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new O(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;rnew k(t,e),t})();class k extends S{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):h.EMPTY}}function P(t){return t&&"function"==typeof t.schedule}function T(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 E(t,e))}}class E{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new I(t,this.project,this.thisArg))}}class I extends f{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)}}const A=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(V(t))return A(t);if(D(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[R])return e=t,t=>{const n=e[R]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}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=c(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,i};function N(t,e){return new w(n=>{const i=new h;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new w(n=>{const i=new h;return i.add(e.schedule(()=>{const r=t[m]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(D(t))return function(t,e){return new w(n=>{const i=new h;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(V(t))return N(t,e);if(function(t){return t&&"function"==typeof t[R]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new w(n=>{const i=new h;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[R](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof w?t:new w(F(t))}class L extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class H extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function $(t,e){if(!e.closed)return t instanceof w?t.subscribe(e):F(t)(e)}function U(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(U((n,i)=>j(t(n,i)).pipe(T((t,r)=>e(n,t,i,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new B(t,this.project,this.concurrent))}}class B extends H{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.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t=Number.POSITIVE_INFINITY){return U(_,t)}function W(t,e){return e?N(t,e):new w(A(t))}function G(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return P(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof w?t[0]:q(e)(W(t,n))}function Z(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new K(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class K extends f{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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class J extends w{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 h,t.add(this.source.subscribe(new X(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return Z()(this)}}const Y=(()=>{const t=J.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 X extends O{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 tt(t,e){return function(n){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new et(i,e));const r=Object.create(n,Y);return r.source=n,r.subjectFactory=i,r}}class et{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r}}function nt(){return new S}function it(){return t=>Z()(tt(nt)(t))}function rt(t){for(let e in t)if(t[e]===rt)return e;throw Error("Could not find renamed property on target object.")}function st(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ot(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ot).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 at(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const lt=rt({__forward_ref__:rt});function ct(t){return t.__forward_ref__=ct,t.toString=function(){return ot(this())},t}function ut(t){return ht(t)?t():t}function ht(t){return"function"==typeof t&&t.hasOwnProperty(lt)&&t.__forward_ref__===ct}class dt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function pt(t){return"string"==typeof t?t:null==t?"":String(t)}function ft(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():pt(t)}function gt(t,e){const n=e?` in ${e}`:"";throw new dt("201",`No provider for ${ft(t)} found${n}`)}function mt(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}function _t(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function vt(t){return{providers:t.providers||[],imports:t.imports||[]}}function yt(t){return wt(t,Ct)||wt(t,Ot)}function wt(t,e){return t.hasOwnProperty(e)?t[e]:null}function bt(t){return t&&(t.hasOwnProperty(xt)||t.hasOwnProperty(St))?t[xt]:null}const Ct=rt({"\u0275prov":rt}),xt=rt({"\u0275inj":rt}),Ot=rt({ngInjectableDef:rt}),St=rt({ngInjectorDef:rt});var kt=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}({});let Pt;function Tt(t){const e=Pt;return Pt=t,e}function Et(t,e,n){const i=yt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&kt.Optional?null:void 0!==e?e:void gt(ot(t),"Injector")}function It(t){return{toString:t}.toString()}var At=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Mt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Rt="undefined"!=typeof globalThis&&globalThis,Vt="undefined"!=typeof window&&window,Dt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ft="undefined"!=typeof global&&global,Nt=Rt||Ft||Vt||Dt,jt={},Lt=[],Ht=[],$t=rt({"\u0275cmp":rt}),Ut=rt({"\u0275dir":rt}),zt=rt({"\u0275pipe":rt}),Bt=rt({"\u0275mod":rt}),qt=rt({"\u0275loc":rt}),Wt=rt({"\u0275fac":rt}),Gt=rt({__NG_ELEMENT_ID__:rt});let Zt=0;function Qt(t){return It(()=>{const e={},n={type:t.type,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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===At.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Ht,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Mt.Emulated,id:"c",styles:t.styles||Ht,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=Zt++,n.inputs=te(t.inputs,e),n.outputs=te(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Kt):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(Jt):null,n})}function Kt(t){return ne(t)||function(t){return t[Ut]||null}(t)}function Jt(t){return function(t){return t[zt]||null}(t)}const Yt={};function Xt(t){const e={type:t.type,bootstrap:t.bootstrap||Ht,declarations:t.declarations||Ht,imports:t.imports||Ht,exports:t.exports||Ht,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&It(()=>{Yt[t.id]=t.type}),e}function te(t,e){if(null==t)return jt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const ee=Qt;function ne(t){return t[$t]||null}function ie(t,e){const n=t[Bt]||null;if(!n&&!0===e)throw new Error(`Type ${ot(t)} does not have '\u0275mod' property.`);return n}const re=20,se=10;function oe(t){return Array.isArray(t)&&"object"==typeof t[1]}function ae(t){return Array.isArray(t)&&!0===t[1]}function le(t){return 0!=(8&t.flags)}function ce(t){return 2==(2&t.flags)}function ue(t){return 1==(1&t.flags)}function he(t){return null!==t.template}function de(t,e){return t.hasOwnProperty(Wt)?t[Wt]:null}class pe{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fe(){return ge}function ge(t){return t.type.prototype.ngOnChanges&&(t.setInput=_e),me}function me(){const t=ve(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===jt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _e(t,e,n,i){const r=ve(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:jt,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new pe(l&&l.currentValue,e,o===jt),t[i]=e}function ve(t){return t.__ngSimpleChanges__||null}let ye;function we(){return void 0!==ye?ye:"undefined"!=typeof document?document:void 0}function be(t){return!!t.listen}fe.ngInherit=!0;const Ce={createRenderer:(t,e)=>we()};function xe(t){for(;Array.isArray(t);)t=t[0];return t}function Oe(t,e){return xe(e[t])}function Se(t,e){return xe(e[t.index])}function ke(t,e){return t.data[e]}function Pe(t,e){const n=e[t];return oe(n)?n:n[0]}function Te(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ee(t){return 4==(4&t[2])}function Ie(t){return 128==(128&t[2])}function Ae(t,e){return null==e?null:t[e]}function Me(t){t[18]=0}function Re(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Ve={lFrame:an(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function De(){return Ve.bindingsEnabled}function Fe(){return Ve.lFrame.lView}function Ne(){return Ve.lFrame.tView}function je(t){Ve.lFrame.contextLView=t}function Le(){let t=He();for(;null!==t&&64===t.type;)t=t.parent;return t}function He(){return Ve.lFrame.currentTNode}function $e(){const t=Ve.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ue(t,e){const n=Ve.lFrame;n.currentTNode=t,n.isParent=e}function ze(){return Ve.lFrame.isParent}function Be(){Ve.lFrame.isParent=!1}function qe(){return Ve.isInCheckNoChangesMode}function We(t){Ve.isInCheckNoChangesMode=t}function Ge(){const t=Ve.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ze(){return Ve.lFrame.bindingIndex}function Qe(){return Ve.lFrame.bindingIndex++}function Ke(t){const e=Ve.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Je(t){Ve.lFrame.inI18n=t}function Ye(t,e){const n=Ve.lFrame;n.bindingIndex=n.bindingRootIndex=t,Xe(e)}function Xe(t){Ve.lFrame.currentDirectiveIndex=t}function tn(){return Ve.lFrame.currentQueryIndex}function en(t){Ve.lFrame.currentQueryIndex=t}function nn(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function rn(t,e,n){if(n&kt.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&kt.Host||(i=nn(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=Ve.lFrame=on();return i.currentTNode=e,i.lView=t,!0}function sn(t){const e=on(),n=t[1];Ve.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function on(){const t=Ve.lFrame,e=null===t?null:t.child;return null===e?an(t):e}function an(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ln(){const t=Ve.lFrame;return Ve.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const cn=ln;function un(){const t=ln();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function hn(){return Ve.lFrame.selectedIndex}function dn(t){Ve.lFrame.selectedIndex=t}function pn(){const t=Ve.lFrame;return ke(t.tView,t.selectedIndex)}function fn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}const wn=-1;class bn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Cn(t,e,n){const i=be(t);let r=0;for(;re){o=s-1;break}}}for(;s>16,i=e;for(;n>0;)i=i[15],n--;return i}let In=!0;function An(t){const e=In;return In=t,e}let Mn=0;function Rn(t,e){const n=Dn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Vn(i.data,t),Vn(e,null),Vn(i.blueprint,null));const r=Fn(t,e),s=t.injectorIndex;if(Pn(r)){const t=Tn(r),n=En(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Vn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Fn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return wn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return wn}function Nn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Gt)&&(i=n[Gt]),null==i&&(i=n[Gt]=Mn++);const r=255&i;e.data[t+(r>>5)]|=1<=0?255&e:Un:e}(n);if("function"==typeof s){if(!rn(e,t,i))return i&kt.Host?jn(r,n,i):Ln(e,n,i,r);try{const t=s();if(null!=t||i&kt.Optional)return t;gt(n)}finally{cn()}}else if("number"==typeof s){let r=null,o=Dn(t,e),a=wn,l=i&kt.Host?e[16][6]:null;for((-1===o||i&kt.SkipSelf)&&(a=-1===o?Fn(t,e):e[o+8],a!==wn&&Gn(i,!1)?(r=e[1],o=Tn(a),e=En(a,e)):o=-1);-1!==o;){const t=e[1];if(Wn(s,o,t.data)){const t=zn(o,e,n,r,i,l);if(t!==$n)return t}a=e[o+8],a!==wn&&Gn(i,e[1].data[o+8]===l)&&Wn(s,o,e)?(r=t,o=Tn(a),e=En(a,e)):o=-1}}}return Ln(e,n,i,r)}const $n={};function Un(){return new Zn(Le(),Fe())}function zn(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],l=Bn(a,o,n,null==i?ce(a)&&In:i!=o&&0!=(3&a.type),r&kt.Host&&s===a);return null!==l?qn(e,o,l,a):$n}function Bn(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,u=r?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(r){const t=o[l];if(t&&he(t)&&t.type===n)return l}return null}function qn(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof bn){const o=r;o.resolving&&function(t,e){throw new dt("200",`Circular dependency in DI detected for ${t}`)}(ft(s[n]));const a=An(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Tt(o.injectImpl):null;rn(t,i,kt.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=ge(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&Tt(l),An(a),o.resolving=!1,cn()}}return r}function Wn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Wt]||Kn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[Wt]||Kn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function Kn(t){return ht(t)?()=>{const e=Kn(ut(t));return e&&e()}:de(t)}function Jn(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 i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(Yn)?t[Yn]:Object.defineProperty(t,Yn,{value:[]})[Yn];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ti{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=_t({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ei=new ti("AnalyzeForEntryComponents"),ni=Function;function ii(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?ri(t,e):e(t))}function si(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function oi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ai(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function ci(t,e){const n=ui(t,e);if(n>=0)return t[1|n]}function ui(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const hi={},di=/\n/gm,pi="__source",fi=rt({provide:String,useValue:rt});let gi;function mi(t){const e=gi;return gi=t,e}function _i(t,e=kt.Default){if(void 0===gi)throw new Error("inject() must be called from an injection context");return null===gi?Et(t,void 0,e):gi.get(t,e&kt.Optional?null:void 0,e)}function vi(t,e=kt.Default){return(Pt||_i)(ut(t),e)}function yi(t){const e=[];for(let n=0;n({token:t})),-1),Ci=wi(Xn("Optional"),8),xi=wi(Xn("SkipSelf"),4);let Oi;function Si(t){var e;return(null===(e=function(){if(void 0===Oi&&(Oi=null,Nt.trustedTypes))try{Oi=Nt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Oi}())||void 0===e?void 0:e.createHTML(t))||t}class ki{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Pi(t){return t instanceof ki?t.changingThisBreaksApplicationSecurity:t}class Ti{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Si(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ei{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Si(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Si(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Mi(t.trim())).join(", ")}function Vi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Di(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Fi=Vi("area,br,col,hr,img,wbr"),Ni=Vi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ji=Vi("rp,rt"),Li=Di(ji,Ni),Hi=Di(Fi,Di(Ni,Vi("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")),Di(ji,Vi("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")),Li),$i=Vi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ui=Vi("srcset"),zi=Di($i,Ui,Vi("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"),Vi("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"));var Bi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function qi(t){const e=function(){const t=Fe();return t&&t[12]}();return e?e.sanitize(Bi.URL,t)||"":function(t,e){const n=function(t){return t instanceof ki&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}(t,"URL")?Pi(t):Mi(pt(t))}function Wi(t){return t.ngDebugContext}function Gi(t){return t.ngOriginalError}function Zi(t,...e){t.error(...e)}class Qi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Zi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Wi(t)?Wi(t):this._findContext(Gi(t)):null}_findOriginalError(t){let e=Gi(t);for(;e&&Gi(e);)e=Gi(e);return e}}const Ki=/^>|^->||--!>|)/;function Yi(t,e){t.__ngContext__=e}const Xi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function tr(t){return t instanceof Function?t():t}var er=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let nr;function ir(t,e){return nr(t,e)}function rr(t){const e=t[3];return ae(e)?e[3]:e}function sr(t){return ar(t[13])}function or(t){return ar(t[4])}function ar(t){for(;null!==t&&!ae(t);)t=t[4];return t}function lr(t,e,n,i,r){if(null!=i){let s,o=!1;ae(i)?s=i:oe(i)&&(o=!0,i=i[0]);const a=xe(i);0===t&&null!==n?null==r?wr(e,n,a):yr(e,n,a,r||null,!0):1===t&&null!==n?yr(e,n,a,r||null,!0):2===t?Mr(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==xe(n)&&lr(e,t,i,s,r);for(let o=se;ot.replace(Ji,"\u200b$1\u200b"))}(e))}function dr(t,e,n){return be(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function pr(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Re(r,-1)),n.splice(i,1)}function fr(t,e){if(t.length<=se)return;const n=se+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&pr(s,i),e>0&&(t[n-1][4]=i[4]);const o=oi(t,se+e);Vr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function gr(t,e){if(!(256&e[2])){const n=e[11];be(n)&&n.destroyNode&&Vr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return mr(t[1],t);for(;e;){let n=null;if(oe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)oe(e)&&mr(e[1],e),e=e[3];null===e&&(e=t),oe(e)&&mr(e[1],e),n=e&&e[4]}e=n}}(e)}}function mr(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 i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),s+=2}else{const t=i[r=n[s+1]];n[s].call(t)}if(null!==i){for(let t=r+1;ts?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==jr(e,c,0)||2&i&&c!==t){if(Br(i))return!1;o=!0}}}}else{if(!o&&!Br(i)&&!Br(l))return!1;if(o&&Br(l))continue;o=!1,i=l|1&i}}return Br(i)||o}function Br(t){return 0==(1&t)}function qr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Br(o)||(e+=Zr(s,r),r=""),i=o,s=s||!Br(i);n++}return""!==r&&(e+=Zr(s,r)),e}const Kr={};function Jr(t){Yr(Ne(),Fe(),hn()+t,qe())}function Yr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&gn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&mn(e,i,0,n)}dn(n)}function Xr(t,e){return t<<17|e<<2}function ts(t){return t>>17&32767}function es(t){return 2|t}function ns(t){return(131068&t)>>2}function is(t,e){return-131069&t|e<<2}function rs(t){return 1|t}function ss(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;ire&&Yr(t,e,re,qe()),n(i,r)}finally{dn(s)}}function fs(t,e,n){De()&&(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||Rn(n,e),Yi(i,e);const o=n.initialInputs;for(let a=r;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function xs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Os(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ss(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Vs(n)}}function Vs(t){for(let n=sr(t);null!==n;n=or(n))for(let t=se;t0&&Vs(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Vs(i)}}function Ds(t,e){const n=Pe(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Us(t){return t[7]||(t[7]=[])}function zs(t){return t.cleanup||(t.cleanup=[])}function Bs(t,e){const n=t[9],i=n?n.get(Qi,null):null;i&&i.handleError(e)}function qs(t,e,n,i,r){for(let s=0;sthis.processProvider(n,t,e)),ri([t],t=>this.processInjectorType(t,[],r)),this.records.set(Zs,oo(void 0,this));const s=this.records.get(Ks);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:ot(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=hi,n=kt.Default){this.assertNotDestroyed();const i=mi(this);try{if(!(n&kt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof ti)&&yt(t);e=n&&this.injectableDefInScope(n)?oo(ro(t),Js):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&kt.Self?eo():this.parent).get(t,e=n&kt.Optional&&e===hi?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(ot(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e[pi]&&r.unshift(e[pi]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=ot(e);if(Array.isArray(e))r=e.map(ot).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):ot(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(di,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{mi(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(ot(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=ut(t)))return!1;let i=bt(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=bt(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{ri(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Xs))}}this.injectorDefTypes.add(s);const a=de(s)||(()=>new s);this.records.set(s,oo(a,Js));const l=i.providers;if(null!=l&&!o){const e=t;ri(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=lo(t=ut(t))?t:ut(t&&t.provide);const r=function(t,e,n){return ao(t)?oo(void 0,t.useValue):oo(so(t),Js)}(t);if(lo(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=oo(void 0,Js,!0),e.factory=()=>yi(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===Js&&(e.value=Ys,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 ro(t){const e=yt(t),n=null!==e?e.factory:de(t);if(null!==n)return n;if(t instanceof ti)throw new Error(`Token ${ot(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ai(e,"?");throw new Error(`Can't resolve all parameters for ${ot(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[Ct]||t[Ot]);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.\nThis will become an error in a future version of Angular. 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 so(t,e,n){let i;if(lo(t)){const e=ut(t);return de(e)||ro(e)}if(ao(t))i=()=>ut(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...yi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>vi(ut(t.useExisting));else{const e=ut(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return de(e)||ro(e);i=()=>new e(...yi(t.deps))}var r;return i}function oo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&fi in t}function lo(t){return"function"==typeof t}const co=function(t,e,n){return function(t,e=null,n=null,i){const r=no(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let uo=(()=>{class t{static create(t,e){return Array.isArray(t)?co(t,e,""):co(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=hi,t.NULL=new Qs,t.\u0275prov=_t({token:t,providedIn:"any",factory:()=>vi(Zs)}),t.__NG_ELEMENT_ID__=-1,t})();function ho(t,e){fn(Te(t)[1],Le())}function po(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r;if(he(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=fo(t.inputs),e.declaredInputs=fo(t.declaredInputs),e.outputs=fo(t.outputs);const n=r.hostBindings;n&&_o(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&go(t,s),o&&mo(t,o),st(t.inputs,r.inputs),st(t.declaredInputs,r.declaredInputs),st(t.outputs,r.outputs),he(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Sn(r.hostAttrs,n=Sn(n,r.hostAttrs))}}(i)}function fo(t){return t===jt?{}:t===Ht?[]:t}function go(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function mo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function _o(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let vo=null;function yo(){if(!vo){const t=Nt.Symbol;if(t&&t.iterator)vo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(xe(t[i.index])).target:i.index;if(be(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Ho(i,e,s,!1);const t=n.listen(p.name||f,r,s);u.push(s,t),c&&c.push(r,m,g,g+1)}}else s=Ho(i,e,s,!0),f.addEventListener(r,s,o),u.push(s),c&&c.push(r,m,g,o)}else s=Ho(i,e,s,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Ve.lFrame.contextLView))[8]}(t)}function Uo(t,e){let n=null;const i=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 r=0;r=0}const Qo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ko(t){return t.substring(Qo.key,Qo.keyEnd)}function Jo(t,e){const n=Qo.textEnd;return n===e?-1:(e=Qo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Qo.key=e,n),Yo(t,e,n))}function Yo(t,e,n){for(;e=0;n=Jo(e,n))li(t,Ko(e),!0)}function ia(t,e,n,i){const r=Fe(),s=Ne(),o=Ke(2);s.firstUpdatePass&&sa(s,t,o,i),e!==Kr&&xo(r,o,e)&&la(s,s.data[hn()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=ot(Pi(t)))),t}(e,n),i,o)}function ra(t,e){return e>=t.expandoStartIndex}function sa(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[hn()],o=ra(t,n);ha(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=function(t){const e=Ve.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=aa(n=oa(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=oa(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==ns(i))return t[ts(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=oa(null,t,e,n[1],i),n=aa(n,e.attrs,i),function(t,e,n,i){t[ts(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=ts(t[a+1]);t[i+1]=Xr(e,a),0!==e&&(t[e+1]=is(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Xr(a,0),0!==a&&(t[a+1]=is(t[a+1],i)),a=i;else t[i+1]=Xr(l,0),0===a?a=i:t[l+1]=is(t[l+1],i),l=i;u&&(t[i+1]=es(t[i+1])),Go(t,c,i,!0),Go(t,c,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ui(s,e)>=0&&(n[i+1]=rs(n[i+1]))}(e,c,t,i,s),o=Xr(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function oa(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[r+1];u===Kr&&(u=c?Lt:void 0);let h=c?ci(u,i):l===i?u:void 0;if(s&&!ua(h)&&(h=ci(e,i)),ua(h)&&(a=h,o))return a;const d=t[r+1];r=o?ts(d):ns(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=ci(t,i))}return a}function ua(t){return void 0!==t}function ha(t,e){return 0!=(t.flags&(e?16:32))}function da(t,e=""){const n=Fe(),i=Ne(),r=t+re,s=i.firstCreatePass?as(i,r,1,e,null):i.data[r],o=n[r]=cr(n[11],e);Tr(i,n,o,s),Ue(s,!1)}function pa(t){return fa("",t,""),pa}function fa(t,e,n){const i=Fe(),r=ko(i,t,e,n);return r!==Kr&&Ws(i,hn(),r),fa}function ga(t,e,n,i,r){const s=Fe(),o=function(t,e,n,i,r,s){const o=Oo(t,Ze(),n,r);return Ke(2),o?e+pt(n)+i+pt(r)+s:Kr}(s,t,e,n,i,r);return o!==Kr&&Ws(s,hn(),o),ga}function ma(t,e,n){const i=Fe();return xo(i,Qe(),e)&&ws(Ne(),pn(),i,t,e,i[11],n,!0),ma}const _a=void 0;var va=["en",[["a","p"],["AM","PM"],_a],[["AM","PM"],_a,_a],[["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"]],_a,[["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"]],_a,[["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}",_a,"{1} 'at' {0}",_a],[".",",",";","%","+","-","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 ya={};function wa(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ba(e);if(n)return n;const i=e.split("-")[0];if(n=ba(i),n)return n;if("en"===i)return va;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Ca.PluralCase]}function ba(t){return t in ya||(ya[t]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[t]),ya[t]}var Ca=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const xa=["zero","one","two","few","many"],Oa="en-US",Sa={marker:"element"},ka={marker:"ICU"};var Pa=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}({});let Ta=Oa;function Ea(t){var e;null==(e=t)&&mt("Expected localeId to be defined",e,null,"!="),"string"==typeof t&&(Ta=t.toLowerCase().replace(/_/g,"-"))}function Ia(t,e,n){const i=e.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?Or(t,0,n):xe(n[r])}function Aa(t,e,n,i,r){const s=e.insertBeforeIndex;if(Array.isArray(s)){let o=i,a=null;if(3&e.type||(a=o,o=r),null!==o&&0==(2&e.flags))for(let e=1;e1)for(let n=t.length-2;n>=0;n--){const i=t[n];Ra(i)||Va(i,e)&&null===Da(i)&&Fa(i,e.index)}}function Ra(t){return!(64&t.type)}function Va(t,e){return Ra(e)||t.index>e.index}function Da(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function Fa(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(Pr(Ia,Aa),t.insertBeforeIndex=e)}function Na(t,e){const n=t.data[e];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ja(t,e,n){const i=ls(t,n,64,null,null);return Ma(e,i),i}function La(t,e){const n=e[t.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let Ha=0,$a=0;function Ua(t,e,n,i){const r=n[11];let s,o=null;for(let a=0;a>>17;let u,h;if(null===o&&(o=c,s=Cr(r,i)),c===o?(u=i,h=s):(u=null,h=xe(n[c])),null!==h){const e=(131070&l)>>>1;yr(r,h,n[e],u,!1);const i=Na(t,e);if(null!==i&&"object"==typeof i){const e=La(i,n);null!==e&&Ua(t,i.create[e],n,n[i.anchorIdx])}}break;case 1:const d=e[++a],p=e[++a];Es(r,Oe(l>>>1,n),null,null,d,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case ka:const t=e[++a],i=e[++a];null===n[i]&&Yi(n[i]=hr(r,t),n);break;case Sa:const s=e[++a],o=e[++a];null===n[o]&&Yi(n[o]=dr(r,s,null),n)}}}function za(t,e,n,i,r){for(let s=0;s>>2;switch(3&s){case 1:const s=n[++o],l=n[++o],c=t.data[a];"string"==typeof c?Es(e[11],e[a],null,c,s,r,l):ws(t,c,e,s,r,e[11],l,!1);break;case 0:const u=e[a];null!==u&&ur(e[11],u,r);break;case 2:qa(t,Na(t,a),e,r);break;case 3:Ba(t,Na(t,a),i,e)}}}}else{const r=n[s+1];if(r>0&&3==(3&r)){const n=Na(t,r>>>2);e[n.currentCaseLViewIndex]<0&&Ba(t,n,i,e)}}s+=a}}function Ba(t,e,n,i){let r=i[e.currentCaseLViewIndex];if(null!==r){let s=Ha;r<0&&(r=i[e.currentCaseLViewIndex]=~r,s=-1),za(t,i,e.update[r],n,s)}}function qa(t,e,n,i){const r=function(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const i=function(t,e){const n=wa(e)(parseInt(t,10)),i=xa[n];return void 0!==i?i:"other"}(e,Ta);n=t.cases.indexOf(i),-1===n&&"other"!==i&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return-1===n?null:n}(e,i);if(La(e,n)!==r&&(Wa(t,e,n),n[e.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const i=n[e.anchorIdx];i&&Ua(t,e.create[r],n,i)}}function Wa(t,e,n){let i=La(e,n);if(null!==i){const r=e.remove[i];for(let e=0;e0){const t=Oe(i,n);null!==t&&Mr(n[11],t)}else Wa(t,Na(t,~i),n)}}}const Ga=/\ufffd(\d+):?\d*\ufffd/gi,Za=/\ufffd(\d+)\ufffd/,Qa=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ka=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Ja=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Ya=/\uE500/g;function Xa(t,e,n,i,r,s,o){const a=cs(t,i,1,null);let l=a<0?e[o]:(t.push(i,n),r(e[1].data[~o],e),s())}return 0===t.length?null:(n=t.pop(),i=t.pop(),s())}return function(n,i){for(e=i;t.length;)t.pop();return r(n.value,i),s}}())),r.push(l,null===s?"":s);const u=ls(t,a,o?32:1,null===s?"":s,null);Ma(n,u);const h=u.index;return Ue(u,!1),null!==c&&e!==c&&function(t,e){let n=t.insertBeforeIndex;var i;null===n?(Pr(Ia,Aa),n=t.insertBeforeIndex=[null,e]):("Expecting array here",(i=Array.isArray(n))!=!0&&mt("Expecting array here",i,true,"=="),n.push(e))}(c,h),u}function tl(t,e,n,i,r,s,o){const a=o.match(Ga),l=Xa(t,e,n,s,i,a?null:o,!1);a&&el(r,o,l.index)}function el(t,e,n,i,r=null){const s=t.length,o=s+1;t.push(null,null);const a=s+2,l=e.split(Ga);let c=0;for(let u=0;un.length&&n.push(r)}return{type:i,mainBinding:r,cases:e,values:n}}function ol(t){if(!t)return[];let e=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(t);){const r=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=t.substring(e,r);Qa.test(n)?i.push(sl(n)):i.push(n),e=r+1}}else{if(0==n.length){const n=t.substring(e,r);i.push(n),e=r+1}n.push("{")}}const o=t.substring(e);return i.push(o),i}function al(t,e,n,i,r,s,o,a){const l=[],c=[],u=[];e.cases.push(s),e.create.push(l),e.remove.push(c),e.update.push(u);const h=function(t){const e=new Ei(t);return function(){try{return!!(new window.DOMParser).parseFromString(Si(""),"text/html")}catch(t){return!1}}()?new Ti(e):e}(we()).getInertBodyElement(o),d=("content"in(p=h)&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(p)?p.content:null)||h;var p;return d?ll(t,e,n,i,l,c,u,d,r,a,0):0}function ll(t,e,n,i,r,s,o,a,l,c,u){let h=0,d=a.firstChild;for(;d;){const a=cs(t,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:const p=d,f=p.tagName.toLowerCase();if(Hi.hasOwnProperty(f)){hl(r,Sa,f,l,a),t.data[a]=f;const g=p.attributes;for(let t=0;t>>Pa.SHIFT;let h=t[u];null===h&&(h=t[u]=l?r.createComment(a):cr(r,a)),c&&null!==n&&yr(r,n,h,i,!1)}}(r,l.create,c,a&&8&a.type?r[a.index]:null),Je(!0)})(t,e,n),Je(!1)}function fl(t){return xo(Fe(),Qe(),t)&&(Ha|=1<>20;if(lo(t)||!t.multi){const i=new bn(l,r,Eo),p=vl(a,e,r?u:u+d,h);-1===p?(Nn(Rn(c,o),s,a),ml(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=vl(a,e,u+d,h),f=vl(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(r&&!m||!r&&!g){Nn(Rn(c,o),s,a);const u=function(t,e,n,i,r){const s=new bn(t,n,Eo);return s.multi=[],s.index=e,s.componentProviders=0,_l(s,r,i&&!n),s}(r?wl:yl,n.length,r,i,l);!r&&m&&(n[f].providerFactory=u),ml(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ml(s,t,p>-1?p:f,_l(n[r?f:p],l,!r&&i));!r&&i&&m&&n[f].componentProviders++}}}function ml(t,e,n,i){const r=lo(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function _l(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function vl(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=Ne();if(i.firstCreatePass){const r=he(t);gl(n,i.data,i.blueprint,r,!0),gl(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class xl{}class Ol{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${ot(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Sl=(()=>{class t{}return t.NULL=new Ol,t})();function kl(...t){}function Pl(t,e){return new El(Se(t,e))}const Tl=function(){return Pl(Le(),Fe())};let El=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Tl,t})();function Il(t){return t instanceof El?t.nativeElement:t}class Al{}let Ml=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Rl(),t})();const Rl=function(){const t=Fe(),e=Pe(Le().index,t);return function(t){return t[11]}(oe(e)?e:t)};let Vl=(()=>{class t{}return t.\u0275prov=_t({token:t,providedIn:"root",factory:()=>null}),t})();class Dl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Fl=new Dl("11.2.7");class Nl{constructor(){}supports(t){return wo(t)}create(t){return new Ll(t)}}const jl=(t,e)=>e;class Ll{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||jl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),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;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=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new Hl(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,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 i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ul),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 Ul),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 Hl{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 $l{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)&&Object.is(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 Ul{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new $l,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 zl(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Wl(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){Object.is(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 Wl{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}}function Gl(){return new Zl([new Nl])}let Zl=(()=>{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=>t.create(e,n||Gl()),deps:[[t,new xi,new Ci]]}}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=_t({token:t,providedIn:"root",factory:Gl}),t})();function Ql(){return new Kl([new Bl])}let Kl=(()=>{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=>t.create(e,n||Ql()),deps:[[t,new xi,new Ci]]}}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=_t({token:t,providedIn:"root",factory:Ql}),t})();function Jl(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(xe(s)),ae(s))for(let t=se;t-1&&(fr(t,n),oi(e,n))}this._attachedToViewContainer=!1}gr(this._lView[1],this._lView)}onDestroy(t){vs(this._lView[1],this._lView,null,t)}markForCheck(){Ns(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){js(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){We(!0);try{js(t,e,n)}finally{We(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Vr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Xl extends Yl{constructor(t){super(t),this._view=t}detectChanges(){Ls(this._view)}checkNoChanges(){!function(t){We(!0);try{Ls(t)}finally{We(!1)}}(this._view)}get context(){return null}}const tc=function(t=!1){return function(t,e,n){if(!n&&ce(t)){const n=Pe(t.index,e);return new Yl(n,n)}return 47&t.type?new Yl(e[16],e):null}(Le(),Fe(),t)};let ec=(()=>{class t{}return t.__NG_ELEMENT_ID__=tc,t.__ChangeDetectorRef__=!0,t})();const nc=[new Bl],ic=new Zl([new Nl]),rc=new Kl(nc),sc=function(){return cc(Le(),Fe())};let oc=(()=>{class t{}return t.__NG_ELEMENT_ID__=sc,t})();const ac=oc,lc=class extends ac{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=os(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),us(e,n,t),new Yl(n)}};function cc(t,e){return 4&t.type?new lc(e,t,Pl(t,e)):null}class uc{}class hc{}const dc=function(){return vc(Le(),Fe())};let pc=(()=>{class t{}return t.__NG_ELEMENT_ID__=dc,t})();const fc=pc,gc=class extends fc{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Pl(this._hostTNode,this._hostLView)}get injector(){return new Zn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Fn(this._hostTNode,this._hostLView);if(Pn(t)){const e=En(t,this._hostLView),n=Tn(t);return new Zn(e[1].data[n+8],e)}return new Zn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=mc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-se}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(uc,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ae(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new gc(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=se+i,s=n.length;i>0&&(n[r-1][4]=e),iXi});class xc extends xl{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Qr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return bc(this.componentDef.inputs)}get outputs(){return bc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,yc,r);return s!==yc||i===yc?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Al,Ce),o=r.get(Vl,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(be(t))return t.selectRootElement(e,n===Mt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):dr(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Xi,clean:$s,playerHandler:null,flags:0},d=_s(0,null,null,1,0,null,null,null,null,null),p=os(null,d,h,u,null,null,s,a,o,r);let f,g;sn(p);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=as(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Gs(a,l,!0),null!==t&&(Cn(r,t,l),null!==a.classes&&Nr(r,t,a.classes),null!==a.styles&&Fr(r,t,a.styles)));const c=i.createRenderer(t,e),u=os(n,ms(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Nn(Rn(a,n),o,e.type),Os(o,a),ks(a,n.length,1)),Fs(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)Cn(a,c,["ng-version",Fl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&Nr(a,c,e.join(" "))}if(g=ke(d,re),void 0!==e){const t=g.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Le();e.contentQueries(1,o,t.directiveStart)}const a=Le();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(dn(a.index),Cs(n[1],a,0,a.directiveStart,a.directiveEnd,e),xs(e,o)),o}(t,this.componentDef,p,h,[ho]),us(d,p,null)}finally{un()}return new Oc(this.componentType,f,Pl(g,p),p,g)}}class Oc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Xl(i),this.componentType=t}get injector(){return new Zn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Sc=new Map;class kc extends uc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new wc(this);const n=ie(t),i=t[qt]||null;i&&Ea(i),this._bootstrapComponents=tr(n.bootstrap),this._r3Injector=no(t,e,[{provide:uc,useValue:this},{provide:Sl,useValue:this.componentFactoryResolver}],ot(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=uo.THROW_IF_NOT_FOUND,n=kt.Default){return t===uo||t===uc||t===Zs?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 Pc extends hc{constructor(t){super(),this.moduleType=t,null!==ie(t)&&function(t){const e=new Set;!function t(n){const i=ie(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${ot(e)} vs ${ot(e.name)}`)}(r,Sc.get(r),n),Sc.set(r,n));const s=tr(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new kc(this.moduleType,t)}}function Tc(t,e,n){const i=Ge()+t,r=Fe();return r[i]===Kr?Co(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}const Ec=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,s=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return t instanceof h&&t.add(o),o}};function Ic(){return this._results[yo()]()}class Ac{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=yo(),n=Ac.prototype;n[e]||(n[e]=Ic)}get changes(){return this._changes||(this._changes=new Ec)}get(t){return this._results[t]}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,e){const n=this;n.dirty=!1;const i=ii(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=se;t{class t{constructor(t){this.appInits=t,this.resolve=kl,this.reject=kl,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{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(vi(Qc,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Jc=new ti("AppId"),Yc={provide:Jc,useFactory:function(){return`${Xc()}${Xc()}${Xc()}`},deps:[]};function Xc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const tu=new ti("Platform Initializer"),eu=new ti("Platform ID"),nu=new ti("appBootstrapListener");let iu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const ru=new ti("LocaleId"),su=new ti("DefaultCurrencyCode");class ou{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const au=function(t){return new Pc(t)},lu=au,cu=function(t){return Promise.resolve(au(t))},uu=function(t){const e=au(t),n=tr(ie(t).declarations).reduce((t,e)=>{const n=ne(e);return n&&t.push(new xc(n)),t},[]);return new ou(e,n)},hu=uu,du=function(t){return Promise.resolve(uu(t))};let pu=(()=>{class t{constructor(){this.compileModuleSync=lu,this.compileModuleAsync=cu,this.compileModuleAndAllComponentsSync=hu,this.compileModuleAndAllComponentsAsync=du}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const fu=(()=>Promise.resolve(0))();function gu(t){"undefined"==typeof Zone?fu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class mu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ec(!1),this.onMicrotaskEmpty=new Ec(!1),this.onStable=new Ec(!1),this.onError=new Ec(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Nt.requestAnimationFrame,e=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Nt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,yu(t),vu(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),yu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return wu(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),bu(t)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return wu(t),n.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bu(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,yu(t),vu(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mu.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,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,_u,kl,kl);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const _u={};function vu(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 yu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bu(t){t._nesting--,vu(t)}class Cu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ec,this.onMicrotaskEmpty=new Ec,this.onStable=new Ec,this.onError=new Ec}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,i){return t.apply(e,n)}}let xu=(()=>{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:()=>{mu.assertNotInAngularZone(),gu(()=>{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())gu(()=>{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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,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)(vi(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Ou=(()=>{class t{constructor(){this._applications=new Map,Pu.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 Pu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class Su{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ku,Pu=new Su,Tu=!0,Eu=!1;const Iu=new ti("AllowMultipleToken");class Au{constructor(t,e){this.name=t,this.token=e}}function Mu(t,e,n=[]){const i=`Platform: ${e}`,r=new ti(i);return(e=[])=>{let s=Ru();if(!s||s.injector.get(Iu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Ks,useValue:"platform"});!function(t){if(ku&&!ku.destroyed&&!ku.injector.get(Iu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ku=t.get(Vu);const e=t.get(tu,null);e&&e.forEach(t=>t())}(uo.create({providers:t,name:i}))}return function(t){const e=Ru();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Ru(){return ku&&!ku.destroyed?ku:null}let Vu=(()=>{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 Cu:("zone.js"===t?void 0:t)||new mu({enableLongStackTrace:(Eu=!0,Tu),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:mu,useValue:n}];return n.run(()=>{const e=uo.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Qi,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Nu(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return Fo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(Kc);return t.runInitializers(),t.donePromise.then(()=>(Ea(r.injector.get(ru,Oa)||Oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Du({},e);return function(t,e,n){const i=new Pc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Fu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${ot(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)(vi(uo))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Du(t,e){return Array.isArray(e)?e.reduce(Du,t):Object.assign(Object.assign({},t),e)}let Fu=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new w(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new w(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{mu.assertNotInAngularZone(),gu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{mu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=G(s,o.pipe(it()))}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 xl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(uc),r=n.create(uo.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(xu,null),a=o&&r.injector.get(Ou);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Nu(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}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;Nu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(nu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(vi(mu),vi(uo),vi(Qi),vi(Sl),vi(Kc))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Nu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ju{}class Lu{}const Hu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let $u=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Hu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Uu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Uu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(vi(pu),vi(Lu,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Uu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const zu=Mu(null,"core",[{provide:eu,useValue:"unknown"},{provide:Vu,deps:[uo]},{provide:Ou,deps:[]},{provide:iu,deps:[]}]),Bu=[{provide:Fu,useClass:Fu,deps:[mu,uo,Qi,Sl,Kc]},{provide:Cc,deps:[mu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Kc,useClass:Kc,deps:[[new Ci,Qc]]},{provide:pu,useClass:pu,deps:[]},Yc,{provide:Zl,useFactory:function(){return ic},deps:[]},{provide:Kl,useFactory:function(){return rc},deps:[]},{provide:ru,useFactory:function(t){return Ea(t=t||"undefined"!=typeof $localize&&$localize.locale||Oa),t},deps:[[new bi(ru),new Ci,new xi]]},{provide:su,useValue:"USD"}];let qu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(vi(Fu))},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({providers:Bu}),t})(),Wu=null;function Gu(){return Wu}const Zu=new ti("DocumentToken");let Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:Ku,token:t,providedIn:"platform"}),t})();function Ku(){return vi(Yu)}const Ju=new ti("Location Initialized");let Yu=(()=>{class t extends Qu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Gu().getLocation(),this._history=Gu().getHistory()}getBaseHrefFromDOM(){return Gu().getBaseHref(this._doc)}onPopState(t){Gu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Gu().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){Xu()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Xu()?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)(vi(Zu))},t.\u0275prov=_t({factory:th,token:t,providedIn:"platform"}),t})();function Xu(){return!!window.history.pushState}function th(){return new Yu(vi(Zu))}function eh(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 nh(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 ih(t){return t&&"?"!==t[0]?"?"+t:t}let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:sh,token:t,providedIn:"root"}),t})();function sh(t){const e=vi(Zu).location;return new ah(vi(Qu),e&&e.origin||"")}const oh=new ti("appBaseHref");let ah=(()=>{class t extends rh{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 eh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ih(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+ih(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+ih(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(vi(Qu),vi(oh,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),lh=(()=>{class t extends rh{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=eh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+ih(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+ih(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(vi(Qu),vi(oh,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),ch=(()=>{class t{constructor(t,e){this._subject=new Ec,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=nh(hh(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+ih(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,hh(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+ih(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ih(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=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)(vi(rh),vi(Qu))},t.normalizeQueryParams=ih,t.joinWithSlash=eh,t.stripTrailingSlash=nh,t.\u0275prov=_t({factory:uh,token:t,providedIn:"root"}),t})();function uh(){return new ch(vi(rh),vi(Qu))}function hh(t){return t.replace(/\/index.html$/,"")}var dh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});const ph=wa;class fh{}let gh=(()=>{class t extends fh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(ph(e||this.locale)(t)){case dh.Zero:return"zero";case dh.One:return"one";case dh.Two:return"two";case dh.Few:return"few";case dh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(vi(ru))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function mh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}class _h{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 vh=(()=>{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){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,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new _h(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new yh(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new yh(t,r);e.push(s)}});for(let n=0;n{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)(Eo(pc),Eo(oc),Eo(Zl))},t.\u0275dir=ee({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class yh{constructor(t,e){this.record=t,this.view=e}}let wh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new bh,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){Ch("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ch("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)(Eo(pc),Eo(oc))},t.\u0275dir=ee({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class bh{constructor(){this.$implicit=null,this.ngIf=null}}function Ch(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ot(e)}'.`)}let xh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(Eo(pc))},t.\u0275dir=ee({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fe]}),t})(),Oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({providers:[{provide:fh,useClass:gh}]}),t})();function Sh(t){return"browser"===t}let kh=(()=>{class t{}return t.\u0275prov=_t({token:t,providedIn:"root",factory:()=>new Ph(vi(Zu),window)}),t})();class Ph{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){var e;if(!this.supportsScrolling())return;const n=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}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,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Th(this.window.history)||Th(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Th(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Eh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Eh,Wu||(Wu=t)}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=Ah||(Ah=document.querySelector("base"),Ah)?Ah.getAttribute("href"):null;return null==e?null:(n=e,Ih||(Ih=document.createElement("a")),Ih.setAttribute("href",n),"/"===Ih.pathname.charAt(0)?Ih.pathname:"/"+Ih.pathname);var n}resetBaseElement(){Ah=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 mh(document.cookie,t)}}let Ih,Ah=null;const Mh=new ti("TRANSITION_ID"),Rh=[{provide:Qc,useFactory:function(t,e,n){return()=>{n.get(Kc).donePromise.then(()=>{const n=Gu();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Mh,Zu,uo],multi:!0}];class Vh{static init(){var t;t=new Vh,Pu=t}addToWindow(t){Nt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Nt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Nt.getAllAngularRootElements=()=>t.getAllRootElements(),Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push(t=>{const e=Nt.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Gu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Dh=new ti("EventManagerPlugins");let Fh=(()=>{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 i=0;i{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=_t({token:t,factory:t.\u0275fac}),t})(),Lh=(()=>{class t extends jh{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=>Gu().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(vi(Zu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Hh={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/"},$h=/%COMP%/g;function Uh(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Bh=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new qh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Mt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Wh(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Mt.ShadowDom:return new Gh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Uh(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)(vi(Fh),vi(Lh),vi(Jc))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class qh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Hh[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,i){if(i){e=i+":"+e;const r=Hh[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Hh[n];i?t.removeAttributeNS(i,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,i){i&(er.DashCase|er.Important)?t.style.setProperty(e,n,i&er.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&er.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,zh(n)):this.eventManager.addEventListener(t,e,zh(n))}}class Wh extends qh{constructor(t,e,n,i){super(t),this.component=n;const r=Uh(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace($h,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace($h,i+"-"+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 Gh extends qh{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Uh(i.id,i.styles,[]);for(let s=0;s{class t extends Nh{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)(vi(Zu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Qh=["alt","control","meta","shift"],Kh={"\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"},Jh={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"},Yh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Xh=(()=>{class t extends Nh{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),s=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gu().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(Qh.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,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&&Jh.hasOwnProperty(e)&&(e=Jh[e]))}return Kh[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Qh.forEach(i=>{i!=n&&(0,Yh[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(vi(Zu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const td=Mu(zu,"browser",[{provide:eu,useValue:"browser"},{provide:tu,useValue:function(){Eh.makeCurrent(),Vh.init()},multi:!0},{provide:Zu,useFactory:function(){return function(t){ye=t}(document),document},deps:[]}]),ed=[[],{provide:Ks,useValue:"root"},{provide:Qi,useFactory:function(){return new Qi},deps:[]},{provide:Dh,useClass:Zh,multi:!0,deps:[Zu,mu,eu]},{provide:Dh,useClass:Xh,multi:!0,deps:[Zu]},[],{provide:Bh,useClass:Bh,deps:[Fh,Lh,Jc]},{provide:Al,useExisting:Bh},{provide:jh,useExisting:Lh},{provide:Lh,useClass:Lh,deps:[Zu]},{provide:xu,useClass:xu,deps:[mu]},{provide:Fh,useClass:Fh,deps:[Dh,mu]},[]];let nd=(()=>{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:Jc,useValue:e.appId},{provide:Mh,useExisting:Jc},Rh]}}}return t.\u0275fac=function(e){return new(e||t)(vi(t,12))},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({providers:ed,imports:[Oh,qu]}),t})();function id(...t){let e=t[t.length-1];return P(e)?(t.pop(),N(t,e)):W(t)}"undefined"!=typeof window&&window;class rd extends S{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 C;return this._value}next(t){super.next(this._value=t)}}class sd extends f{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class od extends f{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()}}function ad(t,e,n,i,r=new od(t,n,i)){if(!r.closed)return e instanceof w?e.subscribe(r):F(e)(r)}const ld={};function cd(...t){let e,n;return P(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),W(t,n).lift(new ud(e))}class ud{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new hd(t,this.resultSelector))}}class hd extends sd{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(ld),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{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function pd(...t){return q(1)(id(...t))}const fd=new w(t=>t.complete());function gd(t){return t?function(t){return new w(e=>t.schedule(()=>e.complete()))}(t):fd}function md(t){return new w(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):gd()).subscribe(e)})}function _d(t,e){return"function"==typeof e?n=>n.pipe(_d((n,i)=>j(t(n,i)).pipe(T((t,r)=>e(n,t,i,r))))):e=>e.lift(new vd(t))}class vd{constructor(t){this.project=t}call(t,e){return e.subscribe(new yd(t,this.project))}}class yd extends H{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(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new L(this),i=this.destination;i.add(n),this.innerSubscription=$(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const wd=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function bd(t){return e=>0===t?gd():e.lift(new Cd(t))}class Cd{constructor(t){if(this.total=t,this.total<0)throw new wd}call(t,e){return e.subscribe(new xd(t,this.total))}}class xd extends f{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()))}}function Od(...t){const e=t[t.length-1];return P(e)?(t.pop(),n=>pd(t,n,e)):e=>pd(t,e)}function Sd(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new kd(t,e,n))}}class kd{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Pd(t,this.accumulator,this.seed,this.hasSeed))}}class Pd extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,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(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function Td(t,e){return function(n){return n.lift(new Ed(t,e))}}class Ed{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Id(t,this.predicate,this.thisArg))}}class Id extends f{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)}}function Ad(t){return function(e){const n=new Md(t),i=e.lift(n);return n.caught=i}}class Md{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Rd(t,this.selector,this.caught))}}class Rd extends H{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 i=new L(this);this.add(i);const r=$(n,i);r!==i&&this.add(r)}}}function Vd(t,e){return U(t,e,1)}function Dd(t){return function(e){return 0===t?gd():e.lift(new Fd(t))}}class Fd{constructor(t){if(this.total=t,this.total<0)throw new wd}call(t,e){return e.subscribe(new Nd(t,this.total))}}class Nd extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;re.lift(new Ld(t))}class Ld{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Hd(t,this.errorFactory))}}class Hd extends f{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 $d(){return new dd}function Ud(t=null){return e=>e.lift(new zd(t))}class zd{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Bd(t,this.defaultValue))}}class Bd extends f{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()}}function qd(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Td((e,n)=>t(e,n,i)):_,bd(1),n?Ud(e):jd(()=>new dd))}function Wd(){}function Gd(t,e,n){return function(i){return i.lift(new Zd(t,e,n))}}class Zd{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Qd(t,this.nextOrObserver,this.error,this.complete))}}class Qd extends f{constructor(t,e,n,r){super(t),this._tapNext=Wd,this._tapError=Wd,this._tapComplete=Wd,this._tapError=n||Wd,this._tapComplete=r||Wd,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Wd,this._tapError=e.error||Wd,this._tapComplete=e.complete||Wd)}_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()}}class Kd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Jd(t,this.callback))}}class Jd extends f{constructor(t,e){super(t),this.add(new h(e))}}class Yd{constructor(t,e){this.id=t,this.url=e}}class Xd extends Yd{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class tp extends Yd{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ep extends Yd{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class np extends Yd{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ip extends Yd{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rp extends Yd{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sp extends Yd{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class op extends Yd{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ap extends Yd{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class up{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dp{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pp{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fp{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}')`}}const gp="primary";class mp{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,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 _p(t){return new mp(t)}function vp(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function yp(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function Cp(t){return Array.prototype.concat.apply([],t)}function xp(t){return t.length>0?t[t.length-1]:null}function Op(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Sp(t){return No(t)?t:Fo(t)?j(Promise.resolve(t)):id(t)}function kp(t,e,n){return n?function(t,e){return wp(t,e)}(t.queryParams,e.queryParams)&&Pp(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>bp(t[n],e[n]))}(t.queryParams,e.queryParams)&&Tp(t.root,e.root)}function Pp(t,e){if(!Rp(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Pp(t.children[n],e.children[n]))return!1}return!0}function Tp(t,e){return Ep(t,e,e.segments)}function Ep(t,e,n){if(t.segments.length>n.length)return!!Rp(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Rp(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Tp(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!Rp(t.segments,i)&&!!t.children.primary&&Ep(t.children.primary,e,r)}}class Ip{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_p(this.queryParams)),this._queryParamMap}toString(){return Fp.serialize(this)}}class Ap{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Op(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Np(this)}}class Mp{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_p(this.parameters)),this._parameterMap}toString(){return Bp(this)}}function Rp(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Vp{}class Dp{parse(t){const e=new Qp(t);return new Ip(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${jp(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Hp(e)}=${Hp(t)}`).join("&"):`${Hp(e)}=${Hp(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Fp=new Dp;function Np(t){return t.segments.map(t=>Bp(t)).join("/")}function jp(t,e){if(!t.hasChildren())return Np(t);if(e){const e=t.children.primary?jp(t.children.primary,!1):"",n=[];return Op(t.children,(t,e)=>{e!==gp&&n.push(`${e}:${jp(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Op(t.children,(t,i)=>{i===gp&&(n=n.concat(e(t,i)))}),Op(t.children,(t,i)=>{i!==gp&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===gp?[jp(t.children.primary,!1)]:[`${n}:${jp(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Np(t)}/${e[0]}`:`${Np(t)}/(${e.join("//")})`}}function Lp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hp(t){return Lp(t).replace(/%3B/gi,";")}function $p(t){return Lp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Up(t){return decodeURIComponent(t)}function zp(t){return Up(t.replace(/\+/g,"%20"))}function Bp(t){return`${$p(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$p(t)}=${$p(e[t])}`).join("")}`;var e}const qp=/^[^\/()?;=#]+/;function Wp(t){const e=t.match(qp);return e?e[0]:""}const Gp=/^[^=?&#]+/,Zp=/^[^?&#]+/;class Qp{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ap([],{}):new Ap([],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 Ap(t,e)),n}parseSegment(){const t=Wp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Mp(Up(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Wp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Wp(this.remaining);t&&(n=t,this.capture(n))}t[Up(e)]=Up(n)}parseQueryParam(t){const e=function(t){const e=t.match(Gp);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(Zp);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=zp(e),r=zp(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Wp(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=gp);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new Ap([],s),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 Kp{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=Jp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Yp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Yp(t,this._root).map(t=>t.value)}}function Jp(t,e){if(t===e.value)return e;for(const n of e.children){const e=Jp(t,n);if(e)return e}return null}function Yp(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Yp(t,n);if(i.length)return i.unshift(e),i}return[]}class Xp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function tf(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ef extends Kp{constructor(t,e){super(t),this.snapshot=e,lf(this,t)}toString(){return this.snapshot.toString()}}function nf(t,e){const n=function(t,e){const n=new of([],{},{},"",{},gp,e,null,t.root,-1,{});return new af("",new Xp(n,[]))}(t,e),i=new rd([new Mp("",{})]),r=new rd({}),s=new rd({}),o=new rd({}),a=new rd(""),l=new rf(i,r,o,a,s,gp,e,n.root);return l.snapshot=n.root,new ef(new Xp(l,[]),n)}class rf{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,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(T(t=>_p(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(t=>_p(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sf(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class of{constructor(t,e,n,i,r,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,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=_p(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_p(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class af extends Kp{constructor(t,e){super(e),this.url=t,lf(this,e)}toString(){return cf(this._root)}}function lf(t,e){e.value._routerState=t,e.children.forEach(e=>lf(t,e))}function cf(t){const e=t.children.length>0?` { ${t.children.map(cf).join(", ")} } `:"";return`${t.value}${e}`}function uf(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nwp(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||hf(t.parent,e.parent))}function df(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return df(t,e,i);return df(t,e)})}(t,e,n);return new Xp(i,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return pf(e,t),t}{const n=new rf(new rd((i=e.value).url),new rd(i.params),new rd(i.queryParams),new rd(i.fragment),new rd(i.data),i.outlet,i.component,i),r=e.children.map(e=>df(t,e));return new Xp(n,r)}}var i}function pf(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ip(n.root===t?e:_f(n.root,t,e),s,r)}function _f(t,e,n){const i={};return Op(t.children,(t,r)=>{i[r]=t===e?n:_f(t,e,n)}),new Ap(t.segments,i)}class vf{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ff(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(gf);if(i&&i!==xp(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yf{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function wf(t,e,n){if(t||(t=new Ap([],{})),0===t.segments.length&&t.hasChildren())return bf(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const e=t.segments[r],o=n[i];if(gf(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Sf(a,l,e))return s;i+=2}else{if(!Sf(a,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=wf(t.children[i],e,n))}),Op(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new Ap(t.segments,r)}}function Cf(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Cf(new Ap([],{}),0,t))}),e}function Of(t){const e={};return Op(t,(t,n)=>e[n]=`${t}`),e}function Sf(t,e,n){return t==n.path&&wp(e,n.parameters)}class kf{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),uf(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=tf(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Op(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&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(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=tf(t);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(t,e,n){const i=tf(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new pp(t.value.snapshot))}),t.children.length&&this.forwardEvent(new hp(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(uf(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Pf(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}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Pf(t){uf(t.value),t.children.forEach(Pf)}class Tf{constructor(t,e){this.routes=t,this.module=e}}function Ef(t){return"function"==typeof t}function If(t){return t instanceof Ip}const Af=Symbol("INITIAL_VALUE");function Mf(){return _d(t=>cd(t.map(t=>t.pipe(bd(1),Od(Af)))).pipe(Sd((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==Af)return t;if(i===Af&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||If(i))return i}return t},t)},Af),Td(t=>t!==Af),T(t=>If(t)?t:!0===t),bd(1)))}let Rf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Qt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Vo(0,"router-outlet")},directives:function(){return[Tg]},encapsulation:2}),t})();function Vf(t,e=""){for(let n=0;njf(t)===e);return n.push(...t.filter(t=>jf(t)!==e)),n}const Hf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function $f(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Hf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||yp)(n,t,e);if(!r)return Object.assign({},Hf);const s={};Op(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Uf(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>zf(t,e,n)&&jf(n)!==gp)}(t,n,i)){const r=new Ap(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&jf(s)!==gp){const n=new Ap([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[jf(s)]=n}return r}(t,e,i,new Ap(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>zf(t,e,n))}(t,n,i)){const s=new Ap(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(zf(t,n,a)&&!r[jf(a)]){const n=new Ap([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[jf(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new Ap(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function zf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Bf(t,e,n,i){return!!(jf(t)===i||i!==gp&&zf(e,n,t))&&("**"===t.path||$f(e,t,n).matched)}function qf(t,e,n){return 0===e.length&&!t.children[n]}class Wf{constructor(t){this.segmentGroup=t||null}}class Gf{constructor(t){this.urlTree=t}}function Zf(t){return new w(e=>e.error(new Wf(t)))}function Qf(t){return new w(e=>e.error(new Gf(t)))}function Kf(t){return new w(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Jf{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(uc)}apply(){const t=Uf(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ap(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,gp).pipe(T(t=>this.createUrlTree(Yf(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ad(t=>{if(t instanceof Gf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Wf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,gp).pipe(T(e=>this.createUrlTree(Yf(e),t.queryParams,t.fragment))).pipe(Ad(t=>{if(t instanceof Wf)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Ap([],{[gp]:t}):t;return new Ip(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(T(t=>new Ap([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return j(i).pipe(Vd(i=>{const r=n.children[i],s=Lf(e,i);return this.expandSegmentGroup(t,s,r,i).pipe(T(t=>({segment:t,outlet:i})))}),Sd((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Td((e,n)=>t(e,n,i)):_,Dd(1),n?Ud(e):jd(()=>new dd))}())}expandSegment(t,e,n,i,r,s){return j(n).pipe(Vd(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,s).pipe(Ad(t=>{if(t instanceof Wf)return id(null);throw t}))),qd(t=>!!t),Ad((t,n)=>{if(t instanceof dd||"EmptyError"===t.name){if(qf(e,i,r))return id(new Ap([],{}));throw new Wf(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return Bf(i,e,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):Zf(e):Zf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qf(r):this.lineralizeSegments(n,r).pipe(U(n=>{const r=new Ap(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=$f(e,i,r);if(!o)return Zf(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Qf(u):this.lineralizeSegments(i,u).pipe(U(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?id(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(T(t=>(n._loadedConfig=t,new Ap(i,{})))):id(new Ap(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=$f(e,n,i);if(!s)return Zf(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(U(t=>{const i=t.module,s=t.routes,{segmentGroup:a,slicedSegments:c}=Uf(e,o,l,s),u=new Ap(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(i,s,u).pipe(T(t=>new Ap(o,t)));if(0===s.length&&0===c.length)return id(new Ap(o,{}));const h=jf(n)===r;return this.expandSegment(i,u,s,c,h?gp:r,!0).pipe(T(t=>new Ap(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?id(new Tf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?id(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(U(n=>n?this.configLoader.load(t.injector,e).pipe(T(t=>(e._loadedConfig=t,t))):function(t){return new w(e=>e.error(vp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):id(new Tf([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?id(i.map(i=>{const r=t.get(i);let s;if(function(t){return t&&Ef(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!Ef(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return Sp(s)})).pipe(Mf(),Gd(t=>{if(!If(t))return;const e=vp(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),T(t=>!0===t)):id(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return id(n);if(i.numberOfChildren>1||!i.children.primary)return Kf(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new Ip(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Op(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return Op(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new Ap(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Yf(t){const e={};for(const n of Object.keys(t.children)){const i=Yf(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ap(t.segments.concat(e.segments),e.children)}return t}(new Ap(t.segments,e))}class Xf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tg{constructor(t,e){this.component=t,this.route=e}}function eg(t,e,n){const i=t._root;return ig(i,e?e._root:null,n,[i.value])}function ng(t,e,n){const i=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(i?i.module.injector:n).get(t)}function ig(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=tf(e);return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Rp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Rp(t.url,e.url)||!wp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hf(t,e)||!wp(t.queryParams,e.queryParams);case"paramsChange":default:return!hf(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Xf(i)):(s.data=o.data,s._resolvedData=o._resolvedData),ig(t,e,s.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new tg(a.outlet.component,o))}else o&&rg(e,a,r),r.canActivateChecks.push(new Xf(i)),ig(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),Op(s,(t,e)=>rg(t,n.getContext(e),r)),r}function rg(t,e,n){const i=tf(t),r=t.value;Op(i,(t,i)=>{rg(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new tg(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class sg{}function og(t){return new w(e=>e.error(t))}class ag{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=Uf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,gp);if(null===e)return null;const n=new of([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},gp,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Xp(n,e),r=new af(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=sf(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=[];for(const r of Object.keys(e.children)){const i=e.children[r],s=Lf(t,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=function(t){const e=[];for(const n of t){if(!lg(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...n.children):e.push(n)}return e}(n);return i.sort((t,e)=>t.value.outlet===gp?-1:e.value.outlet===gp?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return qf(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Bf(t,e,n,i))return null;let r,s=[],o=[];if("**"===t.path){const i=n.length>0?xp(n).parameters:{};r=new of(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hg(t),jf(t),t.component,t,cg(e),ug(e)+n.length,dg(t))}else{const i=$f(e,t,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new of(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,hg(t),jf(t),t.component,t,cg(e),ug(e)+s.length,dg(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Uf(e,s,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Xp(r,t)]}if(0===a.length&&0===c.length)return[new Xp(r,[])];const u=jf(t)===i,h=this.processSegment(a,l,c,u?gp:i);return null===h?null:[new Xp(r,h)]}}function lg(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function cg(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ug(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 hg(t){return t.data||{}}function dg(t){return t.resolve||{}}function pg(t){return _d(e=>{const n=t(e);return n?j(n).pipe(T(()=>e)):id(e)})}class fg extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const gg=new ti("ROUTES");class mg{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(T(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Tf(Cp(i.injector.get(gg,void 0,kt.Self|kt.Optional)).map(Nf),i)}),Ad(t=>{throw e._loader$=void 0,t}));return e._loader$=new J(n,()=>new S).pipe(Z()),e._loader$}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):Sp(t()).pipe(U(t=>t instanceof hc?id(t):j(this.compiler.compileModuleAsync(t))))}}class _g{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new vg,this.attachRef=null}}class vg{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 _g,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class yg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function wg(t){throw t}function bg(t,e,n){return e.parse("/")}function Cg(t,e){return id(null)}let xg=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=wg,this.malformedUriErrorHandler=bg,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Cg,afterPreactivation:Cg},this.urlHandlingStrategy=new yg,this.routeReuseStrategy=new fg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(uc),this.console=r.get(iu);const l=r.get(mu);this.isNgZoneEnabled=l instanceof mu&&mu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new Ip(new Ap([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mg(s,o,t=>this.triggerEvent(new lp(t)),t=>this.triggerEvent(new cp(t))),this.routerState=nf(this.currentUrlTree,this.rootComponentType),this.transitions=new rd({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(Td(t=>0!==t.id),T(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),_d(t=>{let n=!1,i=!1;return id(t).pipe(Gd(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}}),_d(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return id(t).pipe(_d(t=>{const n=this.transitions.getValue();return e.next(new Xd(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?fd:Promise.resolve(t)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,_d(t=>function(t,e,n,i,r){return new Jf(t,e,n,i,r).apply()}(i,r,s,t.extractedUrl,o).pipe(T(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),Gd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return U(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){try{const o=new ag(t,e,n,i,r,s).recognize();return null===o?og(new sg):id(o)}catch(o){return og(o)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(T(t=>Object.assign(Object.assign({},s),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Gd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new ip(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=t,a=new Xd(n,this.serializeUrl(i),r,s);e.next(a);const l=nf(i,this.rootComponentType).snapshot;return id(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),fd}),pg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Gd(t=>{const e=new rp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),T(t=>Object.assign(Object.assign({},t),{guards:eg(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return U(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?id(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(U(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?id(s.map(s=>{const o=ng(s,e,r);let a;if(function(t){return t&&Ef(t.canDeactivate)}(o))a=Sp(o.canDeactivate(t,e,n,i));else{if(!Ef(o))throw new Error("Invalid CanDeactivate guard");a=Sp(o(t,e,n,i))}return a.pipe(qd())})).pipe(Mf()):id(!0)}(t.component,t.route,n,e,i)),qd(t=>!0!==t,!0))}(o,i,r,t).pipe(U(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(Vd(e=>pd(function(t,e){return null!==t&&e&&e(new up(t)),id(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new dp(t)),id(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=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=>md(()=>id(e.guards.map(r=>{const s=ng(r,e.node,n);let o;if(function(t){return t&&Ef(t.canActivateChild)}(s))o=Sp(s.canActivateChild(i,t));else{if(!Ef(s))throw new Error("Invalid CanActivateChild guard");o=Sp(s(i,t))}return o.pipe(qd())})).pipe(Mf())));return id(r).pipe(Mf())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?id(i.map(i=>md(()=>{const r=ng(i,e,n);let s;if(function(t){return t&&Ef(t.canActivate)}(r))s=Sp(r.canActivate(e,t));else{if(!Ef(r))throw new Error("Invalid CanActivate guard");s=Sp(r(e,t))}return s.pipe(qd())}))).pipe(Mf()):id(!0)}(t,e.route,n))),qd(t=>!0!==t,!0))}(i,s,t,e):id(n)),T(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Gd(t=>{if(If(t.guardsResult)){const e=vp(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new sp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Td(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new ep(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),pg(t=>{if(t.guards.canActivateChecks.length)return id(t).pipe(Gd(t=>{const e=new op(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),_d(t=>{let n=!1;return id(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,U(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return id(t);let s=0;return j(n).pipe(Vd(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return id({});const s={};return j(r).pipe(U(r=>function(t,e,n,i){const r=ng(t,e,i);return Sp(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(Gd(t=>{s[r]=t}))),Dd(1),U(()=>Object.keys(s).length===r.length?id(s):fd))}(t._resolve,t,e,i).pipe(T(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),sf(t,n).resolve),null)))}(t.route,e,i,r)),Gd(()=>s++),Dd(1),U(e=>s===n.length?id(t):fd))})),Gd({next:()=>n=!0,complete:()=>{if(!n){const n=new ep(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),Gd(t=>{const e=new ap(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),pg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),T(t=>{const e=function(t,e,n){const i=df(t,e._root,n?n._root:void 0);return new ef(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Gd(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)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),T(t=>(new kf(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),Gd({next(){n=!0},complete(){n=!0}}),(r=()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new ep(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 Kd(r))),Ad(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=If(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new ep(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);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 i=new np(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return fd}));var r,s,o,a}))}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=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Vf(t),this.config=t.map(Nf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(s){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return mf(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new vf(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Op(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new vf(n,e,i)}(n);if(s.toRoot())return mf(e.root,new Ap([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new yf(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new yf(t,t===e.root,0)}const i=ff(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new yf(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?bf(o.segmentGroup,o.index,s.commands):wf(o.segmentGroup,o.index,s.commands);return mf(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=If(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new tp(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,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{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(e){return new(e||t)(vi(ni),vi(Vp),vi(vg),vi(ch),vi(uo),vi(ju),vi(pu),vi(void 0))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Og=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:kg(this.skipLocationChange),replaceUrl:kg(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Eo(xg),Eo(rf),Jn("tabindex"),Eo(Ml),Eo(El))},t.\u0275dir=ee({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&jo("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[fe]}),t})(),Sg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof tp&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:kg(this.skipLocationChange),replaceUrl:kg(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:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Eo(xg),Eo(rf),Eo(rh))},t.\u0275dir=ee({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&jo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(ma("href",e.href,qi),So("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[fe]}),t})();function kg(t){return""===t||!!t}let Pg=(()=>{class t{constructor(t,e,n,i,r,s){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof tp&&this.update()})}ngAfterContentInit(){id(this.links.changes,this.linksWithHrefs.changes,id(null)).pipe(q()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=j(e).pipe(q()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Eo(xg),Eo(El),Eo(Ml),Eo(ec),Eo(Og,8),Eo(Sg,8))},t.\u0275dir=ee({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(zc(n,Og,1),zc(n,Sg,1)),2&t){let t;$c(t=Bc())&&(e.links=t),$c(t=Bc())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[fe]}),t})(),Tg=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ec,this.deactivateEvents=new Ec,this.name=i||gp,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),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Eg(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Eo(vg),Eo(pc),Eo(Sl),Jn("name"),Eo(ec))},t.\u0275dir=ee({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Eg{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===rf?this.route:t===vg?this.childContexts:this.parent.get(t,e)}}class Ig{}class Ag{preload(t,e){return id(null)}}let Mg=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new mg(e,n,e=>t.triggerEvent(new lp(e)),e=>t.triggerEvent(new cp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Td(t=>t instanceof tp),Vd(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(uc);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe(q(),T(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?id(e._loadedConfig):this.loader.load(t.injector,e)).pipe(U(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(vi(xg),vi(ju),vi(pu),vi(uo),vi(Ig))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Rg=(()=>{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 Xd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof tp&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof fp&&(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 fp(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(e){return new(e||t)(vi(xg),vi(kh),vi(void 0))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Vg=new ti("ROUTER_CONFIGURATION"),Dg=new ti("ROUTER_FORROOT_GUARD"),Fg=[ch,{provide:Vp,useClass:Dp},{provide:xg,useFactory:function(t,e,n,i,r,s,o,a={},l,c){const u=new xg(null,t,e,n,i,r,s,Cp(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing){const t=Gu();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[Vp,vg,ch,uo,ju,pu,gg,Vg,[class{},new Ci],[class{},new Ci]]},vg,{provide:rf,useFactory:function(t){return t.routerState.root},deps:[xg]},{provide:ju,useClass:$u},Mg,Ag,class{preload(t,e){return e().pipe(Ad(()=>id(null)))}},{provide:Vg,useValue:{enableTracing:!1}}];function Ng(){return new Au("Router",xg)}let jg=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Fg,Ug(e),{provide:Dg,useFactory:$g,deps:[[xg,new Ci,new xi]]},{provide:Vg,useValue:n||{}},{provide:rh,useFactory:Hg,deps:[Qu,[new bi(oh),new Ci],Vg]},{provide:Rg,useFactory:Lg,deps:[xg,kh,Vg]},{provide:Ig,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ag},{provide:Au,multi:!0,useFactory:Ng},[zg,{provide:Qc,multi:!0,useFactory:Bg,deps:[zg]},{provide:Wg,useFactory:qg,deps:[zg]},{provide:nu,multi:!0,useExisting:Wg}]]}}static forChild(e){return{ngModule:t,providers:[Ug(e)]}}}return t.\u0275fac=function(e){return new(e||t)(vi(Dg,8),vi(xg,8))},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({}),t})();function Lg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Rg(t,e,n)}function Hg(t,e,n={}){return n.useHash?new lh(t,e):new ah(t,e)}function $g(t){return"guarded"}function Ug(t){return[{provide:ei,multi:!0,useValue:t},{provide:gg,multi:!0,useValue:t}]}let zg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Ju,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(xg),i=this.injector.get(Vg);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?id(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Vg),n=this.injector.get(Mg),i=this.injector.get(Rg),r=this.injector.get(xg),s=this.injector.get(Fu);t===s.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(vi(uo))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Bg(t){return t.appInitializer.bind(t)}function qg(t){return t.bootstrapListener.bind(t)}const Wg=new ti("Router Initializer");class Gg{}class Zg{}class Qg{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Qg?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Qg;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Qg?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Kg{encodeKey(t){return Jg(t)}encodeValue(t){return Jg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Jg(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Yg{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Kg,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Yg({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Xg(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function tm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function em(t){return"undefined"!=typeof FormData&&t instanceof FormData}class nm{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Qg),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new nm(e,n,r,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var im=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class rm{constructor(t,e=200,n="OK"){this.headers=t.headers||new Qg,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class sm extends rm{constructor(t={}){super(t),this.type=im.ResponseHeader}clone(t={}){return new sm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class om extends rm{constructor(t={}){super(t),this.type=im.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new om({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class am extends rm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function lm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let cm=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof nm)i=t;else{let r,s;r=n.headers instanceof Qg?n.headers:new Qg(n.headers),n.params&&(s=n.params instanceof Yg?n.params:new Yg({fromObject:n.params})),i=new nm(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=id(i).pipe(Vd(t=>this.handler.handle(t)));if(t instanceof nm||"events"===n.observe)return r;const s=r.pipe(Td(t=>t instanceof om));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(T(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(T(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(T(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Yg).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,lm(n,e))}post(t,e,n={}){return this.request("POST",t,lm(n,e))}put(t,e,n={}){return this.request("PUT",t,lm(n,e))}}return t.\u0275fac=function(e){return new(e||t)(vi(Gg))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class um{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const hm=new ti("HTTP_INTERCEPTORS");let dm=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const pm=/^\)\]\}',?\n/;class fm{}let gm=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),mm=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new Qg(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new sm({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(pm,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new om({body:l,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new am({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new am({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(s()),l=!0);let r={type:im.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:im.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:im.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(vi(fm))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const _m=new ti("XSRF_COOKIE_NAME"),vm=new ti("XSRF_HEADER_NAME");class ym{}let wm=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=mh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(vi(Zu),vi(eu),vi(_m))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),bm=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(ym),vi(vm))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Cm=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(hm,[]);this.chain=t.reduceRight((t,e)=>new um(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(vi(Zg),vi(uo))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),xm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:bm,useClass:dm}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:_m,useValue:e.cookieName}:[],e.headerName?{provide:vm,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({providers:[bm,{provide:hm,useExisting:bm,multi:!0},{provide:ym,useClass:wm},{provide:_m,useValue:"XSRF-TOKEN"},{provide:vm,useValue:"X-XSRF-TOKEN"}]}),t})(),Om=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({providers:[cm,{provide:Gg,useClass:Cm},mm,{provide:Zg,useExisting:mm},gm,{provide:fm,useExisting:gm}],imports:[[xm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function Sm(t,e){return new w(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{c||(c=!0,o++),r[a]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}const km=new ti("NgValueAccessor"),Pm={provide:km,useExisting:ct(()=>Em),multi:!0},Tm=new ti("CompositionEventMode");let Em=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Gu()?Gu().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Eo(Ml),Eo(El),Eo(Tm,8))},t.\u0275dir=ee({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&jo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[Cl([Pm])]}),t})();const Im=new ti("NgValidators"),Am=new ti("NgAsyncValidators");function Mm(t){return null!=t}function Rm(t){const e=Fo(t)?j(t):t;return No(e),e}function Vm(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Dm(t,e){return e.map(e=>e(t))}function Fm(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Nm(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Mm);return 0==e.length?null:function(t){return Vm(Dm(t,e))}}(Fm(t)):null}function jm(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Mm);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Sm(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Sm(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Sm(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(T(t=>e(...t)))}return Sm(t,null)}(Dm(t,e).map(Rm)).pipe(T(Vm))}}(Fm(t)):null}function Lm(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let Hm=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Nm(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=jm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t}),t})(),$m=(()=>{class t extends Hm{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Um(e||t)},t.\u0275dir=ee({type:t,features:[po]}),t})();const Um=Qn($m);class zm extends Hm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Bm{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let qm=(()=>{class t extends Bm{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Eo(zm,2))},t.\u0275dir=ee({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})(),Wm=(()=>{class t extends Bm{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Eo($m,10))},t.\u0275dir=ee({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ta("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})();function Gm(t,e){Qm(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Km(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Km(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Zm(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Qm(t,e,n){const i=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Lm(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const r=function(t){return t._rawAsyncValidators}(t);if(null!==e.asyncValidator?t.setAsyncValidators(Lm(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();Zm(e._rawValidators,n),Zm(e._rawAsyncValidators,n)}}function Km(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Jm(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ym="VALID",Xm="INVALID",t_="PENDING",e_="DISABLED";function n_(t){return(o_(t)?t.validators:t)||null}function i_(t){return Array.isArray(t)?Nm(t):t||null}function r_(t,e){return(o_(e)?e.asyncValidators:t)||null}function s_(t){return Array.isArray(t)?jm(t):t||null}function o_(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class a_{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=i_(this._rawValidators),this._composedAsyncValidatorFn=s_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ym}get invalid(){return this.status===Xm}get pending(){return this.status==t_}get disabled(){return this.status===e_}get enabled(){return this.status!==e_}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=i_(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=s_(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=t_,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=e_,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ym,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Ym&&this.status!==t_||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?e_:Ym}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=t_,this._hasOwnPendingAsyncValidator=!0;const e=Rm(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof c_?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof u_&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ec,this.statusChanges=new Ec}_calculateStatus(){return this._allControlsDisabled()?e_:this.errors?Xm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(t_)?t_:this._anyControlsHaveStatus(Xm)?Xm:Ym}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){o_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class l_ extends a_{constructor(t=null,e,n){super(n_(e),r_(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Jm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Jm(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class c_ extends a_{constructor(t,e,n){super(n_(e),r_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof l_?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class u_ extends a_{constructor(t,e,n){super(n_(e),r_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof l_?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const h_={provide:$m,useExisting:ct(()=>p_)},d_=(()=>Promise.resolve(null))();let p_=(()=>{class t extends $m{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Ec,this.form=new c_({},Nm(t),jm(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){d_.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Gm(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){d_.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Jm(this._directives,t)})}addFormGroup(t){d_.then(()=>{const e=this._findContainer(t.path),n=new c_({});(function(t,e){Qm(t,e,!1)})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){d_.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){d_.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Eo(Im,10),Eo(Am,10))},t.\u0275dir=ee({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&jo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Cl([h_]),po]}),t})();const f_={provide:zm,useExisting:ct(()=>m_)},g_=(()=>Promise.resolve(null))();let m_=(()=>{class t extends zm{constructor(t,e,n,i){super(),this.control=new l_,this._registered=!1,this.update=new Ec,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{t.constructor===Em?n=t:Object.getPrototypeOf(t.constructor)===class{}?i=t:r=t}),r||i||n||null}(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Gm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){g_.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;g_.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Eo($m,9),Eo(Im,10),Eo(Am,10),Eo(km,10))},t.\u0275dir=ee({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Cl([f_]),po,fe]}),t})(),__=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),v_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({}),t})(),y_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[v_]]}),t})(),w_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[y_]}),t})();class b_ extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class C_ extends b_{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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,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,i=!1;try{this.work(t)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let x_=(()=>{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 O_ extends x_{constructor(t,e=x_.now){super(t,()=>O_.delegate&&O_.delegate!==this?O_.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return O_.delegate&&O_.delegate!==this?O_.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}}}const S_=new O_(C_);function k_(t,e=S_){return n=>n.lift(new P_(t,e))}class P_{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new T_(t,this.dueTime,this.scheduler))}}class T_ extends f{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(E_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function E_(t){t.debouncedNext()}function I_(t,e){return n=>n.lift(new A_(t,e))}class A_{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new M_(t,this.compare,this.keySelector))}}class M_ extends f{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}let R_=(()=>{class t{constructor(t){this.http=t,this.Url="https://my-backend-309307.uc.r.appspot.com/"}searching(t){return""===t||t.match(/^[ ]+$/)?id([]):this.http.get(this.Url+"search/"+t)}getMovieDetails(t){return this.http.get(this.Url+"movie/"+t)}getTVDetails(t){return this.http.get(this.Url+"tv/"+t)}getPlayingMovies(){return this.http.get(this.Url+"now_playing")}getPopularMovies(){return this.http.get(this.Url+"popular/movie")}getRatedMovies(){return this.http.get(this.Url+"rated/movie")}getTrendingMovies(){return this.http.get(this.Url+"trending/movie")}getPopularTV(){return this.http.get(this.Url+"popular/tv")}getRatedTV(){return this.http.get(this.Url+"rated/tv")}getTrendingTV(){return this.http.get(this.Url+"trending/tv")}getVideoMovie(t){return this.http.get(this.Url+"video/movie/"+t)}getVideoTV(t){return this.http.get(this.Url+"video/tv/"+t)}getRecommendMovies(t){return this.http.get(this.Url+"recommend/movie/"+t)}getRecommendTV(t){return this.http.get(this.Url+"recommend/tv/"+t)}getSimilarMovies(t){return this.http.get(this.Url+"similar/movie/"+t)}getSimilarTV(t){return this.http.get(this.Url+"similar/tv/"+t)}getCastMovies(t){return this.http.get(this.Url+"cast/movie/"+t)}getCastTV(t){return this.http.get(this.Url+"cast/tv/"+t)}getCastDetails(t){return this.http.get(this.Url+"cast/details/"+t)}getCastExternal(t){return this.http.get(this.Url+"cast/external/"+t)}getReviewsMovie(t){return this.http.get(this.Url+"reviews/movie/"+t)}getReviewsTV(t){return this.http.get(this.Url+"reviews/tv/"+t)}addContinue(t,e){let n={},i="";i=t.name?t.name:t.title,n.id=t.id,n.poster_path=t.poster_path,n.name=i,n.media_type=e;let r=[];if(r.push(n),localStorage.getItem("continue")){let t=-1,e=JSON.parse(localStorage.getItem("continue"));for(let n=0;n24&&r.pop()}localStorage.setItem("continue",JSON.stringify(r))}updateList(t,e,n=""){let i={};i.name=t[e].name?t[e].name:t[e].title,i.id=t[e].id,i.poster_path=t[e].poster_path,i.media_type=t[e].media_type?t[e].media_type:n;let r=[];if(r.push(i),localStorage.getItem("watchlist")){let t=-1,e=JSON.parse(localStorage.getItem("watchlist"));for(let n=0;nl(t)?r(...t):r(t))):new w(i=>{D_(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function D_(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s=0}function N_(t=0,e,n){let i=-1;return F_(e)?i=Number(e)<1?1:Number(e):P(e)&&(n=e),P(n)||(n=S_),new w(e=>{const r=F_(t)?t:+t-n.now();return n.schedule(j_,r,{index:0,period:i,subscriber:e})})}function j_(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function L_(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return W(t,void 0).lift(new H_)}class H_{call(t,e){return e.subscribe(new $_(t))}}class $_ extends sd{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class Z_ extends H{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[R](){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){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return $(this.observable,new L(this))}}function Q_(t){return e=>e.lift(new K_(t))}class K_{constructor(t){this.notifier=t}call(t,e){const n=new J_(t),i=$(this.notifier,new L(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class J_ extends H{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Y_(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new X_(t,n))}}class X_{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new tv(t,this.observables,this.project))}}class tv extends sd{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let r=0;r0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}let ev=(()=>{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 id(this.value);case"E":return t=this.error,new w(e=>e.error(t));case"C":return gd()}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})();function nv(t,e=S_){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new iv(i,e))}class iv{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new rv(t,this.delay,this.scheduler))}}class rv extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(rv.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new sv(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(ev.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(ev.createComplete()),this.unsubscribe()}}class sv{constructor(t,e){this.time=t,this.notification=e}}function ov(t,e){if(1&t){const t=Do();Mo(0,"button",1),jo("click",function(){return je(t),$o().close()}),Mo(1,"span",2),da(2,"\xd7"),Ro(),Ro()}}const av=["*"];function lv(t,e){if(1&t){const t=Do();Mo(0,"li",6),jo("click",function(){je(t);const n=e.$implicit,i=$o();return i.focus(),i.select(n.id,i.NgbSlideEventSource.INDICATOR)}),Ro()}if(2&t){const t=e.$implicit,n=$o();ta("active",t.id===n.activeId),So("aria-labelledby","slide-"+t.id)("aria-controls","slide-"+t.id)("aria-selected",t.id===n.activeId)}}function cv(t,e){}function uv(t,e){if(1&t&&(Mo(0,"div",7),Mo(1,"span",8),pl(2,9),Ro(),Po(3,cv,0,0,"ng-template",10),Ro()),2&t){const t=e.$implicit,n=e.index,i=e.count;Io("id","slide-"+t.id),Jr(2),fl(n+1)(i),2,function(t,e,n){if($a>0){const n=t.data[22];za(t,e,Array.isArray(n)?n:n.update,Ze()-$a-1,Ha)}Ha=0,$a=0}(Ne(),Fe()),Jr(1),Io("ngTemplateOutlet",t.tplRef)}}function hv(t,e){if(1&t){const t=Do();Mo(0,"a",11),jo("click",function(){return je(t),$o().arrowLeft()}),Vo(1,"span",12),Mo(2,"span",8),pl(3,13),Ro(),Ro()}}function dv(t,e){if(1&t){const t=Do();Mo(0,"a",14),jo("click",function(){return je(t),$o().arrowRight()}),Vo(1,"span",15),Mo(2,"span",8),pl(3,16),Ro(),Ro()}}const pv=["dialog"];function fv(t,e){if(1&t&&(Mo(0,"span"),da(1),Ro()),2&t){const t=$o().$implicit;ea($o().highlightClass),Jr(1),pa(t)}}function gv(t,e){1&t&&da(0),2&t&&pa($o().$implicit)}function mv(t,e){if(1&t&&(Po(0,fv,2,3,"span",1),Po(1,gv,1,1,"ng-template",null,2,Zc)),2&t){const t=e.odd,n=To(2);Io("ngIf",t)("ngIfElse",n)}}function _v(t,e){if(1&t&&Vo(0,"ngb-highlight",2),2&t){const t=e.term;Io("result",(0,e.formatter)(e.result))("term",t)}}function vv(t,e){}const yv=function(t,e,n){return{result:t,term:e,formatter:n}};function wv(t,e){if(1&t){const t=Do();Mo(0,"button",3),jo("mouseenter",function(){je(t);const n=e.index;return $o().markActive(n)})("click",function(){je(t);const n=e.$implicit;return $o().select(n)}),Po(1,vv,0,0,"ng-template",4),Ro()}if(2&t){const t=e.$implicit,l=e.index,c=$o(),u=To(1);ta("active",l===c.activeIdx),Io("id",c.id+"-"+l),Jr(1),Io("ngTemplateOutlet",c.resultTemplate||u)("ngTemplateOutletContext",(n=5,i=yv,r=t,s=c.term,o=c.formatter,function(t,e,n,i,r,s,o,a){const l=e+n;return function(t,e,n,i,r){const s=Oo(t,e,n,i);return xo(t,e+2,r)||s}(t,l,r,s,o)?Co(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):function(t,e){const n=t[e];return n===Kr?void 0:n}(t,l+3)}(Fe(),Ge(),n,i,r,s,o,a)))}var n,i,r,s,o,a}function bv(t){return null!=t?`${t}`:""}function Cv(t){return null!=t}function xv(t){return(t||document.body).getBoundingClientRect()}function Ov(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const Sv={animation:!0,transitionTimerDelayMs:5};let kv=(()=>{class t{constructor(){this.animation=Sv.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Pv=()=>{},{transitionTimerDelayMs:Tv}=Sv,Ev=new Map,Iv=(t,e,n,i)=>{let r=i.context||{};const s=Ev.get(e);if(s)switch(i.runningTransition){case"continue":return fd;case"stop":t.run(()=>s.transition$.complete()),r=Object.assign(s.context,r),Ev.delete(e)}const o=n(e,i.animation,r)||Pv;if(!i.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(()=>o()),id(void 0).pipe(function(t){return e=>new w(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())))}(t));const a=new S,l=new S,c=a.pipe(function(...t){return e=>pd(e,id(...t))}(!0));Ev.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(e);return t.runOutsideAngular(()=>{const n=V_(e,"transitionend").pipe(Q_(c),Td(({target:t})=>t===e));L_(N_(u+Tv).pipe(Q_(c)),n,l).pipe(Q_(c)).subscribe(()=>{Ev.delete(e),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};let Av=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),Mv=(()=>{class t{constructor(t){this._ngbConfig=t,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(vi(kv))},t.\u0275prov=_t({factory:function(){return new t(vi(kv))},token:t,providedIn:"root"}),t})();const Rv=({classList:t})=>{t.remove("show")};let Vv=(()=>{class t{constructor(t,e,n,i){this._renderer=e,this._element=n,this._zone=i,this.closed=new Ec,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=Iv(this._zone,this._element.nativeElement,Rv,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${e.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${e.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return t.\u0275fac=function(e){return new(e||t)(Eo(Mv),Eo(Ml),Eo(El),Eo(mu))},t.\u0275cmp=Qt({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,e){2&t&&ta("fade",e.animation)("alert-dismissible",e.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[fe],ngContentSelectors:av,decls:2,vars:1,consts:function(){let t;return t=$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["type","button","class","close","aria-label",t,3,"click",4,"ngIf"],["type","button","aria-label",t,1,"close",3,"click"],["aria-hidden","true"]]},template:function(t,e){1&t&&(zo(),Bo(0),Po(1,ov,3,0,"button",0)),2&t&&(Jr(1),Io("ngIf",e.dismissible))},directives:[wh],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),Dv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),Fv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({}),t})(),Nv=(()=>{class t{constructor(t){this._ngbConfig=t,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(vi(kv))},t.\u0275prov=_t({factory:function(){return new t(vi(kv))},token:t,providedIn:"root"}),t})();var jv=function(t){return t.LEFT="left",t.RIGHT="right",t}({});const Lv=({classList:t})=>t.contains("carousel-item-left")||t.contains("carousel-item-right"),Hv=t=>{t.remove("carousel-item-left"),t.remove("carousel-item-right")},$v=t=>{Hv(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},Uv=(t,e,{direction:n})=>{const{classList:i}=t;return e?(Lv(t)?Hv(i):(i.add("carousel-item-"+(n===jv.LEFT?"next":"prev")),xv(t),i.add("carousel-item-"+n)),()=>{$v(i),i.add("active")}):(Hv(i),$v(i),void i.add("active"))},zv=(t,e,{direction:n})=>{const{classList:i}=t;return e?(Lv(t)?Hv(i):i.add("carousel-item-"+n),()=>{$v(i),i.remove("active")}):(Hv(i),$v(i),void i.remove("active"))};let Bv=0,qv=(()=>{class t{constructor(t){this.tplRef=t,this.id="ngb-slide-"+Bv++,this.slid=new Ec}}return t.\u0275fac=function(e){return new(e||t)(Eo(oc))},t.\u0275dir=ee({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"}}),t})(),Wv=(()=>{class t{constructor(t,e,n,i,r){this._platformId=e,this._ngZone=n,this._cd=i,this._container=r,this.NgbSlideEventSource=Gv,this._destroy$=new S,this._interval$=new rd(0),this._mouseHover$=new rd(!1),this._focused$=new rd(!1),this._pauseOnHover$=new rd(!1),this._pauseOnFocus$=new rd(!1),this._pause$=new rd(!1),this._wrap$=new rd(!1),this.slide=new Ec,this.slid=new Ec,this._transitionIds=null,this.animation=t.animation,this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard,this.pauseOnHover=t.pauseOnHover,this.pauseOnFocus=t.pauseOnFocus,this.showNavigationArrows=t.showNavigationArrows,this.showNavigationIndicators=t.showNavigationIndicators}set interval(t){this._interval$.next(t)}get interval(){return this._interval$.value}set wrap(t){this._wrap$.next(t)}get wrap(){return this._wrap$.value}set pauseOnHover(t){this._pauseOnHover$.next(t)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(t){this._pauseOnFocus$.next(t)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(t){this._mouseHover$.next(t)}get mouseHover(){return this._mouseHover$.value}set focused(t){this._focused$.next(t)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(Gv.ARROW_LEFT)}arrowRight(){this.focus(),this.next(Gv.ARROW_RIGHT)}ngAfterContentInit(){Sh(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const t=cd([this.slide.pipe(T(t=>t.current),Od(this.activeId)),this._wrap$,this.slides.changes.pipe(Od(null))]).pipe(T(([t,e])=>{const n=this.slides.toArray(),i=this._getSlideIdxById(t);return e?n.length>1:it||e&&n||i&&r||!o?0:s),I_(),_d(t=>t>0?N_(t,t):U_),Q_(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(Gv.TIMER)))}),this.slides.changes.pipe(Q_(this._destroy$)).subscribe(()=>{var t;null===(t=this._transitionIds)||void 0===t||t.forEach(t=>(t=>{var e;null===(e=Ev.get(t))||void 0===e||e.complete()})(this._getSlideElement(t))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(bd(1)).subscribe(()=>{for(const{id:t}of this.slides){const e=this._getSlideElement(t);t===this.activeId?e.classList.add("active"):e.classList.remove("active")}})})}ngAfterContentChecked(){let t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const t=this._getSlideElement(this.activeId);t&&t.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(t,e){this._cycleToSelected(t,this._getSlideEventDirection(this.activeId,t),e)}prev(t){this._cycleToSelected(this._getPrevSlide(this.activeId),jv.RIGHT,t)}next(t){this._cycleToSelected(this._getNextSlide(this.activeId),jv.LEFT,t)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(t,e,n){const i=this._transitionIds;if(i&&(i[0]!==t||i[1]!==this.activeId))return;let r=this._getSlideById(t);if(r&&r.id!==this.activeId){this._transitionIds=[this.activeId,t],this.slide.emit({prev:this.activeId,current:r.id,direction:e,paused:this._pause$.value,source:n});const i={animation:this.animation,runningTransition:"stop",context:{direction:e}},s=[],o=this._getSlideById(this.activeId);if(o){const t=Iv(this._ngZone,this._getSlideElement(o.id),zv,i);t.subscribe(()=>{o.slid.emit({isShown:!1,direction:e,source:n})}),s.push(t)}const a=this.activeId;this.activeId=r.id;const l=this._getSlideById(this.activeId),c=Iv(this._ngZone,this._getSlideElement(r.id),Uv,i);c.subscribe(()=>{null==l||l.slid.emit({isShown:!0,direction:e,source:n})}),s.push(c),z_(...s).pipe(bd(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:a,current:r.id,direction:e,paused:this._pause$.value,source:n})})}this._cd.markForCheck()}_getSlideEventDirection(t,e){return this._getSlideIdxById(t)>this._getSlideIdxById(e)?jv.RIGHT:jv.LEFT}_getSlideById(t){return this.slides.find(e=>e.id===t)||null}_getSlideIdxById(t){const e=this._getSlideById(t);return null!=e?this.slides.toArray().indexOf(e):-1}_getNextSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id}_getPrevSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id}_getSlideElement(t){return this._container.nativeElement.querySelector(`#slide-${t}`)}}return t.\u0275fac=function(e){return new(e||t)(Eo(Nv),Eo(eu),Eo(mu),Eo(ec),Eo(El))},t.\u0275cmp=Qt({type:t,selectors:[["ngb-carousel"]],contentQueries:function(t,e,n){if(1&t&&zc(n,qv,0),2&t){let t;$c(t=Bc())&&(e.slides=t)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(t,e){1&t&&jo("keydown.arrowLeft",function(){return e.keyboard&&e.arrowLeft()})("keydown.arrowRight",function(){return e.keyboard&&e.arrowRight()})("mouseenter",function(){return e.mouseHover=!0})("mouseleave",function(){return e.mouseHover=!1})("focusin",function(){return e.focused=!0})("focusout",function(){return e.focused=!1}),2&t&&(So("aria-activedescendant","slide-"+e.activeId),Xo("display","block"))},inputs:{animation:"animation",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators",activeId:"activeId"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],decls:6,vars:6,consts:function(){let t,e,n;return t=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number␟a65b1b49aa7dd8c4f3004da6a8c2241814dae621␟783273603869937627: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,n=$localize`:@@ngb.carousel.next␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,[["role","tablist",1,"carousel-indicators"],["role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","role","button",3,"click",4,"ngIf"],["class","carousel-control-next","role","button",3,"click",4,"ngIf"],["role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"sr-only"],t,[3,"ngTemplateOutlet"],["role","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["role","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],n]},template:function(t,e){1&t&&(Mo(0,"ol",0),Po(1,lv,1,5,"li",1),Ro(),Mo(2,"div",2),Po(3,uv,4,4,"div",3),Ro(),Po(4,hv,4,0,"a",4),Po(5,dv,4,0,"a",5)),2&t&&(ta("sr-only",!e.showNavigationIndicators),Jr(1),Io("ngForOf",e.slides),Jr(2),Io("ngForOf",e.slides),Jr(1),Io("ngIf",e.showNavigationArrows),Jr(1),Io("ngIf",e.showNavigationArrows))},directives:[vh,wh,xh],encapsulation:2,changeDetection:0}),t})();var Gv=function(t){return t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator",t}({});let Zv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),Qv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({}),t})();var Kv=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});const Jv=(t,e)=>!!e&&e.some(e=>e.contains(t)),Yv=(t,e)=>!e||null!=function(t,e){return e?void 0===t.closest?null:t.closest(e):null}(t,e),Xv="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function ty(t,e,n,i,r,s,o,a){var l;n&&t.runOutsideAngular((l=()=>{const l=V_(e,"keydown").pipe(Q_(r),Td(t=>t.which===Kv.Escape),Gd(t=>t.preventDefault())),c=V_(e,"mousedown").pipe(T(t=>{const e=t.target;return 2!==t.button&&!Jv(e,o)&&("inside"===n?Jv(e,s)&&Yv(e,a):"outside"===n?!Jv(e,s):Yv(e,a)||!Jv(e,s))}),Q_(r)),u=V_(e,"mouseup").pipe(Y_(c),Td(([t,e])=>e),nv(0),Q_(r));L_([l.pipe(T(t=>0)),u.pipe(T(t=>1))]).subscribe(e=>t.run(()=>i(e)))},Xv?()=>setTimeout(()=>l(),100):l))}const ey=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ny(t){const e=Array.from(t.querySelectorAll(ey)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}const iy=/\s+/,ry=new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(i=this.offset(e,!1)),i.top+=e.clientTop,i.left+=e.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft;let s={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+r,right:n.right+r};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(t,e,n,i){const[r="top",s="center"]=n.split("-"),o=i?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,p=0;switch(r){case"top":d=o.top-(e.offsetHeight+l+c);break;case"bottom":d=o.top+o.height;break;case"left":p=o.left-(e.offsetWidth+u+h);break;case"right":p=o.left+o.width}switch(s){case"top":d=o.top;break;case"bottom":d=o.top+o.height-e.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-e.offsetWidth;break;case"center":"top"===r||"bottom"===r?p=o.left+o.width/2-e.offsetWidth/2:d=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(d)}px)`;const f=e.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,_=window.innerWidth||g.clientWidth;return f.left>=0&&f.top>=0&&f.right<=_&&f.bottom<=m}};function sy(t,e,n,i,r){let s=Array.isArray(n)?n:n.split(iy);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=e.classList,l=t=>{const[e,n]=t.split("-"),i=[];return r&&(i.push(`${r}-${e}`),n&&i.push(`${r}-${e}-${n}`),i.forEach(t=>{a.add(t)})),i};r&&o.forEach(t=>{a.remove(`${r}-${t}`)});let c=s.findIndex(t=>"auto"===t);c>=0&&o.forEach(function(t){null==s.find(e=>-1!==e.search("^"+t))&&s.splice(c++,1,t)});const u=e.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of s){let n=l(h);if(ry.positionElements(t,e,h,i)){d=!0;break}r&&n.forEach(t=>{a.remove(t)})}return d||(h=s[0],l(h),ry.positionElements(t,e,h,i)),h}new Date(1882,10,12),new Date(2174,10,25);let oy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh,w_]]}),t})(),ay=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ee({type:t,selectors:[["",8,"navbar"]]}),t})(),ly=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({}),t})(),cy=(()=>{class t{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(vi(kv))},t.\u0275prov=_t({factory:function(){return new t(vi(kv))},token:t,providedIn:"root"}),t})();class uy{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class hy{constructor(t,e,n,i,r,s,o){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=i,this._ngZone=r,this._componentFactoryResolver=s,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(t,e,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:i}=this._windowRef.location,r=this._ngZone.onStable.pipe(bd(1),U(()=>Iv(this._ngZone,i,({classList:t})=>t.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(t=!1){return this._windowRef?Iv(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:t,runningTransition:"stop"}).pipe(Gd(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):id(void 0)}_getContentRef(t,e){if(t){if(t instanceof oc){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new uy([n.rootNodes],n)}return new uy([[this._renderer.createText(`${t}`)]])}return new uy([])}}const dy=()=>{};let py=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):dy}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,i=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${i+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(vi(Zu))},t.\u0275prov=_t({factory:function(){return new t(vi(Zu))},token:t,providedIn:"root"}),t})(),fy=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe(bd(1)).subscribe(()=>{Iv(this._zone,this._el.nativeElement,(t,e)=>{e&&xv(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Iv(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(Eo(El),Eo(mu))},t.\u0275cmp=Qt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(ea("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),ta("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class gy{close(t){}dismiss(t){}}class my{constructor(t,e,n,i){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=i,this._closed=new S,this._dismissed=new S,this._hidden=new S,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Q_(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Q_(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():id(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),z_(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var _y=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let vy=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new S,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ec,this.shown=new S,this.hidden=new S}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=z_(Iv(this._zone,t,()=>t.classList.remove("show"),e),Iv(this._zone,this._dialogEl.nativeElement,()=>{},e));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const t={animation:this.animation,runningTransition:"continue"};z_(Iv(this._zone,this._elRef.nativeElement,(t,e)=>{e&&xv(t),t.classList.add("show")},t),Iv(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{V_(t,"keydown").pipe(Q_(this._closed$),Td(t=>t.which===Kv.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(_y.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;V_(this._dialogEl.nativeElement,"mousedown").pipe(Q_(this._closed$),Gd(()=>e=!1),_d(()=>V_(t,"mouseup").pipe(Q_(this._closed$),bd(1))),Td(({target:e})=>t===e)).subscribe(()=>{e=!0}),V_(t,"click").pipe(Q_(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||e||this._zone.run(()=>this.dismiss(_y.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=ny(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Iv(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(Eo(Zu),Eo(El),Eo(mu))},t.\u0275cmp=Qt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&Uc(pv,3),2&t){let t;$c(t=Bc())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(So("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),ea("modal d-block"+(e.windowClass?" "+e.windowClass:"")),ta("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:av,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(zo(),Mo(0,"div",0,1),Mo(2,"div",2),Bo(3),Ro(),Ro()),2&t&&ea("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":"")+(e.modalDialogClass?" "+e.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),yy=(()=>{class t{constructor(t,e,n,i,r,s){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=i,this._rendererFactory=r,this._ngZone=s,this._activeWindowCmptHasChanged=new S,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new Ec,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,n,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=V_(e,"focusin").pipe(Q_(n),T(t=>t.target));V_(e,"keydown").pipe(Q_(n),Td(t=>t.which===Kv.Tab),Y_(t)).subscribe(([t,n])=>{const[i,r]=ny(e);n!==i&&n!==e||!t.shiftKey||(r.focus(),t.preventDefault()),n!==r||t.shiftKey||(i.focus(),t.preventDefault())}),i&&V_(e,"click").pipe(Q_(n),Y_(t),T(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,i){const r=i.container instanceof HTMLElement?i.container:Cv(i.container)?this._document.querySelector(i.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!r)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);const l=new gy,c=this._getContentRef(t,i.injector||e,n,l,i);let u=!1!==i.backdrop?this._attachBackdrop(t,r):void 0,h=this._attachWindowComponent(t,r,c),d=new my(h,c,u,i.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(h.instance,i),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,i),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(fy).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let i=t.resolveComponentFactory(vy).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{Cv(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{Cv(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,i,r){return n?n instanceof oc?this._createFromTemplateRef(n,i):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,i,r):new uy([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new uy([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new uy([[e]])}_createFromComponent(t,e,n,i,r){const s=t.resolveComponentFactory(n),o=uo.create({providers:[{provide:gy,useValue:i}],parent:e}),a=s.create(o),l=a.location.nativeElement;return r.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new uy([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(vi(Fu),vi(uo),vi(Zu),vi(py),vi(Al),vi(mu))},t.\u0275prov=_t({factory:function(){return new t(vi(Fu),vi(Zs),vi(Zu),vi(py),vi(Al),vi(mu))},token:t,providedIn:"root"}),t})(),wy=(()=>{class t{constructor(t,e,n,i){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=i}open(t,e={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(vi(Sl),vi(uo),vi(yy),vi(cy))},t.\u0275prov=_t({factory:function(){return new t(vi(Sl),vi(Zs),vi(yy),vi(cy))},token:t,providedIn:"root"}),t})(),by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({providers:[wy]}),t})(),Cy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),xy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})();class Oy{constructor(t,e){this.open=t,this.close=e,e||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const Sy={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},ky=t=>t>0?nv(t):t=>t;let Py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),Ty=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),Ey=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),Iy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),Ay=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})(),My=(()=>{class t{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(vi(kv))},t.\u0275prov=_t({factory:function(){return new t(vi(kv))},token:t,providedIn:"root"}),t})(),Ry=0,Vy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Qt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,e){2&t&&(ma("id",e.id),ea("tooltip"+(e.tooltipClass?" "+e.tooltipClass:"")),ta("fade",e.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:av,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(t,e){1&t&&(zo(),Vo(0,"div",0),Mo(1,"div",1),Bo(2),Ro())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),Dy=(()=>{class t{constructor(t,e,n,i,r,s,o,a,l,c){this._elementRef=t,this._renderer=e,this._ngZone=o,this._document=a,this._changeDetector=l,this.shown=new Ec,this.hidden=new Ec,this._ngbTooltipWindowId="ngb-tooltip-"+Ry++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new hy(Vy,n,r,e,this._ngZone,i,c),this._zoneSubscription=o.onStable.subscribe(()=>{this._windowRef&&sy(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:e,transition$:n}=this._popupService.open(this._ngbTooltip,t,this.animation);this._windowRef=e,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),ty(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,e,n,i,r,s,o=0,a=0){const l=function(t,e=Sy){const n=(t||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(t=>t.split(":")).map(t=>{let n=e[t[0]]||t;return new Oy(n[0],n[1])}),r=i.filter(t=>t.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(n);if(1===l.length&&l[0].isManual())return()=>{};const c=function(t,e,n,i){return new w(r=>{const s=[],o=()=>r.next(!0),a=()=>r.next(!1),l=()=>r.next(!i());return n.forEach(n=>{n.open===n.close?s.push(t.listen(e,n.open,l)):s.push(t.listen(e,n.open,o),t.listen(e,n.close,a))}),()=>{s.forEach(t=>t())}})}(t,e,l,i).pipe(function(t,e,n){return i=>{let r=null;const s=i.pipe(T(t=>({open:t})),Td(t=>{const e=n();return e===t.open||r&&r.open!==e?(r&&r.open!==t.open&&(r=null),!1):(r=t,!0)}),it());return G(s.pipe(Td(t=>t.open),ky(t)),s.pipe(Td(t=>!t.open),ky(e))).pipe(Td(t=>t===r&&(r=null,t.open!==n())),T(t=>t.open))}}(o,a,i)).subscribe(t=>t?r():s());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Eo(El),Eo(Ml),Eo(uo),Eo(Sl),Eo(pc),Eo(My),Eo(mu),Eo(Zu),Eo(ec),Eo(Fu))},t.\u0275dir=ee({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[fe]}),t})(),Fy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({}),t})(),Ny=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(t){this.accentSensitive||String.prototype.normalize||(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const e=bv(this.result),n=Array.isArray(this.term)?this.term:[this.term],i=t=>this.accentSensitive?t:Ov(t),r=n.map(t=>i(bv(t)).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(t=>t),s=this.accentSensitive?e:Ov(e),o=r.length?s.split(new RegExp(`(${r.join("|")})`,"gmi")):[e];if(this.accentSensitive)this.parts=o;else{let t=0;this.parts=o.map(n=>e.substring(t,t+=n.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Qt({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",accentSensitive:"accentSensitive",result:"result",term:"term"},features:[fe],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(t,e){1&t&&Po(0,mv,3,2,"ng-template",0),2&t&&Io("ngForOf",e.parts)},directives:[vh,wh],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),t})(),jy=(()=>{class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=bv,this.selectEvent=new Ec,this.activeChangeEvent=new Ec}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Qt({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(t,e){1&t&&jo("mousedown",function(t){return t.preventDefault()}),2&t&&(ma("id",e.id),ea("dropdown-menu show"+(e.popupClass?" "+e.popupClass:"")))},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(Po(0,_v,1,2,"ng-template",null,0,Zc),Po(2,wv,2,9,"ng-template",1)),2&t&&(Jr(2),Io("ngForOf",e.results))},directives:[vh,Ny,xh],encapsulation:2}),t})();const Ly=new ti("live announcer delay",{providedIn:"root",factory:function(){return 100}});function Hy(t,e=!1){let n=t.body.querySelector("#ngb-live");return null==n&&e&&(n=t.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),t.body.appendChild(n)),n}let $y=(()=>{class t{constructor(t,e){this._document=t,this._delay=e}ngOnDestroy(){const t=Hy(this._document);t&&t.parentElement.removeChild(t)}say(t){const e=Hy(this._document,!0),n=this._delay;if(null!=e){e.textContent="";const i=()=>e.textContent=t;null===n?i():setTimeout(i,n)}}}return t.\u0275fac=function(e){return new(e||t)(vi(Zu),vi(Ly))},t.\u0275prov=_t({factory:function(){return new t(vi(Zu),vi(Ly))},token:t,providedIn:"root"}),t})(),Uy=(()=>{class t{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})(),zy=0,By=(()=>{class t{constructor(t,e,n,i,r,s,o,a,l,c,u,h){this._elementRef=t,this._renderer=n,this._live=a,this._document=l,this._ngZone=c,this._changeDetector=u,this._subscription=null,this._closed$=new S,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new Ec,this.activeDescendant=null,this.popupId="ngb-typeahead-"+zy++,this._onTouched=()=>{},this._onChange=t=>{},this.container=s.container,this.editable=s.editable,this.focusFirst=s.focusFirst,this.showHint=s.showHint,this.placement=s.placement,this._valueChanges=V_(t.nativeElement,"input").pipe(T(t=>t.target.value)),this._resubscribeTypeahead=new rd(null),this._popupService=new hy(jy,i,e,n,this._ngZone,r,h),this._zoneSubscription=o.onStable.subscribe(()=>{this.isPopupOpen()&&sy(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:t}){t&&!t.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.which){case Kv.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case Kv.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case Kv.Enter:case Kv.Tab:const e=this._windowRef.instance.getActive();Cv(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup()}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:t}=this._popupService.open();this._windowRef=t,this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(t=>this._selectResultClosePopup(t)),this._windowRef.instance.activeChangeEvent.subscribe(t=>this.activeDescendant=t),this._windowRef.instance.popupClass=this.popupClass,"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),ty(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(t){let e=!1;this.selectItem.emit({item:t,preventDefault:()=>{e=!0}}),this._resubscribeTypeahead.next(null),e||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){var t;if(this.showHint&&(null===(t=this._windowRef)||void 0===t?void 0:t.instance.hasActive())&&null!=this._inputValueBackup){const t=this._inputValueBackup.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+e.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,e.length])):this._writeInputValue(e)}}_formatItemForInput(t){return null!=t&&this.inputFormatter?this.inputFormatter(t):bv(t)}_writeInputValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",bv(t))}_subscribeToUserInput(){const t=this._valueChanges.pipe(Gd(t=>{this._inputValueBackup=this.showHint?t:null,this._onChange(this.editable?t:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>id([]));this._subscription=this._resubscribeTypeahead.pipe(_d(()=>t)).subscribe(t=>{t&&0!==t.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=t,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const e=t?t.length:0;this._live.say(0===e?"No results available":`${e} result${1===e?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}return t.\u0275fac=function(e){return new(e||t)(Eo(El),Eo(pc),Eo(Ml),Eo(uo),Eo(Sl),Eo(Uy),Eo(mu),Eo($y),Eo(Zu),Eo(mu),Eo(ec),Eo(Fu))},t.\u0275dir=ee({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(t,e){1&t&&jo("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)}),2&t&&(ma("autocomplete",e.autocomplete),So("aria-autocomplete",e.showHint?"both":"list")("aria-activedescendant",e.activeDescendant)("aria-owns",e.isPopupOpen()?e.popupId:null)("aria-expanded",e.isPopupOpen()),ta("open",e.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[Cl([{provide:km,useExisting:ct(()=>t),multi:!0}]),fe]}),t})(),qy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh]]}),t})();const Wy=[Av,Dv,Fv,Zv,Qv,oy,ly,by,Cy,xy,Py,Ty,Ey,Iy,Ay,Fy,qy];let Gy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[Wy,Av,Dv,Fv,Zv,Qv,oy,ly,by,Cy,xy,Py,Ty,Ey,Iy,Ay,Fy,qy]}),t})();function Zy(t,e){if(1&t){const t=Do();Mo(0,"a",16),jo("click",function(){je(t);const n=e.result;return $o(2).update(n,n.media_type)}),Mo(1,"div"),Vo(2,"img",17),Vo(3,"ngb-highlight",18),Ro(),Ro()}if(2&t){const t=e.result,n=e.term;Io("href","/watch/"+t.media_type+"/"+t.id,qi),Jr(2),Io("src",t.backdrop_path,qi),Jr(1),Io("result",t.name)("term",n)}}const Qy=function(){return{exact:!0}};function Ky(t,e){if(1&t){const t=Do();Mo(0,"nav",4),Mo(1,"a",5),da(2,"USC Films"),Ro(),Mo(3,"button",6),Vo(4,"span",7),Ro(),Mo(5,"div",8),Mo(6,"ul",9),Mo(7,"li",10),Mo(8,"a",11),da(9,"Home"),Ro(),Ro(),Mo(10,"li",10),Mo(11,"a",12),da(12,"My List"),Ro(),Ro(),Ro(),Mo(13,"form",13),Po(14,Zy,4,4,"ng-template",null,14,Zc),Mo(16,"input",15),jo("ngModelChange",function(e){return je(t),$o().model=e}),Ro(),Ro(),Ro(),Ro()}if(2&t){const t=To(15),e=$o();Jr(7),Io("routerLinkActiveOptions",Tc(6,Qy)),Jr(3),Io("routerLinkActiveOptions",Tc(7,Qy)),Jr(6),Io("ngModel",e.model)("resultTemplate",t)("ngbTypeahead",e.search)("resultFormatter",e.formatter)}}function Jy(t,e){if(1&t){const t=Do();Mo(0,"a",16),jo("click",function(){je(t);const n=e.result;return $o(2).addContinue(n)}),Mo(1,"div"),Vo(2,"img",17),Vo(3,"ngb-highlight",18),Ro(),Ro()}if(2&t){const t=e.result,n=e.term;Io("href","/watch/"+t.media_type+"/"+t.id,qi),Jr(2),Io("src",t.backdrop_path,qi),Jr(1),Io("result",t.name)("term",n)}}function Yy(t,e){if(1&t){const t=Do();Mo(0,"nav",19),Mo(1,"a",5),da(2,"USC Films"),Ro(),Mo(3,"button",6),Vo(4,"span",7),Ro(),Mo(5,"div",8),Mo(6,"ul",9),Mo(7,"li",10),Mo(8,"a",11),da(9,"Home"),Ro(),Ro(),Mo(10,"li",10),Mo(11,"a",12),da(12,"My List"),Ro(),Ro(),Ro(),Mo(13,"form",13),Po(14,Jy,4,4,"ng-template",null,14,Zc),Mo(16,"input",15),jo("ngModelChange",function(e){return je(t),$o().model=e}),Ro(),Ro(),Ro(),Ro()}if(2&t){const t=To(15),e=$o();Jr(7),Io("routerLinkActiveOptions",Tc(6,Qy)),Jr(3),Io("routerLinkActiveOptions",Tc(7,Qy)),Jr(6),Io("ngModel",e.model)("resultTemplate",t)("ngbTypeahead",e.search)("resultFormatter",e.formatter)}}function Xy(t,e){1&t&&(Mo(0,"div"),Mo(1,"div",20),da(2," Powered by TMDB. Developed by Rui Mao "),Ro(),Ro())}function tw(t,e){1&t&&(Mo(0,"div",21),Mo(1,"div",20),da(2," Powered by TMDB. Developed by Rui Mao "),Ro(),Ro())}let ew=(()=>{class t{constructor(t){this.request=t,this.mobile=!1,this.my_storage=window.localStorage,this.formatter=t=>t.name,this.search=t=>t.pipe(k_(200),I_(),_d(t=>""===t?[]:this.request.searching(t)))}ngOnInit(){window.screen.width<576&&(this.mobile=!0)}get2DTo1D(t){let e=[];for(let n of t)e.push(...n);return e}addContinue(t,e){this.request.addContinue(t,e)}updateList(t,e,n=""){this.request.updateList(t,e,n)}update(t,e){this.addContinue(t,e);let n=[];n.push(t),this.updateList(n,0)}}return t.\u0275fac=function(e){return new(e||t)(Eo(R_))},t.\u0275cmp=Qt({type:t,selectors:[["app-root"]],decls:5,vars:4,consts:[["class","navbar navbar-expand-sm navbar-dark sticky-top",4,"ngIf"],["class","navbar navbar-expand-sm navbar-dark mobile sticky-top",4,"ngIf"],[4,"ngIf"],["class","mobile",4,"ngIf"],[1,"navbar","navbar-expand-sm","navbar-dark","sticky-top"],["href","",1,"navbar-brand","pl-5"],["type","button","data-toggle","collapse","data-target","#collapsibleNavbar",1,"navbar-toggler"],[1,"navbar-toggler-icon","text-secondary"],["id","collapsibleNavbar",1,"collapse","navbar-collapse"],[1,"navbar-nav"],["routerLinkActive","active",1,"nav-item",3,"routerLinkActiveOptions"],["routerLink","",1,"nav-link"],["routerLink","/mylist",1,"nav-link"],["action","",1,"form-inline"],["rt",""],["id","typeahead-format","type","text","name","searching","placeholder","Search",1,"text-light","form-control","mr-sm-2","rounded-0","border-top-0","border-left-0","border-right-0",3,"ngModel","resultTemplate","ngbTypeahead","resultFormatter","ngModelChange"],[1,"search-result",3,"href","click"],[1,"search-image","mr-4",3,"src"],[3,"result","term"],[1,"navbar","navbar-expand-sm","navbar-dark","mobile","sticky-top"],[1,"my-footer"],[1,"mobile"]],template:function(t,e){1&t&&(Po(0,Ky,17,8,"nav",0),Po(1,Yy,17,8,"nav",1),Vo(2,"router-outlet"),Po(3,Xy,3,0,"div",2),Po(4,tw,3,0,"div",3)),2&t&&(Io("ngIf",!e.mobile),Jr(1),Io("ngIf",e.mobile),Jr(2),Io("ngIf",!e.mobile),Jr(1),Io("ngIf",e.mobile))},directives:[wh,Tg,ay,Pg,Sg,__,Wm,p_,Em,By,qm,m_,Ny],styles:["form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-width:2px;border-color:#fff;font-size:20px}.navbar[_ngcontent-%COMP%], form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background-color:#040c21}.navbar[_ngcontent-%COMP%]{padding-left:0;padding-right:0;vertical-align:middle}.navbar-nav[_ngcontent-%COMP%]{margin-right:auto}.navbar-brand[_ngcontent-%COMP%]{font-size:25px}.nav-item[_ngcontent-%COMP%]{padding-left:32px}.nav-link[_ngcontent-%COMP%]{font-size:20px}.form-inline[_ngcontent-%COMP%]{margin-right:50px}.search-result[_ngcontent-%COMP%]{color:#fff;text-decoration:none} .dropdown-menu{background-color:#050a31;border-color:hsla(0,0%,100%,.5)} .dropdown-item{color:#fff;font-size:20px}.search-image[_ngcontent-%COMP%]{width:90px} .form-control:focus{box-shadow:none;border-color:#fff}.my-footer[_ngcontent-%COMP%]{margin-top:0;width:100%;text-align:center;font-size:20px;height:30px;background-image:linear-gradient(180deg,transparent,#000)}.mobile[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{text-align:right;padding-right:48px}.mobile[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{font-size:20px}.mobile[_ngcontent-%COMP%] .navbar-nav[_ngcontent-%COMP%]{margin-right:20px}.mobile[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{font-size:17px}.mobile[_ngcontent-%COMP%] .form-inline[_ngcontent-%COMP%]{margin-right:120px;margin-left:48px;margin-bottom:5px}.mobile[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .mobile .dropdown-item{font-size:17px}.mobile[_ngcontent-%COMP%] .search-image[_ngcontent-%COMP%]{width:70px}.mobile[_ngcontent-%COMP%] .navbar-toggler[_ngcontent-%COMP%]{margin-right:60px}.mobile[_ngcontent-%COMP%] .my-footer[_ngcontent-%COMP%]{font-size:18px}"]}),t})();const nw=["carousel"];function iw(t,e){if(1&t){const t=Do();Mo(0,"a",8),jo("click",function(){je(t);const e=$o().index,n=$o(2);return n.update(n.now_playing[e],"movie",n.now_playing,e)}),Mo(1,"div",9),Vo(2,"img",10),Ro(),Ro(),Mo(3,"div",11),Mo(4,"h3"),da(5),Ro(),Ro()}if(2&t){const t=$o().index,e=$o(2);Io("href","/watch/movie/"+e.now_playing[t].id,qi),Jr(2),Wo("alt","My image ",t+1," description"),Io("src",e.now_playing[t].backdrop_path,qi),Jr(3),pa(e.now_playing[t].title)}}function rw(t,e){1&t&&Po(0,iw,6,4,"ng-template",7)}function sw(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",4,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,rw,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",5e3)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.now_playing)}}function ow(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Continue Watching"),Ro(),Ro())}function aw(t,e){if(1&t){const t=Do();Mo(0,"div",15),Mo(1,"a",8),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,n.media_type,r,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/"+t.media_type+"/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function lw(t,e){1&t&&Po(0,aw,7,3,"div",14),2&t&&Io("ngForOf",$o().$implicit)}function cw(t,e){1&t&&Po(0,lw,1,1,"ng-template",7)}function uw(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,cw,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.continue_watching_2D)}}function hw(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Popular Movies"),Ro(),Ro())}function dw(t,e){if(1&t){const t=Do();Mo(0,"div",15),Mo(1,"a",8),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"movie",r,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function pw(t,e){1&t&&Po(0,dw,7,3,"div",14),2&t&&Io("ngForOf",$o().$implicit)}function fw(t,e){1&t&&Po(0,pw,1,1,"ng-template",7)}function gw(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,fw,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.popular_movies)}}function mw(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Top Rated Movies"),Ro(),Ro())}function _w(t,e){if(1&t){const t=Do();Mo(0,"div",15),Mo(1,"a",8),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"movie",r,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function vw(t,e){1&t&&Po(0,_w,7,3,"div",14),2&t&&Io("ngForOf",$o().$implicit)}function yw(t,e){1&t&&Po(0,vw,1,1,"ng-template",7)}function ww(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,yw,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.rated_movies)}}function bw(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Trending Movies"),Ro(),Ro())}function Cw(t,e){if(1&t){const t=Do();Mo(0,"div",15),Mo(1,"a",8),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"movie",r,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function xw(t,e){1&t&&Po(0,Cw,7,3,"div",14),2&t&&Io("ngForOf",$o().$implicit)}function Ow(t,e){1&t&&Po(0,xw,1,1,"ng-template",7)}function Sw(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,Ow,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.trending_movies)}}function kw(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Popular TV Shows"),Ro(),Ro())}function Pw(t,e){if(1&t){const t=Do();Mo(0,"div",15),Mo(1,"a",8),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"tv",r,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function Tw(t,e){1&t&&Po(0,Pw,7,3,"div",14),2&t&&Io("ngForOf",$o().$implicit)}function Ew(t,e){1&t&&Po(0,Tw,1,1,"ng-template",7)}function Iw(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,Ew,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.popular_tv)}}function Aw(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Top Rated TV Shows"),Ro(),Ro())}function Mw(t,e){if(1&t){const t=Do();Mo(0,"div",15),Mo(1,"a",8),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"tv",r,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function Rw(t,e){1&t&&Po(0,Mw,7,3,"div",14),2&t&&Io("ngForOf",$o().$implicit)}function Vw(t,e){1&t&&Po(0,Rw,1,1,"ng-template",7)}function Dw(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,Vw,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.rated_tv)}}function Fw(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Trending TV Shows"),Ro(),Ro())}function Nw(t,e){if(1&t){const t=Do();Mo(0,"div",15),Mo(1,"a",8),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"tv",r,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function jw(t,e){1&t&&Po(0,Nw,7,3,"div",14),2&t&&Io("ngForOf",$o().$implicit)}function Lw(t,e){1&t&&Po(0,jw,1,1,"ng-template",7)}function Hw(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,Lw,1,0,void 0,6),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.trending_tv)}}function $w(t,e){if(1&t){const t=Do();Mo(0,"a",8),jo("click",function(){je(t);const e=$o().index,n=$o(2);return n.update(n.now_playing[e],"movie",n.now_playing,e)}),Mo(1,"div",9),Vo(2,"img",10),Ro(),Ro(),Mo(3,"div",11),Mo(4,"h3"),da(5),Ro(),Ro()}if(2&t){const t=$o().index,e=$o(2);Io("href","/watch/movie/"+e.now_playing[t].id,qi),Jr(2),Wo("alt","My image ",t+1," description"),Io("src",e.now_playing[t].backdrop_path,qi),Jr(3),pa(e.now_playing[t].title)}}function Uw(t,e){1&t&&Po(0,$w,6,4,"ng-template",7)}function zw(t,e){1&t&&(Mo(0,"div",12),Mo(1,"h1"),da(2,"Continue Watching"),Ro(),Ro())}function Bw(t,e){if(1&t){const t=Do();Mo(0,"div",18),Mo(1,"a",8),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(3);return r.update(n,n.media_type,r.continue_watching,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/"+t.media_type+"/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function qw(t,e){1&t&&Po(0,Bw,7,3,"ng-template",7)}function Ww(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o(2).onSlide(e)}),Po(2,qw,1,0,void 0,6),Ro()}if(2&t){const t=$o(2);Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.continue_watching)}}function Gw(t,e){if(1&t){const t=Do();Mo(0,"div",18),Mo(1,"a",8),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(2);return r.update(n,"movie",r.popular_movies_1D,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function Zw(t,e){1&t&&Po(0,Gw,7,3,"ng-template",7)}function Qw(t,e){if(1&t){const t=Do();Mo(0,"div",18),Mo(1,"a",8),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(2);return r.update(n,"movie",r.rated_movies_1D,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function Kw(t,e){1&t&&Po(0,Qw,7,3,"ng-template",7)}function Jw(t,e){if(1&t){const t=Do();Mo(0,"div",18),Mo(1,"a",8),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(2);return r.update(n,"movie",r.trending_movies_1D,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function Yw(t,e){1&t&&Po(0,Jw,7,3,"ng-template",7)}function Xw(t,e){if(1&t){const t=Do();Mo(0,"div",18),Mo(1,"a",8),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(2);return r.update(n,"tv",r.popular_tv_1D,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function tb(t,e){1&t&&Po(0,Xw,7,3,"ng-template",7)}function eb(t,e){if(1&t){const t=Do();Mo(0,"div",18),Mo(1,"a",8),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(2);return r.update(n,"tv",r.rated_tv_1D,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function nb(t,e){1&t&&Po(0,eb,7,3,"ng-template",7)}function ib(t,e){if(1&t){const t=Do();Mo(0,"div",18),Mo(1,"a",8),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(2);return r.update(n,"tv",r.trending_tv_1D,i)}),Mo(2,"div",9),Vo(3,"img",16),Ro(),Ro(),Mo(4,"div",11),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function rb(t,e){1&t&&Po(0,ib,7,3,"ng-template",7)}function sb(t,e){if(1&t){const t=Do();Mo(0,"div",17),Mo(1,"ngb-carousel",4,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(3,Uw,1,0,void 0,6),Ro(),Po(4,zw,3,0,"div",1),Po(5,Ww,3,4,"ngb-carousel",2),Mo(6,"div",12),Mo(7,"h1"),da(8,"Popular Movies"),Ro(),Ro(),Mo(9,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(11,Zw,1,0,void 0,6),Ro(),Mo(12,"div",12),Mo(13,"h1"),da(14,"Top Rated Movies"),Ro(),Ro(),Mo(15,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(17,Kw,1,0,void 0,6),Ro(),Mo(18,"div",12),Mo(19,"h1"),da(20,"Trending Movies"),Ro(),Ro(),Mo(21,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(23,Yw,1,0,void 0,6),Ro(),Mo(24,"div",12),Mo(25,"h1"),da(26,"Popular TV Shows"),Ro(),Ro(),Mo(27,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(29,tb,1,0,void 0,6),Ro(),Mo(30,"div",12),Mo(31,"h1"),da(32,"Top Rated TV Shows"),Ro(),Ro(),Mo(33,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(35,nb,1,0,void 0,6),Ro(),Mo(36,"div",12),Mo(37,"h1"),da(38,"Trending TV Shows"),Ro(),Ro(),Mo(39,"ngb-carousel",13,5),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(41,rb,1,0,void 0,6),Ro(),Ro()}if(2&t){const t=$o();Jr(1),Io("interval",5e3)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.now_playing),Jr(1),Io("ngIf",t.continue_watching),Jr(1),Io("ngIf",t.continue_watching),Jr(4),Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.popular_movies_1D),Jr(4),Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.rated_movies_1D),Jr(4),Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.trending_movies_1D),Jr(4),Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.popular_tv_1D),Jr(4),Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.rated_tv_1D),Jr(4),Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.trending_tv_1D)}}let ob=(()=>{class t{constructor(t){this.request=t,this.continue_watching=[],this.popular_movies_1D=[],this.rated_movies_1D=[],this.trending_movies_1D=[],this.popular_tv_1D=[],this.rated_tv_1D=[],this.trending_tv_1D=[],this.mobile=!1,this.paused=!1,this.unpauseOnArrow=!1,this.pauseOnIndicator=!1,this.pauseOnHover=!0,this.pauseOnFocus=!0}ngOnInit(){window.screen.width<576&&(this.mobile=!0),this.getPlayingMovies(),this.getPopularMovies(),this.getRatedMovies(),this.getTrendingMovies(),this.getPopularTV(),this.getRatedTV(),this.getTrendingTV(),this.continueInit()}togglePaused(){this.paused?this.carousel.cycle():this.carousel.pause(),this.paused=!this.paused}onSlide(t){this.unpauseOnArrow&&t.paused&&(t.source===Gv.ARROW_LEFT||t.source===Gv.ARROW_RIGHT)&&this.togglePaused(),this.pauseOnIndicator&&!t.paused&&t.source===Gv.INDICATOR&&this.togglePaused()}getPlayingMovies(){this.request.getPlayingMovies().subscribe(t=>{this.now_playing=t.result})}getPopularMovies(){this.request.getPopularMovies().subscribe(t=>{this.popular_movies=t.result,this.popular_movies_1D=this.get2DTo1D(t.result)})}getRatedMovies(){this.request.getRatedMovies().subscribe(t=>{this.rated_movies=t.result,this.rated_movies_1D=this.get2DTo1D(t.result)})}getTrendingMovies(){this.request.getTrendingMovies().subscribe(t=>{this.trending_movies=t.result,this.trending_movies_1D=this.get2DTo1D(t.result)})}getPopularTV(){this.request.getPopularTV().subscribe(t=>{this.popular_tv=t.result,this.popular_tv_1D=this.get2DTo1D(t.result)})}getRatedTV(){this.request.getRatedTV().subscribe(t=>{this.rated_tv=t.result,this.rated_tv_1D=this.get2DTo1D(t.result)})}getTrendingTV(){this.request.getTrendingTV().subscribe(t=>{this.trending_tv=t.result,this.trending_tv_1D=this.get2DTo1D(t.result)})}get2DTo1D(t){let e=[];for(let n of t)e.push(...n);return e}continueInit(){this.continue_watching=JSON.parse(localStorage.getItem("continue")),this.continue_watching&&(this.continue_watching_2D=this.get1DTo2D(this.continue_watching))}get1DTo2D(t){let e=Math.ceil(t.length/6),n=[];for(let i=0;i img[_ngcontent-%COMP%]{transition:transform .2s}.carousel-playing[_ngcontent-%COMP%] .picsum-img-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.carousel-playing[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{display:block}.carousel-playing[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{pointer-events:none;display:none;width:100%;height:100%;left:0;text-align:left;bottom:0;background-image:linear-gradient(180deg,transparent,#000)}.carousel-playing[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:25px;font-weight:400;padding-left:5%;padding-top:400px}.carousel-others[_ngcontent-%COMP%]{margin-top:40px;margin-left:9.375%;width:81.25%;margin-bottom:90px}.carousel-others[_ngcontent-%COMP%]:focus{outline:none}.carousel-others[_ngcontent-%COMP%] .row-sort[_ngcontent-%COMP%]{position:relative;width:14.7%;margin:20px .98%}.carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%]{position:absolute} .carousel-others .carousel-control-next{right:-5%;width:5%} .carousel-others .carousel-control-prev{left:-5%;width:5%} .carousel-others .carousel-indicators{bottom:-15%}.carousel-others[_ngcontent-%COMP%] .picsum-img-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{transition:transform .2s}.carousel-others[_ngcontent-%COMP%] .picsum-img-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.carousel-others[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{display:block;transform:scale(1.1)}.carousel-others[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{display:none;pointer-events:none;width:100%;height:100%;left:0;text-align:left;bottom:0;padding:0;background-image:linear-gradient(180deg,transparent,#000);transition:transform .2s}.carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:20px;font-weight:400;padding-left:10%;padding-top:110%}.homepage-title[_ngcontent-%COMP%]{margin-left:150px;margin-top:40px}.homepage-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem}.mobile[_ngcontent-%COMP%] .carousel-playing[_ngcontent-%COMP%]{margin-left:6%;width:88%} .mobile .carousel-playing .carousel-control-next-icon{margin-left:35px;width:18px;height:18px} .mobile .carousel-playing .carousel-control-prev-icon{margin-right:35px;width:18px;height:18px}.mobile[_ngcontent-%COMP%] .carousel-playing[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{transform:scale(1.1)}.mobile[_ngcontent-%COMP%] .carousel-playing[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{display:block;transition:transform .2s}.mobile[_ngcontent-%COMP%] .carousel-playing[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;padding-left:10%;padding-top:40%} .mobile .carousel-indicators{display:none}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%]{margin-top:20px;margin-top:40px;margin-left:0;width:100%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%]:focus{outline:none}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .row-sort[_ngcontent-%COMP%]{width:60%;margin:20px 20px 20px 20%} .mobile .carousel-others .carousel-control-next{right:5%} .mobile .carousel-others .carousel-control-prev{left:5%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{transform:scale(1.1)}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;padding-top:130%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{display:block}.mobile[_ngcontent-%COMP%] .homepage-title[_ngcontent-%COMP%]{white-space:normal;padding:0;margin-left:70px;margin-top:20px}.mobile[_ngcontent-%COMP%] .homepage-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}"]}),t})();function ab(t,e){1&t&&(Mo(0,"div",4),da(1," No items found in Watchlist. "),Ro())}function lb(t,e){if(1&t){const t=Do();Mo(0,"div",9),jo("click",function(){je(t);const n=e.index;return $o(3).update(n)}),Mo(1,"a",10),Vo(2,"img",11),Ro(),Mo(3,"div",12),da(4),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("routerLink","/watch/"+t.media_type+"/"+t.id),Jr(1),qo("src",t.poster_path,qi),Jr(2),fa(" ",t.name," ")}}function cb(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),da(2," My WatchList "),Ro(),Mo(3,"div",7),Po(4,lb,5,3,"div",8),Ro(),Ro()),2&t){const t=$o(2);Jr(4),Io("ngForOf",t.watchlist)}}function ub(t,e){if(1&t&&(Mo(0,"div"),Po(1,ab,2,0,"div",2),Po(2,cb,5,1,"div",3),Ro()),2&t){const t=$o();Jr(1),Io("ngIf",!t.watchlist||0==t.watchlist.length),Jr(1),Io("ngIf",t.watchlist&&0!=t.watchlist.length)}}function hb(t,e){1&t&&(Mo(0,"div",4),da(1," No items found in Watchlist. "),Ro())}function db(t,e){if(1&t){const t=Do();Mo(0,"div",9),jo("click",function(){je(t);const n=e.index;return $o(3).update(n)}),Mo(1,"a",10),Vo(2,"img",11),Ro(),Mo(3,"div",12),da(4),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("routerLink","/watch/"+t.media_type+"/"+t.id),Jr(1),qo("src",t.poster_path,qi),Jr(2),fa(" ",t.name," ")}}function pb(t,e){if(1&t&&(Mo(0,"div",5),Mo(1,"div",6),da(2," My WatchList "),Ro(),Mo(3,"div",7),Po(4,db,5,3,"div",8),Ro(),Ro()),2&t){const t=$o(2);Jr(4),Io("ngForOf",t.watchlist)}}function fb(t,e){if(1&t&&(Mo(0,"div",13),Po(1,hb,2,0,"div",2),Po(2,pb,5,1,"div",3),Ro()),2&t){const t=$o();Jr(1),Io("ngIf",!t.watchlist||0==t.watchlist.length),Jr(1),Io("ngIf",t.watchlist&&0!=t.watchlist.length)}}let gb=(()=>{class t{constructor(t){this.request=t,this.watchlist=[],this.mobile=!1,this.my_storage=window.localStorage}ngOnInit(){window.screen.width<576&&(this.mobile=!0),this.watchlist=JSON.parse(localStorage.getItem("watchlist"))}addContinue(t,e){this.request.addContinue(t,e)}updateList(t,e){this.request.updateList(t,e)}update(t){this.updateList(this.watchlist,t),this.addContinue(this.watchlist[t],this.watchlist[t].media_type)}}return t.\u0275fac=function(e){return new(e||t)(Eo(R_))},t.\u0275cmp=Qt({type:t,selectors:[["app-mylist"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","mobile",4,"ngIf"],["class","empty-list",4,"ngIf"],["class","filled-list",4,"ngIf"],[1,"empty-list"],[1,"filled-list"],[1,"list-title"],[1,"list-content","clearfix"],["class","img-wrapper float-left",3,"click",4,"ngFor","ngForOf"],[1,"img-wrapper","float-left",3,"click"],[1,"hover-to-show",3,"routerLink"],[1,"img-entity","img-fluid",3,"src"],[1,"img-background"],[1,"mobile"]],template:function(t,e){1&t&&(Po(0,ub,3,2,"div",0),Po(1,fb,3,2,"div",1)),2&t&&(Io("ngIf",!e.mobile),Jr(1),Io("ngIf",e.mobile))},directives:[wh,vh,Sg],styles:[".empty-list[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:50px;font-weight:500;padding-top:90px;height:calc(100vh - 93px)}.filled-list[_ngcontent-%COMP%]{margin-left:17%;width:67%;min-height:calc(100vh - 93px)}.list-title[_ngcontent-%COMP%]{padding-top:20px;font-size:50px;font-weight:500}.list-content[_ngcontent-%COMP%]{margin-top:30px}.img-wrapper[_ngcontent-%COMP%]{position:relative;width:14%;margin:4% 1.33%}.img-background[_ngcontent-%COMP%], .img-entity[_ngcontent-%COMP%]{transition:transform .2s}.img-background[_ngcontent-%COMP%]{display:none;pointer-events:none;padding-left:15px;padding-top:110%;line-height:1.2;font-size:22px;white-space:normal;position:absolute;top:0;width:100%;height:100%;background-image:linear-gradient(180deg,transparent,#000)}.img-entity[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.hover-to-show[_ngcontent-%COMP%]:hover + .img-background[_ngcontent-%COMP%]{display:block;transform:scale(1.1)}.mobile[_ngcontent-%COMP%] .empty-list[_ngcontent-%COMP%]{font-size:40px;padding-top:80px;height:calc(100vh - 89px);line-height:1.2}.mobile[_ngcontent-%COMP%] .filled-list[_ngcontent-%COMP%]{width:100%;margin:0;min-height:calc(100vh - 89px)}.mobile[_ngcontent-%COMP%] .list-title[_ngcontent-%COMP%]{margin-left:65px;margin-top:20px;font-size:40px;font-weight:500}.mobile[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{margin-top:30px;margin-left:0;width:100%}.mobile[_ngcontent-%COMP%] .img-wrapper[_ngcontent-%COMP%]{width:60%;margin:10% 20%}.mobile[_ngcontent-%COMP%] .img-entity[_ngcontent-%COMP%]{transition:transform .2s}.mobile[_ngcontent-%COMP%] .img-background[_ngcontent-%COMP%]{display:block;padding-left:15px;padding-top:120%;line-height:1.2;font-size:20px}"]}),t})();function mb(t,e,n){return n?mb(t,e).pipe(T(t=>l(t)?n(...t):n(t))):new w(n=>{const r=(...t)=>n.next(1===t.length?t[0]:t);let s;try{s=t(r)}catch(o){return void n.error(o)}if(i(e))return()=>e(r,s)})}class _b{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new vb(t,this.predicate))}}class vb extends f{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}const yb=["youtubeContainer"];let wb=(()=>{class t{constructor(t,e){this._ngZone=t,this._youtubeContainer=new S,this._destroyed=new S,this._playerChanges=new rd(void 0),this._videoId=new rd(void 0),this._height=new rd(390),this._width=new rd(640),this._startSeconds=new rd(void 0),this._endSeconds=new rd(void 0),this._suggestedQuality=new rd(void 0),this._playerVars=new rd(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=Sh(e)}get videoId(){return this._videoId.value}set videoId(t){this._videoId.next(t)}get height(){return this._height.value}set height(t){this._height.next(t||390)}get width(){return this._width.value}set width(t){this._width.next(t||640)}set startSeconds(t){this._startSeconds.next(t)}set endSeconds(t){this._endSeconds.next(t)}set suggestedQuality(t){this._suggestedQuality.next(t)}get playerVars(){return this._playerVars.value}set playerVars(t){this._playerVars.next(t)}ngOnInit(){if(!this._isBrowser)return;let t=id(!0);if(!window.YT||!window.YT.Player){const e=new S;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>e.next(!0))},t=e.pipe(bd(1),Od(!1))}const e=function(t,e,n,i,r,s,o){const a=cd([e,s]).pipe(Y_(cd([i,r])),T(([t,e])=>{const[n,i]=t,[r,s]=e;return n?{videoId:n,playerVars:i,width:r,height:s}:void 0}));return cd([t,a,id(o)]).pipe(v(function(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0].slice()),n=>n.lift.call(j([n,...t]),new ud(e))}(n),(c=([t,e])=>!e,t=>t.lift(new _b(c))),T(([t])=>t)),Sd(bb,void 0),I_());var c}(this._youtubeContainer,this._videoId,t,this._width,this._height,this._playerVars,this._ngZone).pipe(Gd(t=>{this._playerChanges.next(t)}),(n=t=>{Cb(t)||t.destroy()},U(t=>t?Cb(t)?id(t):new w(e=>{let i=!1,r=!1;const s=t=>{r=!0,i||(t.target.removeEventListener("onReady",s),e.next(t.target))};return t.addEventListener("onReady",s),()=>{i=!0,r||n(t)}}).pipe(bd(1),Od(void 0)):id(void 0))),Q_(this._destroyed),tt(new S));var n;e.subscribe(t=>{this._player=t,t&&this._pendingPlayerState&&this._initializePlayer(t,this._pendingPlayerState),this._pendingPlayerState=void 0}),function(t,e,n){cd([t,e,n]).subscribe(([t,e,n])=>t&&t.setSize(e,n))}(e,this._width,this._height),function(t,e){cd([t,e]).subscribe(([t,e])=>t&&e&&t.setPlaybackQuality(e))}(e,this._suggestedQuality),function(t,e,n,i,r,s){const o=cd([n,i]).pipe(T(([t,e])=>({startSeconds:t,endSeconds:e}))),a=o.pipe(xb(t,t=>!!t&&!function(t){const e=t.getPlayerState();return-1!==e&&5!==e}(t))),l=e.pipe(xb(t,(t,e)=>!!t&&t.videoId!==e));G(t.pipe(xb(cd([e,o]),([t,e],n)=>!(!n||t==n.videoId&&!e.startSeconds&&!e.endSeconds))),l,a).pipe(Y_(cd([t,e,o,r])),T(([t,e])=>e),Q_(s)).subscribe(([t,e,n,i])=>{e&&t&&(t.videoId=e,t.cueVideoById(Object.assign({videoId:e,suggestedQuality:i},n)))})}(e,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),e.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(t,e){this._player?this._player.seekTo(t,e):this._getPendingState().seek={seconds:t,allowSeekAhead:e}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(t,e){const{playbackState:n,playbackRate:i,volume:r,muted:s,seek:o}=e;switch(n){case 1:t.playVideo();break;case 2:t.pauseVideo();break;case 5:t.stopVideo()}null!=i&&t.setPlaybackRate(i),null!=r&&t.setVolume(r),null!=s&&(s?t.mute():t.unMute()),null!=o&&t.seekTo(o.seconds,o.allowSeekAhead)}_getLazyEmitter(t){return this._playerChanges.pipe(_d(e=>e?mb(n=>{e.addEventListener(t,n)},n=>{try{e.removeEventListener&&e.removeEventListener(t,n)}catch(i){}}):id()),t=>new w(e=>t.subscribe({next:t=>this._ngZone.run(()=>e.next(t)),error:t=>e.error(t),complete:()=>e.complete()})),Q_(this._destroyed))}}return t.\u0275fac=function(e){return new(e||t)(Eo(mu),Eo(eu))},t.\u0275cmp=Qt({type:t,selectors:[["youtube-player"]],viewQuery:function(t,e){if(1&t&&Uc(yb,1),2&t){let t;$c(t=Bc())&&(e.youtubeContainer=t.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(t,e){1&t&&Vo(0,"div",null,0)},encapsulation:2,changeDetection:0}),t})();function bb(t,[e,n,i]){if(t&&n&&t.playerVars!==n.playerVars)t.destroy();else{if(!n)return void(t&&t.destroy());if(t)return t}const r=i.runOutsideAngular(()=>new YT.Player(e,n));return r.videoId=n.videoId,r.playerVars=n.playerVars,r}function Cb(t){return"getPlayerStatus"in t}function xb(t,e){return v(Y_(t),Td(([t,n])=>e(n,t)),T(([t])=>t))}let Ob=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({}),t})();const Sb=["carousel"],kb=["selfClosingAlert_add"],Pb=["selfClosingAlert_remove"];function Tb(t,e){if(1&t&&(Mo(0,"div",19),Vo(1,"youtube-player",20),Ro()),2&t){const t=$o();Jr(1),Io("videoId",t.video_data.key)("height",t.getPlayerHeight())("width",t.getPlayerWidth())}}function Eb(t,e){if(1&t&&Vo(0,"youtube-player",20),2&t){const t=$o(2);Io("videoId",t.video_data.key)("height",t.getPlayerHeight())("width",t.getPlayerWidth())}}function Ib(t,e){if(1&t&&(Mo(0,"div",21),Po(1,Eb,1,3,"youtube-player",22),Ro()),2&t){const t=$o();Jr(1),Io("ngIf",t.mobile)}}function Ab(t,e){if(1&t&&(Mo(0,"span",28),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function Mb(t,e){if(1&t&&(Mo(0,"span",28),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function Rb(t,e){if(1&t&&(Mo(0,"div",23),Mo(1,"div",24),Mo(2,"span"),da(3),Ro(),Ro(),Mo(4,"div",25),Mo(5,"span"),da(6),Ro(),Ro(),Mo(7,"div",26),Mo(8,"span"),da(9),Ro(),Mo(10,"span"),da(11),Ro(),Mo(12,"span"),da(13),Ro(),Ro(),Mo(14,"div",27),Mo(15,"span"),da(16,"Genres : "),Ro(),Mo(17,"span",28),da(18),Ro(),Po(19,Ab,2,1,"span",29),Ro(),Mo(20,"div",30),Mo(21,"span"),da(22,"Spoken Languages : "),Ro(),Mo(23,"span",28),da(24),Ro(),Po(25,Mb,2,1,"span",29),Ro(),Ro()),2&t){const t=$o();Jr(3),pa(t.data.title),Jr(3),pa(t.data.tagline),Jr(3),fa("",t.data.release_date," |"),Jr(2),fa(" \u2605 ",t.data.vote_average," |"),Jr(2),fa(" ",t.data.runtime,""),Jr(5),pa(t.data.genres[0]),Jr(1),Io("ngForOf",t.data.genres.slice(1)),Jr(5),pa(t.data.spoken_languages[0]),Jr(1),Io("ngForOf",t.data.spoken_languages.slice(1))}}function Vb(t,e){if(1&t&&(Mo(0,"span",28),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function Db(t,e){if(1&t&&(Mo(0,"span",28),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function Fb(t,e){if(1&t&&(Mo(0,"div"),Mo(1,"div",24),Mo(2,"span"),da(3),Ro(),Ro(),Mo(4,"div",25),Mo(5,"span"),da(6),Ro(),Ro(),Mo(7,"div",26),Mo(8,"span"),da(9),Ro(),Mo(10,"span"),da(11),Ro(),Mo(12,"span"),da(13),Ro(),Ro(),Mo(14,"div",27),Mo(15,"span"),da(16,"Genres : "),Ro(),Mo(17,"span",28),da(18),Ro(),Po(19,Vb,2,1,"span",29),Ro(),Mo(20,"div",30),Mo(21,"span"),da(22,"Spoken Languages : "),Ro(),Mo(23,"span",28),da(24),Ro(),Po(25,Db,2,1,"span",29),Ro(),Ro()),2&t){const t=$o();Jr(3),pa(t.data.title),Jr(3),pa(t.data.tagline),Jr(3),fa("",t.data.release_date," |"),Jr(2),fa(" \u2605 ",t.data.vote_average," |"),Jr(2),fa(" ",t.data.runtime,""),Jr(5),pa(t.data.genres[0]),Jr(1),Io("ngForOf",t.data.genres.slice(1)),Jr(5),pa(t.data.spoken_languages[0]),Jr(1),Io("ngForOf",t.data.spoken_languages.slice(1))}}function Nb(t,e){if(1&t){const t=Do();Mo(0,"ngb-alert",31,32),jo("closed",function(){return je(t),$o().addAlert=""}),da(2),Ro()}if(2&t){const t=$o();Jr(2),fa("",t.addAlert," ")}}function jb(t,e){if(1&t){const t=Do();Mo(0,"ngb-alert",33,34),jo("closed",function(){return je(t),$o().removeAlert=""}),da(2),Ro()}if(2&t){const t=$o();Jr(2),fa("",t.removeAlert," ")}}function Lb(t,e){if(1&t&&(Mo(0,"div",35),Mo(1,"div",36),Mo(2,"span"),da(3,"Description"),Ro(),Ro(),Mo(4,"div",37),Mo(5,"span"),da(6),Ro(),Ro(),Mo(7,"div",38),Mo(8,"span"),da(9,"Share"),Ro(),Mo(10,"div",39),Vo(11,"a",40),Vo(12,"a",41),Ro(),Ro(),Ro()),2&t){const t=$o();Jr(6),pa(t.data.overview),Jr(5),qo("href",t.twitter_comment,qi),Jr(1),qo("href",t.facebook_comment,qi)}}function Hb(t,e){1&t&&(Mo(0,"div",42),Mo(1,"h1"),da(2,"Full Cast and Crew"),Ro(),Ro())}function $b(t,e){if(1&t&&(Mo(0,"div"),da(1),Ro()),2&t){const t=$o(2);Jr(1),fa("Birth: ",t.cast_details.birthday,"")}}function Ub(t,e){if(1&t&&(Mo(0,"div"),da(1),Ro()),2&t){const t=$o(2);Jr(1),fa("Birth Place: ",t.cast_details.place_of_birth,"")}}function zb(t,e){if(1&t&&(Mo(0,"div"),da(1,"Website: "),Mo(2,"a",57),da(3),Ro(),Ro()),2&t){const t=$o(2);Jr(2),qo("href",t.cast_details.homepage,qi),Jr(1),fa(" ",t.cast_details.homepage,"")}}function Bb(t,e){if(1&t&&(Mo(0,"div"),da(1),Ro()),2&t){const t=$o(2);Jr(1),fa("Known for: ",t.cast_details.known_for_department,"")}}function qb(t,e){if(1&t&&(Mo(0,"span"),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(",",t," ")}}function Wb(t,e){if(1&t&&(Mo(0,"div"),Mo(1,"span"),da(2,"Also Known as: "),Ro(),Mo(3,"span"),da(4),Ro(),Po(5,qb,2,1,"span",58),Ro()),2&t){const t=$o(2);Jr(4),pa(t.cast_details.also_known_as[0]),Jr(1),Io("ngForOf",t.cast_details.also_known_as.slice(1))}}function Gb(t,e){1&t&&Vo(0,"a",59),2&t&&qo("href",$o(2).cast_external.imdb_id,qi)}function Zb(t,e){1&t&&Vo(0,"a",60),2&t&&qo("href",$o(2).cast_external.instagram_id,qi)}function Qb(t,e){1&t&&Vo(0,"a",61),2&t&&qo("href",$o(2).cast_external.facebook_id,qi)}function Kb(t,e){1&t&&Vo(0,"a",62),2&t&&qo("href",$o(2).cast_external.twitter_id,qi)}function Jb(t,e){if(1&t&&(Mo(0,"div",63),Mo(1,"div",64),da(2,"Biography"),Ro(),Mo(3,"div",65),da(4),Ro(),Ro()),2&t){const t=$o(2);Jr(4),pa(t.cast_details.biography)}}function Yb(t,e){if(1&t&&(Mo(0,"div",43),Mo(1,"span",44),da(2),Ro(),Mo(3,"button",45),jo("click",function(){return e.$implicit.dismiss("Cross click")}),Mo(4,"span",46),da(5,"\xd7"),Ro(),Ro(),Ro(),Mo(6,"div",47),Mo(7,"div",0),Mo(8,"div",48),Vo(9,"img",49),Ro(),Mo(10,"div",50),Po(11,$b,2,1,"div",5),Po(12,Ub,2,1,"div",5),Mo(13,"div"),da(14),Ro(),Po(15,zb,4,2,"div",5),Po(16,Bb,2,1,"div",5),Po(17,Wb,6,2,"div",5),Mo(18,"div",51),Po(19,Gb,1,1,"a",52),Po(20,Zb,1,1,"a",53),Po(21,Qb,1,1,"a",54),Po(22,Kb,1,1,"a",55),Ro(),Ro(),Ro(),Po(23,Jb,5,1,"div",56),Ro()),2&t){const t=$o();Jr(2),pa(t.cast_details.name),Jr(7),qo("src",t.cast_details.profile_path,qi),Jr(2),Io("ngIf",t.cast_details.birthday),Jr(1),Io("ngIf",t.cast_details.place_of_birth),Jr(2),fa("Gender: ",t.cast_details.gender,""),Jr(1),Io("ngIf",t.cast_details.homepage),Jr(1),Io("ngIf",t.cast_details.known_for_department),Jr(1),Io("ngIf",t.cast_details.also_known_as.length>0),Jr(2),Io("ngIf",t.cast_external.imdb_id),Jr(1),Io("ngIf",t.cast_external.instagram_id),Jr(1),Io("ngIf",t.cast_external.facebook_id),Jr(1),Io("ngIf",t.cast_external.twitter_id),Jr(1),Io("ngIf",t.cast_details.biography)}}function Xb(t,e){if(1&t){const t=Do();Mo(0,"div",68),jo("click",function(){je(t);const n=e.$implicit,i=$o(2),r=To(18);return i.open(r,n.id)}),Vo(1,"img",69),Mo(2,"div",70),Mo(3,"div",71),da(4),Ro(),Mo(5,"div",72),da(6,"AS"),Ro(),Mo(7,"div",73),da(8),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),qo("src",t.profile_path,qi),Jr(3),pa(t.name),Jr(4),pa(t.character)}}function tC(t,e){if(1&t&&(Mo(0,"div",66),Po(1,Xb,9,3,"div",67),Ro()),2&t){const t=$o();Jr(1),Io("ngForOf",t.cast_movies)}}function eC(t,e){1&t&&(Mo(0,"div",42),Mo(1,"h1"),da(2,"Reviews"),Ro(),Ro())}function nC(t,e){if(1&t&&(Mo(0,"div",75),Mo(1,"div",76),Vo(2,"img",77),Ro(),Mo(3,"div",78),Mo(4,"div",79),Mo(5,"span",80),da(6),Ro(),Mo(7,"div",81),Mo(8,"div",82),da(9,"\u2605"),Ro(),Mo(10,"div",83),da(11),Ro(),Ro(),Ro(),Mo(12,"div",84),Mo(13,"span"),da(14),Ro(),Ro(),Mo(15,"div",85),da(16),Ro(),Mo(17,"div",86),Mo(18,"a",57),da(19,"Read the rest"),Ro(),Ro(),Ro(),Ro()),2&t){const t=e.$implicit;Jr(2),qo("src",t.avatar_path,qi),Jr(4),fa("A review created by ",t.author,""),Jr(5),pa(t.rating),Jr(3),ga("Written by ",t.author," on ",t.created_at,""),Jr(2),fa(" ",t.content," "),Jr(2),qo("href",t.url,qi)}}function iC(t,e){if(1&t&&(Mo(0,"div"),Po(1,nC,20,7,"div",74),Ro()),2&t){const t=$o();Jr(1),Io("ngForOf",t.reviews_movie)}}function rC(t,e){1&t&&(Mo(0,"div",87),Mo(1,"h1"),da(2,"Recommended Movies"),Ro(),Ro())}function sC(t,e){if(1&t){const t=Do();Mo(0,"div",92),Mo(1,"a",93),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"movie",r,i)}),Mo(2,"div",94),Vo(3,"img",95),Ro(),Ro(),Mo(4,"div",96),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function oC(t,e){1&t&&Po(0,sC,7,3,"div",91),2&t&&Io("ngForOf",$o().$implicit)}function aC(t,e){1&t&&Po(0,oC,1,1,"ng-template",90)}function lC(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",88,89),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,aC,1,0,void 0,58),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.recommend_movies)}}function cC(t,e){1&t&&(Mo(0,"div",87),Mo(1,"h1"),da(2,"Similar Movies"),Ro(),Ro())}function uC(t,e){if(1&t){const t=Do();Mo(0,"div",92),Mo(1,"a",93),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"movie",r,i)}),Mo(2,"div",94),Vo(3,"img",95),Ro(),Ro(),Mo(4,"div",96),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function hC(t,e){1&t&&Po(0,uC,7,3,"div",91),2&t&&Io("ngForOf",$o().$implicit)}function dC(t,e){1&t&&Po(0,hC,1,1,"ng-template",90)}function pC(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",88,89),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,dC,1,0,void 0,58),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.similar_movies)}}function fC(t,e){if(1&t){const t=Do();Mo(0,"div",68),jo("click",function(){je(t);const n=e.$implicit,i=$o(2),r=To(18);return i.open(r,n.id)}),Vo(1,"img",69),Mo(2,"div",70),Mo(3,"div",71),da(4),Ro(),Mo(5,"div",72),da(6,"AS"),Ro(),Mo(7,"div",73),da(8),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),qo("src",t.profile_path,qi),Jr(3),pa(t.name),Jr(4),pa(t.character)}}function gC(t,e){if(1&t&&(Mo(0,"div",101),Mo(1,"div",102),Vo(2,"img",77),Ro(),Mo(3,"div",103),Mo(4,"div",104),Mo(5,"div"),da(6,"A review created by"),Ro(),Mo(7,"div",105),da(8),Ro(),Mo(9,"div",106),Mo(10,"div",82),da(11,"\u2605"),Ro(),Mo(12,"div",83),da(13),Ro(),Ro(),Ro(),Mo(14,"div",84),Mo(15,"span"),da(16),Ro(),Ro(),Mo(17,"div",85),da(18),Ro(),Mo(19,"div",86),Mo(20,"a",57),da(21,"Read the rest"),Ro(),Ro(),Ro(),Ro()),2&t){const t=e.$implicit;Jr(2),qo("src",t.avatar_path,qi),Jr(6),pa(t.author),Jr(5),pa(t.rating),Jr(3),ga("Written by ",t.author," on ",t.created_at,""),Jr(2),fa(" ",t.content," "),Jr(2),qo("href",t.url,qi)}}function mC(t,e){if(1&t){const t=Do();Mo(0,"div",107),Mo(1,"a",93),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(3);return r.update(n,"movie",r.recommend_movies_1D,i)}),Mo(2,"div",94),Vo(3,"img",95),Ro(),Ro(),Mo(4,"div",96),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function _C(t,e){1&t&&Po(0,mC,7,3,"ng-template",90)}function vC(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",88,89),jo("slide",function(e){return je(t),$o(2).onSlide(e)}),Po(2,_C,1,0,void 0,58),Ro()}if(2&t){const t=$o(2);Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.recommend_movies_1D)}}function yC(t,e){if(1&t){const t=Do();Mo(0,"div",107),Mo(1,"a",93),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(3);return r.update(n,"movie",r.similar_movies_1D,i)}),Mo(2,"div",94),Vo(3,"img",95),Ro(),Ro(),Mo(4,"div",96),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/movie/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.title)}}function wC(t,e){1&t&&Po(0,yC,7,3,"ng-template",90)}function bC(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",88,89),jo("slide",function(e){return je(t),$o(2).onSlide(e)}),Po(2,wC,1,0,void 0,58),Ro()}if(2&t){const t=$o(2);Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.similar_movies_1D)}}function CC(t,e){if(1&t&&(Mo(0,"div",23),Mo(1,"div",35),Mo(2,"div",36),Mo(3,"span"),da(4,"Description"),Ro(),Ro(),Mo(5,"div",37),Mo(6,"span"),da(7),Ro(),Ro(),Mo(8,"div",38),Mo(9,"span"),da(10,"Share"),Ro(),Mo(11,"div",39),Vo(12,"a",40),Vo(13,"a",41),Ro(),Ro(),Ro(),Mo(14,"div",97),Mo(15,"h1"),da(16,"Full Cast and Crew"),Ro(),Ro(),Mo(17,"div",66),Po(18,fC,9,3,"div",67),Ro(),Mo(19,"div",98),Mo(20,"h1"),da(21,"Reviews"),Ro(),Ro(),Po(22,gC,22,7,"div",99),Mo(23,"div",100),Mo(24,"h1"),da(25,"Recommended Movies"),Ro(),Ro(),Po(26,vC,3,4,"ngb-carousel",18),Mo(27,"div",100),Mo(28,"h1"),da(29,"Similar Movies"),Ro(),Ro(),Po(30,bC,3,4,"ngb-carousel",18),Ro()),2&t){const t=$o();Jr(7),pa(t.data.overview),Jr(5),qo("href",t.twitter_comment,qi),Jr(1),qo("href",t.facebook_comment,qi),Jr(5),Io("ngForOf",t.cast_movies),Jr(4),Io("ngForOf",t.reviews_movie),Jr(4),Io("ngIf",0!=t.recommend_movies_1D.length),Jr(4),Io("ngIf",0!=t.similar_movies_1D.length)}}let xC=(()=>{class t{constructor(t,e,n,i){this.request=t,this.route=e,this.location=n,this.modalService=i,this.data={genres:[],spoken_languages:[]},this.video_data={},this.mobile=!1,this.paused=!1,this.unpauseOnArrow=!1,this.pauseOnIndicator=!1,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.recommend_movies_1D=[],this.similar_movies_1D=[],this.reviews_movie=[],this.cast_movies=[],this.cast_id="",this.cast_details={},this.cast_external={},this.in_watchlist=!1,this._add=new S,this.addAlert="",this._remove=new S,this.removeAlert="",this.twitter_comment="",this.facebook_comment="",this.my_storage=window.localStorage}ngOnInit(){window.screen.width<576&&(this.mobile=!0),this.setMobileStyle(),this.getDetails(),this.getPlayerWidth();const t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",document.body.appendChild(t),this.getCastMovies(),this.getRecommendMovies(),this.getSimilarMovies(),this.getReviewsMovie(),this._add.subscribe(t=>this.addAlert=t),this._add.pipe(k_(5e3)).subscribe(()=>{this.selfClosingAlert_add&&this.selfClosingAlert_add.close()}),this._remove.subscribe(t=>this.removeAlert=t),this._remove.pipe(k_(5e3)).subscribe(()=>{this.selfClosingAlert_remove&&this.selfClosingAlert_remove.close()})}togglePaused(){this.paused?this.carousel.cycle():this.carousel.pause(),this.paused=!this.paused}onSlide(t){this.unpauseOnArrow&&t.paused&&(t.source===Gv.ARROW_LEFT||t.source===Gv.ARROW_RIGHT)&&this.togglePaused(),this.pauseOnIndicator&&!t.paused&&t.source===Gv.INDICATOR&&this.togglePaused()}open(t,e){this.cast_id=e,this.request.getCastDetails(this.cast_id).subscribe(e=>{this.cast_details=e,this.request.getCastExternal(this.cast_id).subscribe(e=>{this.cast_external=e,this.modalService.open(t,this.mobile?{windowClass:"modal-sm"}:{windowClass:"modal-lg"})})})}getDetails(){this.id=this.route.snapshot.paramMap.get("id"),this.inWatchList(),this.request.getMovieDetails(this.id).subscribe(t=>{this.data=t,this.getVideoMovie()})}getVideoMovie(){this.request.getVideoMovie(this.id).subscribe(t=>{this.video_data=t,this.generateSocialComment()})}getRecommendMovies(){this.request.getRecommendMovies(this.id).subscribe(t=>{this.recommend_movies=t.result,this.recommend_movies_1D=this.get2DTo1D(t.result)})}getSimilarMovies(){this.request.getSimilarMovies(this.id).subscribe(t=>{this.similar_movies=t.result,this.similar_movies_1D=this.get2DTo1D(t.result)})}getCastMovies(){this.request.getCastMovies(this.id).subscribe(t=>{this.cast_movies=t})}get2DTo1D(t){let e=[];for(let n of t)e.push(...n);return e}generateSocialComment(){this.facebook_comment+="https://www.youtube.com/watch?v="+this.video_data.key,this.twitter_comment+="Watch%20"+encodeURIComponent(this.data.title)+"%20",this.twitter_comment+=this.facebook_comment,this.twitter_comment="https://twitter.com/intent/tweet?hashtags=USC,CSCI571,FightOn&text="+this.twitter_comment,this.facebook_comment="https://facebook.com/sharer/sharer.php?u="+this.facebook_comment}getReviewsMovie(){this.request.getReviewsMovie(this.id).subscribe(t=>{this.reviews_movie=t})}addToList(){let t=document.querySelector(".add-to-list"),e=document.querySelector(".remove-from-list");t.style.display="none",e.style.display="block",this._add.next("Added to watchlist.");let n={};n.id=this.id,n.poster_path=this.data.poster_path,n.name=this.data.title,n.media_type="movie";let i=[];if(i.push(n),this.my_storage.getItem("watchlist")){let t=-1,e=JSON.parse(this.my_storage.getItem("watchlist"));for(let n=0;n img[_ngcontent-%COMP%]{margin:25%;width:100px;height:100px;border-radius:50%}.review-info[_ngcontent-%COMP%]{margin-top:30px;margin-left:4%;font-size:20px;width:80%}.info-title[_ngcontent-%COMP%]{font-size:30px;font-weight:700}.info-rating[_ngcontent-%COMP%]{margin-left:20px;width:64px;height:40px;color:#fff;background-color:#000;font-weight:400;border-radius:20px}.info-rating-star[_ngcontent-%COMP%]{margin-left:10px;margin-top:-2px}.info-rating-score[_ngcontent-%COMP%]{margin-left:5px;font-size:20px;margin-top:5px}.info-created-time[_ngcontent-%COMP%]{margin-top:40px;opacity:.7}.info-content[_ngcontent-%COMP%]{margin-top:20px;width:95%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;text-overflow:ellipsis;overflow:hidden}.info-complete[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:30px;text-decoration:underline}.carousel-others[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:40px;margin-left:20%;width:60%}.carousel-others[_ngcontent-%COMP%]:focus{outline:none}.carousel-others[_ngcontent-%COMP%] .row-sort[_ngcontent-%COMP%]{position:relative;width:14.7%;margin:20px .98%}.carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%]{position:absolute} .carousel-others .carousel-control-next{right:-5%;width:5%} .carousel-others .carousel-control-prev{left:-5%;width:5%} .carousel-others .carousel-indicators{bottom:-15%}.carousel-others[_ngcontent-%COMP%] .picsum-img-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{transition:transform .2s}.carousel-others[_ngcontent-%COMP%] .picsum-img-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.carousel-others[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{display:block;transform:scale(1.1)}.carousel-others[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{display:none;pointer-events:none;width:100%;height:100%;left:0;text-align:left;bottom:0;padding:0;background-image:linear-gradient(180deg,transparent,#000);transition:transform .2s}.carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:20px;font-weight:400;padding-left:10%;padding-top:110%}.homepage-title[_ngcontent-%COMP%]{margin-left:14%;margin-top:40px}.homepage-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem}.mobile[_ngcontent-%COMP%] .movie-name[_ngcontent-%COMP%]{font-size:3rem;line-height:1.2}.mobile[_ngcontent-%COMP%] .movie-tagline[_ngcontent-%COMP%]{opacity:.7;margin-top:5px;font-size:23px;font-style:italic}.mobile[_ngcontent-%COMP%] .date-rate-duration[_ngcontent-%COMP%]{opacity:.7;font-size:20px;margin-top:20px}.mobile[_ngcontent-%COMP%] .genres[_ngcontent-%COMP%]{margin-top:10px;width:90%}.mobile[_ngcontent-%COMP%] .spoken-languages[_ngcontent-%COMP%]{width:90%}.mobile[_ngcontent-%COMP%] .movie-info-down[_ngcontent-%COMP%]{margin-left:30px;margin-top:10px;width:90%}.mobile[_ngcontent-%COMP%] .movie-description[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.mobile[_ngcontent-%COMP%] .movie-description-content[_ngcontent-%COMP%]{margin-top:5px;font-size:20px;opacity:.5}.mobile[_ngcontent-%COMP%] .movie-share[_ngcontent-%COMP%]{margin-top:20px;font-size:20px;font-weight:500}.mobile[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%]{margin-top:10px}.mobile[_ngcontent-%COMP%] .movie-share[_ngcontent-%COMP%] .fa-facebook-square[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%] .movie-share[_ngcontent-%COMP%] .fa-twitter[_ngcontent-%COMP%]{font-size:30px}.mobile[_ngcontent-%COMP%] .scrolling-wrapper[_ngcontent-%COMP%]{margin-left:0;width:100%} .modal-sm{margin-left:2%;margin-top:8px;max-width:96%;width:96%} .modal-sm .modal-header{height:50px;padding:0} .modal-sm .modal-body{font-size:17px;max-height:650px;padding:0;overflow-y:auto;overflow-x:hidden;border-bottom-left-radius:3.8px;border-bottom-right-radius:3.8px;font-weight:500} .modal-sm .pop-title{margin-top:15px;margin-left:10px;font-size:25px;font-weight:700} .modal-sm .close{margin:0;outline:none} .modal-sm .actor-photo{margin-top:10px;margin-left:4.5%x;width:91%x} .modal-sm .actor-other-info{margin-top:5px;margin-left:4.5%;width:91%} .modal-sm .actor-bio{margin-top:10px;margin-left:4.5%;margin-bottom:5px;width:91%} .modal-sm .bio-title{font-size:30px;font-weight:700} .modal-sm .pop-icon{margin-top:20px} .modal-sm .pop-icon .fa, .modal-sm .pop-icon .fab{margin-right:8px;font-size:30px;text-decoration:none}.mobile[_ngcontent-%COMP%] .reviews[_ngcontent-%COMP%]{margin-left:7.2%;width:85%}.mobile[_ngcontent-%COMP%] .review-photo[_ngcontent-%COMP%]{margin-left:0;width:51%}.mobile[_ngcontent-%COMP%] .review-photo[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-bottom:10px;width:80px;height:80px}.mobile[_ngcontent-%COMP%] .review-info[_ngcontent-%COMP%]{margin-top:10px;margin-left:8.5%;margin-bottom:30px;font-size:16px}.mobile[_ngcontent-%COMP%] .info-title[_ngcontent-%COMP%]{font-size:25px;font-weight:700}.mobile[_ngcontent-%COMP%] .info-rating[_ngcontent-%COMP%]{margin-left:0;margin-top:10px;width:52px;height:30px;border-radius:15px}.mobile[_ngcontent-%COMP%] .info-rating-star[_ngcontent-%COMP%]{margin-left:8px;margin-top:-5px}.mobile[_ngcontent-%COMP%] .info-rating-score[_ngcontent-%COMP%]{font-size:15px;margin-top:4px}.mobile[_ngcontent-%COMP%] .info-created-time[_ngcontent-%COMP%]{margin-top:20px;width:74%}.mobile[_ngcontent-%COMP%] .info-content[_ngcontent-%COMP%]{margin-top:15px}.mobile[_ngcontent-%COMP%] .info-complete[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:30px} .mobile .carousel-indicators{display:none}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%]{margin-top:20px;margin-top:40px;margin-left:0;width:100%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%]:focus{outline:none}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .row-sort[_ngcontent-%COMP%]{width:60%;margin:20px 20px 20px 20%} .mobile .carousel-others .carousel-control-next{right:5%} .mobile .carousel-others .carousel-control-prev{left:5%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{transform:scale(1.1)}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;padding-top:130%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{display:block}.mobile[_ngcontent-%COMP%] .homepage-title[_ngcontent-%COMP%]{white-space:normal;padding:0;margin-top:90px}.mobile[_ngcontent-%COMP%] .homepage-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}"]}),t})();const OC=["carousel"],SC=["selfClosingAlert_add"],kC=["selfClosingAlert_remove"];function PC(t,e){if(1&t&&(Mo(0,"div",19),Vo(1,"youtube-player",20),Ro()),2&t){const t=$o();Jr(1),Io("videoId",t.video_data.key)("height",t.getPlayerHeight())("width",t.getPlayerWidth())}}function TC(t,e){if(1&t&&(Mo(0,"div",21),Vo(1,"youtube-player",20),Ro()),2&t){const t=$o();Jr(1),Io("videoId",t.video_data.key)("height",t.getPlayerHeight())("width",t.getPlayerWidth())}}function EC(t,e){if(1&t&&(Mo(0,"span",27),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function IC(t,e){if(1&t&&(Mo(0,"span",27),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function AC(t,e){if(1&t&&(Mo(0,"div",22),Mo(1,"div",23),Mo(2,"span"),da(3),Ro(),Ro(),Mo(4,"div",24),Mo(5,"span"),da(6),Ro(),Ro(),Mo(7,"div",25),Mo(8,"span"),da(9),Ro(),Mo(10,"span"),da(11),Ro(),Ro(),Mo(12,"div",26),Mo(13,"span"),da(14,"Genres : "),Ro(),Mo(15,"span",27),da(16),Ro(),Po(17,EC,2,1,"span",28),Ro(),Mo(18,"div",29),Mo(19,"span"),da(20,"Spoken Languages : "),Ro(),Mo(21,"span",27),da(22),Ro(),Po(23,IC,2,1,"span",28),Ro(),Ro()),2&t){const t=$o();Jr(3),pa(t.data.title),Jr(3),pa(t.data.tagline),Jr(3),fa(" \u2605 ",t.data.vote_average," |"),Jr(2),fa(" ",t.data.episode_run_time,""),Jr(5),pa(t.data.genres[0]),Jr(1),Io("ngForOf",t.data.genres.slice(1)),Jr(5),pa(t.data.spoken_languages[0]),Jr(1),Io("ngForOf",t.data.spoken_languages.slice(1))}}function MC(t,e){if(1&t&&(Mo(0,"span",27),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function RC(t,e){if(1&t&&(Mo(0,"span",27),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(", ",t," ")}}function VC(t,e){if(1&t&&(Mo(0,"div"),Mo(1,"div",23),Mo(2,"span"),da(3),Ro(),Ro(),Mo(4,"div",24),Mo(5,"span"),da(6),Ro(),Ro(),Mo(7,"div",25),Mo(8,"span"),da(9),Ro(),Mo(10,"span"),da(11),Ro(),Ro(),Mo(12,"div",26),Mo(13,"span"),da(14,"Genres : "),Ro(),Mo(15,"span",27),da(16),Ro(),Po(17,MC,2,1,"span",28),Ro(),Mo(18,"div",29),Mo(19,"span"),da(20,"Spoken Languages : "),Ro(),Mo(21,"span",27),da(22),Ro(),Po(23,RC,2,1,"span",28),Ro(),Ro()),2&t){const t=$o();Jr(3),pa(t.data.title),Jr(3),pa(t.data.tagline),Jr(3),fa(" \u2605 ",t.data.vote_average," |"),Jr(2),fa(" ",t.data.episode_run_time,""),Jr(5),pa(t.data.genres[0]),Jr(1),Io("ngForOf",t.data.genres.slice(1)),Jr(5),pa(t.data.spoken_languages[0]),Jr(1),Io("ngForOf",t.data.spoken_languages.slice(1))}}function DC(t,e){if(1&t){const t=Do();Mo(0,"ngb-alert",30,31),jo("closed",function(){return je(t),$o().addAlert=""}),da(2),Ro()}if(2&t){const t=$o();Jr(2),fa("",t.addAlert," ")}}function FC(t,e){if(1&t){const t=Do();Mo(0,"ngb-alert",32,33),jo("closed",function(){return je(t),$o().removeAlert=""}),da(2),Ro()}if(2&t){const t=$o();Jr(2),fa("",t.removeAlert," ")}}function NC(t,e){if(1&t&&(Mo(0,"div",34),Mo(1,"div",35),Mo(2,"span"),da(3,"Description"),Ro(),Ro(),Mo(4,"div",36),Mo(5,"span"),da(6),Ro(),Ro(),Mo(7,"div",37),Mo(8,"span"),da(9,"Share"),Ro(),Mo(10,"div",38),Vo(11,"a",39),Vo(12,"a",40),Ro(),Ro(),Ro()),2&t){const t=$o();Jr(6),pa(t.data.overview),Jr(5),qo("href",t.twitter_comment,qi),Jr(1),qo("href",t.facebook_comment,qi)}}function jC(t,e){1&t&&(Mo(0,"div",41),Mo(1,"h1"),da(2,"Full Cast and Crew"),Ro(),Ro())}function LC(t,e){if(1&t&&(Mo(0,"div"),da(1),Ro()),2&t){const t=$o(2);Jr(1),fa("Birth: ",t.cast_details.birthday,"")}}function HC(t,e){if(1&t&&(Mo(0,"div"),da(1),Ro()),2&t){const t=$o(2);Jr(1),fa("Birth Place: ",t.cast_details.place_of_birth,"")}}function $C(t,e){if(1&t&&(Mo(0,"div"),da(1,"Website: "),Mo(2,"a",56),da(3),Ro(),Ro()),2&t){const t=$o(2);Jr(2),qo("href",t.cast_details.homepage,qi),Jr(1),fa(" ",t.cast_details.homepage,"")}}function UC(t,e){if(1&t&&(Mo(0,"div"),da(1),Ro()),2&t){const t=$o(2);Jr(1),fa("Known for: ",t.cast_details.known_for_department,"")}}function zC(t,e){if(1&t&&(Mo(0,"span"),da(1),Ro()),2&t){const t=e.$implicit;Jr(1),fa(",",t," ")}}function BC(t,e){if(1&t&&(Mo(0,"div"),Mo(1,"span"),da(2,"Also Known as: "),Ro(),Mo(3,"span"),da(4),Ro(),Po(5,zC,2,1,"span",57),Ro()),2&t){const t=$o(2);Jr(4),pa(t.cast_details.also_known_as[0]),Jr(1),Io("ngForOf",t.cast_details.also_known_as.slice(1))}}function qC(t,e){1&t&&Vo(0,"a",58),2&t&&qo("href",$o(2).cast_external.imdb_id,qi)}function WC(t,e){1&t&&Vo(0,"a",59),2&t&&qo("href",$o(2).cast_external.instagram_id,qi)}function GC(t,e){1&t&&Vo(0,"a",60),2&t&&qo("href",$o(2).cast_external.facebook_id,qi)}function ZC(t,e){1&t&&Vo(0,"a",61),2&t&&qo("href",$o(2).cast_external.twitter_id,qi)}function QC(t,e){if(1&t&&(Mo(0,"div",62),Mo(1,"div",63),da(2,"Biography"),Ro(),Mo(3,"div",64),da(4),Ro(),Ro()),2&t){const t=$o(2);Jr(4),pa(t.cast_details.biography)}}function KC(t,e){if(1&t&&(Mo(0,"div",42),Mo(1,"span",43),da(2),Ro(),Mo(3,"button",44),jo("click",function(){return e.$implicit.dismiss("Cross click")}),Mo(4,"span",45),da(5,"\xd7"),Ro(),Ro(),Ro(),Mo(6,"div",46),Mo(7,"div",0),Mo(8,"div",47),Vo(9,"img",48),Ro(),Mo(10,"div",49),Po(11,LC,2,1,"div",5),Po(12,HC,2,1,"div",5),Mo(13,"div"),da(14),Ro(),Po(15,$C,4,2,"div",5),Po(16,UC,2,1,"div",5),Po(17,BC,6,2,"div",5),Mo(18,"div",50),Po(19,qC,1,1,"a",51),Po(20,WC,1,1,"a",52),Po(21,GC,1,1,"a",53),Po(22,ZC,1,1,"a",54),Ro(),Ro(),Ro(),Po(23,QC,5,1,"div",55),Ro()),2&t){const t=$o();Jr(2),pa(t.cast_details.name),Jr(7),qo("src",t.cast_details.profile_path,qi),Jr(2),Io("ngIf",t.cast_details.birthday),Jr(1),Io("ngIf",t.cast_details.place_of_birth),Jr(2),fa("Gender: ",t.cast_details.gender,""),Jr(1),Io("ngIf",t.cast_details.homepage),Jr(1),Io("ngIf",t.cast_details.known_for_department),Jr(1),Io("ngIf",t.cast_details.also_known_as.length>0),Jr(2),Io("ngIf",t.cast_external.imdb_id),Jr(1),Io("ngIf",t.cast_external.instagram_id),Jr(1),Io("ngIf",t.cast_external.facebook_id),Jr(1),Io("ngIf",t.cast_external.twitter_id),Jr(1),Io("ngIf",t.cast_details.biography)}}function JC(t,e){if(1&t){const t=Do();Mo(0,"div",67),jo("click",function(){je(t);const n=e.$implicit,i=$o(2),r=To(18);return i.open(r,n.id)}),Vo(1,"img",68),Mo(2,"div",69),Mo(3,"div",70),da(4),Ro(),Mo(5,"div",71),da(6,"AS"),Ro(),Mo(7,"div",72),da(8),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),qo("src",t.profile_path,qi),Jr(3),pa(t.name),Jr(4),pa(t.character)}}function YC(t,e){if(1&t&&(Mo(0,"div",65),Po(1,JC,9,3,"div",66),Ro()),2&t){const t=$o();Jr(1),Io("ngForOf",t.cast_TV)}}function XC(t,e){1&t&&(Mo(0,"div",41),Mo(1,"h1"),da(2,"Reviews"),Ro(),Ro())}function tx(t,e){if(1&t&&(Mo(0,"div",74),Mo(1,"div",75),Vo(2,"img",76),Ro(),Mo(3,"div",77),Mo(4,"div",78),Mo(5,"span",79),da(6),Ro(),Mo(7,"div",80),Mo(8,"div",81),da(9,"\u2605"),Ro(),Mo(10,"div",82),da(11),Ro(),Ro(),Ro(),Mo(12,"div",83),Mo(13,"span"),da(14),Ro(),Ro(),Mo(15,"div",84),da(16),Ro(),Mo(17,"div",85),Mo(18,"a",56),da(19,"Read the rest"),Ro(),Ro(),Ro(),Ro()),2&t){const t=e.$implicit;Jr(2),qo("src",t.avatar_path,qi),Jr(4),fa("A review created by ",t.author,""),Jr(5),pa(t.rating),Jr(3),ga("Written by ",t.author," on ",t.created_at,""),Jr(2),fa(" ",t.content," "),Jr(2),qo("href",t.url,qi)}}function ex(t,e){if(1&t&&(Mo(0,"div"),Po(1,tx,20,7,"div",73),Ro()),2&t){const t=$o();Jr(1),Io("ngForOf",t.reviews_TV)}}function nx(t,e){1&t&&(Mo(0,"div",86),Mo(1,"h1"),da(2,"Recommended TV Shows"),Ro(),Ro())}function ix(t,e){if(1&t){const t=Do();Mo(0,"div",91),Mo(1,"a",92),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"tv",r,i)}),Mo(2,"div",93),Vo(3,"img",94),Ro(),Ro(),Mo(4,"div",95),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function rx(t,e){1&t&&Po(0,ix,7,3,"div",90),2&t&&Io("ngForOf",$o().$implicit)}function sx(t,e){1&t&&Po(0,rx,1,1,"ng-template",89)}function ox(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",87,88),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,sx,1,0,void 0,57),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.recommend_TV)}}function ax(t,e){1&t&&(Mo(0,"div",86),Mo(1,"h1"),da(2,"Similar TV Shows"),Ro(),Ro())}function lx(t,e){if(1&t){const t=Do();Mo(0,"div",91),Mo(1,"a",92),jo("click",function(){je(t);const n=e.$implicit,i=e.index,r=$o(2).$implicit;return $o(2).update(n,"tv",r,i)}),Mo(2,"div",93),Vo(3,"img",94),Ro(),Ro(),Mo(4,"div",95),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function cx(t,e){1&t&&Po(0,lx,7,3,"div",90),2&t&&Io("ngForOf",$o().$implicit)}function ux(t,e){1&t&&Po(0,cx,1,1,"ng-template",89)}function hx(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",87,88),jo("slide",function(e){return je(t),$o().onSlide(e)}),Po(2,ux,1,0,void 0,57),Ro()}if(2&t){const t=$o();Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.similar_TV)}}function dx(t,e){if(1&t){const t=Do();Mo(0,"div",67),jo("click",function(){je(t);const n=e.$implicit,i=$o(2),r=To(18);return i.open(r,n.id)}),Vo(1,"img",68),Mo(2,"div",69),Mo(3,"div",70),da(4),Ro(),Mo(5,"div",71),da(6,"AS"),Ro(),Mo(7,"div",72),da(8),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;Jr(1),qo("src",t.profile_path,qi),Jr(3),pa(t.name),Jr(4),pa(t.character)}}function px(t,e){if(1&t&&(Mo(0,"div",100),Mo(1,"div",101),Vo(2,"img",76),Ro(),Mo(3,"div",102),Mo(4,"div",103),Mo(5,"div"),da(6,"A review created by"),Ro(),Mo(7,"div",104),da(8),Ro(),Mo(9,"div",105),Mo(10,"div",81),da(11,"\u2605"),Ro(),Mo(12,"div",82),da(13),Ro(),Ro(),Ro(),Mo(14,"div",83),Mo(15,"span"),da(16),Ro(),Ro(),Mo(17,"div",84),da(18),Ro(),Mo(19,"div",85),Mo(20,"a",56),da(21,"Read the rest"),Ro(),Ro(),Ro(),Ro()),2&t){const t=e.$implicit;Jr(2),qo("src",t.avatar_path,qi),Jr(6),pa(t.author),Jr(5),pa(t.rating),Jr(3),ga("Written by ",t.author," on ",t.created_at,""),Jr(2),fa(" ",t.content," "),Jr(2),qo("href",t.url,qi)}}function fx(t,e){if(1&t&&(Mo(0,"div"),Po(1,px,22,7,"div",99),Ro()),2&t){const t=$o(2);Jr(1),Io("ngForOf",t.reviews_TV)}}function gx(t,e){if(1&t){const t=Do();Mo(0,"div",106),Mo(1,"a",92),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(3);return r.update(n,"tv",r.recommend_TV_1D,i)}),Mo(2,"div",93),Vo(3,"img",94),Ro(),Ro(),Mo(4,"div",95),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function mx(t,e){1&t&&Po(0,gx,7,3,"ng-template",89)}function _x(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",87,88),jo("slide",function(e){return je(t),$o(2).onSlide(e)}),Po(2,mx,1,0,void 0,57),Ro()}if(2&t){const t=$o(2);Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.recommend_TV_1D)}}function vx(t,e){if(1&t){const t=Do();Mo(0,"div",106),Mo(1,"a",92),jo("click",function(){je(t);const e=$o(),n=e.$implicit,i=e.index,r=$o(3);return r.update(n,"tv",r.similar_TV_1D,i)}),Mo(2,"div",93),Vo(3,"img",94),Ro(),Ro(),Mo(4,"div",95),Mo(5,"h3"),da(6),Ro(),Ro(),Ro()}if(2&t){const t=$o().$implicit;Jr(1),Io("href","/watch/tv/"+t.id,qi),Jr(2),Io("src",t.poster_path,qi),Jr(3),pa(t.name)}}function yx(t,e){1&t&&Po(0,vx,7,3,"ng-template",89)}function wx(t,e){if(1&t){const t=Do();Mo(0,"ngb-carousel",87,88),jo("slide",function(e){return je(t),$o(2).onSlide(e)}),Po(2,yx,1,0,void 0,57),Ro()}if(2&t){const t=$o(2);Io("interval",0)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus),Jr(2),Io("ngForOf",t.similar_TV_1D)}}function bx(t,e){if(1&t&&(Mo(0,"div",22),Mo(1,"div",34),Mo(2,"div",35),Mo(3,"span"),da(4,"Description"),Ro(),Ro(),Mo(5,"div",36),Mo(6,"span"),da(7),Ro(),Ro(),Mo(8,"div",37),Mo(9,"span"),da(10,"Share"),Ro(),Mo(11,"div",38),Vo(12,"a",39),Vo(13,"a",40),Ro(),Ro(),Ro(),Mo(14,"div",96),Mo(15,"h1"),da(16,"Full Cast and Crew"),Ro(),Ro(),Mo(17,"div",65),Po(18,dx,9,3,"div",66),Ro(),Mo(19,"div",97),Mo(20,"h1"),da(21,"Reviews"),Ro(),Ro(),Po(22,fx,2,1,"div",5),Mo(23,"div",98),Mo(24,"h1"),da(25,"Recommended"),Vo(26,"br"),da(27,"TV Shows"),Ro(),Ro(),Po(28,_x,3,4,"ngb-carousel",18),Mo(29,"div",98),Mo(30,"h1"),da(31,"Similar TV Shows"),Ro(),Ro(),Po(32,wx,3,4,"ngb-carousel",18),Ro()),2&t){const t=$o();Jr(7),pa(t.data.overview),Jr(5),qo("href",t.twitter_comment,qi),Jr(1),qo("href",t.facebook_comment,qi),Jr(5),Io("ngForOf",t.cast_TV),Jr(4),Io("ngIf",t.mobile),Jr(6),Io("ngIf",0!=t.recommend_TV_1D.length),Jr(4),Io("ngIf",0!=t.similar_TV_1D.length)}}let Cx=(()=>{class t{constructor(t,e,n,i){this.request=t,this.route=e,this.location=n,this.modalService=i,this.data={genres:[],spoken_languages:[]},this.video_data={},this.mobile=!1,this.paused=!1,this.unpauseOnArrow=!1,this.pauseOnIndicator=!1,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.recommend_TV_1D=[],this.similar_TV_1D=[],this.cast_TV=[],this.cast_id="",this.cast_details={},this.cast_external={},this.reviews_TV=[],this.in_watchlist=!1,this.twitter_comment="",this.facebook_comment="",this._add=new S,this.addAlert="",this._remove=new S,this.removeAlert="",this.my_storage=window.localStorage}ngOnInit(){window.screen.width<576&&(this.mobile=!0),this.setMobileStyle(),this.getDetails();const t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",document.body.appendChild(t),this.getRecommendTV(),this.getSimilarTV(),this.getCastTV(),this.getReviewsTV(),this._add.subscribe(t=>this.addAlert=t),this._add.pipe(k_(5e3)).subscribe(()=>{this.selfClosingAlert_add&&this.selfClosingAlert_add.close()}),this._remove.subscribe(t=>this.removeAlert=t),this._remove.pipe(k_(5e3)).subscribe(()=>{this.selfClosingAlert_remove&&this.selfClosingAlert_remove.close()})}togglePaused(){this.paused?this.carousel.cycle():this.carousel.pause(),this.paused=!this.paused}onSlide(t){this.unpauseOnArrow&&t.paused&&(t.source===Gv.ARROW_LEFT||t.source===Gv.ARROW_RIGHT)&&this.togglePaused(),this.pauseOnIndicator&&!t.paused&&t.source===Gv.INDICATOR&&this.togglePaused()}open(t,e){this.cast_id=e,this.request.getCastDetails(this.cast_id).subscribe(e=>{this.cast_details=e,this.request.getCastExternal(this.cast_id).subscribe(e=>{this.cast_external=e,this.modalService.open(t,this.mobile?{windowClass:"modal-sm"}:{windowClass:"modal-lg"})})})}getDetails(){this.id=this.route.snapshot.paramMap.get("id"),this.inWatchList(),this.request.getTVDetails(this.id).subscribe(t=>{this.data=t,this.getVideoTV()})}getVideoTV(){this.request.getVideoTV(this.id).subscribe(t=>{this.video_data=t,this.generateSocialComment()})}getRecommendTV(){this.request.getRecommendTV(this.id).subscribe(t=>{this.recommend_TV=t.result,this.recommend_TV_1D=this.get2DTo1D(t.result)})}getSimilarTV(){this.request.getSimilarTV(this.id).subscribe(t=>{this.similar_TV=t.result,this.similar_TV_1D=this.get2DTo1D(t.result)})}getCastTV(){this.request.getCastTV(this.id).subscribe(t=>{this.cast_TV=t})}get2DTo1D(t){let e=[];for(let n of t)e.push(...n);return e}generateSocialComment(){this.facebook_comment+="https://www.youtube.com/watch?v="+this.video_data.key,this.twitter_comment+="Watch%20"+encodeURIComponent(this.data.title)+"%20",this.twitter_comment+=this.facebook_comment,this.twitter_comment="https://twitter.com/intent/tweet?hashtags=USC,CSCI571,FightOn&text="+this.twitter_comment,this.facebook_comment="https://facebook.com/sharer/sharer.php?u="+this.facebook_comment}getReviewsTV(){this.request.getReviewsTV(this.id).subscribe(t=>{this.reviews_TV=t})}addToList(){let t=document.querySelector(".add-to-list"),e=document.querySelector(".remove-from-list");t.style.display="none",e.style.display="block",this._add.next("Added to watchlist.");let n={};n.id=this.id,n.poster_path=this.data.poster_path,n.name=this.data.title,n.media_type="tv";let i=[];if(i.push(n),this.my_storage.getItem("watchlist")){let t=-1,e=JSON.parse(this.my_storage.getItem("watchlist"));for(let n=0;n img[_ngcontent-%COMP%]{margin:25%;width:100px;height:100px;border-radius:50%}.review-info[_ngcontent-%COMP%]{margin-top:30px;margin-left:4%;font-size:20px;width:80%}.info-title[_ngcontent-%COMP%]{font-size:30px;font-weight:700}.info-rating[_ngcontent-%COMP%]{margin-left:20px;width:64px;height:40px;color:#fff;background-color:#000;font-weight:400;border-radius:20px}.info-rating-star[_ngcontent-%COMP%]{margin-left:10px;margin-top:-2px}.info-rating-score[_ngcontent-%COMP%]{margin-left:5px;font-size:20px;margin-top:5px}.info-created-time[_ngcontent-%COMP%]{margin-top:40px;opacity:.7}.info-content[_ngcontent-%COMP%]{margin-top:20px;width:95%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;text-overflow:ellipsis;overflow:hidden}.info-complete[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:30px;text-decoration:underline}.carousel-others[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:40px;margin-left:20%;width:60%}.carousel-others[_ngcontent-%COMP%]:focus{outline:none}.carousel-others[_ngcontent-%COMP%] .row-sort[_ngcontent-%COMP%]{position:relative;width:14.7%;margin:20px .98%}.carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%]{position:absolute} .carousel-others .carousel-control-next{right:-5%;width:5%} .carousel-others .carousel-control-prev{left:-5%;width:5%} .carousel-others .carousel-indicators{bottom:-15%}.carousel-others[_ngcontent-%COMP%] .picsum-img-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{transition:transform .2s}.carousel-others[_ngcontent-%COMP%] .picsum-img-wrapper[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.carousel-others[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{display:block;transform:scale(1.1)}.carousel-others[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{display:none;pointer-events:none;width:100%;height:100%;left:0;text-align:left;bottom:0;padding:0;background-image:linear-gradient(180deg,transparent,#000);transition:transform .2s}.carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:20px;font-weight:400;padding-left:10%;padding-top:110%}.homepage-title[_ngcontent-%COMP%]{margin-left:14%;margin-top:40px}.homepage-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem}.mobile[_ngcontent-%COMP%] .movie-name[_ngcontent-%COMP%]{font-size:3rem;line-height:1.2}.mobile[_ngcontent-%COMP%] .movie-tagline[_ngcontent-%COMP%]{opacity:.7;margin-top:5px;font-size:23px;font-style:italic}.mobile[_ngcontent-%COMP%] .date-rate-duration[_ngcontent-%COMP%]{opacity:.7;font-size:20px;margin-top:20px}.mobile[_ngcontent-%COMP%] .genres[_ngcontent-%COMP%]{margin-top:10px;width:90%}.mobile[_ngcontent-%COMP%] .spoken-languages[_ngcontent-%COMP%]{width:90%}.mobile[_ngcontent-%COMP%] .movie-info-down[_ngcontent-%COMP%]{margin-left:30px;margin-top:10px;width:90%}.mobile[_ngcontent-%COMP%] .movie-description[_ngcontent-%COMP%]{font-size:20px;font-weight:500}.mobile[_ngcontent-%COMP%] .movie-description-content[_ngcontent-%COMP%]{margin-top:5px;font-size:20px;opacity:.5}.mobile[_ngcontent-%COMP%] .movie-share[_ngcontent-%COMP%]{margin-top:20px;font-size:20px;font-weight:500}.mobile[_ngcontent-%COMP%] .share-button[_ngcontent-%COMP%]{margin-top:10px}.mobile[_ngcontent-%COMP%] .movie-share[_ngcontent-%COMP%] .fa-facebook-square[_ngcontent-%COMP%], .mobile[_ngcontent-%COMP%] .movie-share[_ngcontent-%COMP%] .fa-twitter[_ngcontent-%COMP%]{font-size:30px}.mobile[_ngcontent-%COMP%] .scrolling-wrapper[_ngcontent-%COMP%]{margin-left:0;width:100%} .modal-sm{margin-left:2%;margin-top:8px;max-width:96%;width:96%} .modal-sm .modal-header{height:50px;padding:0} .modal-sm .modal-body{font-size:17px;max-height:650px;padding:0;overflow-y:auto;overflow-x:hidden;border-bottom-left-radius:3.8px;border-bottom-right-radius:3.8px;font-weight:500} .modal-sm .pop-title{margin-top:15px;margin-left:10px;font-size:25px;font-weight:700} .modal-sm .close{margin:0;outline:none} .modal-sm .actor-photo{margin-top:10px;margin-left:4.5%x;width:91%x} .modal-sm .actor-other-info{margin-top:5px;margin-left:4.5%;width:91%} .modal-sm .actor-bio{margin-top:10px;margin-left:4.5%;margin-bottom:5px;width:91%} .modal-sm .bio-title{font-size:30px;font-weight:700} .modal-sm .pop-icon{margin-top:20px} .modal-sm .pop-icon .fa, .modal-sm .pop-icon .fab{margin-right:8px;font-size:30px;text-decoration:none}.mobile[_ngcontent-%COMP%] .reviews[_ngcontent-%COMP%]{margin-left:7.2%;width:85%}.mobile[_ngcontent-%COMP%] .review-photo[_ngcontent-%COMP%]{margin-left:0;width:51%}.mobile[_ngcontent-%COMP%] .review-photo[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-bottom:10px;width:80px;height:80px}.mobile[_ngcontent-%COMP%] .review-info[_ngcontent-%COMP%]{margin-top:10px;margin-left:8.5%;margin-bottom:30px;font-size:16px}.mobile[_ngcontent-%COMP%] .info-title[_ngcontent-%COMP%]{font-size:25px;font-weight:700}.mobile[_ngcontent-%COMP%] .info-rating[_ngcontent-%COMP%]{margin-left:0;margin-top:10px;width:52px;height:30px;border-radius:15px}.mobile[_ngcontent-%COMP%] .info-rating-star[_ngcontent-%COMP%]{margin-left:8px;margin-top:-5px}.mobile[_ngcontent-%COMP%] .info-rating-score[_ngcontent-%COMP%]{font-size:15px;margin-top:4px}.mobile[_ngcontent-%COMP%] .info-created-time[_ngcontent-%COMP%]{margin-top:20px;width:74%}.mobile[_ngcontent-%COMP%] .info-content[_ngcontent-%COMP%]{margin-top:15px}.mobile[_ngcontent-%COMP%] .info-complete[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:30px} .mobile .carousel-indicators{display:none}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%]{margin-top:20px;margin-top:40px;margin-left:0;width:100%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%]:focus{outline:none}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .row-sort[_ngcontent-%COMP%]{width:60%;margin:20px 20px 20px 20%} .mobile .carousel-others .carousel-control-next{right:5%} .mobile .carousel-others .carousel-control-prev{left:5%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .hover-to-show[_ngcontent-%COMP%]:hover + .to-show[_ngcontent-%COMP%]{transform:scale(1.1)}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .carousel-caption[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;padding-top:130%}.mobile[_ngcontent-%COMP%] .carousel-others[_ngcontent-%COMP%] .to-show[_ngcontent-%COMP%]{display:block}.mobile[_ngcontent-%COMP%] .homepage-title[_ngcontent-%COMP%]{white-space:normal;padding:0;margin-top:90px}.mobile[_ngcontent-%COMP%] .homepage-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}"]}),t})(),xx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh,Gy,Ob]]}),t})(),Ox=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t}),t.\u0275inj=vt({imports:[[Oh,Gy,Ob]]}),t})(),Sx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Xt({type:t,bootstrap:[ew]}),t.\u0275inj=vt({providers:[],imports:[[nd,Om,w_,Gy,xx,Ox,jg.forRoot([{path:"",component:ob},{path:"mylist",component:gb},{path:"watch/movie/:id",component:xC},{path:"watch/tv/:id",component:Cx}])]]}),t})();(function(){if(Eu)throw new Error("Cannot enable prod mode after platform setup.");Tu=!1})(),td().bootstrapModule(Sx).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]]]);