From 5abfa835ffa5b41dfb58a8a78542275ecc07f3b8 Mon Sep 17 00:00:00 2001 From: tonmoynandy Date: Sun, 7 Jan 2024 11:24:48 +0000 Subject: [PATCH] build 1.10 --- docs/index.html | 2 +- ...2087ec59dd19a80c099c.js => main.2974ea48bd3e4e16bc3e.js} | 2 +- src/app/service/transaction.service.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename docs/{main.2087ec59dd19a80c099c.js => main.2974ea48bd3e4e16bc3e.js} (59%) diff --git a/docs/index.html b/docs/index.html index c1da1f7..f9e555d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/docs/main.2087ec59dd19a80c099c.js b/docs/main.2974ea48bd3e4e16bc3e.js similarity index 59% rename from docs/main.2087ec59dd19a80c099c.js rename to docs/main.2974ea48bd3e4e16bc3e.js index d1d1045..eecb995 100644 --- a/docs/main.2087ec59dd19a80c099c.js +++ b/docs/main.2974ea48bd3e4e16bc3e.js @@ -1 +1 @@ -(self.webpackChunkmy_finance=self.webpackChunkmy_finance||[]).push([[179],{255:Ea=>{function pr(Ma){return Promise.resolve().then(()=>{var vi=new Error("Cannot find module '"+Ma+"'");throw vi.code="MODULE_NOT_FOUND",vi})}pr.keys=()=>[],pr.resolve=pr,pr.id=255,Ea.exports=pr},686:(Ea,pr,Ma)=>{"use strict";function vi(n){return"function"==typeof n}let Vh=!1;const Wn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Vh&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Vh=n},get useDeprecatedSynchronousErrorHandling(){return Vh}};function qs(n){setTimeout(()=>{throw n},0)}const Sc={closed:!0,next(n){},error(n){if(Wn.useDeprecatedSynchronousErrorHandling)throw n;qs(n)},complete(){}},Ys=Array.isArray||(n=>n&&"number"==typeof n.length);function Bh(n){return null!==n&&"object"==typeof n}const Ac=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class X{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof X)e.remove(this);else if(null!==e)for(let o=0;ot.concat(e instanceof Ac?e.errors:e),[])}X.EMPTY=((n=new X).closed=!0,n);const Tc="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Oe extends X{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Sc;break;case 1:if(!t){this.destination=Sc;break}if("object"==typeof t){t instanceof Oe?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new My(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new My(this,t,e,i)}}[Tc](){return this}static create(t,e,i){const r=new Oe(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class My extends Oe{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;vi(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Sc&&(o=Object.create(e),vi(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Wn.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:i}=Wn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):qs(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;qs(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Wn.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(i){if(this.unsubscribe(),Wn.useDeprecatedSynchronousErrorHandling)throw i;qs(i)}}__tryOrSetError(t,e,i){if(!Wn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Wn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(qs(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Sa="function"==typeof Symbol&&Symbol.observable||"@@observable";function kc(n){return n}let Ee=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function(n,t,e){if(n){if(n instanceof Oe)return n;if(n[Tc])return n[Tc]()}return n||t||e?new Oe(n,t,e):new Oe(Sc)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||Wn.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Wn.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Wn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Oe?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Ay(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Sa](){return this}pipe(...e){return 0===e.length?this:function(n){return 0===n.length?kc:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Ay(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Ay(n){if(n||(n=Wn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Xr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Ty extends X{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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ky extends Oe{constructor(t){super(t),this.destination=t}}let H=(()=>{class n extends Ee{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Tc](){return new ky(this)}lift(e){const i=new Iy(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Xr;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;onew Iy(t,e),n})();class Iy extends H{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):X.EMPTY}}function Ks(n){return n&&"function"==typeof n.schedule}function ge(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new YI(n,t))}}class YI{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new KI(t,this.project,this.thisArg))}}class KI extends Oe{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const xy=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function Ry(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Hh=n=>{if(n&&"function"==typeof n[Sa])return(n=>t=>{const e=n[Sa]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(Oy(n))return xy(n);if(Ry(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,qs),t))(n);if(n&&"function"==typeof n[Ic])return(n=>t=>{const e=n[Ic]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Bh(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function jh(n,t){return new Ee(e=>{const i=new X;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function It(n,t){return t?function(n,t){if(null!=n){if(function(n){return n&&"function"==typeof n[Sa]}(n))return function(n,t){return new Ee(e=>{const i=new X;return i.add(t.schedule(()=>{const r=n[Sa]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(Ry(n))return function(n,t){return new Ee(e=>{const i=new X;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(Oy(n))return jh(n,t);if(function(n){return n&&"function"==typeof n[Ic]}(n)||"string"==typeof n)return function(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ee(e=>{const i=new X;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[Ic](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Ee?n:new Ee(Hh(n))}class Aa extends Oe{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 Ta extends Oe{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ka(n,t){if(t.closed)return;if(n instanceof Ee)return n.subscribe(t);let e;try{e=Hh(n)(t)}catch(i){t.error(i)}return e}function xt(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(xt((r,s)=>It(n(r,s)).pipe(ge((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new ox(n,e)))}class ox{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new ax(t,this.project,this.concurrent))}}class ax extends Ta{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,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 Ia(n=Number.POSITIVE_INFINITY){return xt(kc,n)}function Uh(n,t){return t?jh(n,t):new Ee(xy(n))}function Nt(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return Ks(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Ee?n[0]:Ia(t)(Uh(n,e))}function $h(){return function(t){return t.lift(new lx(t))}}class lx{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new cx(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class cx extends Oe{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:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Fy extends Ee{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 X,t.add(this.source.subscribe(new dx(this.getSubject(),this))),t.closed&&(this._connection=null,t=X.EMPTY)),t}refCount(){return $h()(this)}}const ux=(()=>{const n=Fy.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class dx extends ky{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 mx(){return new H}function Py(){return n=>$h()(function(n,t){return function(i){let r;r="function"==typeof n?n:function(){return n};const s=Object.create(i,ux);return s.source=i,s.subjectFactory=r,s}}(mx)(n))}function ke(n){for(let t in n)if(n[t]===ke)return t;throw Error("Could not find renamed property on target object.")}function zh(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function me(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(me).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Wh(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const gx=ke({__forward_ref__:ke});function Se(n){return n.__forward_ref__=Se,n.toString=function(){return me(this())},n}function q(n){return Ny(n)?n():n}function Ny(n){return"function"==typeof n&&n.hasOwnProperty(gx)&&n.__forward_ref__===Se}class mr extends Error{constructor(t,e){super(function(n,t){return`${n?`NG0${n}: `:""}${t}`}(t,e)),this.code=t}}function de(n){return"string"==typeof n?n:null==n?"":String(n)}function Kt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():de(n)}function xc(n,t){const e=t?` in ${t}`:"";throw new mr("201",`No provider for ${Kt(n)} found${e}`)}function un(n,t){null==n&&function(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ae(n){return{providers:n.providers||[],imports:n.imports||[]}}function zi(n){return Ly(n,Oc)||Ly(n,By)}function Ly(n,t){return n.hasOwnProperty(t)?n[t]:null}function Vy(n){return n&&(n.hasOwnProperty(qh)||n.hasOwnProperty(wx))?n[qh]:null}const Oc=ke({\u0275prov:ke}),qh=ke({\u0275inj:ke}),By=ke({ngInjectableDef:ke}),wx=ke({ngInjectorDef:ke});var Y=(()=>((Y=Y||{})[Y.Default=0]="Default",Y[Y.Host=1]="Host",Y[Y.Self=2]="Self",Y[Y.SkipSelf=4]="SkipSelf",Y[Y.Optional=8]="Optional",Y))();let Yh;function gr(n){const t=Yh;return Yh=n,t}function Hy(n,t,e){const i=zi(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Y.Optional?null:void 0!==t?t:void xc(me(n),"Injector")}function _r(n){return{toString:n}.toString()}var Mn=(()=>((Mn=Mn||{})[Mn.OnPush=0]="OnPush",Mn[Mn.Default=1]="Default",Mn))(),lt=(()=>((lt=lt||{})[lt.Emulated=0]="Emulated",lt[lt.None=2]="None",lt[lt.ShadowDom=3]="ShadowDom",lt))();const Mx="undefined"!=typeof globalThis&&globalThis,Sx="undefined"!=typeof window&&window,Ax="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Re=Mx||"undefined"!=typeof global&&global||Sx||Ax,Qs={},je=[],Rc=ke({\u0275cmp:ke}),Kh=ke({\u0275dir:ke}),Qh=ke({\u0275pipe:ke}),jy=ke({\u0275mod:ke}),Tx=ke({\u0275loc:ke}),Wi=ke({\u0275fac:ke}),xa=ke({__NG_ELEMENT_ID__:ke});let kx=0;function ne(n){return _r(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Mn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||je,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||lt.Emulated,id:"c",styles:n.styles||je,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=kx++,i.inputs=Wy(n.inputs,e),i.outputs=Wy(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Uy):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map($y):null,i})}function Uy(n){return Vt(n)||function(n){return n[Kh]||null}(n)}function $y(n){return function(n){return n[Qh]||null}(n)}const zy={};function he(n){return _r(()=>{const t={type:n.type,bootstrap:n.bootstrap||je,declarations:n.declarations||je,imports:n.imports||je,exports:n.exports||je,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(zy[n.id]=n.type),t})}function Wy(n,t){if(null==n)return Qs;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const M=ne;function Lt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function Vt(n){return n[Rc]||null}function Sn(n,t){const e=n[jy]||null;if(!e&&!0===t)throw new Error(`Type ${me(n)} does not have '\u0275mod' property.`);return e}function Ci(n){return Array.isArray(n)&&"object"==typeof n[1]}function qn(n){return Array.isArray(n)&&!0===n[1]}function Zh(n){return 0!=(8&n.flags)}function Lc(n){return 2==(2&n.flags)}function Vc(n){return 1==(1&n.flags)}function Yn(n){return null!==n.template}function Nx(n){return 0!=(512&n[2])}function is(n,t){return n.hasOwnProperty(Wi)?n[Wi]:null}class qy{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ie(){return Yy}function Yy(n){return n.type.prototype.ngOnChanges&&(n.setInput=Hx),Bx}function Bx(){const n=Qy(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Qs)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Hx(n,t,e,i){const r=Qy(n)||function(n,t){return n[Ky]=t}(n,{previous:Qs,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new qy(l&&l.currentValue,t,o===Qs),n[i]=t}Ie.ngInherit=!0;const Ky="__ngSimpleChanges__";function Qy(n){return n[Ky]||null}const Jy="http://www.w3.org/2000/svg";let nf;function tt(n){return!!n.listen}const Zy={createRenderer:(n,t)=>void 0!==nf?nf:"undefined"!=typeof document?document:void 0};function ct(n){for(;Array.isArray(n);)n=n[0];return n}function Bc(n,t){return ct(t[n])}function hn(n,t){return ct(t[n.index])}function sf(n,t){return n.data[t]}function to(n,t){return n[t]}function fn(n,t){const e=t[n];return Ci(e)?e:e[0]}function eb(n){return 4==(4&n[2])}function of(n){return 128==(128&n[2])}function br(n,t){return null==t?null:n[t]}function tb(n){n[18]=0}function af(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const se={lFrame:cb(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function nb(){return se.bindingsEnabled}function A(){return se.lFrame.lView}function Me(){return se.lFrame.tView}function Fe(n){return se.lFrame.contextLView=n,n[8]}function yt(){let n=ib();for(;null!==n&&64===n.type;)n=n.parent;return n}function ib(){return se.lFrame.currentTNode}function Di(n,t){const e=se.lFrame;e.currentTNode=n,e.isParent=t}function lf(){return se.lFrame.isParent}function cf(){se.lFrame.isParent=!1}function Hc(){return se.isInCheckNoChangesMode}function jc(n){se.isInCheckNoChangesMode=n}function Jt(){const n=se.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function no(){return se.lFrame.bindingIndex++}function Gi(n){const t=se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function tO(n,t){const e=se.lFrame;e.bindingIndex=e.bindingRootIndex=n,uf(t)}function uf(n){se.lFrame.currentDirectiveIndex=n}function df(n){const t=se.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function ob(){return se.lFrame.currentQueryIndex}function hf(n){se.lFrame.currentQueryIndex=n}function iO(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function ab(n,t,e){if(e&Y.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&Y.Host||(r=iO(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=se.lFrame=lb();return i.currentTNode=t,i.lView=n,!0}function Uc(n){const t=lb(),e=n[1];se.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function lb(){const n=se.lFrame,t=null===n?null:n.child;return null===t?cb(n):t}function cb(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function ub(){const n=se.lFrame;return se.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const db=ub;function $c(){const n=ub();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Xt(){return se.lFrame.selectedIndex}function vr(n){se.lFrame.selectedIndex=n}function Qe(){const n=se.lFrame;return sf(n.tView,n.selectedIndex)}function zc(){se.lFrame.currentNamespace=Jy}function Wc(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Na{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Yc(n,t,e){const i=tt(n);let r=0;for(;rt){o=s-1;break}}}for(;s>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let gf=!0;function Qc(n){const t=gf;return gf=n,t}let gO=0;function Va(n,t){const e=yf(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,_f(i.data,n),_f(t,null),_f(i.blueprint,null));const r=Jc(n,t),s=n.injectorIndex;if(gb(r)){const o=io(r),a=ro(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function _f(n,t){n.push(0,0,0,0,0,0,0,0,t)}function yf(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Jc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xc(n,t,e){!function(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(xa)&&(i=e[xa]),null==i&&(i=e[xa]=gO++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:bO:t}(e);if("function"==typeof s){if(!ab(t,n,i))return i&Y.Host?bb(r,e,i):vb(t,e,i,r);try{const o=s(i);if(null!=o||i&Y.Optional)return o;xc(e)}finally{db()}}else if("number"==typeof s){let o=null,a=yf(n,t),l=-1,c=i&Y.Host?t[16][6]:null;for((-1===a||i&Y.SkipSelf)&&(l=-1===a?Jc(n,t):t[a+8],-1!==l&&Eb(i,!1)?(o=t[1],a=io(l),t=ro(l,t)):a=-1);-1!==a;){const u=t[1];if(wb(s,a,u.data)){const d=vO(a,t,e,o,i,c);if(d!==Db)return d}l=t[a+8],-1!==l&&Eb(i,t[1].data[a+8]===c)&&wb(s,a,t)?(o=u,a=io(l),t=ro(l,t)):a=-1}}}return vb(t,e,i,r)}const Db={};function bO(){return new so(yt(),A())}function vO(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=Zc(a,o,e,null==i?Lc(a)&&gf:i!=o&&0!=(3&a.type),r&Y.Host&&s===a);return null!==u?Ba(t,o,u,a):Db}function Zc(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&m.type===e)return p}if(r){const p=o[l];if(p&&Yn(p)&&p.type===e)return l}return null}function Ba(n,t,e,i){let r=n[e];const s=t.data;if(function(n){return n instanceof Na}(r)){const o=r;o.resolving&&function(n,t){throw new mr("200",`Circular dependency in DI detected for ${n}`)}(Kt(s[e]));const a=Qc(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?gr(o.injectImpl):null;ab(n,i,Y.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=Yy(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&gr(l),Qc(a),o.resolving=!1,db()}}return r}function wb(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[Wi]||bf(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Wi]||bf(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function bf(n){return Ny(n)?()=>{const t=bf(q(n));return t&&t()}:is(n)}function kn(n){return function(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(ao)?l[ao]:Object.defineProperty(l,ao,{value:[]})[ao];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class I{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=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const EO=new I("AnalyzeForEntryComponents"),co=Function;function In(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Ei(e,t):t(e))}function tu(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function ss(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Dr(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Cf(n,t){const e=uo(n,t);if(e>=0)return n[1|e]}function uo(n,t){return function(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<t?r=s:i=s+1}return~(r< ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):me(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(FO,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ho]=null,n}const po=Wa(rs("Inject",n=>({token:n})),-1),ut=Wa(rs("Optional"),8),xn=Wa(rs("SkipSelf"),4);var mn=(()=>((mn=mn||{})[mn.Important=1]="Important",mn[mn.DashCase=2]="DashCase",mn))();const Nb="__ngContext__";function Ht(n,t){n[Nb]=t}function kf(n){const t=function(n){return n[Nb]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function xf(n,t){return undefined(n,t)}function Ya(n){const t=n[3];return qn(t)?t[3]:t}function Of(n){return $b(n[13])}function Rf(n){return $b(n[4])}function $b(n){for(;null!==n&&!qn(n);)n=n[4];return n}function go(n,t,e,i,r){if(null!=i){let s,o=!1;qn(i)?s=i:Ci(i)&&(o=!0,i=i[0]);const a=ct(i);0===n&&null!==e?null==r?Kb(t,e,a):as(t,e,a,r||null,!0):1===n&&null!==e?as(t,e,a,r||null,!0):2===n?function(n,t,e){const i=ou(n,t);i&&function(n,t,e,i){tt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function(n,t,e,i,r){const s=e[7];s!==ct(e)&&go(t,n,i,s,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const s=ss(n,10+t);!function(n,t){Ka(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Gb(n,t){if(!(256&t[2])){const e=t[11];tt(e)&&e.destroyNode&&Ka(n,t,e,3,null,null),function(n){let t=n[13];if(!t)return Lf(n[1],n);for(;t;){let e=null;if(Ci(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Ci(t)&&Lf(t[1],t),t=t[3];null===t&&(t=n),Ci(t)&&Lf(t[1],t),e=t&&t[4]}t=e}}(t)}}function Lf(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;sn,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return cu}())||void 0===t?void 0:t.createHTML(n))||n}class cs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class vR extends cs{getTypeName(){return"HTML"}}class CR extends cs{getTypeName(){return"Style"}}class DR extends cs{getTypeName(){return"Script"}}class wR extends cs{getTypeName(){return"URL"}}class ER extends cs{getTypeName(){return"ResourceURL"}}function gn(n){return n instanceof cs?n.changingThisBreaksApplicationSecurity:n}function Mi(n,t){const e=av(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function av(n){return n instanceof cs&&n.getTypeName()||null}class IR{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(ls(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class xR{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=ls(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=ls(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Qa(t.trim())).join(", ")}function Si(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Ja(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const uv=Si("area,br,col,hr,img,wbr"),dv=Si("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hv=Si("rp,rt"),Wf=Ja(uv,Ja(dv,Si("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")),Ja(hv,Si("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")),Ja(hv,dv)),Gf=Si("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qf=Si("srcset"),fv=Ja(Gf,qf,Si("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"),Si("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")),PR=Si("script,style,template");class NR{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Wf.hasOwnProperty(e))return this.sanitizedSomething=!0,!PR.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Wf.hasOwnProperty(e)&&!uv.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(pv(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const LR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VR=/([^\#-~ |!])/g;function pv(n){return n.replace(/&/g,"&").replace(LR,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(VR,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let du;function mv(n,t){let e=null;try{du=du||function(n){const t=new xR(n);return function(){try{return!!(new window.DOMParser).parseFromString(ls(""),"text/html")}catch(n){return!1}}()?new IR(t):t}(n);let i=t?String(t):"";e=du.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=du.getInertBodyElement(i)}while(i!==s);return ls((new NR).sanitizeChildren(Yf(e)||e))}finally{if(e){const i=Yf(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Yf(n){return"content"in n&&function(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Te=(()=>((Te=Te||{})[Te.NONE=0]="NONE",Te[Te.HTML=1]="HTML",Te[Te.STYLE=2]="STYLE",Te[Te.SCRIPT=3]="SCRIPT",Te[Te.URL=4]="URL",Te[Te.RESOURCE_URL=5]="RESOURCE_URL",Te))();function Kf(n){const t=function(){const n=A();return n&&n[12]}();return t?t.sanitize(Te.URL,n)||"":Mi(n,"URL")?gn(n):Qa(de(n))}function hu(n){return n.ngOriginalError}function QR(n,...t){n.error(...t)}class Kn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),r=function(n){return n&&n.ngErrorLogger||QR}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?function(n){return n.ngDebugContext}(t)||this._findContext(hu(t)):null}_findOriginalError(t){let e=t&&hu(t);for(;e&&hu(e);)e=hu(e);return e||null}}const Dv=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Re))();function Ai(n){return n instanceof Function?n():n}function Ev(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Mv="ng-template";function r1(n,t,e){let i=0;for(;is?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==Ev(p,c,0)||2&i&&c!==h){if(Qn(i))return!1;o=!0}}}}else{if(!o&&!Qn(i)&&!Qn(l))return!1;if(o&&Qn(l))continue;o=!1,i=l|1&i}}return Qn(i)||o}function Qn(n){return 0==(1&n)}function a1(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Qn(o)&&(t+=Tv(s,r),r=""),i=o,s=s||!Qn(i);e++}return""!==r&&(t+=Tv(s,r)),t}const le={};function w(n){kv(Me(),A(),Xt()+n,Hc())}function kv(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&Gc(t,s,e)}else{const s=n.preOrderHooks;null!==s&&qc(t,s,0,e)}vr(e)}function fu(n,t){return n<<17|t<<2}function Jn(n){return n>>17&32767}function Jf(n){return 2|n}function qi(n){return(131068&n)>>2}function Xf(n,t){return-131069&n|t<<2}function Zf(n){return 1|n}function Bv(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&kv(n,t,20,Hc()),e(i,r)}finally{vr(s)}}function jv(n,t,e){if(Zh(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Kv(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Qv(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function V1(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&dp(e)}}function dp(n){for(let i=Of(n);null!==i;i=Rf(i))for(let r=10;r0&&dp(s)}const e=n[1].components;if(null!==e)for(let i=0;i0&&dp(r)}}function W1(n,t){const e=fn(t,n),i=e[1];(function(n,t){for(let e=t.length;ePromise.resolve(null))();function tC(n){return n[7]||(n[7]=[])}function nC(n){return n.cleanup||(n.cleanup=[])}function iC(n,t,e){return(null===n||Yn(n))&&(e=function(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function rC(n,t){const e=n[9],i=e?e.get(Kn,null):null;i&&i.handleError(t)}function sC(n,t,e,i,r){for(let s=0;sthis.processProvider(a,t,e)),Ei([t],a=>this.processInjectorType(a,[],s)),this.records.set(Co,Do(void 0,this));const o=this.records.get(tl);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:me(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=$a,i=Y.Default){this.assertNotDestroyed();const r=fo(this),s=gr(void 0);try{if(!(i&Y.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function(n){return"function"==typeof n||"object"==typeof n&&n instanceof I}(t)&&zi(t);a=l&&this.injectableDefInScope(l)?Do(_p(t),nl):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Y.Self?aC():this.parent).get(t,e=i&Y.Optional&&e===$a?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ho]=o[ho]||[]).unshift(me(t)),r)throw o;return Ib(o,t,"R3InjectorError",this.source)}throw o}finally{gr(s),fo(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(me(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=q(t)))return!1;let r=Vy(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Vy(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Ei(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;dthis.processProvider(m,h,p||je))}}this.injectorDefTypes.add(o);const l=is(o)||(()=>new o);this.records.set(o,Do(l,nl));const c=r.providers;if(null!=c&&!a){const u=t;Ei(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=wo(t=q(t))?t:q(t&&t.provide);const s=function(n,t,e){return uC(n)?Do(void 0,n.useValue):Do(cC(n),nl)}(t);if(wo(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Do(void 0,nl,!0),o.factory=()=>os(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===nl&&(e.value=Z1,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=q(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function _p(n){const t=zi(n),e=null!==t?t.factory:is(n);if(null!==e)return e;if(n instanceof I)throw new Error(`Token ${me(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function(n){const t=n.length;if(t>0){const i=Dr(t,"?");throw new Error(`Can't resolve all parameters for ${me(n)}: (${i.join(", ")}).`)}const e=function(n){const t=n&&(n[Oc]||n[By]);if(t){const e=function(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Error("unreachable")}function cC(n,t,e){let i;if(wo(n)){const r=q(n);return is(r)||_p(r)}if(uC(n))i=()=>q(n.useValue);else if(function(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...os(n.deps||[]));else if(function(n){return!(!n||!n.useExisting)}(n))i=()=>v(q(n.useExisting));else{const r=q(n&&(n.useClass||n.provide));if(!function(n){return!!n.deps}(n))return is(r)||_p(r);i=()=>new r(...os(n.deps))}return i}function Do(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function uC(n){return null!==n&&"object"==typeof n&&Mf in n}function wo(n){return"function"==typeof n}const dC=function(n,t,e){return function(n,t=null,e=null,i){const r=lC(n,t,e,i);return r._resolveInjectorDefTypes(),r}({name:e},t,n,e)};let _e=(()=>{class n{static create(e,i){return Array.isArray(e)?dC(e,i,""):dC(e.providers,e.parent,e.name||"")}}return n.THROW_IF_NOT_FOUND=$a,n.NULL=new oC,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>v(Co)}),n.__NG_ELEMENT_ID__=-1,n})();function DF(n,t){Wc(kf(n)[1],yt())}function L(n){let t=function(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Yn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=wp(n.inputs),o.declaredInputs=wp(n.declaredInputs),o.outputs=wp(n.outputs);const a=r.hostBindings;a&&SF(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&EF(n,l),c&&MF(n,c),zh(n.inputs,r.inputs),zh(n.declaredInputs,r.declaredInputs),zh(n.outputs,r.outputs),Yn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Kc(r.hostAttrs,e=Kc(e,r.hostAttrs))}}(i)}function wp(n){return n===Qs?{}:n===je?[]:n}function EF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function MF(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function SF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let bu=null;function Eo(){if(!bu){const n=Re.Symbol;if(n&&n.iterator)bu=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ct(O[i.index])):i.index;if(tt(e)){let O=null;if(!a&&l&&(O=function(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==O)(O.__ngLastListenerFn__||O).__ngNextListenerFn__=s,O.__ngLastListenerFn__=s,p=!1;else{s=xp(i,t,d,s,!1);const re=e.listen(D,r,s);h.push(s,re),u&&u.push(r,T,C,C+1)}}else s=xp(i,t,d,s,!0),D.addEventListener(r,s,o),h.push(s),u&&u.push(r,T,C,o)}else s=xp(i,t,d,s,!1);const m=i.outputs;let b;if(p&&null!==m&&(b=m[r])){const y=b.length;if(y)for(let D=0;D0;)t=t[15],n--;return t}(n,se.lFrame.contextLView))[8]}(n)}function oP(n,t){let e=null;const i=function(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const Ct={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lD(n){return n.substring(Ct.key,Ct.keyEnd)}function cD(n,t){const e=Ct.textEnd;return e===t?-1:(t=Ct.keyEnd=function(n,t,e){for(;t32;)t++;return t}(n,Ct.key=t,e),Po(n,t,e))}function Po(n,t,e){for(;t=0;e=cD(t,e))pn(n,lD(t),!0)}function ei(n,t,e,i){const r=A(),s=Me(),o=Gi(2);s.firstUpdatePass&&mD(s,n,o,i),t!==le&&jt(r,o,t)&&_D(s,s.data[Xt()],r,r[11],n,r[o+1]=function(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=me(gn(n)))),n}(t,e),i,o)}function pD(n,t){return t>=n.expandoStartIndex}function mD(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Xt()],o=pD(n,e);bD(s,i)&&null===t&&!o&&(t=!1),t=function(n,t,e,i){const r=df(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=al(e=Rp(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Rp(r,n,t,e,i),null===s){let l=function(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==qi(i))return n[Jn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Rp(null,n,t,l[1],i),l=al(l,t.attrs,i),function(n,t,e,i){n[Jn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Jn(n[a+1]);n[i+1]=fu(h,a),0!==h&&(n[h+1]=Xf(n[h+1],i)),n[a+1]=function(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=fu(a,0),0!==a&&(n[a+1]=Xf(n[a+1],i)),a=i;else n[i+1]=fu(l,0),0===a?a=i:n[l+1]=Xf(n[l+1],i),l=i;c&&(n[i+1]=Jf(n[i+1])),aD(n,u,i,!0),aD(n,u,i,!1),function(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&uo(s,t)>=0&&(e[i+1]=Zf(e[i+1]))}(t,u,n,i,s),o=fu(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function Rp(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===le&&(h=d?je:void 0);let p=d?Cf(h,i):u===i?h:void 0;if(c&&!Eu(p)&&(p=Cf(l,i)),Eu(p)&&(a=p,o))return a;const m=n[r+1];r=o?Jn(m):qi(m)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Cf(l,i))}return a}function Eu(n){return void 0!==n}function bD(n,t){return 0!=(n.flags&(t?16:32))}function S(n,t=""){const e=A(),i=Me(),r=n+20,s=i.firstCreatePass?yo(i,r,1,t,null):i.data[r],o=e[r]=function(n,t){return tt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);au(i,e,o,s),Di(s,!1)}function Ve(n){return Ji("",n,""),Ve}function Ji(n,t,e){const i=A(),r=So(i,n,t,e);return r!==le&&Ki(i,Xt(),r),Ji}function TD(n,t,e){!function(n,t,e,i){const r=Me(),s=Gi(2);r.firstUpdatePass&&mD(r,null,s,i);const o=A();if(e!==le&&jt(o,s,e)){const a=r.data[Xt()];if(bD(a,i)&&!pD(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Wh(l,e||"")),kp(r,a,o,e,i)}else!function(n,t,e,i,r,s,o,a){r===le&&(r=je);let l=0,c=0,u=0((P=P||{})[P.LocaleId=0]="LocaleId",P[P.DayPeriodsFormat=1]="DayPeriodsFormat",P[P.DayPeriodsStandalone=2]="DayPeriodsStandalone",P[P.DaysFormat=3]="DaysFormat",P[P.DaysStandalone=4]="DaysStandalone",P[P.MonthsFormat=5]="MonthsFormat",P[P.MonthsStandalone=6]="MonthsStandalone",P[P.Eras=7]="Eras",P[P.FirstDayOfWeek=8]="FirstDayOfWeek",P[P.WeekendRange=9]="WeekendRange",P[P.DateFormat=10]="DateFormat",P[P.TimeFormat=11]="TimeFormat",P[P.DateTimeFormat=12]="DateTimeFormat",P[P.NumberSymbols=13]="NumberSymbols",P[P.NumberFormats=14]="NumberFormats",P[P.CurrencyCode=15]="CurrencyCode",P[P.CurrencySymbol=16]="CurrencySymbol",P[P.CurrencyName=17]="CurrencyName",P[P.Currencies=18]="Currencies",P[P.Directionality=19]="Directionality",P[P.PluralCase=20]="PluralCase",P[P.ExtraData=21]="ExtraData",P))();const Su="en-US";let HD=Su;function Fp(n){un(n,"Expected localeId to be defined"),"string"==typeof n&&(HD=n.toLowerCase().replace(/_/g,"-"))}function Lp(n,t,e,i,r){if(n=q(n),Array.isArray(n))for(let s=0;s>20;if(wo(n)||!n.multi){const p=new Na(l,r,f),m=Bp(a,t,r?u:u+h,d);-1===m?(Xc(Va(c,o),s,a),Vp(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),o.push(p)):(e[m]=p,o[m]=p)}else{const p=Bp(a,t,u+h,d),m=Bp(a,t,u,u+h),b=p>=0&&e[p],y=m>=0&&e[m];if(r&&!y||!r&&!b){Xc(Va(c,o),s,a);const D=function(n,t,e,i,r){const s=new Na(n,e,f);return s.multi=[],s.index=t,s.componentProviders=0,uw(s,r,i&&!e),s}(r?HN:BN,e.length,r,i,l);!r&&y&&(e[m].providerFactory=D),Vp(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(D),o.push(D)}else Vp(s,n,p>-1?p:m,uw(e[r?m:p],l,!r&&i));!r&&i&&y&&e[m].componentProviders++}}}function Vp(n,t,e,i){const r=wo(t);if(r||function(n){return!!n.useClass}(t)){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const a=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,o]):a[l+1].push(i,o)}else a.push(e,o)}}}function uw(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Bp(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function(n,t,e){const i=Me();if(i.firstCreatePass){const r=Yn(n);Lp(e,i.data,i.blueprint,r,!0),Lp(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class dw{}const fw="ngComponent";class $N{resolveComponentFactory(t){throw function(n){const t=Error(`No component factory found for ${me(n)}. Did you add it to @NgModule.entryComponents?`);return t[fw]=n,t}(t)}}let ii=(()=>{class n{}return n.NULL=new $N,n})();function xu(...n){}function Vo(n,t){return new N(hn(n,t))}const GN=function(){return Vo(yt(),A())};let N=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=GN,n})();function pw(n){return n instanceof N?n.nativeElement:n}class ms{}let Xi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>YN(),n})();const YN=function(){const n=A(),e=fn(yt().index,n);return function(n){return n[11]}(Ci(e)?e:n)};let Up=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class Mr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const mw=new Mr("12.2.17");class gw{constructor(){}supports(t){return rl(t)}create(t){return new XN(t)}}const JN=(n,t)=>t;class XN{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||JN}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),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,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new ZN(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new _w),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._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 _w),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 ZN{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 eL{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class _w{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new eL,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.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 yw(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new nL(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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(i=>e(t[i],i))}}class nL{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 vw(){return new Bo([new gw])}let Bo=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||vw()),deps:[[n,new xn,new ut]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'`)}}return n.\u0275prov=x({token:n,providedIn:"root",factory:vw}),n})();function Cw(){return new Ho([new bw])}let Ho=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Cw()),deps:[[n,new xn,new ut]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Cw}),n})();function Ou(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(ct(s)),qn(s))for(let a=10;a-1&&(Nf(t,i),ss(e,i))}this._attachedToViewContainer=!1}Gb(this._lView[1],this._lView)}onDestroy(t){Wv(this._lView[1],this._lView,null,t)}markForCheck(){hp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){pp(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(n,t,e){jc(!0);try{pp(n,t,e)}finally{jc(!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(){this._appRef=null,function(n,t){Ka(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class rL extends hl{constructor(t){super(t),this._view=t}detectChanges(){eC(this._view)}checkNoChanges(){!function(n){jc(!0);try{eC(n)}finally{jc(!1)}}(this._view)}get context(){return null}}const oL=function(n){return function(n,t,e){if(Lc(n)&&!e){const i=fn(n.index,t);return new hl(i,i)}return 47&n.type?new hl(t[16],t):null}(yt(),A(),16==(16&n))};let Be=(()=>{class n{}return n.__NG_ELEMENT_ID__=oL,n})();const cL=[new bw],dL=new Bo([new gw]),hL=new Ho(cL),pL=function(){return Ru(yt(),A())};let dt=(()=>{class n{}return n.__NG_ELEMENT_ID__=pL,n})();const mL=dt,gL=class extends mL{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Za(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),el(e,i,t),new hl(i)}};function Ru(n,t){return 4&n.type?new gL(t,n,Vo(n,t)):null}class Ri{}class Dw{}const bL=function(){return Mw(yt(),A())};let it=(()=>{class n{}return n.__NG_ELEMENT_ID__=bL,n})();const CL=it,ww=class extends CL{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new so(this._hostTNode,this._hostLView)}get parentInjector(){const t=Jc(this._hostTNode,this._hostLView);if(gb(t)){const e=ro(t,this._hostLView),i=io(t);return new so(e[1].data[i+8],e)}return new so(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ew(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const l=o.get(Ri,null);l&&(s=l)}const a=t.create(o,r,void 0,s);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,r=i[1];if(function(n){return qn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new ww(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),iDv});class qw extends dw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function(n){return n.map(h1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Gw(this.componentDef.inputs)}get outputs(){return Gw(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function(n,t){return{get:(e,i,r)=>{const s=n.get(e,zo,r);return s!==zo||i===zo?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(ms,Zy),a=s.get(Up,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(n,t,e){if(tt(n))return n.selectRootElement(t,e===lt.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Pf(o.createRenderer(null,this.componentDef),c,function(n){const t=n.toLowerCase();return"svg"===t?Jy:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,h=function(n,t){return{components:[],scheduler:n||Dv,clean:Q1,playerHandler:t||null,flags:0}}(),p=gu(0,null,null,1,0,null,null,null,null,null),m=Za(null,p,h,d,null,null,o,l,a,s);let b,y;Uc(m);try{const D=function(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=yo(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(yu(l,c,!0),null!==n&&(Yc(r,n,c),null!==l.classes&&Uf(r,n,l.classes),null!==l.styles&&iv(r,n,l.styles)));const u=i.createRenderer(n,t),d=Za(e,Uv(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Xc(Va(l,e),o,t.type),Qv(o,l),Jv(l,e.length,1)),_u(e,d),e[20]=d}(u,this.componentDef,m,o,l);if(u)if(i)Yc(l,u,["ng-version",mw.full]);else{const{attrs:C,classes:T}=function(n){const t=[],e=[];let i=1,r=2;for(;i0&&Uf(l,u,T.join(" "))}if(y=sf(p,20),void 0!==e){const C=y.projection=[];for(let T=0;Tl(o,t)),t.contentQueries){const l=yt();t.contentQueries(1,o,l.directiveStart)}const a=yt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(vr(a.index),Yv(e[1],a,0,a.directiveStart,a.directiveEnd,t),Kv(t,o)),o}(D,this.componentDef,m,h,[DF]),el(p,m,null)}finally{$c()}return new vV(this.componentType,b,Vo(y,m),m,y)}}class vV extends class{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new rL(r),this.componentType=t}get injector(){return new so(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Wo=new Map;class wV extends Ri{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ww(this);const i=Sn(t),r=function(n){return n[Tx]||null}(t);r&&Fp(r),this._bootstrapComponents=Ai(i.bootstrap),this._r3Injector=lC(t,e,[{provide:Ri,useValue:this},{provide:ii,useValue:this.componentFactoryResolver}],me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=_e.THROW_IF_NOT_FOUND,i=Y.Default){return t===_e||t===Ri||t===Co?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class nm extends Dw{constructor(t){super(),this.moduleType=t,null!==Sn(t)&&function(n){const t=new Set;!function e(i){const r=Sn(i,!0),s=r.id;null!==s&&(function(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${me(t)} vs ${me(t.name)}`)}(s,Wo.get(s),i),Wo.set(s,i));const o=Ai(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new wV(this.moduleType,t)}}function Ar(n,t,e){const i=Jt()+n,r=A();return r[i]===le?ki(r,i,e?t.call(e):t()):function(n,t){return n[t]}(r,i)}function vl(n,t,e,i){return Jw(A(),Jt(),n,t,e,i)}function im(n,t,e,i,r){return Xw(A(),Jt(),n,t,e,i,r)}function Qw(n,t,e,i,r,s){return function(n,t,e,i,r,s,o,a){const l=t+e;return function(n,t,e,i,r){const s=us(n,t,e,i);return jt(n,t+2,r)||s}(n,l,r,s,o)?ki(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):Cl(n,l+3)}(A(),Jt(),n,t,e,i,r,s)}function Cl(n,t){const e=n[t];return e===le?void 0:e}function Jw(n,t,e,i,r,s){const o=t+e;return jt(n,o,r)?ki(n,o+1,s?i.call(s,r):i(r)):Cl(n,o+1)}function Xw(n,t,e,i,r,s,o){const a=t+e;return us(n,a,r,s)?ki(n,a+2,o?i.call(o,r,s):i(r,s)):Cl(n,a+2)}function Tr(n,t){const e=Me();let i;const r=n+20;e.firstCreatePass?(i=function(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}throw new mr("302",`The pipe '${n}' could not be found!`)}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=is(i.type)),o=gr(f);try{const a=Qc(!1),l=s();return Qc(a),function(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,A(),r,l),l}finally{gr(o)}}function ys(n,t,e,i){const r=n+20,s=A(),o=to(s,r);return wl(s,Dl(s,r)?Xw(s,Jt(),t,o.transform,e,i,o):o.transform(e,i))}function Dl(n,t){return n[1].data[t].pure}function wl(n,t){return Zn.isWrapped(t)&&(t=Zn.unwrap(t),n[se.lFrame.bindingIndex]=le),t}function rm(n){return t=>{setTimeout(n,void 0,t)}}const R=class extends H{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=rm(l),a&&(a=rm(a)),c&&(c=rm(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof X&&t.add(u),u}};function PV(){return this._results[Eo()]()}class kr{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=Eo(),i=kr.prototype;i[e]||(i[e]=PV)}get changes(){return this._changes||(this._changes=new R)}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 i=this;i.dirty=!1;const r=In(t);(this._changesDetected=!function(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=xu,this.reject=xu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(v(Ml,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Sl=new I("AppId"),_2={provide:Sl,useFactory:function(){return`${mm()}${mm()}${mm()}`},deps:[]};function mm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const SE=new I("Platform Initializer"),Yo=new I("Platform ID"),AE=new I("appBootstrapListener");let Hu=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Zi=new I("LocaleId"),TE=new I("DefaultCurrencyCode");class b2{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const gm=function(n){return new nm(n)},v2=gm,C2=function(n){return Promise.resolve(gm(n))},kE=function(n){const t=gm(n),i=Ai(Sn(n).declarations).reduce((r,s)=>{const o=Vt(s);return o&&r.push(new qw(o)),r},[]);return new b2(t,i)},D2=kE,w2=function(n){return Promise.resolve(kE(n))};let bs=(()=>{class n{constructor(){this.compileModuleSync=v2,this.compileModuleAsync=C2,this.compileModuleAndAllComponentsSync=D2,this.compileModuleAndAllComponentsAsync=w2}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const S2=(()=>Promise.resolve(0))();function _m(n){"undefined"==typeof Zone?S2.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class z{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new R(!1),this.onMicrotaskEmpty=new R(!1),this.onStable=new R(!1),this.onError=new R(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let n=Re.requestAnimationFrame,t=Re.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(n){const t=()=>{!function(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Re,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,bm(n),n.isCheckStableRunning=!0,ym(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),bm(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return IE(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),xE(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return IE(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),xE(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,bm(n),ym(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!z.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(z.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,T2,xu,xu);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const T2={};function ym(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function bm(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function IE(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function xE(n){n._nesting--,ym(n)}class x2{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new R,this.onMicrotaskEmpty=new R,this.onStable=new R,this.onError=new R}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let vm=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{z.assertNotInAngularZone(),_m(()=>{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())_m(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(v(z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),OE=(()=>{class n{constructor(){this._applications=new Map,Cm.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Cm.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class O2{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Cm=new O2,RE=!0,FE=!1;function Dm(){return FE=!0,RE}let oi;const PE=new I("AllowMultipleToken");class wm{constructor(t,e){this.name=t,this.token=e}}function NE(n,t,e=[]){const i=`Platform: ${t}`,r=new I(i);return(s=[])=>{let o=LE();if(!o||o.injector.get(PE,!1))if(n)n(e.concat(s).concat({provide:r,useValue:!0}));else{const a=e.concat(s).concat({provide:r,useValue:!0},{provide:tl,useValue:"platform"});!function(n){if(oi&&!oi.destroyed&&!oi.injector.get(PE,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");oi=n.get(VE);const t=n.get(SE,null);t&&t.forEach(e=>e())}(_e.create({providers:a,name:i}))}return function(n){const t=LE();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function LE(){return oi&&!oi.destroyed?oi:null}let VE=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function(n,t){let e;return e="noop"===n?new x2:("zone.js"===n?void 0:n)||new z({enableLongStackTrace:Dm(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:z,useValue:a}];return a.run(()=>{const c=_e.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Kn,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:p=>{d.handleError(p)}});u.onDestroy(()=>{Em(this._modules,u),h.unsubscribe()})}),function(n,t,e){try{const i=e();return ol(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(qo);return h.runInitializers(),h.donePromise.then(()=>(Fp(u.injector.get(Zi,Su)||Su),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=BE({},i);return function(n,t,e){const i=new nm(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ir);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(v(_e))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function BE(n,t){return Array.isArray(t)?t.reduce(BE,n):Object.assign(Object.assign({},n),t)}let Ir=(()=>{class n{constructor(e,i,r,s,o){this._zone=e,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,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 a=new Ee(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Ee(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{z.assertNotInAngularZone(),_m(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=Nt(a,l.pipe(Py()))}bootstrap(e,i){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 r;r=e instanceof dw?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ri),a=r.create(_e.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(vm,null),u=c&&a.injector.get(OE);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Em(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Em(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(AE,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(v(z),v(_e),v(Kn),v(ii),v(qo))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Em(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}class Uu{}class q2{}const Y2={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let K2=(()=>{class n{constructor(e,i){this._compiler=e,this._config=i||Y2}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[i,r]=e.split("#");return void 0===r&&(r="default"),Ma(255)(i).then(s=>s[r]).then(s=>$E(s,i,r)).then(s=>this._compiler.compileModuleAsync(s))}loadFactory(e){let[i,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),Ma(255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(o=>o[r+s]).then(o=>$E(o,i,r))}}return n.\u0275fac=function(e){return new(e||n)(v(bs),v(q2,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function $E(n,t,e){if(!n)throw new Error(`Cannot find '${e}' in '${t}'`);return n}const sB=NE(null,"core",[{provide:Yo,useValue:"unknown"},{provide:VE,deps:[_e]},{provide:OE,deps:[]},{provide:Hu,deps:[]}]),uB=[{provide:Ir,useClass:Ir,deps:[z,_e,Kn,ii,qo]},{provide:_V,deps:[z],useFactory:function(n){let t=[];return n.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:qo,useClass:qo,deps:[[new ut,Ml]]},{provide:bs,useClass:bs,deps:[]},_2,{provide:Bo,useFactory:function(){return dL},deps:[]},{provide:Ho,useFactory:function(){return hL},deps:[]},{provide:Zi,useFactory:function(n){return Fp(n=n||"undefined"!=typeof $localize&&$localize.locale||Su),n},deps:[[new po(Zi),new ut,new xn]]},{provide:TE,useValue:"USD"}];let hB=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(v(Ir))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:uB}),n})(),Xu=null;function Fi(){return Xu}const W=new I("DocumentToken");let Ds=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:dH,token:n,providedIn:"platform"}),n})();function dH(){return v(fM)}const hH=new I("Location Initialized");let fM=(()=>{class n extends Ds{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fi().getBaseHref(this._doc)}onPopState(e){const i=Fi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Fi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){pM()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){pM()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:fH,token:n,providedIn:"platform"}),n})();function pM(){return!!window.history.pushState}function fH(){return new fM(v(W))}function Bm(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function mM(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function tr(n){return n&&"?"!==n[0]?"?"+n:n}let Jo=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:pH,token:n,providedIn:"root"}),n})();function pH(n){const t=v(W).location;return new gM(v(Ds),t&&t.origin||"")}const Hm=new I("appBaseHref");let gM=(()=>{class n extends Jo{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Bm(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+tr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+tr(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+tr(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(Ds),v(Hm,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),mH=(()=>{class n extends Jo{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Bm(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+tr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+tr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(Ds),v(Hm,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Xo=(()=>{class n{constructor(e,i){this._subject=new R,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=mM(_M(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+tr(i))}normalize(e){return n.stripTrailingSlash(function(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,_M(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+tr(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+tr(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.\u0275fac=function(e){return new(e||n)(v(Jo),v(Ds))},n.normalizeQueryParams=tr,n.joinWithSlash=Bm,n.stripTrailingSlash=mM,n.\u0275prov=x({factory:gH,token:n,providedIn:"root"}),n})();function gH(){return new Xo(v(Jo),v(Ds))}function _M(n){return n.replace(/\/index.html$/,"")}const yM={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var on=(()=>((on=on||{})[on.Decimal=0]="Decimal",on[on.Percent=1]="Percent",on[on.Currency=2]="Currency",on[on.Scientific=3]="Scientific",on))(),ht=(()=>((ht=ht||{})[ht.Zero=0]="Zero",ht[ht.One=1]="One",ht[ht.Two=2]="Two",ht[ht.Few=3]="Few",ht[ht.Many=4]="Many",ht[ht.Other=5]="Other",ht))(),ot=(()=>((ot=ot||{})[ot.Format=0]="Format",ot[ot.Standalone=1]="Standalone",ot))(),De=(()=>((De=De||{})[De.Narrow=0]="Narrow",De[De.Abbreviated=1]="Abbreviated",De[De.Wide=2]="Wide",De[De.Short=3]="Short",De))(),Ze=(()=>((Ze=Ze||{})[Ze.Short=0]="Short",Ze[Ze.Medium=1]="Medium",Ze[Ze.Long=2]="Long",Ze[Ze.Full=3]="Full",Ze))(),ee=(()=>((ee=ee||{})[ee.Decimal=0]="Decimal",ee[ee.Group=1]="Group",ee[ee.List=2]="List",ee[ee.PercentSign=3]="PercentSign",ee[ee.PlusSign=4]="PlusSign",ee[ee.MinusSign=5]="MinusSign",ee[ee.Exponential=6]="Exponential",ee[ee.SuperscriptingExponent=7]="SuperscriptingExponent",ee[ee.PerMille=8]="PerMille",ee[ee.Infinity=9]="Infinity",ee[ee.NaN=10]="NaN",ee[ee.TimeSeparator=11]="TimeSeparator",ee[ee.CurrencyDecimal=12]="CurrencyDecimal",ee[ee.CurrencyGroup=13]="CurrencyGroup",ee))();function Zu(n,t){return Ln(en(n)[P.DateFormat],t)}function ed(n,t){return Ln(en(n)[P.TimeFormat],t)}function td(n,t){return Ln(en(n)[P.DateTimeFormat],t)}function Nn(n,t){const e=en(n),i=e[P.NumberSymbols][t];if(void 0===i){if(t===ee.CurrencyDecimal)return e[P.NumberSymbols][ee.Decimal];if(t===ee.CurrencyGroup)return e[P.NumberSymbols][ee.Group]}return i}const EH=function(n){return en(n)[P.PluralCase]};function bM(n){if(!n[P.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[P.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ln(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function Um(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const IH=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xl={},xH=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Dt=(()=>((Dt=Dt||{})[Dt.Short=0]="Short",Dt[Dt.ShortGMT=1]="ShortGMT",Dt[Dt.Long=2]="Long",Dt[Dt.Extended=3]="Extended",Dt))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),pe=(()=>((pe=pe||{})[pe.DayPeriods=0]="DayPeriods",pe[pe.Days=1]="Days",pe[pe.Months=2]="Months",pe[pe.Eras=3]="Eras",pe))();function OH(n,t,e,i){let r=function(n){if(DM(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,s=1,o=1]=n.split("-").map(a=>+a);return nd(r,s-1,o)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(IH))return function(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,s=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(t,o,a,l,c),t}(i)}const t=new Date(n);if(!DM(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=nr(e,t)||t;let a,o=[];for(;t;){if(a=xH.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const u=o.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=CM(i,l),r=function(n,t,e){const r=n.getTimezoneOffset();return function(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,-1*(CM(t,r)-r))}(r,i));let c="";return o.forEach(u=>{const d=function(n){if(zm[n])return zm[n];let t;switch(n){case"G":case"GG":case"GGG":t=Ge(pe.Eras,De.Abbreviated);break;case"GGGG":t=Ge(pe.Eras,De.Wide);break;case"GGGGG":t=Ge(pe.Eras,De.Narrow);break;case"y":t=ft(te.FullYear,1,0,!1,!0);break;case"yy":t=ft(te.FullYear,2,0,!0,!0);break;case"yyy":t=ft(te.FullYear,3,0,!1,!0);break;case"yyyy":t=ft(te.FullYear,4,0,!1,!0);break;case"Y":t=od(1);break;case"YY":t=od(2,!0);break;case"YYY":t=od(3);break;case"YYYY":t=od(4);break;case"M":case"L":t=ft(te.Month,1,1);break;case"MM":case"LL":t=ft(te.Month,2,1);break;case"MMM":t=Ge(pe.Months,De.Abbreviated);break;case"MMMM":t=Ge(pe.Months,De.Wide);break;case"MMMMM":t=Ge(pe.Months,De.Narrow);break;case"LLL":t=Ge(pe.Months,De.Abbreviated,ot.Standalone);break;case"LLLL":t=Ge(pe.Months,De.Wide,ot.Standalone);break;case"LLLLL":t=Ge(pe.Months,De.Narrow,ot.Standalone);break;case"w":t=$m(1);break;case"ww":t=$m(2);break;case"W":t=$m(1,!0);break;case"d":t=ft(te.Date,1);break;case"dd":t=ft(te.Date,2);break;case"c":case"cc":t=ft(te.Day,1);break;case"ccc":t=Ge(pe.Days,De.Abbreviated,ot.Standalone);break;case"cccc":t=Ge(pe.Days,De.Wide,ot.Standalone);break;case"ccccc":t=Ge(pe.Days,De.Narrow,ot.Standalone);break;case"cccccc":t=Ge(pe.Days,De.Short,ot.Standalone);break;case"E":case"EE":case"EEE":t=Ge(pe.Days,De.Abbreviated);break;case"EEEE":t=Ge(pe.Days,De.Wide);break;case"EEEEE":t=Ge(pe.Days,De.Narrow);break;case"EEEEEE":t=Ge(pe.Days,De.Short);break;case"a":case"aa":case"aaa":t=Ge(pe.DayPeriods,De.Abbreviated);break;case"aaaa":t=Ge(pe.DayPeriods,De.Wide);break;case"aaaaa":t=Ge(pe.DayPeriods,De.Narrow);break;case"b":case"bb":case"bbb":t=Ge(pe.DayPeriods,De.Abbreviated,ot.Standalone,!0);break;case"bbbb":t=Ge(pe.DayPeriods,De.Wide,ot.Standalone,!0);break;case"bbbbb":t=Ge(pe.DayPeriods,De.Narrow,ot.Standalone,!0);break;case"B":case"BB":case"BBB":t=Ge(pe.DayPeriods,De.Abbreviated,ot.Format,!0);break;case"BBBB":t=Ge(pe.DayPeriods,De.Wide,ot.Format,!0);break;case"BBBBB":t=Ge(pe.DayPeriods,De.Narrow,ot.Format,!0);break;case"h":t=ft(te.Hours,1,-12);break;case"hh":t=ft(te.Hours,2,-12);break;case"H":t=ft(te.Hours,1);break;case"HH":t=ft(te.Hours,2);break;case"m":t=ft(te.Minutes,1);break;case"mm":t=ft(te.Minutes,2);break;case"s":t=ft(te.Seconds,1);break;case"ss":t=ft(te.Seconds,2);break;case"S":t=ft(te.FractionalSeconds,1);break;case"SS":t=ft(te.FractionalSeconds,2);break;case"SSS":t=ft(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=rd(Dt.Short);break;case"ZZZZZ":t=rd(Dt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=rd(Dt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=rd(Dt.Long);break;default:return null}return zm[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function nd(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function nr(n,t){const e=function(n){return en(n)[P.LocaleId]}(n);if(xl[e]=xl[e]||{},xl[e][t])return xl[e][t];let i="";switch(t){case"shortDate":i=Zu(n,Ze.Short);break;case"mediumDate":i=Zu(n,Ze.Medium);break;case"longDate":i=Zu(n,Ze.Long);break;case"fullDate":i=Zu(n,Ze.Full);break;case"shortTime":i=ed(n,Ze.Short);break;case"mediumTime":i=ed(n,Ze.Medium);break;case"longTime":i=ed(n,Ze.Long);break;case"fullTime":i=ed(n,Ze.Full);break;case"short":const r=nr(n,"shortTime"),s=nr(n,"shortDate");i=id(td(n,Ze.Short),[r,s]);break;case"medium":const o=nr(n,"mediumTime"),a=nr(n,"mediumDate");i=id(td(n,Ze.Medium),[o,a]);break;case"long":const l=nr(n,"longTime"),c=nr(n,"longDate");i=id(td(n,Ze.Long),[l,c]);break;case"full":const u=nr(n,"fullTime"),d=nr(n,"fullDate");i=id(td(n,Ze.Full),[u,d])}return i&&(xl[e][t]=i),i}function id(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ci(n,t,e="-",i,r){let s="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,s=e));let o=String(n);for(;o.length0||a>-e)&&(a+=e),n===te.Hours)0===a&&-12===e&&(a=12);else if(n===te.FractionalSeconds)return function(n,t){return ci(n,3).substr(0,t)}(a,t);const l=Nn(o,ee.MinusSign);return ci(a,t,l,i,r)}}function Ge(n,t,e=ot.Format,i=!1){return function(r,s){return function(n,t,e,i,r,s){switch(e){case pe.Months:return function(n,t,e){const i=en(n),s=Ln([i[P.MonthsFormat],i[P.MonthsStandalone]],t);return Ln(s,e)}(t,r,i)[n.getMonth()];case pe.Days:return function(n,t,e){const i=en(n),s=Ln([i[P.DaysFormat],i[P.DaysStandalone]],t);return Ln(s,e)}(t,r,i)[n.getDay()];case pe.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const c=function(n){const t=en(n);return bM(t),(t[P.ExtraData][2]||[]).map(i=>"string"==typeof i?Um(i):[Um(i[0]),Um(i[1])])}(t),u=function(n,t,e){const i=en(n);bM(i);const s=Ln([i[P.ExtraData][0],i[P.ExtraData][1]],t)||[];return Ln(s,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[p,m]=h,b=o>=p.hours&&a>=p.minutes,y=o0?Math.floor(r/60):Math.ceil(r/60);switch(n){case Dt.Short:return(r>=0?"+":"")+ci(o,2,s)+ci(Math.abs(r%60),2,s);case Dt.ShortGMT:return"GMT"+(r>=0?"+":"")+ci(o,1,s);case Dt.Long:return"GMT"+(r>=0?"+":"")+ci(o,2,s)+":"+ci(Math.abs(r%60),2,s);case Dt.Extended:return 0===i?"Z":(r>=0?"+":"")+ci(o,2,s)+":"+ci(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}function vM(n){return nd(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function $m(n,t=!1){return function(e,i){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=vM(e),o=function(n){const t=nd(n,0,1).getDay();return nd(n,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return ci(r,n,Nn(i,ee.MinusSign))}}function od(n,t=!1){return function(e,i){return ci(vM(e).getFullYear(),n,Nn(i,ee.MinusSign),t)}}const zm={};function CM(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function DM(n){return n instanceof Date&&!isNaN(n.valueOf())}const $H=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qH(n,t,e,i,r){const o=function(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";e.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(r<0&&(r=s),r+=+t.slice(s+1),t=t.substring(0,s)):r<0&&(r=t.length),s=0;"0"===t.charAt(s);s++);if(s===(a=t.length))i=[0],r=1;else{for(a--;"0"===t.charAt(a);)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(t.charAt(s))}return r>22&&(i=i.splice(0,21),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(n);o&&(c=function(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(c));let u=t.minInt,d=t.minFrac,h=t.maxFrac;if(s){const C=s.match($H);if(null===C)throw new Error(`${s} is not a valid digit info`);const T=C[1],O=C[3],re=C[5];null!=T&&(u=Ym(T)),null!=O&&(d=Ym(O)),null!=re?h=Ym(re):null!=O&&d>h&&(h=d)}!function(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,r=i.length-n.integerLen;const s=Math.min(Math.max(t,r),e);let o=s+n.integerLen,a=i[o];if(o>0){i.splice(Math.max(n.integerLen,o));for(let d=o;d=5)if(o-1<0){for(let d=0;d>o;d--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[o-1]++;for(;r=c?m.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),n.integerLen++)}(c,d,h);let p=c.digits,m=c.integerLen;const b=c.exponent;let y=[];for(l=p.every(C=>!C);m0?y=p.splice(m,p.length):(y=p,p=[0]);const D=[];for(p.length>=t.lgSize&&D.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)D.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&D.unshift(p.join("")),a=D.join(Nn(e,i)),y.length&&(a+=Nn(e,r)+y.join("")),b&&(a+=Nn(e,ee.Exponential)+"+"+b)}else a=Nn(e,ee.Infinity);return a=n<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(n,o,t,ee.CurrencyGroup,ee.CurrencyDecimal,r).replace("\xa4",e).replace("\xa4","").trim()}function Ym(n){const t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}class ld{}let ZH=(()=>{class n extends ld{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(EH(i||this.locale)(e)){case ht.Zero:return"zero";case ht.One:return"one";case ht.Two:return"two";case ht.Few:return"few";case ht.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(v(Zi))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function SM(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Zo=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(rl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${me(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(f(Bo),f(Ho),f(N),f(Xi))},n.\u0275dir=M({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class t3{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ir=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((r,s,o)=>{if(null==r.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new t3(null,this._ngForOf,-1,-1),null===o?void 0:o),l=new AM(r,a);i.push(l)}else if(null==o)this._viewContainer.remove(null===s?void 0:s);else if(null!==s){const a=this._viewContainer.get(s);this._viewContainer.move(a,o);const l=new AM(r,a);i.push(l)}});for(let r=0;r{this._viewContainer.get(r.currentIndex).context.$implicit=r.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt),f(Bo))},n.\u0275dir=M({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();class AM{constructor(t,e){this.record=t,this.view=e}}let Vn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new i3,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){TM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){TM("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt))},n.\u0275dir=M({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class i3{constructor(){this.$implicit=null,this.ngIf=null}}function TM(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${me(t)}'.`)}class Km{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let ea=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Km(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt),f(ea,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),kM=(()=>{class n{constructor(e,i,r){r._addDefault(new Km(e,i))}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt),f(ea,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),xM=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(f(it))},n.\u0275dir=M({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Ie]}),n})();function ui(n,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${me(n)}'`)}let OM=(()=>{class n{constructor(e){this.locale=e}transform(e,i="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return OH(e,i,s||this.locale,r)}catch(o){throw ui(n,o.message)}}}return n.\u0275fac=function(e){return new(e||n)(f(Zi,16))},n.\u0275pipe=Lt({name:"date",type:n,pure:!0}),n})(),FM=(()=>{class n{constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",s,o){if(!function(n){return!(null==n||""===n||n!=n)}(e))return null;o=o||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let a=i||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?function(n,t,e="en"){const i=function(n){return en(n)[P.Currencies]}(e)[n]||yM[n]||[],r=i[1];return"narrow"===t&&"string"==typeof r?r:i[0]||n}(a,"symbol"===r?"wide":"narrow",o):r);try{return qH(function(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}(e),o,a,i,s)}catch(l){throw ui(n,l.message)}}}return n.\u0275fac=function(e){return new(e||n)(f(Zi,16),f(TE,16))},n.\u0275pipe=Lt({name:"currency",type:n,pure:!0}),n})();let ws=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[{provide:ld,useClass:ZH}]}),n})();const PM="browser";let NM=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>new T3(v(W),window)}),n})();class T3{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){if(!this.supportsScrolling())return;const e=function(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=LM(this.window.history)||LM(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 LM(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class VM{}class Xm extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(n){Xu||(Xu=n)}(new Xm)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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}getBaseHref(t){const e=(Rl=Rl||document.querySelector("base"),Rl?Rl.getAttribute("href"):null);return null==e?null:function(n){ud=ud||document.createElement("a"),ud.setAttribute("href",n);const t=ud.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Rl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return SM(document.cookie,t)}}let ud,Rl=null;const BM=new I("TRANSITION_ID"),F3=[{provide:Ml,useFactory:function(n,t,e){return()=>{e.get(qo).donePromise.then(()=>{const i=Fi(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},Re.getAllAngularTestabilities=()=>t.getAllTestabilities(),Re.getAllAngularRootElements=()=>t.getAllRootElements(),Re.frameworkStabilizers||(Re.frameworkStabilizers=[]),Re.frameworkStabilizers.push(i=>{const r=Re.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Fi().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let P3=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Fl=new I("EventManagerPlugins");let hd=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Pl=(()=>{class n extends jM{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(UM),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(UM))}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function UM(n){Fi().remove(n)}const tg={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/"},ng=/%COMP%/g;function fd(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let pd=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ig(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case lt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new Q3(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case lt.ShadowDom:return new J3(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=fd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(v(hd),v(Pl),v(Sl))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class ig{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(tg[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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=tg[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=tg[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(mn.DashCase|mn.Important)?t.style.setProperty(e,i,r&mn.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&mn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,WM(i)):this.eventManager.addEventListener(t,e,WM(i))}}class Q3 extends ig{constructor(t,e,i,r){super(t),this.component=i;const s=fd(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function(n){return"_ngcontent-%COMP%".replace(ng,n)}(r+"-"+i.id),this.hostAttr=function(n){return"_nghost-%COMP%".replace(ng,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class J3 extends ig{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=fd(r.id,r.styles,[]);for(let o=0;o{class n extends eg{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const YM=["alt","control","meta","shift"],sj={"\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"},KM={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"},oj={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let aj=(()=>{class n extends eg{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fi().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(YM.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&KM.hasOwnProperty(t)&&(t=KM[t]))}return sj[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),YM.forEach(s=>{s!=r&&oj[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),ta=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return v(sg)},token:n,providedIn:"root"}),n})(),sg=(()=>{class n extends ta{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Te.NONE:return i;case Te.HTML:return Mi(i,"HTML")?gn(i):mv(this._doc,String(i)).toString();case Te.STYLE:return Mi(i,"Style")?gn(i):i;case Te.SCRIPT:if(Mi(i,"Script"))return gn(i);throw new Error("unsafe value used in a script context");case Te.URL:return av(i),Mi(i,"URL")?gn(i):Qa(String(i));case Te.RESOURCE_URL:if(Mi(i,"ResourceURL"))return gn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function(n){return new vR(n)}(e)}bypassSecurityTrustStyle(e){return function(n){return new CR(n)}(e)}bypassSecurityTrustScript(e){return function(n){return new DR(n)}(e)}bypassSecurityTrustUrl(e){return function(n){return new wR(n)}(e)}bypassSecurityTrustResourceUrl(e){return function(n){return new ER(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:function(){return function(n){return new sg(n.get(W))}(v(Co))},token:n,providedIn:"root"}),n})();const fj=[{provide:Yo,useValue:PM},{provide:SE,useValue:function(){Xm.makeCurrent(),Zm.init()},multi:!0},{provide:W,useFactory:function(){return function(n){nf=n}(document),document},deps:[]}],mj=NE(sB,"browser",fj),gj=[[],{provide:tl,useValue:"root"},{provide:Kn,useFactory:function(){return new Kn},deps:[]},{provide:Fl,useClass:X3,multi:!0,deps:[W,z,Yo]},{provide:Fl,useClass:aj,multi:!0,deps:[W]},[],{provide:pd,useClass:pd,deps:[hd,Pl,Sl]},{provide:ms,useExisting:pd},{provide:jM,useExisting:Pl},{provide:Pl,useClass:Pl,deps:[W]},{provide:vm,useClass:vm,deps:[z]},{provide:hd,useClass:hd,deps:[Fl,z]},{provide:VM,useClass:P3,deps:[]},[]];let og=(()=>{class n{constructor(e){if(e)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:n,providers:[{provide:Sl,useValue:e.appId},{provide:BM,useExisting:Sl},F3]}}}return n.\u0275fac=function(e){return new(e||n)(v(n,12))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:gj,imports:[ws,hB]}),n})();function G(...n){let t=n[n.length-1];return Ks(t)?(n.pop(),jh(n,t)):Uh(n)}"undefined"!=typeof window&&window;class Bn extends H{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 Xr;return this._value}next(t){super.next(this._value=t)}}class Ej extends Oe{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Mj extends Oe{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,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 Sj(n,t,e,i,r=new Mj(n,e,i)){if(!r.closed)return t instanceof Ee?t.subscribe(r):Hh(t)(r)}const JM={};class Tj{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new kj(t,this.resultSelector))}}class kj extends Ej{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(JM),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 i=0;i{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function lg(...n){return Ia(1)(G(...n))}const Es=new Ee(n=>n.complete());function gd(n){return n?function(n){return new Ee(t=>n.schedule(()=>t.complete()))}(n):Es}function _d(n){return new Ee(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?It(e):gd()).subscribe(t)})}function yn(n,t){return"function"==typeof t?e=>e.pipe(yn((i,r)=>It(n(i,r)).pipe(ge((s,o)=>t(i,s,r,o))))):e=>e.lift(new Oj(n))}class Oj{constructor(t){this.project=t}call(t,e){return e.subscribe(new Rj(t,this.project))}}class Rj extends Ta{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Aa(this),r=this.destination;r.add(i),this.innerSubscription=ka(t,i),this.innerSubscription!==i&&r.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 XM=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function wt(n){return t=>0===n?gd():t.lift(new Fj(n))}class Fj{constructor(t){if(this.total=t,this.total<0)throw new XM}call(t,e){return e.subscribe(new Pj(t,this.total))}}class Pj extends Oe{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function At(...n){const t=n[n.length-1];return Ks(t)?(n.pop(),e=>lg(n,e,t)):e=>lg(n,e)}function ZM(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Nj(n,t,e))}}class Nj{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Lj(t,this.accumulator,this.seed,this.hasSeed))}}class Lj extends Oe{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function pt(n,t){return function(i){return i.lift(new Vj(n,t))}}class Vj{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Bj(t,this.predicate,this.thisArg))}}class Bj extends Oe{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function Rr(n){return function(e){const i=new Hj(n),r=e.lift(i);return i.caught=r}}class Hj{constructor(t){this.selector=t}call(t,e){return e.subscribe(new jj(t,this.selector,this.caught))}}class jj extends Ta{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Aa(this);this.add(i);const r=ka(e,i);r!==i&&this.add(r)}}}function na(n,t){return xt(n,t,1)}function cg(n){return function(e){return 0===n?gd():e.lift(new Uj(n))}}class Uj{constructor(t){if(this.total=t,this.total<0)throw new XM}call(t,e){return e.subscribe(new $j(t,this.total))}}class $j extends Oe{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;st.lift(new zj(n))}class zj{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Wj(t,this.errorFactory))}}class Wj extends Oe{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 t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Gj(){return new md}function t0(n=null){return t=>t.lift(new qj(n))}class qj{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Yj(t,this.defaultValue))}}class Yj extends Oe{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 ia(n,t){const e=arguments.length>=2;return i=>i.pipe(n?pt((r,s)=>n(r,s,i)):kc,wt(1),e?t0(t):e0(()=>new md))}function Fr(){}function Rt(n,t,e){return function(r){return r.lift(new Qj(n,t,e))}}class Qj{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Jj(t,this.nextOrObserver,this.error,this.complete))}}class Jj extends Oe{constructor(t,e,i,r){super(t),this._tapNext=Fr,this._tapError=Fr,this._tapComplete=Fr,this._tapError=i||Fr,this._tapComplete=r||Fr,vi(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Fr,this._tapError=e.error||Fr,this._tapComplete=e.complete||Fr)}_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(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function n0(n){return t=>t.lift(new Xj(n))}class Xj{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Zj(t,this.callback))}}class Zj extends Oe{constructor(t,e){super(t),this.add(new X(e))}}class rr{constructor(t,e){this.id=t,this.url=e}}class ug extends rr{constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nl extends rr{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class r0 extends rr{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class eU extends rr{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iU extends rr{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class s0{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class o0{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oU{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aU{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lU{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cU{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class a0{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class uU{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 ra(n){return new uU(n)}const l0="ngNavigationCancelingError";function dg(n){const t=Error("NavigationCancelingError: "+n);return t[l0]=!0,t}function hU(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[s]===r)}return n===t}function u0(n){return Array.prototype.concat.apply([],n)}function d0(n){return n.length>0?n[n.length-1]:null}function Ft(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ni(n){return Du(n)?n:ol(n)?It(Promise.resolve(n)):G(n)}const mU={exact:function p0(n,t,e){if(!Ss(n.segments,t.segments)||!yd(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!p0(n.children[i],t.children[i],e))return!1;return!0},subset:m0},h0={exact:function(n,t){return Pi(n,t)},subset:function(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>c0(n[e],t[e]))},ignored:()=>!0};function f0(n,t,e){return mU[e.paths](n.root,t.root,e.matrixParams)&&h0[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function m0(n,t,e){return g0(n,t,t.segments,e)}function g0(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Ss(r,e)||t.hasChildren()||!yd(r,e,i))}if(n.segments.length===e.length){if(!Ss(n.segments,e)||!yd(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!m0(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(Ss(n.segments,r)&&yd(n.segments,r,i)&&n.children[be])&&g0(n.children[be],t,s,i)}}function yd(n,t,e){return t.every((i,r)=>h0[e](n[r].parameters,i.parameters))}class Ms{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ra(this.queryParams)),this._queryParamMap}toString(){return vU.serialize(this)}}class we{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ft(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bd(this)}}class Ll{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ra(this.parameters)),this._parameterMap}toString(){return v0(this)}}function Ss(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class hg{}class _0{parse(t){const e=new kU(t);return new Ms(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Vl(t.root,!0)}`,i=function(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${vd(e)}=${vd(r)}`).join("&"):`${vd(e)}=${vd(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const vU=new _0;function bd(n){return n.segments.map(t=>v0(t)).join("/")}function Vl(n,t){if(!n.hasChildren())return bd(n);if(t){const e=n.children[be]?Vl(n.children[be],!1):"",i=[];return Ft(n.children,(r,s)=>{s!==be&&i.push(`${s}:${Vl(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(n,t){let e=[];return Ft(n.children,(i,r)=>{r===be&&(e=e.concat(t(i,r)))}),Ft(n.children,(i,r)=>{r!==be&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===be?[Vl(n.children[be],!1)]:[`${r}:${Vl(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[be]?`${bd(n)}/${e[0]}`:`${bd(n)}/(${e.join("//")})`}}function y0(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vd(n){return y0(n).replace(/%3B/gi,";")}function fg(n){return y0(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cd(n){return decodeURIComponent(n)}function b0(n){return Cd(n.replace(/\+/g,"%20"))}function v0(n){return`${fg(n.path)}${function(n){return Object.keys(n).map(t=>`;${fg(t)}=${fg(n[t])}`).join("")}(n.parameters)}`}const EU=/^[^\/()?;=#]+/;function Dd(n){const t=n.match(EU);return t?t[0]:""}const MU=/^[^=?&#]+/,AU=/^[^?&#]+/;class kU{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[be]=new we(t,e)),i}parseSegment(){const t=Dd(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ll(Cd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Dd(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Dd(this.remaining);r&&(i=r,this.capture(i))}t[Cd(e)]=Cd(i)}parseQueryParam(t){const e=function(n){const t=n.match(MU);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function(n){const t=n.match(AU);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=b0(e),s=b0(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Dd(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=be);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[be]:new we([],o),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 C0{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=pg(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=pg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return mg(t,this._root).map(e=>e.value)}}function pg(n,t){if(n===t.value)return t;for(const e of t.children){const i=pg(n,e);if(i)return i}return null}function mg(n,t){if(n===t.value)return[t];for(const e of t.children){const i=mg(n,e);if(i.length)return i.unshift(t),i}return[]}class sr{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Bl(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class D0 extends C0{constructor(t,e){super(t),this.snapshot=e,gg(this,t)}toString(){return this.snapshot.toString()}}function w0(n,t){const e=function(n,t){const o=new wd([],{},{},"",{},be,t,null,n.root,-1,{});return new M0("",new sr(o,[]))}(n,t),i=new Bn([new Ll("",{})]),r=new Bn({}),s=new Bn({}),o=new Bn({}),a=new Bn(""),l=new sa(i,r,o,a,s,be,t,e.root);return l.snapshot=e.root,new D0(new sr(l,[]),e)}class sa{constructor(t,e,i,r,s,o,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}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(ge(t=>ra(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ge(t=>ra(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function E0(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function(n){return n.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:{}})}(e.slice(i))}class wd{constructor(t,e,i,r,s,o,a,l,c,u,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}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=ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class M0 extends C0{constructor(t,e){super(e),this.url=t,gg(this,e)}toString(){return S0(this._root)}}function gg(n,t){t.value._routerState=n,t.children.forEach(e=>gg(n,e))}function S0(n){const t=n.children.length>0?` { ${n.children.map(S0).join(", ")} } `:"";return`${n.value}${t}`}function _g(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Pi(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Pi(t.params,e.params)||n.params.next(e.params),function(n,t){if(n.length!==t.length)return!1;for(let e=0;ePi(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||yg(n.parent,t.parent))}function Ed(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Ed(n,i,r);return Ed(n,i)})}(n,t,e);return new sr(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return A0(t,o),o}}const i=function(n){return new sa(new Bn(n.url),new Bn(n.params),new Bn(n.queryParams),new Bn(n.fragment),new Bn(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>Ed(n,s));return new sr(i,r)}}function A0(n,t){if(n.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=n.value;for(let e=0;e{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Ms(e.root===n?t:T0(e.root,n,t),s,r)}function T0(n,t,e){const i={};return Ft(n.children,(r,s)=>{i[s]=r===t?e:T0(r,t,e)}),new we(n.segments,i)}class k0{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Md(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(Hl);if(r&&r!==d0(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vg{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function I0(n,t,e){if(n||(n=new we([],{})),0===n.segments.length&&n.hasChildren())return Sd(n,t,e);const i=function(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;const o=n.segments[r],a=e[i];if(Hl(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!O0(l,c,o))return s;i+=2}else{if(!O0(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=I0(n.children[o],t,s))}),Ft(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new we(n.segments,r)}}function Cg(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Cg(new we([],{}),0,e))}),t}function x0(n){const t={};return Ft(n,(e,i)=>t[i]=`${e}`),t}function O0(n,t,e){return n==e.path&&Pi(t,e.parameters)}class $U{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),_g(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Bl(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Ft(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const r=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Bl(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Bl(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new cU(s.value.snapshot))}),t.children.length&&this.forwardEvent(new aU(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(_g(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),R0(a.route)}else{const a=function(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}function R0(n){_g(n.value),n.children.forEach(R0)}class Dg{constructor(t,e){this.routes=t,this.module=e}}function Pr(n){return"function"==typeof n}function As(n){return n instanceof Ms}const jl=Symbol("INITIAL_VALUE");function Ul(){return yn(n=>function(...n){let t,e;return Ks(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Ys(n[0])&&(n=n[0]),Uh(n,e).lift(new Tj(t))}(n.map(t=>t.pipe(wt(1),At(jl)))).pipe(ZM((t,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==jl?r:(s===jl&&(i=!0),i||!1!==s&&o!==e.length-1&&!As(s)?r:s),t)},jl),pt(t=>t!==jl),ge(t=>As(t)?t:!0===t),wt(1)))}let F0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ne({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&K(0,"router-outlet")},directives:function(){return[Fd]},encapsulation:2}),n})();function P0(n,t=""){for(let e=0;eHn(i)===t);return e.push(...n.filter(i=>Hn(i)!==t)),e}const L0={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ad(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},L0):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||hU)(e,n,t);if(!s)return Object.assign({},L0);const o={};Ft(s.posParams,(l,c)=>{o[c]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Td(n,t,e,i,r="corrected"){if(e.length>0&&function(n,t,e){return e.some(i=>kd(n,t,i)&&Hn(i)!==be)}(n,e,i)){const o=new we(t,function(n,t,e,i){const r={};r[be]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Hn(s)!==be){const o=new we([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[Hn(s)]=o}return r}(n,t,i,new we(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function(n,t,e){return e.some(i=>kd(n,t,i))}(n,e,i)){const o=new we(n.segments,function(n,t,e,i,r,s){const o={};for(const a of i)if(kd(n,e,a)&&!r[Hn(a)]){const l=new we([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[Hn(a)]=l}return Object.assign(Object.assign({},r),o)}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new we(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function kd(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function V0(n,t,e,i){return!!(Hn(n)===i||i!==be&&kd(t,e,n))&&("**"===n.path||Ad(t,n,e).matched)}function B0(n,t,e){return 0===t.length&&!n.children[e]}class $l{constructor(t){this.segmentGroup=t||null}}class H0{constructor(t){this.urlTree=t}}function Id(n){return new Ee(t=>t.error(new $l(n)))}function j0(n){return new Ee(t=>t.error(new H0(n)))}function n$(n){return new Ee(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class s${constructor(t,e,i,r,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Ri)}apply(){const t=Td(this.urlTree.root,[],[],this.config).segmentGroup,e=new we(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,be).pipe(ge(s=>this.createUrlTree(Eg(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Rr(s=>{if(s instanceof H0)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof $l?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,be).pipe(ge(r=>this.createUrlTree(Eg(r),t.queryParams,t.fragment))).pipe(Rr(r=>{throw r instanceof $l?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new we([],{[be]:t}):t;return new Ms(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ge(s=>new we([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return It(r).pipe(na(s=>{const o=i.children[s],a=N0(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(ge(l=>({segment:l,outlet:s})))}),ZM((s,o)=>(s[o.outlet]=o.segment,s),{}),function(n,t){const e=arguments.length>=2;return i=>i.pipe(n?pt((r,s)=>n(r,s,i)):kc,cg(1),e?t0(t):e0(()=>new md))}())}expandSegment(t,e,i,r,s,o){return It(i).pipe(na(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(Rr(c=>{if(c instanceof $l)return G(null);throw c}))),ia(a=>!!a),Rr((a,l)=>{if(a instanceof md||"EmptyError"===a.name){if(B0(e,r,s))return G(new we([],{}));throw new $l(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return V0(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):Id(e):Id(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?j0(s):this.lineralizeSegments(i,s).pipe(xt(o=>{const a=new we(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:u}=Ad(e,r,s);if(!a)return Id(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?j0(d):this.lineralizeSegments(r,d).pipe(xt(h=>this.expandSegment(t,e,i,h.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?G(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(ge(h=>(i._loadedConfig=h,new we(r,{})))):G(new we(r,{}));const{matched:o,consumedSegments:a,lastChild:l}=Ad(e,i,r);if(!o)return Id(e);const c=r.slice(l);return this.getChildConfig(t,i,r).pipe(xt(d=>{const h=d.module,p=d.routes,{segmentGroup:m,slicedSegments:b}=Td(e,a,c,p),y=new we(m.segments,m.children);if(0===b.length&&y.hasChildren())return this.expandChildren(h,p,y).pipe(ge(O=>new we(a,O)));if(0===p.length&&0===b.length)return G(new we(a,{}));const D=Hn(i)===s;return this.expandSegment(h,y,p,b,D?be:s,!0).pipe(ge(T=>new we(a.concat(T.segments),T.children)))}))}getChildConfig(t,e,i){return e.children?G(new Dg(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?G(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(xt(r=>r?this.configLoader.load(t.injector,e).pipe(ge(s=>(e._loadedConfig=s,s))):function(n){return new Ee(t=>t.error(dg(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):G(new Dg([],t))}runCanLoadGuards(t,e,i){const r=e.canLoad;if(!r||0===r.length)return G(!0);const s=r.map(o=>{const a=t.get(o);let l;if(function(n){return n&&Pr(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!Pr(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return Ni(l)});return G(s).pipe(Ul(),Rt(o=>{if(!As(o))return;const a=dg(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ge(o=>!0===o))}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return G(i);if(r.numberOfChildren>1||!r.children[be])return n$(t.redirectTo);r=r.children[be]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new Ms(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ft(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return Ft(e.children,(a,l)=>{o[l]=this.createSegmentGroup(t,a,i,r)}),new we(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function Eg(n){const t={};for(const i of Object.keys(n.children)){const s=Eg(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function(n){if(1===n.numberOfChildren&&n.children[be]){const t=n.children[be];return new we(n.segments.concat(t.segments),t.children)}return n}(new we(n.segments,t))}class U0{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class xd{constructor(t,e){this.component=t,this.route=e}}function l$(n,t,e){const i=n._root;return zl(i,t?t._root:null,e,[i.value])}function Od(n,t,e){const i=function(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function zl(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Bl(t);return n.children.forEach(o=>{(function(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Ss(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ss(n.url,t.url)||!Pi(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yg(n,t)||!Pi(n.queryParams,t.queryParams);default:return!yg(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new U0(i)):(s.data=o.data,s._resolvedData=o._resolvedData),zl(n,t,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new xd(a.outlet.component,o))}else o&&Wl(t,a,r),r.canActivateChecks.push(new U0(i)),zl(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Ft(s,(o,a)=>Wl(o,e.getContext(a),r)),r}function Wl(n,t,e){const i=Bl(n),r=n.value;Ft(i,(s,o)=>{Wl(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new xd(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class C${}function $0(n){return new Ee(t=>t.error(n))}class w${constructor(t,e,i,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Td(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,be);if(null===e)return null;const i=new wd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new sr(i,e),s=new M0(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=E0(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=N0(t,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;i.push(...l)}const r=z0(i);return function(n){n.sort((t,e)=>t.value.outlet===be?-1:e.value.outlet===be?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return B0(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!V0(t,e,i,r))return null;let s,o=[],a=[];if("**"===t.path){const p=i.length>0?d0(i).parameters:{};s=new wd(i,p,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,q0(t),Hn(t),t.component,t,W0(e),G0(e)+i.length,Y0(t))}else{const p=Ad(e,t,i);if(!p.matched)return null;o=p.consumedSegments,a=i.slice(p.lastChild),s=new wd(o,p.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,q0(t),Hn(t),t.component,t,W0(e),G0(e)+o.length,Y0(t))}const l=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Td(e,o,a,l.filter(p=>void 0===p.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const p=this.processChildren(l,c);return null===p?null:[new sr(s,p)]}if(0===l.length&&0===u.length)return[new sr(s,[])];const d=Hn(t)===r,h=this.processSegment(l,c,u,d?be:r);return null===h?null:[new sr(s,h)]}}function S$(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function z0(n){const t=[],e=new Set;for(const i of n){if(!S$(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=z0(i.children);t.push(new sr(i.value,r))}return t.filter(i=>!e.has(i))}function W0(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function G0(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function q0(n){return n.data||{}}function Y0(n){return n.resolve||{}}function Mg(n){return yn(t=>{const e=n(t);return e?It(e).pipe(ge(()=>t)):G(t)})}class F$ 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 Sg=new I("ROUTES");class K0{constructor(t,e,i,r){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(ge(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(t);return new Dg(u0(o.injector.get(Sg,void 0,Y.Self|Y.Optional)).map(wg),o)}),Rr(s=>{throw e._loader$=void 0,s}));return e._loader$=new Fy(r,()=>new H).pipe($h()),e._loader$}loadModuleFactory(t){return"string"==typeof t?It(this.loader.load(t)):Ni(t()).pipe(xt(e=>e instanceof Dw?G(e):It(this.compiler.compileModuleAsync(e))))}}class P${constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new oa,this.attachRef=null}}class oa{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=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 P$,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class L${shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function V$(n){throw n}function B$(n,t,e){return t.parse("/")}function Q0(n,t){return G(null)}const H$={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},j$={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pt=(()=>{class n{constructor(e,i,r,s,o,a,l,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new H,this.errorHandler=V$,this.malformedUriErrorHandler=B$,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Q0,afterPreactivation:Q0},this.urlHandlingStrategy=new L$,this.routeReuseStrategy=new F$,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Ri),this.console=o.get(Hu);const h=o.get(z);this.isNgZoneEnabled=h instanceof z&&z.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ms(new we([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new K0(a,l,p=>this.triggerEvent(new s0(p)),p=>this.triggerEvent(new o0(p))),this.routerState=w0(this.currentUrlTree,this.rootComponentType),this.transitions=new Bn({id:0,targetPageId: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()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(pt(r=>0!==r.id),ge(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),yn(r=>{let s=!1,o=!1;return G(r).pipe(Rt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),yn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Rd(a.source)&&(this.browserUrlTree=a.extractedUrl),G(a).pipe(yn(d=>{const h=this.transitions.getValue();return i.next(new ug(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Es:Promise.resolve(d)}),function(n,t,e,i){return yn(r=>function(n,t,e,i,r){return new s$(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ge(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Rt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(n,t,e,i,r){return xt(s=>function(n,t,e,i,r="emptyOnly",s="legacy"){try{const o=new w$(n,t,e,i,r,s).recognize();return null===o?$0(new C$):G(o)}catch(o){return $0(o)}}(n,t,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(ge(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Rt(d=>{"eager"===this.urlUpdateStrategy&&(d.extras.skipLocationChange||this.setBrowserUrl(d.urlAfterRedirects,d),this.browserUrlTree=d.urlAfterRedirects);const h=new tU(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:m,restoredState:b,extras:y}=a,D=new ug(h,this.serializeUrl(p),m,b);i.next(D);const C=w0(p,this.rootComponentType).snapshot;return G(Object.assign(Object.assign({},a),{targetSnapshot:C,urlAfterRedirects:p,extras:Object.assign(Object.assign({},y),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Es}),Mg(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:p}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!p})}),Rt(a=>{const l=new nU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ge(a=>Object.assign(Object.assign({},a),{guards:l$(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(n,t){return xt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?G(Object.assign(Object.assign({},e),{guardsResult:!0})):function(n,t,e,i){return It(n).pipe(xt(r=>function(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?G(s.map(a=>{const l=Od(a,t,r);let c;if(function(n){return n&&Pr(n.canDeactivate)}(l))c=Ni(l.canDeactivate(n,t,e,i));else{if(!Pr(l))throw new Error("Invalid CanDeactivate guard");c=Ni(l(n,t,e,i))}return c.pipe(ia())})).pipe(Ul()):G(!0)}(r.component,r.route,e,t,i)),ia(r=>!0!==r,!0))}(o,i,r,n).pipe(xt(a=>a&&function(n){return"boolean"==typeof n}(a)?function(n,t,e,i){return It(t).pipe(na(r=>lg(function(n,t){return null!==n&&t&&t(new oU(n)),G(!0)}(r.route.parent,i),function(n,t){return null!==n&&t&&t(new lU(n)),G(!0)}(r.route,i),function(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>_d(()=>G(o.guards.map(l=>{const c=Od(l,o.node,e);let u;if(function(n){return n&&Pr(n.canActivateChild)}(c))u=Ni(c.canActivateChild(i,n));else{if(!Pr(c))throw new Error("Invalid CanActivateChild guard");u=Ni(c(i,n))}return u.pipe(ia())})).pipe(Ul())));return G(s).pipe(Ul())}(n,r.path,e),function(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return G(!0);const r=i.map(s=>_d(()=>{const o=Od(s,t,e);let a;if(function(n){return n&&Pr(n.canActivate)}(o))a=Ni(o.canActivate(t,n));else{if(!Pr(o))throw new Error("Invalid CanActivate guard");a=Ni(o(t,n))}return a.pipe(ia())}));return G(r).pipe(Ul())}(n,r.route,e))),ia(r=>!0!==r,!0))}(i,s,n,t):G(a)),ge(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Rt(a=>{if(As(a.guardsResult)){const c=dg(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new iU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),pt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Mg(a=>{if(a.guards.canActivateChecks.length)return G(a).pipe(Rt(l=>{const c=new rU(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),yn(l=>{let c=!1;return G(l).pipe(function(n,t){return xt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return G(e);let s=0;return It(r).pipe(na(o=>function(n,t,e,i){return function(n,t,e,i){const r=Object.keys(n);if(0===r.length)return G({});const s={};return It(r).pipe(xt(o=>function(n,t,e,i){const r=Od(n,t,i);return Ni(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(Rt(a=>{s[o]=a}))),cg(1),xt(()=>Object.keys(s).length===r.length?G(s):Es))}(n._resolve,n,t,i).pipe(ge(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),E0(n,e).resolve),null)))}(o.route,i,n,t)),Rt(()=>s++),cg(1),xt(o=>s===r.length?G(e):Es))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Rt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Rt(l=>{const c=new sU(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Mg(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:p}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!p})}),ge(a=>{const l=function(n,t,e){const i=Ed(n,t._root,e?e._root:void 0);return new D0(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Rt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>ge(i=>(new $U(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Rt({next(){s=!0},complete(){s=!0}}),n0(()=>{var a;if(!s&&!o){const l=`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(r),this.cancelNavigationTransition(r,l)):this.cancelNavigationTransition(r,l)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),Rr(a=>{if(o=!0,function(n){return n&&n[l0]}(a)){const l=As(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new r0(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Rd(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new eU(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Es}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,i)&&setTimeout(()=>{const{source:r,state:s,urlTree:o}=i,a={replaceUrl:!0};if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(o,r,s,a)},0),this.lastLocationChangeInfo=i}))}extractLocationChangeInfoFromEvent(e){var i;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,i){if(!e)return!0;const r=i.urlTree.toString()===e.urlTree.toString();return i.transitionId!==e.transitionId||!r||!("hashchange"===i.source&&"popstate"===e.source||"popstate"===i.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){P0(e),this.config=e.map(wg),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(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function(n,t,e,i,r){if(0===e.length)return bg(t.root,t.root,t,i,r);const s=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new k0(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Ft(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new k0(e,t,i)}(e);if(s.toRoot())return bg(t.root,new we([],{}),t,i,r);const o=function(n,t,e){if(n.isAbsolute)return new vg(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new vg(s,s===t.root,0)}const i=Md(n.commands[0])?0:1;return function(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new vg(i,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(s,t,n),a=o.processChildren?Sd(o.segmentGroup,o.index,s.commands):I0(o.segmentGroup,o.index,s.commands);return bg(o.segmentGroup,a,t,i,r)}(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=As(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function(n){for(let t=0;t{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Nl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,l;if(this.disposed)return Promise.resolve(!1);const c=this.getTransition(),u=Rd(i)&&c&&!Rd(c.source),p=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(u&&p)return Promise.resolve(!0);let m,b,y;o?(m=o.resolve,b=o.reject,y=o.promise):y=new Promise((T,O)=>{m=T,b=O});const D=++this.navigationId;let C;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),C=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):C=0,this.setTransition({id:D,targetPageId:C,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:m,reject:b,promise:y,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),y.catch(T=>Promise.reject(T))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new r0(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)(v(co),v(hg),v(oa),v(Xo),v(_e),v(Uu),v(bs),v(void 0))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Rd(n){return"imperative"!==n}let Gl=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.route=i,this.commands=[],this.onChanges=new H,null==r&&s.setAttribute(o.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:aa(this.skipLocationChange),replaceUrl:aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!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:aa(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(f(Pt),f(sa),kn("tabindex"),f(Xi),f(N))},n.\u0275dir=M({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&k("click",function(){return i.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ie]}),n})(),ql=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=[],this.onChanges=new H,this.subscription=e.events.subscribe(s=>{s instanceof Nl&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:aa(this.skipLocationChange),replaceUrl:aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!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:aa(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(f(Pt),f(sa),f(Jo))},n.\u0275dir=M({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&k("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&(ni("href",i.href,Kf),Z("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ie]}),n})();function aa(n){return""===n||!!n}let Fd=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new R,this.deactivateEvents=new R,this.name=s||be,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new W$(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(f(oa),f(it),f(ii),kn("name"),f(Be))},n.\u0275dir=M({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n})();class W${constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===sa?this.route:t===oa?this.childContexts:this.parent.get(t,e)}}class J0{}class X0{preload(t,e){return G(null)}}let Z0=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.injector=s,this.preloadingStrategy=o,this.loader=new K0(i,r,c=>e.triggerEvent(new s0(c)),c=>e.triggerEvent(new o0(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(pt(e=>e instanceof Nl),na(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Ri);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return It(r).pipe(Ia(),ge(s=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?G(i._loadedConfig):this.loader.load(e.injector,i)).pipe(xt(s=>(i._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(v(Pt),v(Uu),v(bs),v(_e),v(J0))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Ag=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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(e=>{e instanceof ug?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof a0&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new a0(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(v(Pt),v(NM),v(void 0))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Ts=new I("ROUTER_CONFIGURATION"),eS=new I("ROUTER_FORROOT_GUARD"),q$=[Xo,{provide:hg,useClass:_0},{provide:Pt,useFactory:function(n,t,e,i,r,s,o,a={},l,c){const u=new Pt(null,n,t,e,i,r,s,u0(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(d=>{var h,p;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(p=console.groupEnd)||void 0===p||p.call(console)}),u},deps:[hg,oa,Xo,_e,Uu,bs,Sg,Ts,[class{},new ut],[class{},new ut]]},oa,{provide:sa,useFactory:function(n){return n.routerState.root},deps:[Pt]},{provide:Uu,useClass:K2},Z0,X0,class{preload(t,e){return e().pipe(Rr(()=>G(null)))}},{provide:Ts,useValue:{enableTracing:!1}}];function Y$(){return new wm("Router",Pt)}let tS=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[q$,nS(e),{provide:eS,useFactory:J$,deps:[[Pt,new ut,new xn]]},{provide:Ts,useValue:i||{}},{provide:Jo,useFactory:Q$,deps:[Ds,[new po(Hm),new ut],Ts]},{provide:Ag,useFactory:K$,deps:[Pt,NM,Ts]},{provide:J0,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:X0},{provide:wm,multi:!0,useFactory:Y$},[Tg,{provide:Ml,multi:!0,useFactory:t8,deps:[Tg]},{provide:iS,useFactory:n8,deps:[Tg]},{provide:AE,multi:!0,useExisting:iS}]]}}static forChild(e){return{ngModule:n,providers:[nS(e)]}}}return n.\u0275fac=function(e){return new(e||n)(v(eS,8),v(Pt,8))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();function K$(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ag(n,t,e)}function Q$(n,t,e={}){return e.useHash?new mH(n,t):new gM(n,t)}function J$(n){return"guarded"}function nS(n){return[{provide:EO,multi:!0,useValue:n},{provide:Sg,multi:!0,useValue:n}]}let Tg=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new H}appInitializer(){return this.injector.get(hH,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),s=this.injector.get(Pt),o=this.injector.get(Ts);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?G(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),s.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(Ts),r=this.injector.get(Z0),s=this.injector.get(Ag),o=this.injector.get(Pt),a=this.injector.get(Ir);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(v(_e))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function t8(n){return n.appInitializer.bind(n)}function n8(n){return n.bootstrapListener.bind(n)}const iS=new I("Router Initializer");function fi(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}class p8 extends X{constructor(t,e){super()}schedule(t,e=0){return this}}class Ld extends p8{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 i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let sS=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class pi extends sS{constructor(t,e=sS.now){super(t,()=>pi.delegate&&pi.delegate!==this?pi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return pi.delegate&&pi.delegate!==this?pi.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Vd=new pi(Ld);function oS(n,t=Vd){return e=>e.lift(new m8(n,t))}class m8{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new g8(t,this.dueTime,this.scheduler))}}class g8 extends Oe{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,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(_8,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 _8(n){n.debouncedNext()}class b8{constructor(t){this.total=t}call(t,e){return e.subscribe(new v8(t,this.total))}}class v8 extends Oe{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function Bd(n,t){return e=>e.lift(new C8(n,t))}class C8{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new D8(t,this.compare,this.keySelector))}}class D8 extends Oe{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function qe(n){return t=>t.lift(new w8(n))}class w8{constructor(t){this.notifier=t}call(t,e){const i=new E8(t),r=ka(this.notifier,new Aa(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class E8 extends Ta{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ve(n){return null!=n&&"false"!=`${n}`}function jn(n,t=0){return function(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function aS(n){return Array.isArray(n)?n:[n]}function mt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function or(n){return n instanceof N?n.nativeElement:n}let xg;try{xg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){xg=!1}let la,xe=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function(n){return n===PM}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!xg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(v(Yo))},n.\u0275prov=x({factory:function(){return new n(v(Yo))},token:n,providedIn:"root"}),n})(),Kl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();const lS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function cS(){if(la)return la;if("object"!=typeof document||!document)return la=new Set(lS),la;let n=document.createElement("input");return la=new Set(lS.filter(t=>(n.setAttribute("type",t),n.type===t))),la}let Ql,xs,Og;function ca(n){return function(){if(null==Ql&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ql=!0}))}finally{Ql=Ql||!1}return Ql}()?n:!!n.capture}function uS(){if(null==xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xs=!1,xs;if("scrollBehavior"in document.documentElement.style)xs=!0;else{const n=Element.prototype.scrollTo;xs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xs}function Xl(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Os(n){return n.composedPath?n.composedPath()[0]:n.target}function Rg(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let Fg=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})(),dS=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=or(e);return new Ee(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new H,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(v(Fg))},n.\u0275prov=x({factory:function(){return new n(v(Fg))},token:n,providedIn:"root"}),n})(),jd=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new R,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ve(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=jn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(oS(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(dS),f(N),f(z))},n.\u0275dir=M({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),Ud=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[Fg]}),n})();class pS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new H,this._typeaheadSubscription=X.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new H,this.change=new H,t instanceof kr&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Rt(e=>this._pressedLetters.push(e)),oS(t),pt(()=>this._pressedLetters.length>0),ge(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||fi(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof kr?this._items.toArray():this._items}}class O8 extends pS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class mS extends pS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let gS=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function(n){try{return n.frameElement}catch(t){return null}}(function(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===yS(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=yS(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function(n){return!function(n){return function(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function(n){return function(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||_S(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(v(xe))},n.\u0275prov=x({factory:function(){return new n(v(xe))},token:n,providedIn:"root"}),n})();function _S(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function yS(n){if(!_S(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class $8{constructor(t,e,i,r,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(wt(1)).subscribe(t)}}let bS=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new $8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(v(gS),v(z),v(W))},n.\u0275prov=x({factory:function(){return new n(v(gS),v(z),v(W))},token:n,providedIn:"root"}),n})(),z8=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=ve(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=ve(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Xl(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(bS),f(W))},n.\u0275dir=M({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Ie]}),n})();function Pg(n){return 0===n.offsetX&&0===n.offsetY}function Ng(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈const vS=new I("cdk-input-modality-detector-options"),K8={ignoreKeys:[18,17,224,91,16]},ua=ca({passive:!0,capture:!0});let DS=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new Bn(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Os(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Pg(o)?"keyboard":"mouse"),this._mostRecentTarget=Os(o))},this._onTouchstart=o=>{Ng(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Os(o))},this._options=Object.assign(Object.assign({},K8),s),this.modalityDetected=this._modality.pipe(t=>t.lift(new b8(1))),this.modalityChanged=this.modalityDetected.pipe(Bd()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ua),r.addEventListener("mousedown",this._onMousedown,ua),r.addEventListener("touchstart",this._onTouchstart,ua)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ua),document.removeEventListener("mousedown",this._onMousedown,ua),document.removeEventListener("touchstart",this._onTouchstart,ua))}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(z),v(W),v(vS,8))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(z),v(W),v(vS,8))},token:n,providedIn:"root"}),n})();const wS=new I("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),ES=new I("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let MS=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s{class n{constructor(e,i,r,s){this._elementRef=e,this._liveAnnouncer=i,this._contentObserver=r,this._ngZone=s,this._politeness="polite"}get politeness(){return this._politeness}set politeness(e){this._politeness="off"===e||"assertive"===e?e:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const i=this._elementRef.nativeElement.textContent;i!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(i,this._politeness),this._previousAnnouncedText=i)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(MS),f(dS),f(z))},n.\u0275dir=M({type:n,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),n})();const SS=new I("cdk-focus-monitor-default-options"),$d=ca({passive:!0,capture:!0});let ar=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new H,this._rootNodeFocusAndBlurListener=a=>{const l=Os(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=or(e);if(!this._platform.isBrowser||1!==r.nodeType)return G(null);const s=function(n){if(function(){if(null==Og){const n="undefined"!=typeof document?document.head:null;Og=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Og}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new H,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=or(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=or(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,r){r?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Os(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,$d),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,$d)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(qe(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$d),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$d),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(v(z),v(xe),v(DS),v(W,8),v(SS,8))},n.\u0275prov=x({factory:function(){return new n(v(z),v(xe),v(DS),v(W,8),v(SS,8))},token:n,providedIn:"root"}),n})(),Lg=(()=>{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new R}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(ar))},n.\u0275dir=M({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const AS="cdk-high-contrast-black-on-white",TS="cdk-high-contrast-white-on-black",Vg="cdk-high-contrast-active";let kS=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Vg),e.remove(AS),e.remove(TS),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Vg),e.add(AS)):2===i&&(e.add(Vg),e.add(TS))}}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(W))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(W))},token:n,providedIn:"root"}),n})(),IS=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(v(kS))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Kl,Ud]]}),n})();const xS=new I("cdk-dir-doc",{providedIn:"root",factory:function(){return Sf(W)}});let at=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new R,e){const r=e.documentElement?e.documentElement.dir:null,s=(e.body?e.body.dir:null)||r;this.value="ltr"===s||"rtl"===s?s:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(v(xS,8))},n.\u0275prov=x({factory:function(){return new n(v(xS,8))},token:n,providedIn:"root"}),n})(),Zl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();const OS=new Mr("12.2.13");class RS{}const lr="*";function cr(n,t){return{type:7,name:n,definitions:t,options:{}}}function rn(n,t=null){return{type:4,styles:t,timings:n}}function FS(n,t=null){return{type:2,steps:n,options:t}}function He(n){return{type:6,styles:n,offset:null}}function bn(n,t,e){return{type:0,name:n,styles:t,options:e}}function PS(n){return{type:5,steps:n}}function zt(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function ez(n=null){return{type:9,options:n}}function tz(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function NS(n){Promise.resolve(null).then(n)}class da{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){NS(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class LS{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?NS(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function VS(){return"undefined"!=typeof window&&void 0!==window.document}function Hg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vr(n){switch(n.length){case 0:return new da;case 1:return n[0];default:return new LS(n)}}function BS(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,p=h&&c||{};Object.keys(u).forEach(m=>{let b=m,y=u[m];if("offset"!==m)switch(b=t.normalizePropertyName(b,o),y){case"!":y=r[m];break;case lr:y=s[m];break;default:y=t.normalizeStyleValue(m,b,y,o)}p[b]=y}),h||a.push(p),c=p,l=d}),o.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${o.join(u)}`)}return a}function jg(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Ug(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Ug(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Ug(e,"destroy",n)))}}function Ug(n,t,e){const i=e.totalTime,s=$g(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function $g(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function vn(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function HS(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let zg=(n,t)=>!1,Wg=(n,t)=>!1,jS=(n,t,e)=>[];const US=Hg();(US||"undefined"!=typeof Element)&&(zg=VS()?(n,t)=>{for(;t&&t!==document.documentElement;){if(t===n)return!0;t=t.parentNode||t.host}return!1}:(n,t)=>n.contains(t),Wg=(()=>{if(US||Element.prototype.matches)return(n,t)=>n.matches(t);{const n=Element.prototype,t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return t?(e,i)=>t.apply(e,[i]):Wg}})(),jS=(n,t,e)=>{let i=[];if(e){const r=n.querySelectorAll(t);for(let s=0;s{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=n[e]}),t}let WS=(()=>{class n{validateStyleProperty(e){return Gg(e)}matchesElement(e,i){return qg(e,i)}containsElement(e,i){return Yg(e,i)}query(e,i,r){return Kg(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new da(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Qg=(()=>{class n{}return n.NOOP=new WS,n})();const Jg="ng-enter",zd="ng-leave",Wd="ng-trigger",Gd=".ng-trigger",qS="ng-animating",Xg=".ng-animating";function Fs(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Zg(parseFloat(t[1]),t[2])}function Zg(n,t){return"s"===t?1e3*n:n}function qd(n,t,e){return n.hasOwnProperty("duration")?n:function(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=Zg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Zg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:s,easing:o}}(n,t,e)}function ha(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Br(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else ha(n,e);return e}function KS(n,t,e){return e?t+":"+e+";":""}function QS(n){let t="";for(let e=0;e{const r=t_(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Hg()&&QS(n))}function Ps(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=t_(e);n.style[i]=""}),Hg()&&QS(n))}function ec(n){return Array.isArray(n)?1==n.length?n[0]:FS(n):n}const e_=new RegExp("{{\\s*(.+?)\\s*}}","g");function JS(n){let t=[];if("string"==typeof n){let e;for(;e=e_.exec(n);)t.push(e[1]);e_.lastIndex=0}return t}function Yd(n,t,e){const i=n.toString(),r=i.replace(e_,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return r==i?n:r}function Kd(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const lz=/-+([a-z0-9])/g;function t_(n){return n.replace(lz,(...t)=>t[1].toUpperCase())}function cz(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function XS(n,t){return 0===n||0===t}function ZS(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;rfunction(n,t,e){if(":"==n[0]){const l=function(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${n}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(eA(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(eA(o,r))}(i,e,t)):e.push(n),e}const Jd=new Set(["true","1"]),Xd=new Set(["false","0"]);function eA(n,t){const e=Jd.has(n)||Xd.has(n),i=Jd.has(t)||Xd.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Jd.has(n):Xd.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Jd.has(t):Xd.has(t)),o&&a}}const fz=new RegExp("s*:selfs*,?","g");function i_(n,t,e){return new pz(n).build(t,e)}class pz{constructor(t){this._driver=t}build(t,e){const i=new _z(e);return this._resetContextStyleTimingState(i),Cn(this,ec(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};if(i.styles.forEach(a=>{if(Zd(a)){const l=a;Object.keys(l).forEach(c=>{JS(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size){const a=Kd(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Cn(this,ec(t.animation),e);return{type:1,matchers:uz(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ns(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Cn(this,i,e)),options:Ns(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=Cn(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Ns(t.options)}}visitAnimate(t,e){const i=function(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return r_(qd(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=r_(0,0,"");return s.dynamic=!0,s.strValue=i,s}return e=e||qd(i,t),r_(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:He({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=He(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==lr?i.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(Zd(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function(n,t,e){const i=t.params||{},r=JS(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(D=>{const C=this._makeStyleAst(D,e);let T=null!=C.offset?C.offset:function(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Zd(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Zd(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(C.styles),O=0;return null!=T&&(s++,O=C.offset=T),l=l||O<0||O>1,a=a||O0&&s{const T=h>0?C==p?1:h*C:o[C],O=T*y;e.currentTime=m+b.delay+O,b.duration=O,this._validateStyleAst(D,e),D.offset=T,i.styles.push(D)}),i}visitReference(t,e){return{type:8,animation:Cn(this,ec(t.animation),e),options:Ns(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ns(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ns(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(fz,"")),n=n.replace(/@\*/g,Gd).replace(/@\w+/g,e=>Gd+"-"+e.substr(1)).replace(/:animating/g,Xg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,vn(e.collectedStyles,e.currentQuerySelector,{});const a=Cn(this,ec(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ns(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:qd(t.timings,e.errors,!0);return{type:12,animation:Cn(this,ec(t.animation),e),timings:i,options:null}}}class _z{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Zd(n){return!Array.isArray(n)&&"object"==typeof n}function Ns(n){return n?(n=ha(n)).params&&(n.params=function(n){return n?ha(n):null}(n.params)):n={},n}function r_(n,t,e){return{duration:n,delay:t,easing:e}}function s_(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class eh{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Dz=new RegExp(":enter","g"),Ez=new RegExp(":leave","g");function o_(n,t,e,i,r,s={},o={},a,l,c=[]){return(new Mz).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class Mz{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new eh;const d=new a_(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Cn(this,i,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&Object.keys(a).length){const p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[s_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Fs(i.duration):null,a=null!=i.delay?Fs(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Cn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=th);const o=Fs(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Cn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Fs(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Cn(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return qd(e.params?Yd(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Fs(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=th);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),Cn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Cn(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const th={};class a_{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=th,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new nh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Fs(i.duration)),null!=i.delay&&(r.delay=Fs(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Yd(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new a_(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=th,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Sz(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Dz,"."+this._enterClassName)).replace(Ez,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class nh{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new nh(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||lr,this._currentKeyframe[e]=lr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=lr})):Br(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Yd(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:lr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Br(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==lr&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?Kd(t.values()):[],o=e.size?Kd(e.values()):[];if(i){const a=r[0],l=ha(a);a.offset=0,l.offset=1,r=[a,l]}return s_(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Sz extends nh{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=Br(t[0],!1);l.offset=0,s.push(l);const c=Br(t[0],!1);c.offset=iA(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Br(t[d],!1);h.offset=iA((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return s_(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function iA(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class l_{}class Tz extends l_{normalizePropertyName(t,e){return t_(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(kz[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const kz=(()=>function(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function rA(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const c_={};class sA{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||c_,m=this.buildStyles(i,a&&a.params||c_,d),b=l&&l.params||c_,y=this.buildStyles(r,b,d),D=new Set,C=new Map,T=new Map,O="void"===r,re={params:Object.assign(Object.assign({},h),b)},Ne=u?[]:o_(t,e,this.ast.animation,s,o,m,y,re,c,d);let Ue=0;if(Ne.forEach(qt=>{Ue=Math.max(qt.duration+qt.delay,Ue)}),d.length)return rA(e,this._triggerName,i,r,O,m,y,[],[],C,T,Ue,d);Ne.forEach(qt=>{const Yt=qt.element,hr=vn(C,Yt,{});qt.preStyleProps.forEach(bi=>hr[bi]=!0);const fr=vn(T,Yt,{});qt.postStyleProps.forEach(bi=>fr[bi]=!0),Yt!==e&&D.add(Yt)});const sn=Kd(D.values());return rA(e,this._triggerName,i,r,O,m,y,Ne,sn,C,T,Ue)}}class Oz{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=ha(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Yd(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class Fz{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new Oz(r.style,r.options&&r.options.params||{},i)}),oA(this.states,"true","1"),oA(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new sA(t,r,this.states))}),this.fallbackTransition=function(n,t,e){return new sA(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function oA(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const Nz=new eh;class Lz{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],r=i_(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,i){const r=t.element,s=BS(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=o_(this._driver,e,s,Jg,zd,{},{},i,Nz,r),o.forEach(u=>{const d=vn(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,lr)})});const c=Vr(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,r){const s=$g(e,"","","");return jg(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const aA="ng-animate-queued",lA="ng-animate-disabled",cA=".ng-animate-disabled",jz=[],uA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Uz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Un="__ng_removed";class u_{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function(n){return null!=n?n:null}(i?t.value:t),i){const s=ha(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const tc="void",d_=new u_(tc);class $z{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$n(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(n){return"start"==n||"done"==n}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const s=vn(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=vn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||($n(t,Wd),$n(t,Wd+"-"+e),a[e]=d_),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new h_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||($n(t,Wd),$n(t,Wd+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new u_(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=d_),c.value!==tc&&l.value===c.value){if(!function(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ps(t,y),Li(t,D)})}return}const h=vn(this._engine.playersByElement,t,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=s.matchTransition(l.value,c.value,t,c.params),m=!1;if(!p){if(!r)return;p=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||($n(t,aA),o.onStart(()=>{fa(t,aA)})),o.onDone(()=>{let b=this.players.indexOf(o);b>=0&&this.players.splice(b,1);const y=this._engine.playersByElement.get(t);if(y){let D=y.indexOf(o);D>=0&&y.splice(D,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Gd,!0);i.forEach(r=>{if(r[Un])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(a=>{if(this._triggers[a]){const l=this.trigger(t,a,tc,r);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Vr(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||d_,u=new u_(tc),d=new h_(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Un];(!s||s===uA)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){$n(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=$g(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,jg(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class zz{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new $z(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let r=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),$n(t,lA)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),fa(t,lA))}removeNode(t,e,i,r){if(ih(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r){this.collectedLeaveElements.push(e),e[Un]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,r,s){return ih(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Gd,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Xg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Vr(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Un];if(e&&e.setForRemoval){if(t[Un]=uA,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,cA)&&this.markElementAsDisabled(t,!1),this.driver.query(t,cA,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Vr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new eh,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const J=this.driver.query(B,".ng-animate-queued",!0);for(let ue=0;ue{const ue=Jg+b++;m.set(J,ue),B.forEach(Ae=>$n(Ae,ue))});const y=[],D=new Set,C=new Set;for(let B=0;BD.add(Ae)):C.add(J))}const T=new Map,O=fA(h,Array.from(D));O.forEach((B,J)=>{const ue=zd+b++;T.set(J,ue),B.forEach(Ae=>$n(Ae,ue))}),t.push(()=>{p.forEach((B,J)=>{const ue=m.get(J);B.forEach(Ae=>fa(Ae,ue))}),O.forEach((B,J)=>{const ue=T.get(J);B.forEach(Ae=>fa(Ae,ue))}),y.forEach(B=>{this.processLeaveNode(B)})});const re=[],Ne=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(ue=>{const Ae=ue.player,kt=ue.element;if(re.push(Ae),this.collectedEnterElements.length){const Ui=kt[Un];if(Ui&&Ui.setForMove)return void Ae.destroy()}const ji=!d||!this.driver.containsElement(d,kt),En=T.get(kt),Jr=m.get(kt),st=this._buildInstruction(ue,i,Jr,En,ji);if(st.errors&&st.errors.length)Ne.push(st);else{if(ji)return Ae.onStart(()=>Ps(kt,st.fromStyles)),Ae.onDestroy(()=>Li(kt,st.toStyles)),void r.push(Ae);if(ue.isFallbackTransition)return Ae.onStart(()=>Ps(kt,st.fromStyles)),Ae.onDestroy(()=>Li(kt,st.toStyles)),void r.push(Ae);st.timelines.forEach(Ui=>Ui.stretchStartingKeyframe=!0),i.append(kt,st.timelines),o.push({instruction:st,player:Ae,element:kt}),st.queriedElements.forEach(Ui=>vn(a,Ui,[]).push(Ae)),st.preStyleProps.forEach((Ui,Mc)=>{const Lh=Object.keys(Ui);if(Lh.length){let Gs=l.get(Mc);Gs||l.set(Mc,Gs=new Set),Lh.forEach(wy=>Gs.add(wy))}}),st.postStyleProps.forEach((Ui,Mc)=>{const Lh=Object.keys(Ui);let Gs=c.get(Mc);Gs||c.set(Mc,Gs=new Set),Lh.forEach(wy=>Gs.add(wy))})}});if(Ne.length){const B=[];Ne.forEach(J=>{B.push(`@${J.triggerName} has failed due to:\n`),J.errors.forEach(ue=>B.push(`- ${ue}\n`))}),re.forEach(J=>J.destroy()),this.reportError(B)}const Ue=new Map,sn=new Map;o.forEach(B=>{const J=B.element;i.has(J)&&(sn.set(J,J),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Ue))}),r.forEach(B=>{const J=B.element;this._getPreviousPlayers(J,!1,B.namespaceId,B.triggerName,null).forEach(Ae=>{vn(Ue,J,[]).push(Ae),Ae.destroy()})});const qt=y.filter(B=>mA(B,l,c)),Yt=new Map;hA(Yt,this.driver,C,c,lr).forEach(B=>{mA(B,l,c)&&qt.push(B)});const fr=new Map;p.forEach((B,J)=>{hA(fr,this.driver,new Set(B),l,"!")}),qt.forEach(B=>{const J=Yt.get(B),ue=fr.get(B);Yt.set(B,Object.assign(Object.assign({},J),ue))});const bi=[],Da=[],wa={};o.forEach(B=>{const{element:J,player:ue,instruction:Ae}=B;if(i.has(J)){if(u.has(J))return ue.onDestroy(()=>Li(J,Ae.toStyles)),ue.disabled=!0,ue.overrideTotalTime(Ae.totalTime),void r.push(ue);let kt=wa;if(sn.size>1){let En=J;const Jr=[];for(;En=En.parentNode;){const st=sn.get(En);if(st){kt=st;break}Jr.push(En)}Jr.forEach(st=>sn.set(st,kt))}const ji=this._buildAnimation(ue.namespaceId,Ae,Ue,s,fr,Yt);if(ue.setRealPlayer(ji),kt===wa)bi.push(ue);else{const En=this.playersByElement.get(kt);En&&En.length&&(ue.parentPlayer=Vr(En)),r.push(ue)}}else Ps(J,Ae.fromStyles),ue.onDestroy(()=>Li(J,Ae.toStyles)),Da.push(ue),u.has(J)&&r.push(ue)}),Da.forEach(B=>{const J=s.get(B.element);if(J&&J.length){const ue=Vr(J);B.setRealPlayer(ue)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B!ji.destroyed);kt.length?Yz(this,J,kt):this.processLeaveNode(J)}return y.length=0,bi.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const J=this.players.indexOf(B);this.players.splice(J,1)}),B.play()}),bi}elementContainsData(t,e){let i=!1;const r=e[Un];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==tc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=vn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(p=>{const m=p.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),p.destroy(),d.push(p)})}Ps(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(m=>{const b=m.element;u.add(b);const y=b[Un];if(y&&y.removedBeforeQueried)return new da(m.duration,m.delay);const D=b!==l,C=function(n){const t=[];return pA(n,t),t}((i.get(b)||jz).map(Ue=>Ue.getRealPlayer())).filter(Ue=>!!Ue.element&&Ue.element===b),T=s.get(b),O=o.get(b),re=BS(0,this._normalizer,0,m.keyframes,T,O),Ne=this._buildPlayer(m,re,C);if(m.subTimeline&&r&&d.add(b),D){const Ue=new h_(t,a,b);Ue.setRealPlayer(Ne),c.push(Ue)}return Ne});c.forEach(m=>{vn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>$n(m,qS));const p=Vr(h);return p.onDestroy(()=>{u.forEach(m=>fa(m,qS)),Li(l,e.toStyles)}),d.forEach(m=>{vn(r,m,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new da(t.duration,t.delay)}}class h_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new da,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>jg(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){vn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function ih(n){return n&&1===n.nodeType}function dA(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function hA(n,t,e,i,r){const s=[];e.forEach(l=>s.push(dA(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[Un]=Uz,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>dA(l,s[a++])),o}function fA(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}const rh="$$classes";function $n(n,t){if(n.classList)n.classList.add(t);else{let e=n[rh];e||(e=n[rh]={}),e[t]=!0}}function fa(n,t){if(n.classList)n.classList.remove(t);else{let e=n[rh];e&&delete e[t]}}function Yz(n,t,e){Vr(e).onDone(()=>n.processLeaveNode(t))}function pA(n,t){for(let e=0;er.add(s)):t.set(n,i),e.delete(n),!0}class sh{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new zz(t,e,i),this._timelineEngine=new Lz(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],c=i_(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(n,t,e){return new Fz(n,t,e)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=HS(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=HS(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function gA(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=f_(t[0]),t.length>1&&(i=f_(t[t.length-1]))):t&&(e=f_(t)),e||i?new Jz(n,e,i):null}let Jz=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Li(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Li(this._element,this._initialStyles),this._endStyles&&(Li(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ps(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ps(this._element,this._endStyles),this._endStyles=null),Li(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function f_(n){let t=null;const e=Object.keys(n);for(let i=0;ithis._handleCallback(l)}apply(){(function(n,t){const e=m_(n,"").trim();let i=0;e.length&&(function(n,t){let e=0;for(let i=0;i=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),CA(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(n,t){const i=m_(n,"").split(","),r=p_(i,t);r>=0&&(i.splice(r,1),oh(n,"",i.join(",")))}(this._element,this._name))}}function bA(n,t,e){oh(n,"PlayState",e,vA(n,t))}function vA(n,t){const e=m_(n,"");return e.indexOf(",")>0?p_(e.split(","),t):p_([e],t)}function p_(n,t){for(let e=0;e=0)return e;return-1}function CA(n,t,e){e?n.removeEventListener(yA,t):n.addEventListener(yA,t)}function oh(n,t,e,i){const r=_A+t;if(null!=i){const s=n.style[r];if(s.length){const o=s.split(",");o[i]=e,e=o.join(",")}}n.style[r]=e}function m_(n,t){return n.style[_A+t]||""}class DA{constructor(t,e,i,r,s,o,a,l){this.element=t,this.keyframes=e,this.animationName=i,this._duration=r,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new t4(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:n_(this.element,i))})}this.currentSnapshot=t}}class a4 extends da{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=zS(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class EA{constructor(){this._count=0}validateStyleProperty(t){return Gg(t)}matchesElement(t,e){return qg(t,e)}containsElement(t,e){return Yg(t,e)}query(t,e,i){return Kg(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(a=>zS(a));let r=`@keyframes ${e} {\n`,s="";i.forEach(a=>{s=" ";const l=parseFloat(a.offset);r+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(c=>{const u=a[c];switch(c){case"offset":return;case"easing":return void(u&&(r+=`${s}animation-timing-function: ${u};\n`));default:return void(r+=`${s}${c}: ${u};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(t,e,i,r,s,o=[],a){const l=o.filter(y=>y instanceof DA),c={};XS(i,r)&&l.forEach(y=>{let D=y.currentSnapshot;Object.keys(D).forEach(C=>c[C]=D[C])});const u=function(n){let t={};return n&&(Array.isArray(n)?n:[n]).forEach(i=>{Object.keys(i).forEach(r=>{"offset"==r||"easing"==r||(t[r]=i[r])})}),t}(e=ZS(t,e,c));if(0==i)return new a4(t,u);const d="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,d,e);(function(n){var t;const e=null===(t=n.getRootNode)||void 0===t?void 0:t.call(n);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const m=gA(t,e),b=new DA(t,e,d,i,r,s,u,m);return b.onDestroy(()=>function(n){n.parentNode.removeChild(n)}(h)),b}}class SA{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:n_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class h4{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(AA().toString()),this._cssKeyframesDriver=new EA}validateStyleProperty(t){return Gg(t)}matchesElement(t,e){return qg(t,e)}containsElement(t,e){return Yg(t,e)}query(t,e,i){return Kg(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,r,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,r,s,o);const u={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(u.easing=s);const d={},h=o.filter(m=>m instanceof SA);XS(i,r)&&h.forEach(m=>{let b=m.currentSnapshot;Object.keys(b).forEach(y=>d[y]=b[y])});const p=gA(t,e=ZS(t,e=e.map(m=>Br(m,!1)),d));return new SA(t,e,u,p)}}function AA(){return VS()&&Element.prototype.animate||{}}let p4=(()=>{class n extends RS{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:lt.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?FS(e):e;return TA(this._renderer,null,i,"register",[r]),new m4(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(v(ms),v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class m4 extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new g4(this._id,t,e||{},this._renderer)}}class g4{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return TA(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function TA(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const kA="@.disabled";let _4=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{o&&o.parentNode(s)&&o.removeChild(s.parentNode,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new IA("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new y4(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(v(ms),v(sh),v(z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class IA{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==kA?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class y4 extends IA{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==kA?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let C4=(()=>{class n extends sh{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(v(W),v(Qg),v(l_))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Tt=new I("AnimationModuleType"),xA=[{provide:RS,useClass:p4},{provide:l_,useFactory:function(){return new Tz}},{provide:sh,useClass:C4},{provide:ms,useFactory:function(n,t,e){return new _4(n,t,e)},deps:[pd,sh,z]}],OA=[{provide:Qg,useFactory:function(){return"function"==typeof AA()?new h4:new EA}},{provide:Tt,useValue:"BrowserAnimations"},...xA],RA=[{provide:Qg,useClass:WS},{provide:Tt,useValue:"NoopAnimations"},...xA];let M4=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?RA:OA}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:OA,imports:[og]}),n})();function T4(n,t){if(1&n&&K(0,"mat-pseudo-checkbox",4),2&n){const e=V();E("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function k4(n,t){if(1&n&&(g(0,"span",5),S(1),_()),2&n){const e=V();w(1),Ji("(",e.group.label,")")}}const I4=["*"],FA=new Mr("12.2.13"),O4=new I("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ke=(()=>{class n{constructor(e,i,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!Dm()||Rg())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&FA.full!==OS.full&&console.warn("The Angular Material version ("+FA.full+") does not match the Angular CDK version ("+OS.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(v(kS),v(O4,8),v(W))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Zl],Zl]}),n})();function Hr(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ve(t)}}}function pa(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function ma(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ve(t)}}}function g_(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?jn(e):this.defaultTabIndex}}}function __(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new H,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}const R4=new I("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Sf(Zi)}});class rt{constructor(){this._localeChanges=new H,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const Vi=new I("mat-date-formats");let Ls;try{Ls="undefined"!=typeof Intl}catch(n){Ls=!1}const P4={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},N4=lh(31,n=>String(n+1)),L4={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},V4=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function lh(n,t){const e=Array(n);for(let i=0;i{class n extends rt{constructor(e,i){super(),this.useUtcForDisplay=!0,super.setLocale(e),this.useUtcForDisplay=!i.TRIDENT,this._clampDate=i.TRIDENT||i.EDGE}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){if(Ls){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return lh(12,r=>this._stripDirectionalityCharacters(this._format(i,new Date(2017,r,1))))}return P4[e]}getDateNames(){if(Ls){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lh(31,i=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,i+1))))}return N4}getDayOfWeekNames(e){if(Ls){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return lh(7,r=>this._stripDirectionalityCharacters(this._format(i,new Date(2017,0,r+1))))}return L4[e]}getYearName(e){if(Ls){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(i,e))}return String(this.getYear(e))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let s=this._createDateWithOverflow(e,i,r);return s.getMonth(),s}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Ls){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),i=Object.assign(Object.assign({},i),{timeZone:"utc"});const r=new Intl.DateTimeFormat(this.locale,i);return this._stripDirectionalityCharacters(this._format(r,e))}return this._stripDirectionalityCharacters(e.toDateString())}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(V4.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){const s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_stripDirectionalityCharacters(e){return e.replace(/[\u200e\u200f]/g,"")}_format(e,i){const r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(v(R4,8),v(xe))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),j4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[{provide:rt,useClass:B4}],imports:[[Kl]]}),n})();const U4={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let PA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[{provide:Vi,useValue:U4}],imports:[[j4]]}),n})(),ga=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})();class $4{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const NA={enterDuration:225,exitDuration:150},y_=ca({passive:!0}),LA=["mousedown","touchstart"],VA=["mouseup","mouseleave","touchend","touchcancel"];class BA{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=or(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},NA),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new $4(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},NA),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=or(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(LA))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(VA),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Pg(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,y_)})})}_removeTriggerEvents(){this._triggerElement&&(LA.forEach(t=>{this._triggerElement.removeEventListener(t,this,y_)}),this._pointerUpEventsRegistered&&VA.forEach(t=>{this._triggerElement.removeEventListener(t,this,y_)}))}}const b_=new I("mat-ripple-global-options");let Bi=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new BA(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(xe),f(b_,8),f(Tt,8))},n.\u0275dir=M({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&ie("mat-ripple-unbounded",i.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),n})(),ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Ke,Kl],Ke]}),n})(),q4=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&ie("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),Y4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Ke]]}),n})();const v_=new I("MAT_OPTION_PARENT_COMPONENT"),K4=Hr(class{});let Q4=0,HA=(()=>{class n extends K4{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+Q4++,this._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i}}return n.\u0275fac=function(e){return new(e||n)(f(v_,8))},n.\u0275dir=M({type:n,inputs:{label:"label"},features:[L]}),n})();const C_=new I("MatOptgroup");let J4=0;class X4{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Z4=(()=>{class n{constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+J4++,this.onSelectionChange=new R,this._stateChanges=new H}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ve(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!fi(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new X4(this,e))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(void 0),f(HA))},n.\u0275dir=M({type:n,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),D_=(()=>{class n extends Z4{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(v_,8),f(C_,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&k("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(ni("id",i.id),Z("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),ie("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[L],ngContentSelectors:I4,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(vt(),$(0,T4,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),Le(2),_(),$(3,k4,2,1,"span",2),K(4,"div",3)),2&e&&(E("ngIf",i.multiple),w(3),E("ngIf",i.group&&i.group._inert),w(1),E("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[Vn,Bi,q4],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function jA(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;o{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ic,ws,Ke,Y4]]}),n})();const $A=["mat-button",""],zA=["*"],WA=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",n5=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],i5=pa(Hr(ma(class{constructor(n){this._elementRef=n}})));let zn=(()=>{class n extends i5{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of n5)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(ar),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Ce(Bi,5),2&e){let r;j(r=U())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Z("disabled",i.disabled||null),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[L],attrs:$A,ngContentSelectors:zA,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(vt(),g(0,"span",0),Le(1),_(),K(2,"span",1),K(3,"span",2)),2&e&&(w(2),ie("mat-button-ripple-round",i.isRoundButton||i.isIconButton),E("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Bi],styles:[WA],encapsulation:2,changeDetection:0}),n})(),r5=(()=>{class n extends zn{constructor(e,i,r){super(i,e,r)}_haltDisabledEvents(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}return n.\u0275fac=function(e){return new(e||n)(f(ar),f(N),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){1&e&&k("click",function(s){return i._haltDisabledEvents(s)}),2&e&&(Z("tabindex",i.disabled?-1:i.tabIndex||0)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[L],attrs:$A,ngContentSelectors:zA,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(vt(),g(0,"span",0),Le(1),_(),K(2,"span",1),K(3,"span",2)),2&e&&(w(2),ie("mat-button-ripple-round",i.isRoundButton||i.isIconButton),E("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Bi],styles:[WA],encapsulation:2,changeDetection:0}),n})(),w_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ic,Ke],Ke]}),n})();const s5=function(){return["/auth"]};let o5=(()=>{class n{constructor(e){this.router=e}ngOnInit(){window.localStorage.getItem("_user")&&this.router.navigate(["/transactions"])}}return n.\u0275fac=function(e){return new(e||n)(f(Pt))},n.\u0275cmp=ne({type:n,selectors:[["app-landing"]],decls:18,vars:2,consts:[[1,"landing-container"],[1,"landing-content"],[1,"logo"],[1,"action"],["mat-raised-button","","color","primary",3,"routerLink"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"div",2),g(3,"label"),g(4,"span"),S(5,"B"),_(),S(6,"ins"),_(),g(7,"label"),g(8,"span"),S(9,"E"),_(),S(10,"xpense"),_(),g(11,"label"),g(12,"span"),S(13,"T"),_(),S(14,"racker"),_(),_(),g(15,"div",3),g(16,"a",4),S(17,"Get Started"),_(),_(),_(),_()),2&e&&(w(16),E("routerLink",Ar(1,s5)))},directives:[r5,ql],styles:[".landing-container[_ngcontent-%COMP%]{height:100vh;display:flex;justify-content:center;align-items:center;text-align:center}.landing-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{font-size:25px;padding:15px;color:#fff;font-family:Oswald-Medium,sans-serif}.landing-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:40px}.landing-container[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{padding:10px}"]}),n})();function GA(...n){if(1===n.length){const t=n[0];if(Ys(t))return ch(t,null);if(Bh(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return ch(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return ch(n=1===n.length&&Ys(n[0])?n[0]:n,null).pipe(ge(e=>t(...e)))}return ch(n,null)}function ch(n,t){return new Ee(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let qA=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(f(Xi),f(N))},n.\u0275dir=M({type:n}),n})(),Vs=(()=>{class n extends qA{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,features:[L]}),n})();const an=new I("NgValueAccessor"),l5={provide:an,useExisting:Se(()=>jr),multi:!0},u5=new I("CompositionEventMode");let jr=(()=>{class n extends qA{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const n=Fi()?Fi().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Xi),f(N),f(u5,8))},n.\u0275dir=M({type:n,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(e,i){1&e&&k("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Q([l5]),L]}),n})();function Ur(n){return null==n||0===n.length}function KA(n){return null!=n&&"number"==typeof n.length}const gt=new I("NgValidators"),$r=new I("NgAsyncValidators"),d5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zr{static min(t){return QA(t)}static max(t){return JA(t)}static required(t){return function(n){return Ur(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function(n){return Ur(n.value)||d5.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function(n){return t=>Ur(t.value)||!KA(t.value)?null:t.value.lengthKA(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function(n){if(!n)return Wr;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ur(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return cT(t)}static composeAsync(t){return uT(t)}}function QA(n){return t=>{if(Ur(t.value)||Ur(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Ur(t.value)||Ur(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Wr(n){return null}function rT(n){return null!=n}function sT(n){const t=ol(n)?It(n):n;return Du(t),t}function oT(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function aT(n,t){return t.map(e=>e(n))}function lT(n){return n.map(t=>function(n){return!n.validate}(t)?t:e=>t.validate(e))}function cT(n){if(!n)return null;const t=n.filter(rT);return 0==t.length?null:function(e){return oT(aT(e,t))}}function E_(n){return null!=n?cT(lT(n)):null}function uT(n){if(!n)return null;const t=n.filter(rT);return 0==t.length?null:function(e){return GA(aT(e,t).map(sT)).pipe(ge(oT))}}function M_(n){return null!=n?uT(lT(n)):null}function dT(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function hT(n){return n._rawValidators}function fT(n){return n._rawAsyncValidators}function S_(n){return n?Array.isArray(n)?n:[n]:[]}function uh(n,t){return Array.isArray(n)?n.includes(t):n===t}function pT(n,t){const e=S_(t);return S_(n).forEach(r=>{uh(e,r)||e.push(r)}),e}function mT(n,t){return S_(t).filter(e=>!uh(n,e))}let gT=(()=>{class n{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(e){this._rawValidators=e||[],this._composedValidatorFn=E_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=M_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,i){return!!this.control&&this.control.hasError(e,i)}getError(e,i){return this.control?this.control.getError(e,i):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})(),Wt=(()=>{class n extends gT{get formDirective(){return null}get path(){return null}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,features:[L]}),n})();class mi extends gT{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _T{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}let _a=(()=>{class n extends _T{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(f(mi,2))},n.\u0275dir=M({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&ie("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[L]}),n})(),dh=(()=>{class n extends _T{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Wt,10))},n.\u0275dir=M({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&ie("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[L]}),n})();function fh(n,t){return[...t.path,n]}function rc(n,t){k_(n,t),t.valueAccessor.writeValue(n.value),function(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&yT(n,t)})}(n,t),function(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&yT(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function ph(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),gh(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function mh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function k_(n,t){const e=hT(n);null!==t.validator?n.setValidators(dT(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=fT(n);null!==t.asyncValidator?n.setAsyncValidators(dT(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();mh(t._rawValidators,r),mh(t._rawAsyncValidators,r)}function gh(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=hT(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=fT(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return mh(t._rawValidators,i),mh(t._rawAsyncValidators,i),e}function yT(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function bT(n,t){k_(n,t)}function I_(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function vT(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function x_(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===jr?e=s:function(n){return Object.getPrototypeOf(n.constructor)===Vs}(s)?i=s:r=s}),r||i||e||null}function _h(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const sc="VALID",yh="INVALID",ya="PENDING",oc="DISABLED";function O_(n){return(F_(n)?n.validators:n)||null}function CT(n){return Array.isArray(n)?E_(n):n||null}function R_(n,t){return(F_(t)?t.asyncValidators:n)||null}function DT(n){return Array.isArray(n)?M_(n):n||null}function F_(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class P_{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=CT(this._rawValidators),this._composedAsyncValidatorFn=DT(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===sc}get invalid(){return this.status===yh}get pending(){return this.status==ya}get disabled(){return this.status===oc}get enabled(){return this.status!==oc}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=CT(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=DT(t)}addValidators(t){this.setValidators(pT(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(pT(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(mT(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(mT(t,this._rawAsyncValidators))}hasValidator(t){return uh(this._rawValidators,t)}hasAsyncValidator(t){return uh(this._rawAsyncValidators,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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ya,!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=oc,this.errors=null,this._forEachChild(i=>{i.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(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=sc,this._forEachChild(i=>{i.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(i=>i(!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===sc||this.status===ya)&&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()?oc:sc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ya,this._hasOwnPendingAsyncValidator=!0;const e=sT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{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(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=i instanceof ac?i.controls.hasOwnProperty(r)?i.controls[r]:null:i instanceof N_&&i.at(r)||null}),i}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.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 R,this.statusChanges=new R}_calculateStatus(){return this._allControlsDisabled()?oc:this.errors?yh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ya)?ya:this._anyControlsHaveStatus(yh)?yh:sc}_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){F_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ba extends P_{constructor(t=null,e,i){super(O_(e),R_(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(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){_h(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){_h(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 ac extends P_{constructor(t,e,i){super(O_(e),R_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof ba?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);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 i=this.controls[e];i&&t(i,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 i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class N_ extends P_{constructor(t,e,i){super(O_(e),R_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((i,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ba?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!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,i)=>{t(e,i)})}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_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 E5={provide:Wt,useExisting:Se(()=>Gr)},lc=(()=>Promise.resolve(null))();let Gr=(()=>{class n extends Wt{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new R,this.form=new ac({},E_(e),M_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){lc.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),rc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){lc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),_h(this._directives,e)})}addFormGroup(e){lc.then(()=>{const i=this._findContainer(e.path),r=new ac({});bT(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){lc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){lc.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,vT(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(f(gt,10),f($r,10))},n.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&k("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Q([E5]),L]}),n})();const S5={provide:mi,useExisting:Se(()=>bh)},MT=(()=>Promise.resolve(null))();let bh=(()=>{class n extends mi{constructor(e,i,r,s){super(),this.control=new ba,this._registered=!1,this.update=new R,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=x_(0,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),I_(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?fh(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){rc(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(e){MT.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;MT.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return n.\u0275fac=function(e){return new(e||n)(f(Wt,9),f(gt,10),f($r,10),f(an,10))},n.\u0275dir=M({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Q([S5]),L,Ie]}),n})(),vh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const A5={provide:an,useExisting:Se(()=>cc),multi:!0};let cc=(()=>{class n extends Vs{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&k("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Q([A5]),L]}),n})(),ST=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();const L_=new I("NgModelWithFormControlWarning"),O5={provide:Wt,useExisting:Se(()=>gi)};let gi=(()=>{class n extends Wt{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new R,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(gh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return rc(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){ph(e.control||null,e,!1),_h(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,vT(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(ph(i||null,e),r instanceof ba&&(rc(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);bT(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function(n,t){return gh(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){k_(this.form,this),this._oldForm&&gh(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(f(gt,10),f($r,10))},n.\u0275dir=M({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&k("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Q([O5]),L,Ie]}),n})();const P5={provide:mi,useExisting:Se(()=>uc)};let uc=(()=>{class n extends mi{constructor(e,i,r,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new R,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=x_(0,s)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),I_(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return fh(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n.\u0275fac=function(e){return new(e||n)(f(Wt,13),f(gt,10),f($r,10),f(an,10),f(L_,8))},n.\u0275dir=M({type:n,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Q([P5]),L,Ie]}),n._ngModelWarningSentOnce=!1,n})(),FT=(()=>{class n{constructor(){this._validator=Wr}handleChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._validator=this.createValidator(i),this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})();const U5={provide:gt,useExisting:Se(()=>U_),multi:!0};let U_=(()=>{class n extends FT{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>parseFloat(e),this.createValidator=e=>JA(e)}ngOnChanges(e){this.handleChanges(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){if(2&e){let r;Z("max",null!==(r=i.max)&&void 0!==r?r:null)}},inputs:{max:"max"},features:[Q([U5]),L,Ie]}),n})();const $5={provide:gt,useExisting:Se(()=>$_),multi:!0};let $_=(()=>{class n extends FT{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>parseFloat(e),this.createValidator=e=>QA(e)}ngOnChanges(e){this.handleChanges(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){if(2&e){let r;Z("min",null!==(r=i.min)&&void 0!==r?r:null)}},inputs:{min:"min"},features:[Q([$5]),L,Ie]}),n})(),BT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ST]]}),n})(),Q5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[BT]}),n})(),HT=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:L_,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[BT]}),n})(),G_=(()=>{class n{group(e,i=null){const r=this._reduceControls(e);let a,s=null,o=null;return null!=i&&(function(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(i)?(s=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,a=null!=i.updateOn?i.updateOn:void 0):(s=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new ac(r,{asyncValidators:o,updateOn:a,validators:s})}control(e,i,r){return new ba(e,i,r)}array(e,i,r){const s=e.map(o=>this._createControl(o));return new N_(s,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof ba||e instanceof ac||e instanceof N_?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:HT}),n})();class jT{}class UT{}class Dn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}: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 Dn?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 Dn;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Dn?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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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 X5{encodeKey(t){return $T(t)}encodeValue(t){return $T(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $T(n){return encodeURIComponent(n).replace(eW,(t,e)=>{var i;return null!==(i=tW[e])&&void 0!==i?i:t})}function zT(n){return`${n}`}class qr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new X5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new qr({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(zT(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(zT(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class nW{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function WT(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function GT(n){return"undefined"!=typeof Blob&&n instanceof Blob}function qT(n){return"undefined"!=typeof FormData&&n instanceof FormData}class dc{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Dn),this.context||(this.context=new nW),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(p,t.setHeaders[p]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,p)=>h.set(p,t.setParams[p]),u)),new dc(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var _t=(()=>((_t=_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 q_{constructor(t,e=200,i="OK"){this.headers=t.headers||new Dn,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Y_ extends q_{constructor(t={}){super(t),this.type=_t.ResponseHeader}clone(t={}){return new Y_({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 Ch extends q_{constructor(t={}){super(t),this.type=_t.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ch({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 YT extends q_{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 K_(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let hc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof dc)s=e;else{let l,c;l=r.headers instanceof Dn?r.headers:new Dn(r.headers),r.params&&(c=r.params instanceof qr?r.params:new qr({fromObject:r.params})),s=new dc(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=G(s).pipe(na(l=>this.handler.handle(l)));if(e instanceof dc||"events"===r.observe)return o;const a=o.pipe(pt(l=>l instanceof Ch));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(ge(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ge(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ge(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ge(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new qr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,K_(r,i))}post(e,i,r={}){return this.request("POST",e,K_(r,i))}put(e,i,r={}){return this.request("PUT",e,K_(r,i))}}return n.\u0275fac=function(e){return new(e||n)(v(jT))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class KT{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const QT=new I("HTTP_INTERCEPTORS");let sW=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const oW=/^\)\]\}',?\n/;let JT=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ee(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,m)=>r.setRequestHeader(p,m.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const p=1223===r.status?204:r.status,m=r.statusText||"OK",b=new Dn(r.getAllResponseHeaders()),y=function(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new Y_({headers:b,status:p,statusText:m,url:y}),o},l=()=>{let{headers:p,status:m,statusText:b,url:y}=a(),D=null;204!==m&&(D=void 0===r.response?r.responseText:r.response),0===m&&(m=D?200:0);let C=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof D){const T=D;D=D.replace(oW,"");try{D=""!==D?JSON.parse(D):null}catch(O){D=T,C&&(C=!1,D={error:O,text:D})}}C?(i.next(new Ch({body:D,headers:p,status:m,statusText:b,url:y||void 0})),i.complete()):i.error(new YT({error:D,headers:p,status:m,statusText:b,url:y||void 0}))},c=p=>{const{url:m}=a(),b=new YT({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:m||void 0});i.error(b)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let m={type:_t.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),"text"===e.responseType&&!!r.responseText&&(m.partialText=r.responseText),i.next(m)},h=p=>{let m={type:_t.UploadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),i.next(m)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==s&&r.upload&&r.upload.addEventListener("progress",h)),r.send(s),i.next({type:_t.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==s&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(v(VM))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Q_=new I("XSRF_COOKIE_NAME"),J_=new I("XSRF_HEADER_NAME");class XT{}let lW=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=SM(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(v(W),v(Yo),v(Q_))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),X_=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(v(XT),v(J_))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),cW=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(QT,[]);this.chain=i.reduceRight((r,s)=>new KT(r,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(v(UT),v(_e))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),uW=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:X_,useClass:sW}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Q_,useValue:e.cookieName}:[],e.headerName?{provide:J_,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[X_,{provide:QT,useExisting:X_,multi:!0},{provide:XT,useClass:lW},{provide:Q_,useValue:"XSRF-TOKEN"},{provide:J_,useValue:"X-XSRF-TOKEN"}]}),n})(),dW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[hc,{provide:jT,useClass:cW},JT,{provide:UT,useExisting:JT}],imports:[[uW.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})(),ZT=(()=>{class n{constructor(e){this.http=e,this.baseUrl="",this.token="",this.header={"X-GitHub-Api-Version":"2022-11-28",Accept:"application/vnd.github+json"},this.header.Authorization="Bearer "+atob(atob("WjJod1gzcEdUMFZ5TVZKWU1teFVPR05CYVdOYVdsVnJOVGh3YUhSTFQwbENOVE52TUhCR2J3PT0=")),this.baseUrl="https://api.github.com/repos/BinsSoft/bins-api-container/contents/expense-tracker"}checkUser(e){return this.http.get(this.baseUrl+"/"+e,{headers:new Dn(this.header)})}create(e,i,r){return this.http.put(this.baseUrl+"/"+e,JSON.stringify({content:btoa(JSON.stringify(r)),message:i,committer:{name:"Tonmoy",email:"tonmoy.nandy@gmail.com"}}),{headers:new Dn(this.header)})}update(e,i,r,s=null){return this.http.put(this.baseUrl+"/"+e,JSON.stringify({content:btoa(JSON.stringify(r)),message:i,sha:s,committer:{name:"Tonmoy",email:"tonmoy.nandy@gmail.com"}}),{headers:new Dn(this.header)})}getContent(e){return this.http.get(this.baseUrl+"/"+e,{headers:new Dn(this.header)})}}return n.\u0275fac=function(e){return new(e||n)(v(hc))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hi=(()=>{class n{constructor(e){this.restService=e,this.transactionsSubject=new H,this.transactions=this.transactionsSubject.asObservable(),this.transactionSha="",this.configSha="",this.usersSubject=new H,this.users=this.usersSubject.asObservable(),this.categorySubject=new H,this.category=this.categorySubject.asObservable(),this.transactionList=[],this.userList=[],this.categoryList=[]}fetch(){const e=window.sessionStorage.getItem("_user");e&&this.restService.getContent(e+"/config.json").subscribe(i=>{this.configSha=i.sha;const r=JSON.parse(atob(i.content));this.userList=r.users,this.categoryList=r.category,this.getAllCategory(),this.getAllUsers(),setTimeout(()=>{this.restService.getContent(e+"/transactions.json").subscribe(s=>{this.transactionSha=s.sha,this.transactionList=JSON.parse(atob(s.content)),this.emitAllTransactions()})},1e3)})}emitAllTransactions(){this.transactionsSubject.next(this.getAllTransactions())}getAllTransactions(){let e=this.transactionList;return e=e.concat(this.getLocalData("_t")),e}getLocalData(e){const i=window.localStorage.getItem(e);return i?JSON.parse(i):[]}updateTransactions(){const e=this.getAllTransactions();if(this.getLocalData("_t").length>0){const i=window.sessionStorage.getItem("_user");this.restService.update(i+"/transactions.json","Update Transactions of "+i,e,this.transactionSha).subscribe(r=>{window.localStorage.setItem("_t",JSON.stringify([]))})}}getAllCategory(){let e=this.categoryList;return this.categorySubject.next(e),e}getAllUsers(){let e=this.userList;return this.usersSubject.next(e),e}updateConfig(){const e={users:this.getAllUsers(),category:this.getAllCategory()},i=window.sessionStorage.getItem("_user");this.restService.update(i+"/config.json","Update Config of "+i,e,this.configSha).subscribe(r=>{this.configSha=r.content.sha})}}return n.\u0275fac=function(e){return new(e||n)(v(ZT))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Yr(n,t,e,i){return vi(e)&&(i=e,e=void 0),i?Yr(n,t,e).pipe(ge(r=>Ys(r)?i(...r):i(r))):new Ee(r=>{ek(n,t,function(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function ek(n,t,e,i,r){let s;if(function(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let yW=1;const bW=Promise.resolve(),Dh={};function tk(n){return n in Dh&&(delete Dh[n],!0)}const nk={setImmediate(n){const t=yW++;return Dh[t]=!0,bW.then(()=>tk(t)&&n()),t},clearImmediate(n){tk(n)}},Z_=new class extends pi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=nk.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(nk.clearImmediate(e),t.scheduled=void 0)}});class wW{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new EW(t,this.durationSelector))}}class EW extends Ta{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=ka(e,new Aa(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function rk(n){return!Ys(n)&&n-parseFloat(n)+1>=0}function sk(n=0,t,e){let i=-1;return rk(t)?i=Number(t)<1?1:Number(t):Ks(t)&&(e=t),Ks(e)||(e=Vd),new Ee(r=>{const s=rk(n)?n:+n-e.now();return e.schedule(MW,s,{index:0,period:i,subscriber:r})})}function MW(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function wh(n,t=Vd){return function(n){return function(e){return e.lift(new wW(n))}}(()=>sk(n,t))}function ok(n,t){return new Ee(t?e=>t.schedule(OW,0,{error:n,subscriber:e}):e=>e.error(n))}function OW({error:n,subscriber:t}){t.error(n)}new class extends pi{}(class extends Ld{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});class ln{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return G(this.value);case"E":return ok(this.error);case"C":return gd()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new ln("N",t):ln.undefinedValueNotification}static createError(t){return new ln("E",void 0,t)}static createComplete(){return ln.completeNotification}}ln.completeNotification=new ln("C"),ln.undefinedValueNotification=new ln("N",void 0);class $W{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new H,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let Mh=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new H,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ee(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(wh(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):G()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(pt(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=or(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Yr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(v(z),v(xe),v(W,8))},n.\u0275prov=x({factory:function(){return new n(v(z),v(xe),v(W,8))},token:n,providedIn:"root"}),n})(),_i=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new H,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(wh(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(z),v(W,8))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(z),v(W,8))},token:n,providedIn:"root"}),n})(),fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})(),dk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Zl,Kl,fc],Zl,fc]}),n})();class ey{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class pc extends ey{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Kr extends ey{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class ZW extends ey{constructor(t){super(),this.element=t instanceof N?t.nativeElement:t}}class ty{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof pc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Kr?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof ZW?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class hk extends ty{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let ur=(()=>{class n extends ty{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new R,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(s,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(f(ii),f(it),f(W))},n.\u0275dir=M({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[L]}),n})(),Sh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();class t6{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new n6(t,this.predicate,this.inclusive))}}class n6 extends Oe{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const fk=uS();class i6{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=mt(-this._previousScrollPosition.left),t.style.top=mt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),fk&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),fk&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class r6{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class pk{enable(){}disable(){}attach(){}}function iy(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function mk(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class s6{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();iy(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let o6=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new pk,this.close=o=>new r6(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new i6(this._viewportRuler,this._document),this.reposition=o=>new s6(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(v(Mh),v(_i),v(z),v(W))},n.\u0275prov=x({factory:function(){return new n(v(Mh),v(_i),v(z),v(W))},token:n,providedIn:"root"}),n})();class mc{constructor(t){if(this.scrollStrategy=new pk,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class a6{constructor(t,e,i,r,s){this.offsetX=i,this.offsetY=r,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class l6{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let gk=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:function(){return new n(v(W))},token:n,providedIn:"root"}),n})(),c6=(()=>{class n extends gk{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:function(){return new n(v(W))},token:n,providedIn:"root"}),n})(),u6=(()=>{class n extends gk{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Os(r)},this._clickListener=r=>{const s=Os(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(v(W),v(xe))},n.\u0275prov=x({factory:function(){return new n(v(W),v(xe))},token:n,providedIn:"root"}),n})(),gc=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Rg()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;sthis._backdropClick.next(u),this._keydownEvents=new H,this._outsidePointerEvents=new H,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(wt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=mt(this._config.width),t.height=mt(this._config.height),t.minWidth=mt(this._config.minWidth),t.minHeight=mt(this._config.minHeight),t.maxWidth=mt(this._config.maxWidth),t.maxHeight=mt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=t.classList;aS(e).forEach(s=>{s&&(i?r.add(s):r.remove(s))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(qe(Nt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const _k="cdk-overlay-connected-position-bounding-box",h6=/([A-Za-z%]+)$/;class ry{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new H,this._resizeSubscription=X.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(_k),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=[];let s;for(let o of this._preferredPositions){let a=this._getOriginPoint(t,o),l=this._getOverlayPoint(a,e,o),c=this._getOverlayFit(l,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:o,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,o)}):(!s||s.overlayFit.visibleAreaa&&(a=c,o=l)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Bs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_k),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,r;if("center"==e.originX)i=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;i="start"==e.originX?s:o}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:r}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=bk(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,p=a+s.height-i.height,m=this._subtractOverflows(s.width,0-o,o+s.width-i.width),b=this._subtractOverflows(s.height,h,p),y=m*b;return{visibleArea:y,isCompletelyWithinViewport:s.width*s.height===y,fitsInViewportVertically:b===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=yk(this._overlayRef.getConfig().minHeight),a=yk(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=bk(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.xm&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const p=Math.min(i.right-t.x+i.left,t.x),m=this._lastBoundingBoxSize.width;u=2*p,d=t.x-p,u>m&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-m/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=mt(i.height),r.top=mt(i.top),r.bottom=mt(i.bottom),r.width=mt(i.width),r.left=mt(i.left),r.right=mt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=mt(s)),o&&(r.maxWidth=mt(o))}this._lastBoundingBoxSize=i,Bs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Bs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Bs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Bs(i,this._getExactOverlayY(e,t,u)),Bs(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=mt(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=mt(o.maxWidth):s&&(i.maxWidth="")),Bs(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=mt(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=mt(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mk(t,i),isOriginOutsideView:iy(t,i),isOverlayClipped:mk(e,i),isOverlayOutsideView:iy(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&aS(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof N)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Bs(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function yk(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(h6);return e&&"px"!==e?null:parseFloat(t)}return n||null}function bk(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}class f6{constructor(t,e,i,r,s,o,a){this._preferredPositions=[],this._positionStrategy=new ry(i,r,s,o,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,r){const s=new a6(t,e,i,r);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const vk="cdk-global-overlay-wrapper";class p6{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(vk),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(vk),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let m6=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new p6}connectedTo(e,i,r){return new f6(i,r,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new ry(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(v(_i),v(W),v(xe),v(gc))},n.\u0275prov=x({factory:function(){return new n(v(_i),v(W),v(xe),v(gc))},token:n,providedIn:"root"}),n})(),g6=0,yi=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new mc(e);return o.direction=o.direction||this._directionality.value,new d6(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+g6++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ir)),new hk(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(v(o6),v(gc),v(ii),v(m6),v(c6),v(_e),v(z),v(W),v(at),v(Xo),v(u6))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const _6=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ck=new I("cdk-connected-overlay-scroll-strategy");let y6=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(f(N))},n.\u0275dir=M({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Dk=(()=>{class n{constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=X.EMPTY,this._attachSubscription=X.EMPTY,this._detachSubscription=X.EMPTY,this._positionSubscription=X.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new R,this.positionChange=new R,this.attach=new R,this.detach=new R,this.overlayKeydown=new R,this.overlayOutsideClick=new R,this._templatePortal=new Kr(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ve(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ve(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ve(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ve(e)}get push(){return this._push}set push(e){this._push=ve(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_6);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!fi(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new mc({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(n,t=!1){return e=>e.lift(new t6(n,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(yi),f(dt),f(it),f(Ck),f(at,8))},n.\u0275dir=M({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ie]}),n})();const v6={provide:Ck,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};let Ah=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[yi,v6],imports:[[Zl,Sh,dk],dk]}),n})();function C6(n,t){}class sy{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const D6={dialogContainer:cr("dialogContainer",[bn("void, exit",He({opacity:0,transform:"scale(0.7)"})),bn("enter",He({transform:"none"})),zt("* => enter",rn("150ms cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1}))),zt("* => void, * => exit",rn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})))])};let w6=(()=>{class n extends ty{constructor(e,i,r,s,o,a){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=o,this._focusMonitor=a,this._animationStateChanged=new R,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(l)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Xl(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Xl())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Xl();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(bS),f(Be),f(W,8),f(sy),f(ar))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&Ce(ur,7),2&e){let r;j(r=U())&&(i._portalOutlet=r.first)}},features:[L]}),n})(),E6=(()=>{class n extends w6{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&wu("@dialogContainer.start",function(s){return i._onAnimationStart(s)})("@dialogContainer.done",function(s){return i._onAnimationDone(s)}),2&e&&(ni("id",i._id),Z("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Mu("@dialogContainer",i._state))},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&$(0,C6,0,0,"ng-template",0)},directives:[ur],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[D6.dialogContainer]}}),n})(),M6=0;class Hs{constructor(t,e,i="mat-dialog-"+M6++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new H,this._afterClosed=new H,this._beforeClosed=new H,this._state=0,e._id=i,e._animationStateChanged.pipe(pt(r=>"opened"===r.state),wt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(pt(r=>"closed"===r.state),wt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(pt(r=>27===r.keyCode&&!this.disableClose&&!fi(r))).subscribe(r=>{r.preventDefault(),oy(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():oy(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(pt(e=>"closing"===e.state),wt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function oy(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const ay=new I("MatDialogData"),S6=new I("mat-dialog-default-options"),wk=new I("mat-dialog-scroll-strategy"),T6={provide:wk,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.block()}};let k6=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new H,this._afterOpenedAtThisLevel=new H,this._ariaHiddenElements=new Map,this.afterAllClosed=_d(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(At(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){i=function(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new sy),i.id&&this.getDialogById(i.id);const r=this._createOverlay(i),s=this._attachDialogContainer(r,i),o=this._attachDialogContent(e,s,r,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),s._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new mc({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const s=_e.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:sy,useValue:i}]}),o=new pc(this._dialogContainerType,i.viewContainerRef,s,i.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,i,r,s){const o=new this._dialogRefConstructor(r,i,s.id);if(e instanceof dt)i.attachTemplatePortal(new Kr(e,null,{$implicit:s.data,dialogRef:o}));else{const a=this._createInjector(s,o,i),l=i.attachComponentPortal(new pc(e,s.viewContainerRef,a));o.componentInstance=l.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,i,r){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!s||!s.get(at,null,Y.Optional))&&o.push({provide:at,useValue:{value:e.direction,change:G()}}),_e.create({parent:s||this._injector,providers:o})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let s=i[r];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){return new(e||n)(f(yi),f(_e),f(void 0),f(void 0),f(gc),f(void 0),f(co),f(co),f(I))},n.\u0275dir=M({type:n}),n})(),dr=(()=>{class n extends k6{constructor(e,i,r,s,o,a,l){super(e,i,s,a,l,o,Hs,E6,ay)}}return n.\u0275fac=function(e){return new(e||n)(v(yi),v(_e),v(Xo,8),v(S6,8),v(wk),v(n,12),v(gc))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Mk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[dr,T6],imports:[[Ah,Sh,Ke],Ke]}),n})(),js=(()=>{class n{constructor(){this.categoryList=[]}categoryInit(){return this.categoryList=this.getCategoryList(),this.setCategoryList(this.categoryList),this.categoryList}getCategoryList(){if(this.categoryList=this.appendCategory("Bill Pay",this.categoryList),this.categoryList=this.appendCategory("Recharge",this.categoryList),window.localStorage.getItem("_c")){const e=window.localStorage.getItem("_c");this.categoryList=JSON.parse(e)}return this.categoryList}appendCategory(e,i){return i.push({id:i.length+1,name:e}),i}setCategoryList(e){window.localStorage.setItem("_c",JSON.stringify(e))}getTransactionList(){const e=window.localStorage.getItem("_t");return e?JSON.parse(e):[]}setTransaction(e){window.localStorage.setItem("_t",JSON.stringify(e))}getUsersList(){const e=window.localStorage.getItem("_u");return e?JSON.parse(e):[]}setUsers(e){window.localStorage.setItem("_u",JSON.stringify(e))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const O6=["underline"],R6=["connectionContainer"],F6=["inputContainer"],P6=["label"];function N6(n,t){1&n&&(ds(0),g(1,"div",14),K(2,"div",15),K(3,"div",16),K(4,"div",17),_(),g(5,"div",18),K(6,"div",15),K(7,"div",16),K(8,"div",17),_(),hs())}function L6(n,t){1&n&&(g(0,"div",19),Le(1,1),_())}function V6(n,t){if(1&n&&(ds(0),Le(1,2),g(2,"span"),S(3),_(),hs()),2&n){const e=V(2);w(3),Ve(e._control.placeholder)}}function B6(n,t){1&n&&Le(0,3,["*ngSwitchCase","true"])}function H6(n,t){1&n&&(g(0,"span",23),S(1," *"),_())}function j6(n,t){if(1&n){const e=Ot();g(0,"label",20,21),k("cdkObserveContent",function(){return Fe(e),V().updateOutlineGap()}),$(2,V6,4,1,"ng-container",12),$(3,B6,1,0,"ng-content",12),$(4,H6,2,0,"span",22),_()}if(2&n){const e=V();ie("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),E("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Z("for",e._control.id)("aria-owns",e._control.id),w(2),E("ngSwitchCase",!1),w(1),E("ngSwitchCase",!0),w(1),E("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function U6(n,t){1&n&&(g(0,"div",24),Le(1,4),_())}function $6(n,t){if(1&n&&(g(0,"div",25,26),K(2,"span",27),_()),2&n){const e=V();w(2),ie("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function z6(n,t){1&n&&(g(0,"div"),Le(1,5),_()),2&n&&E("@transitionMessages",V()._subscriptAnimationState)}function W6(n,t){if(1&n&&(g(0,"div",31),S(1),_()),2&n){const e=V(2);E("id",e._hintLabelId),w(1),Ve(e.hintLabel)}}function G6(n,t){if(1&n&&(g(0,"div",28),$(1,W6,2,2,"div",29),Le(2,6),K(3,"div",30),Le(4,7),_()),2&n){const e=V();E("@transitionMessages",e._subscriptAnimationState),w(1),E("ngIf",e.hintLabel)}}const q6=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Y6=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Sk=new I("MatError"),Q6={transitionMessages:cr("transitionMessages",[bn("enter",He({opacity:1,transform:"translateY(0%)"})),zt("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),rn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _c=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})(),J6=0;const Ak=new I("MatHint");let X6=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+J6++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,i){2&e&&(Z("id",i.id)("align",null),ie("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[Q([{provide:Ak,useExisting:n}])]}),n})(),Us=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-label"]]}),n})(),Z6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-placeholder"]]}),n})();const Tk=new I("MatPrefix"),kk=new I("MatSuffix");let Ik=0;const tG=pa(class{constructor(n){this._elementRef=n}},"primary"),nG=new I("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yc=new I("MatFormField");let bc=(()=>{class n extends tG{constructor(e,i,r,s,o,a,l,c){super(e),this._changeDetectorRef=i,this._dir=s,this._defaults=o,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new H,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ik++,this._labelId="mat-form-field-label-"+Ik++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ve(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(At(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(qe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(qe(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Nt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(At(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(At(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(qe(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Yr(this._label.nativeElement,"transitionend").pipe(wt(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,r=0;const s=this._connectionContainerRef.nativeElement,o=s.querySelectorAll(".mat-form-field-outline-start"),a=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=s.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),u=e.children,d=this._getStartEnd(u[0].getBoundingClientRect());let h=0;for(let p=0;p0?.75*h+10:0}for(let l=0;l{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ws,Ke,Ud],Ke]}),n})();const Ok=ca({passive:!0});let Rk=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Es;const i=or(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new H,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,Ok),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,Ok)}}),s}stopMonitoring(e){const i=or(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(z))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(z))},token:n,providedIn:"root"}),n})(),Fk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Kl]]}),n})();const Pk=new I("MAT_INPUT_VALUE_ACCESSOR"),rG=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sG=0;const oG=__(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let Th=(()=>{class n extends oG{constructor(e,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+sG++,this.focused=!1,this.stateChanges=new H,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>cS().has(m));const h=this._elementRef.nativeElement,p=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",m=>{const b=m.target;!b.value&&0===b.selectionStart&&0===b.selectionEnd&&(b.setSelectionRange(1,1),b.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ve(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=ve(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&cS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ve(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){rG.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(xe),f(mi,10),f(Gr,8),f(gi,8),f(ga),f(Pk,10),f(Rk),f(z),f(yc,8))},n.\u0275dir=M({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&k("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(ni("disabled",i.disabled)("required",i.required),Z("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),ie("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Q([{provide:_c,useExisting:n}]),L,Ie]}),n})(),Nk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[ga],imports:[[Fk,vc,Ke],Fk,vc]}),n})();const aG=["input"],lG=function(n){return{enterDuration:n}},cG=["*"],uG=new I("mat-checkbox-default-options",{providedIn:"root",factory:Lk});function Lk(){return{color:"accent",clickAction:"check-indeterminate"}}let dG=0;const Vk=Lk(),hG={provide:an,useExisting:Se(()=>ly),multi:!0};class fG{}const pG=g_(pa(ma(Hr(class{constructor(n){this._elementRef=n}}))));let ly=(()=>{class n extends pG{constructor(e,i,r,s,o,a,l){super(e),this._changeDetectorRef=i,this._focusMonitor=r,this._ngZone=s,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++dG,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new R,this.indeterminateChange=new R,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Vk,this.color=this.defaultColor=this._options.color||Vk.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=ve(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=ve(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=ve(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(s)},1e3)})}}_emitChangeEvent(){const e=new fG;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var i;const r=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===i)r="unchecked-checked";else{if(3!=i)return"";r="unchecked-indeterminate"}break;case 2:r=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(ar),f(z),kn("tabindex"),f(Tt,8),f(uG,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(Ce(aG,5),Ce(Bi,5)),2&e){let r;j(r=U())&&(i._inputElement=r.first),j(r=U())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(ni("id",i.id),Z("tabindex",null),ie("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Q([hG]),L],ngContentSelectors:cG,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(vt(),g(0,"label",0,1),g(2,"span",2),g(3,"input",3,4),k("change",function(s){return i._onInteractionEvent(s)})("click",function(s){return i._onInputClick(s)}),_(),g(5,"span",5),K(6,"span",6),_(),K(7,"span",7),g(8,"span",8),zc(),g(9,"svg",9),K(10,"path",10),_(),se.lFrame.currentNamespace=null,K(11,"span",11),_(),_(),g(12,"span",12,13),k("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),S(15,"\xa0"),_(),Le(16),_(),_()),2&e){const r=Ii(1),s=Ii(13);Z("for",i.inputId),w(2),ie("mat-checkbox-inner-container-no-side-margin",!s.textContent||!s.textContent.trim()),w(1),E("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),Z("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),w(2),E("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",vl(19,lG,"NoopAnimations"===i._animationMode?0:150))}},directives:[Bi,jd],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),Bk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})(),Hk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ic,Ke,Ud,Bk],Ke,Bk]}),n})();function _G(n,t){if(1&n){const e=Ot();g(0,"div"),g(1,"mat-form-field"),g(2,"mat-label"),S(3,"Day"),_(),g(4,"input",5),k("ngModelChange",function(r){return Fe(e),V().repeatDate=r}),_(),_(),_()}if(2&n){const e=V();w(4),E("ngModel",e.repeatDate)}}let cy=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.name="",this.isRepeat=!1,this.repeatDate=0}ngOnInit(){this.data&&(this.name=this.data.name,this.data.repeatDate&&0!=this.data.repeatDate&&(this.isRepeat=!0),this.repeatDate=this.data.repeatDate)}saveCategory(){this.dialogRef.close({name:this.name,isRepeat:this.isRepeat,repeatDate:this.repeatDate})}}return n.\u0275fac=function(e){return new(e||n)(f(Hs),f(ay))},n.\u0275cmp=ne({type:n,selectors:[["app-category-add"]],decls:13,vars:4,consts:[[1,"form-content"],["matInput","",3,"ngModel","ngModelChange"],[3,"checked","ngModel","ngModelChange"],[4,"ngIf"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number","min","0","max","31",3,"ngModel","ngModelChange"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div"),g(2,"mat-form-field"),g(3,"mat-label"),S(4,"Name"),_(),g(5,"input",1),k("ngModelChange",function(s){return i.name=s}),_(),_(),_(),g(6,"div"),g(7,"mat-checkbox",2),k("ngModelChange",function(s){return i.isRepeat=s}),_(),S(8," Want to repeat? "),_(),$(9,_G,5,1,"div",3),g(10,"div"),g(11,"button",4),k("click",function(){return i.saveCategory()}),S(12,"Save"),_(),_(),_()),2&e&&(w(5),E("ngModel",i.name),w(2),E("checked",i.isRepeat)("ngModel",i.isRepeat),w(2),E("ngIf",i.isRepeat))},directives:[bc,Us,Th,jr,_a,bh,ly,Vn,zn,$_,U_,cc],styles:[".form-content[_ngcontent-%COMP%]{text-align:center}"]}),n})();const yG=["*"];function jk(n){return Error(`Unable to find icon with the name "${n}"`)}function Uk(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function $k(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class $s{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let kh=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new $s(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(Te.HTML,r);if(!o)throw $k(r);return this._addSvgIconConfig(e,i,new $s("",o,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new $s(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(Te.HTML,i);if(!s)throw $k(i);return this._addSvgIconSetConfig(e,new $s("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Te.RESOURCE_URL,e);if(!i)throw Uk(e);const r=this._cachedIconsByUrl.get(i);return r?G(Ih(r)):this._loadSvgIconFromConfig(new $s(e,null)).pipe(Rt(s=>this._cachedIconsByUrl.set(i,s)),ge(s=>Ih(s)))}getNamedSvgIcon(e,i=""){const r=zk(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):ok(jk(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?G(Ih(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ge(i=>Ih(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?G(r):GA(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Rr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Te.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),G(null)})))).pipe(ge(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw jk(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Rt(i=>e.svgText=i),ge(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?G(null):this._fetchIcon(e).pipe(Rt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString("");return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(""),r=e.attributes;for(let s=0;sthis._inProgressUrlFetches.delete(a)),Py());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(zk(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),Wk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],MG=n=>`[${n}]`,SG=Wk.map(MG).join(", "),AG=/^url\(['"]?#(.*?)['"]?\)$/;let zs=(()=>{class n extends DG{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=X.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ve(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(SG),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=i[s],l=a.getAttribute(o),c=l?l.match(AG):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(wt(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(kh),kn("aria-hidden"),f(wG),f(Kn))},n.\u0275cmp=ne({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(Z("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),ie("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[L],ngContentSelectors:yG,decls:1,vars:0,template:function(e,i){1&e&&(vt(),Le(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),Gk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Ke],Ke]}),n})();const qk=function(n){return{$implicit:n}};function TG(n,t){if(1&n&&Ip(0,3),2&n){const e=t.$implicit;V(),E("ngTemplateOutlet",Ii(3))("ngTemplateOutletContext",vl(2,qk,e))}}function kG(n,t){if(1&n){const e=Ot();ds(0),g(1,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().addNewCategory(r)}),S(2,"add"),_(),g(3,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().editNewCategory(r)}),S(4,"edit"),_(),g(5,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().deleteCategory(r)}),S(6,"delete"),_(),hs()}}function IG(n,t){if(1&n){const e=Ot();ds(0),g(1,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().addNewCategory(r)}),S(2,"check"),_(),hs()}}function xG(n,t){if(1&n&&Ip(0,3),2&n){const e=t.$implicit;V(3),E("ngTemplateOutlet",Ii(3))("ngTemplateOutletContext",vl(2,qk,e))}}function OG(n,t){if(1&n&&(ds(0),g(1,"ul",10),$(2,xG,1,4,"ng-container",1),_(),hs()),2&n){const e=V().$implicit;w(2),E("ngForOf",e.children)}}function RG(n,t){if(1&n){const e=Ot();g(0,"li",4),g(1,"div",5),g(2,"span",6),k("click",function(){const s=Fe(e).$implicit;return V().selectCategory(s)}),S(3),_(),g(4,"span",7),$(5,kG,7,0,"ng-container",8),$(6,IG,3,0,"ng-container",8),_(),_(),_(),$(7,OG,3,1,"ng-container",8)}if(2&n){const e=t.$implicit,i=V();w(3),Ve(e.name),w(2),E("ngIf","manage"==i.type),w(1),E("ngIf","action"==i.type),w(1),E("ngIf",e.children&&!e.collapsed)}}let Yk=(()=>{class n{constructor(e,i,r){this.transactionService=e,this.dialog=i,this.commonService=r,this.type="",this.categoryList=[],this.onSelect=new R,this.rootCategory=[]}ngOnInit(){}addNewCategory(e){this.dialog.open(cy).afterClosed().subscribe(i=>{i&&(this.categoryList.push({id:this.categoryList.length+1,name:i.name,repeatDate:i.isRepeat?i.repeatDate:0,parent:e.id}),this.transactionService.categoryList=this.categoryList,this.transactionService.updateConfig())})}editNewCategory(e){this.dialog.open(cy,{data:e}).afterClosed().subscribe(i=>{i&&(e.name=i.name,e.repeatDate=i.isRepeat?i.repeatDate:0,this.transactionService.categoryList=this.categoryList,this.transactionService.updateConfig())})}selectCategory(e){if("action"==this.type){let i=[],r=e;for(;null!=r.parent;)i.push(r),r=this.categoryList.find(s=>s.id==r.parent);r.parent||i.push(r),this.onSelect.emit(i)}}generateChildCategory(e,i){return e.children=i.filter(r=>null!=r.parent&&r.parent==e.id),e.children.map(r=>Object.assign(Object.assign({},r),{category:this.generateChildCategory(r,i)})),e}ngOnChanges(e){for(let i of this.categoryList)null==i.parent&&(i.children=[],i=this.generateChildCategory(i,this.categoryList),this.rootCategory.push(i))}deleteCategory(e){this.transactionService.categoryList.splice(this.transactionService.categoryList.findIndex(i=>i.id==e.id),1),this.transactionService.updateConfig()}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(dr),f(js))},n.\u0275cmp=ne({type:n,selectors:[["app-category-tree"]],inputs:{type:"type",categoryList:"categoryList"},outputs:{onSelect:"select"},features:[Ie],decls:4,vars:1,consts:[[1,"category-list"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],["treeNode",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"main-child"],[1,"node-name"],[1,"n-name",3,"click"],[1,"node-action"],[4,"ngIf"],[3,"click"],[1,"child-menu-list"]],template:function(e,i){1&e&&(g(0,"ul",0),$(1,TG,1,4,"ng-container",1),_(),$(2,RG,8,4,"ng-template",null,2,lE)),2&e&&(w(1),E("ngForOf",i.rootCategory))},directives:[ir,xM,Vn,zs],styles:[".category-list[_ngcontent-%COMP%]{border-left:1px solid #FFF;padding:0}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;position:relative;cursor:pointer;font-family:Roboto-Medium,sans-serif;color:#fff}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{display:flex;align-items:center;width:80%}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%] .n-name[_ngcontent-%COMP%]{font-size:16px;display:inline;max-width:95%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid;border-left:1px solid;padding:5px}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%] .n-name[_ngcontent-%COMP%]:hover + .node-action[_ngcontent-%COMP%]{display:inline}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-action[_ngcontent-%COMP%]{display:none;z-index:99}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;font-size:20px}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-action[_ngcontent-%COMP%]:hover{display:inline}.category-list[_ngcontent-%COMP%] .child-menu-list[_ngcontent-%COMP%]{border-left:1px solid #FFFFFF}.category-list[_ngcontent-%COMP%] > .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%] .n-name[_ngcontent-%COMP%]{border-left:0}.category-list[_ngcontent-%COMP%] > .child-menu-list[_ngcontent-%COMP%]{border-left:none}"]}),n})(),Kk=(()=>{class n{constructor(e,i,r){this.transactionService=e,this.dialogRef=i,this.commonService=r,this.categoryList=[]}ngOnInit(){this.categoryList=this.transactionService.getAllCategory()}onSelectAction(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(Hs),f(js))},n.\u0275cmp=ne({type:n,selectors:[["app-category-action"]],decls:2,vars:2,consts:[[1,"category-action"],[3,"type","categoryList","select"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"app-category-tree",1),k("select",function(s){return i.onSelectAction(s)}),_(),_()),2&e&&(w(1),E("type","action")("categoryList",i.categoryList))},directives:[Yk],styles:[".category-action[_ngcontent-%COMP%]{background:#49228d}"]}),n})();const FG=["trigger"],PG=["panel"];function NG(n,t){if(1&n&&(g(0,"span",8),S(1),_()),2&n){const e=V();w(1),Ve(e.placeholder)}}function LG(n,t){if(1&n&&(g(0,"span",12),S(1),_()),2&n){const e=V(2);w(1),Ve(e.triggerValue)}}function VG(n,t){1&n&&Le(0,0,["*ngSwitchCase","true"])}function BG(n,t){1&n&&(g(0,"span",9),$(1,LG,2,1,"span",10),$(2,VG,1,0,"ng-content",11),_()),2&n&&(E("ngSwitch",!!V().customTrigger),w(2),E("ngSwitchCase",!0))}function HG(n,t){if(1&n){const e=Ot();g(0,"div",13),g(1,"div",14,15),k("@transformPanel.done",function(r){return Fe(e),V()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return Fe(e),V()._handleKeydown(r)}),Le(3,1),_(),_()}if(2&n){const e=V();E("@transformPanelWrap",void 0),w(1),TD("mat-select-panel ",e._getPanelTheme(),""),fs("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),E("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Z("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const jG=[[["mat-select-trigger"]],"*"],UG=["mat-select-trigger","*"],Qk={transformPanelWrap:cr("transformPanelWrap",[zt("* => void",tz("@transformPanel",[ez()],{optional:!0}))]),transformPanel:cr("transformPanel",[bn("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),bn("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),bn("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),zt("void => *",rn("120ms cubic-bezier(0, 0, 0.2, 1)")),zt("* => void",rn("100ms 25ms linear",He({opacity:0})))])};let Jk=0;const Zk=new I("mat-select-scroll-strategy"),GG=new I("MAT_SELECT_CONFIG"),qG={provide:Zk,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};class YG{constructor(t,e){this.source=t,this.value=e}}const KG=ma(g_(Hr(__(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),eI=new I("MatSelectTrigger");let QG=(()=>{class n extends KG{constructor(e,i,r,s,o,a,l,c,u,d,h,p,m,b){var y,D,C;super(o,s,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=m,this._defaultOptions=b,this._panelOpen=!1,this._compareWith=(T,O)=>T===O,this._uid="mat-select-"+Jk++,this._triggerAriaLabelledBy=null,this._destroy=new H,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Jk++,this._panelDoneAnimatingStream=new H,this._overlayPanelClass=(null===(y=this._defaultOptions)||void 0===y?void 0:y.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(C=null===(D=this._defaultOptions)||void 0===D?void 0:D.disableOptionCentering)&&void 0!==C&&C,this.ariaLabel="",this.optionSelectionChanges=_d(()=>{const T=this.options;return T?T.changes.pipe(At(T),yn(()=>Nt(...T.map(O=>O.onSelectionChange)))):this._ngZone.onStable.pipe(wt(1),yn(()=>this.optionSelectionChanges))}),this.openedChange=new R,this._openedStream=this.openedChange.pipe(pt(T=>T),ge(()=>{})),this._closedStream=this.openedChange.pipe(pt(T=>!T),ge(()=>{})),this.selectionChange=new R,this.valueChange=new R,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==b?void 0:b.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=b.typeaheadDebounceInterval),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=ve(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ve(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ve(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=jn(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new $W(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Bd(),qe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(qe(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(At(null),qe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,s=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&s&&!fi(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,s=40===r||38===r,o=i.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!i.activeItem||fi(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&s&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(wt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(s){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new O8(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(qe(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(qe(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Nt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(qe(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Nt(...this.options.map(i=>i._stateChanges)).pipe(qe(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(f(_i),f(Be),f(z),f(ga),f(N),f(at,8),f(Gr,8),f(gi,8),f(yc,8),f(mi,10),kn("tabindex"),f(Zk),f(MS),f(GG,8))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&(Ce(FG,5),Ce(PG,5),Ce(Dk,5)),2&e){let r;j(r=U())&&(i.trigger=r.first),j(r=U())&&(i.panel=r.first),j(r=U())&&(i._overlayDir=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[L,Ie]}),n})(),tI=(()=>{class n extends QG{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-i+s/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(qe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(wt(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=jA(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function(n,t,e,i){return ne+256?Math.max(0,n-256+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new YG(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),s=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let c=this._selectionModel.selected[0]||this.options.first;o=c&&c.group?32:16}r||(o*=-1);const a=0-(e.left+o-(r?s:0)),l=e.right+o-i.width+(r?0:s);a>0?o+=a+8:l>0&&(o-=l+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const s=this._getItemHeight(),o=(s-this._triggerRect.height)/2,a=Math.floor(256/s);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*s:this._scrollTop===r?(e-(this._getItemCount()-a))*s+(s-(this._getItemCount()*s-256)%s):i-s/2,Math.round(-1*l-o))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,o=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>o?this._adjustPanelUp(c,o):a>s?this._adjustPanelDown(a,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const s=Math.round(e-i);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),o=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=jA(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,o),this._offsetY=this._calculateOverlayOffsetY(a,l,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(We(r,eI,5),We(r,D_,5),We(r,C_,5)),2&e){let s;j(s=U())&&(i.customTrigger=s.first),j(s=U())&&(i.options=s),j(s=U())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&k("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Z("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),ie("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Q([{provide:_c,useExisting:n},{provide:v_,useExisting:n}]),L],ngContentSelectors:UG,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(vt(jG),g(0,"div",0,1),k("click",function(){return i.toggle()}),g(3,"div",2),$(4,NG,2,1,"span",3),$(5,BG,3,2,"span",4),_(),g(6,"div",5),K(7,"div",6),_(),_(),$(8,HG,4,14,"ng-template",7),k("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Ii(1);Z("aria-owns",i.panelOpen?i.id+"-panel":null),w(3),E("ngSwitch",i.empty),Z("id",i._valueId),w(1),E("ngSwitchCase",!0),w(1),E("ngSwitchCase",!1),w(3),E("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[y6,ea,cd,Dk,kM,Zo],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Qk.transformPanelWrap,Qk.transformPanel]},changeDetection:0}),n})(),nI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[qG],imports:[[ws,Ah,UA,Ke],fc,vc,UA,Ke]}),n})();const JG=["mat-calendar-body",""];function XG(n,t){if(1&n&&(g(0,"tr",2),g(1,"td",3),S(2),_(),_()),2&n){const e=V();w(1),fs("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Z("colspan",e.numCols),w(1),Ji(" ",e.label," ")}}function ZG(n,t){if(1&n&&(g(0,"td",3),S(1),_()),2&n){const e=V(2);fs("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Z("colspan",e._firstRowOffset),w(1),Ji(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function eq(n,t){if(1&n){const e=Ot();g(0,"td",7),k("click",function(r){const o=Fe(e).$implicit;return V(2)._cellClicked(o,r)}),g(1,"div",8),S(2),_(),K(3,"div",9),_()}if(2&n){const e=t.$implicit,i=t.index,r=V().index,s=V();fs("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),ie("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",s._isActiveCell(r,i))("mat-calendar-body-range-start",s._isRangeStart(e.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",s._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",s._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",s._isInPreview(e.compareValue)),E("ngClass",e.cssClasses)("tabindex",s._isActiveCell(r,i)?0:-1),Z("data-mat-row",r)("data-mat-col",i)("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-selected",s._isSelected(e.compareValue)),w(1),ie("mat-calendar-body-selected",s._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",s.todayValue===e.compareValue),w(1),Ji(" ",e.displayValue," ")}}function tq(n,t){if(1&n&&(g(0,"tr",4),$(1,ZG,2,6,"td",5),$(2,eq,4,46,"td",6),_()),2&n){const e=t.$implicit,i=t.index,r=V();w(1),E("ngIf",0===i&&r._firstRowOffset),w(1),E("ngForOf",e)}}function nq(n,t){if(1&n&&(g(0,"th",5),g(1,"abbr",6),S(2),_(),_()),2&n){const e=t.$implicit;Z("aria-label",e.long),w(1),Z("title",e.long),w(1),Ve(e.narrow)}}const iI=["*"];function iq(n,t){}function rq(n,t){if(1&n){const e=Ot();g(0,"mat-month-view",5),k("activeDateChange",function(r){return Fe(e),V().activeDate=r})("_userSelection",function(r){return Fe(e),V()._dateSelected(r)}),_()}if(2&n){const e=V();E("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function sq(n,t){if(1&n){const e=Ot();g(0,"mat-year-view",6),k("activeDateChange",function(r){return Fe(e),V().activeDate=r})("monthSelected",function(r){return Fe(e),V()._monthSelectedInYearView(r)})("selectedChange",function(r){return Fe(e),V()._goToDateInView(r,"month")}),_()}if(2&n){const e=V();E("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function oq(n,t){if(1&n){const e=Ot();g(0,"mat-multi-year-view",7),k("activeDateChange",function(r){return Fe(e),V().activeDate=r})("yearSelected",function(r){return Fe(e),V()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return Fe(e),V()._goToDateInView(r,"year")}),_()}if(2&n){const e=V();E("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function aq(n,t){}const lq=["button"];function cq(n,t){1&n&&(zc(),g(0,"svg",3),K(1,"path",4),_())}const uq=[[["","matDatepickerToggleIcon",""]]],dq=["[matDatepickerToggleIcon]"],hq=[[["input","matStartDate",""]],[["input","matEndDate",""]]],fq=["input[matStartDate]","input[matEndDate]"];let Dc=(()=>{class n{constructor(){this.changes=new H,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,i){return`${e} \u2013 ${i}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})();class uy{constructor(t,e,i,r,s={},o=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=s,this.compareValue=o,this.rawValue=a}}let Ca=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new R,this.previewChange=new R,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const s=this._getCellFromElement(r.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&dy(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:s}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?s-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(wt(1)).subscribe(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})}_isRangeStart(e){return hy(e,this.startValue,this.endValue)}_isRangeEnd(e){return fy(e,this.startValue,this.endValue)}_isInRange(e){return py(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return hy(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let s=this.rows[i][r-1];if(!s){const o=this.rows[i-1];s=o&&o[o.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let s=this.rows[i][r+1];if(!s){const o=this.rows[i+1];s=o&&o[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(e){return fy(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return py(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return hy(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return fy(e,this.previewStart,this.previewEnd)}_isInPreview(e){return py(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(dy(e)?i=e:dy(e.parentNode)&&(i=e.parentNode),i){const r=i.getAttribute("data-mat-row"),s=i.getAttribute("data-mat-col");if(r&&s)return this.rows[parseInt(r)][parseInt(s)]}return null}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z))},n.\u0275cmp=ne({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Ie],attrs:JG,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&($(0,XG,3,6,"tr",0),$(1,tq,3,2,"tr",1)),2&e&&(E("ngIf",i._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),n})();function dy(n){return"TD"===n.nodeName}function hy(n,t,e){return null!==e&&t!==e&&n=t&&n===e}function py(n,t,e,i){return i&&null!==t&&null!==e&&t!==e&&n>=t&&n<=e}class Gt{constructor(t,e){this.start=t,this.end=e}}let Qr=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new H,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){return new(e||n)(v(void 0),v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),mq=(()=>{class n extends Qr{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),gq=(()=>{class n extends Qr{constructor(e){super(new Gt(null,null),e)}add(e){let{start:i,end:r}=this.selection;null==i?i=e:null==r?r=e:(i=e,r=null),super.updateSelection(new Gt(i,r),this)}isValid(){const{start:e,end:i}=this.selection;return null==e&&null==i||(null!=e&&null!=i?this._isValidDateInstance(e)&&this._isValidDateInstance(i)&&this._adapter.compareDate(e,i)<=0:(null==e||this._isValidDateInstance(e))&&(null==i||this._isValidDateInstance(i)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const rI={provide:Qr,deps:[[new ut,new xn,Qr],rt],useFactory:function(n,t){return n||new mq(t)}},bq={provide:Qr,deps:[[new ut,new xn,Qr],rt],useFactory:function(n,t){return n||new gq(t)}},Oh=new I("MAT_DATE_RANGE_SELECTION_STRATEGY");let vq=(()=>{class n{constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:r,end:s}=i;return null==r?r=e:null==s&&e&&this._dateAdapter.compareDate(e,r)>=0?s=e:(r=e,s=null),new Gt(r,s)}createPreview(e,i){let r=null,s=null;return i.start&&!i.end&&e&&(r=i.start,s=e),new Gt(r,s)}}return n.\u0275fac=function(e){return new(e||n)(v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Dq={provide:Oh,deps:[[new ut,new xn,Oh],rt],useFactory:function(n,t){return n||new vq(t)}};let sI=(()=>{class n{constructor(e,i,r,s,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rangeStrategy=o,this._rerenderSubscription=X.EMPTY,this.selectedChange=new R,this._userSelection=new R,this.activeDateChange=new R,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._dateAdapter.getYear(this.activeDate),s=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,s,i);let a,l;this._selected instanceof Gt?(a=this._getDateInCurrentMonth(this._selected.start),l=this._getDateInCurrentMonth(this._selected.end)):a=l=this._getDateInCurrentMonth(this._selected),(a!==i||l!==i)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!fi(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const s=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((o,a)=>({long:o,narrow:i[a]}));this._weekdays=s.slice(e).concat(s.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,s=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),s=this._dateAdapter.getDate(e);return new Date(i,r,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Gt?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Be),f(Vi,8),f(rt,8),f(at,8),f(Oh,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&Ce(Ca,5),2&e){let r;j(r=U())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ie],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(e,i){1&e&&(g(0,"table",0),g(1,"thead",1),g(2,"tr"),$(3,nq,3,3,"th",2),_(),g(4,"tr"),K(5,"th",3),_(),_(),g(6,"tbody",4),k("selectedValueChange",function(s){return i._dateSelected(s)})("previewChange",function(s){return i._previewChanged(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),_(),_()),2&e&&(w(3),E("ngForOf",i._weekdays),w(3),E("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},directives:[ir,Ca],encapsulation:2,changeDetection:0}),n})(),oI=(()=>{class n{constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=X.EMPTY,this.selectedChange=new R,this.yearSelected=new R,this.activeDateChange=new R,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),aI(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,s=[];r<24;r++)s.push(i+r),4==s.length&&(this._years.push(s.map(o=>this._createCellForYear(o))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value;this.yearSelected.emit(this._dateAdapter.createDate(i,0,1));let r=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,r,1));this.selectedChange.emit(this._dateAdapter.createDate(i,r,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),s=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new uy(e,r,r,this._shouldEnableYear(e),s)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,i,r,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rerenderSubscription=X.EMPTY,this.selectedChange=new R,this.monthSelected=new R,this.activeDateChange=new R,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const s=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),s=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(r,"year"):void 0;return new uy(e,i.toLocaleUpperCase(),s,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(s)==e;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>s}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(e,i,r,s,o){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=s,this._buttonDescriptionId="mat-calendar-button-"+Eq++,this.calendar.stateChanges.subscribe(()=>o.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-wc(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(s,o)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):aI(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(f(Dc),f(Se(()=>_y)),f(rt,8),f(Vi,8),f(Be))},n.\u0275cmp=ne({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:iI,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(vt(),g(0,"div",0),g(1,"div",1),g(2,"button",2),k("click",function(){return i.currentPeriodClicked()}),g(3,"span"),S(4),_(),K(5,"div",3),_(),K(6,"div",4),Le(7),g(8,"button",5),k("click",function(){return i.previousClicked()}),_(),g(9,"button",6),k("click",function(){return i.nextClicked()}),_(),_(),_()),2&e&&(w(2),Z("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),w(1),Z("id",i._buttonDescriptionId),w(1),Ve(i.periodButtonText),w(1),ie("mat-calendar-invert","month"!==i.calendar.currentView),w(3),E("disabled",!i.previousEnabled()),Z("aria-label",i.prevButtonLabel),w(1),E("disabled",!i.nextEnabled()),Z("aria-label",i.nextButtonLabel))},directives:[zn,J8],encapsulation:2,changeDetection:0}),n})(),_y=(()=>{class n{constructor(e,i,r,s){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new R,this.yearSelected=new R,this.monthSelected=new R,this.viewChanged=new R(!0),this._userSelection=new R,this.stateChanges=new H,this._intlChanges=e.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new pc(this.headerComponent||Mq),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate||e.maxDate||e.dateFilter;if(i&&!i.firstChange){const r=this._getCurrentViewComponent();r&&(this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof Gt||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(f(Dc),f(rt,8),f(Vi,8),f(Be))},n.\u0275cmp=ne({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(Ce(sI,5),Ce(cI,5),Ce(oI,5)),2&e){let r;j(r=U())&&(i.monthView=r.first),j(r=U())&&(i.yearView=r.first),j(r=U())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Q([rI]),Ie],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&($(0,iq,0,0,"ng-template",0),g(1,"div",1),$(2,rq,1,8,"mat-month-view",2),$(3,sq,1,6,"mat-year-view",3),$(4,oq,1,6,"mat-multi-year-view",4),_()),2&e&&(E("cdkPortalOutlet",i._calendarHeaderPortal),w(1),E("ngSwitch",i.currentView),w(1),E("ngSwitchCase","month"),w(1),E("ngSwitchCase","year"),w(1),E("ngSwitchCase","multi-year"))},directives:[ur,Lg,ea,cd,sI,cI,oI],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),n})();const uI={transformPanel:cr("transformPanel",[zt("void => enter-dropdown",rn("120ms cubic-bezier(0, 0, 0.2, 1)",PS([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),zt("void => enter-dialog",rn("150ms cubic-bezier(0, 0, 0.2, 1)",PS([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),zt("* => void",rn("100ms linear",He({opacity:0})))]),fadeInCalendar:cr("fadeInCalendar",[bn("void",He({opacity:0})),bn("enter",He({opacity:1})),zt("void => *",rn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Sq=0;const dI=new I("mat-datepicker-scroll-strategy"),Tq={provide:dI,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}},kq=pa(class{constructor(n){this._elementRef=n}});let Iq=(()=>{class n extends kq{constructor(e,i,r,s,o,a){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=s,this._rangeSelectionStrategy=o,this._subscriptions=new X,this._animationDone=new H,this._actionsPortal=null,this._closeButtonText=a.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,s=i instanceof Gt;if(s&&this._rangeSelectionStrategy){const o=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(o,this)}else r&&(s||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(Qr),f(rt),f(Oh,8),f(Dc))},n.\u0275cmp=ne({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&Ce(_y,5),2&e){let r;j(r=U())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&wu("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(Mu("@transformPanel",i._animationState),ie("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[L],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"mat-calendar",1),k("yearSelected",function(s){return i.datepicker._selectYear(s)})("monthSelected",function(s){return i.datepicker._selectMonth(s)})("viewChanged",function(s){return i.datepicker._viewChanged(s)})("_userSelection",function(s){return i._handleUserSelection(s)}),_(),$(2,aq,0,0,"ng-template",2),g(3,"button",3),k("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),S(4),_(),_()),2&e&&(ie("mat-datepicker-content-container-with-actions",i._actionsPortal),w(1),E("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),w(1),E("cdkPortalOutlet",i._actionsPortal),w(1),ie("cdk-visually-hidden",!i._closeButtonFocused),E("color",i.color||"primary"),w(1),Ve(i._closeButtonText))},directives:[z8,_y,Zo,ur,zn],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[uI.transformPanel,uI.fadeInCalendar]},changeDetection:0}),n})(),Ws=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u){this._overlay=i,this._ngZone=r,this._viewContainerRef=s,this._dateAdapter=a,this._dir=l,this._model=u,this._inputStateChanges=X.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new R,this.monthSelected=new R,this.viewChanged=new R(!0),this.openedStream=new R,this.closedStream=new R,this._opened=!1,this.id="mat-datepicker-"+Sq++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new H,this._scrollStrategy=o}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=ve(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=ve(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=ve(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}(e)}get opened(){return this._opened}set opened(e){ve(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof ry&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Xl(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const i=this._componentRef.instance;i._startExitAnimation(),i._animationDone.pipe(wt(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=this.datepickerInput.getOverlayLabelId(),r=new pc(Iq,this._viewContainerRef),s=this._overlayRef=this._overlay.create(new mc({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")})),o=s.overlayElement;o.setAttribute("role","dialog"),i&&o.setAttribute("aria-labelledby",i),e&&o.setAttribute("aria-modal","true"),this._getCloseStream(s).subscribe(a=>{a&&a.preventDefault(),this.close()}),this._componentRef=s.attach(r),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(wt(1)).subscribe(()=>s.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",s="above"===this.yPosition?"bottom":"top",o="top"===s?"bottom":"top";return e.withPositions([{originX:i,originY:o,overlayX:i,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o}])}_getCloseStream(e){return Nt(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(pt(i=>27===i.keyCode&&!fi(i)||this.datepickerInput&&fi(i,"altKey")&&38===i.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(yi),f(z),f(it),f(dI),f(rt,8),f(at,8),f(W,8),f(Qr))},n.\u0275dir=M({type:n,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ie]}),n})(),xq=(()=>{class n extends Ws{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Q([rI,{provide:Ws,useExisting:n}]),L],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})();class Rh{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let hI=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new R,this.dateInput=new R,this.stateChanges=new H,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=X.EMPTY,this._localeSubscription=X.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!o||this._matchesFilter(o)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMinDate();return!a||!o||this._dateAdapter.compareDate(a,o)<=0?null:{matDatepickerMin:{min:a,actual:o}}},this._maxValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMaxDate();return!a||!o||this._dateAdapter.compareDate(a,o)>=0?null:{matDatepickerMax:{max:a,actual:o}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=ve(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Rh(this,this._elementRef.nativeElement)),this.dateChange.emit(new Rh(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){fI(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r),this._dateAdapter.sameDate(r,this.value)?(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(r),this._cvaOnChange(r),this.dateInput.emit(new Rh(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Rh(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ie]}),n})();function fI(n,t){const e=Object.keys(n);for(let i of e){const{previousValue:r,currentValue:s}=n[i];if(!t.isDateInstance(r)||!t.isDateInstance(s))return!0;if(!t.sameDate(r,s))return!0}return!1}const Oq={provide:an,useExisting:Se(()=>yy),multi:!0},Rq={provide:gt,useExisting:Se(()=>yy),multi:!0};let yy=(()=>{class n extends hI{constructor(e,i,r,s){super(e,i,r),this._formField=s,this._closedSubscription=X.EMPTY,this._validator=zr.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(rt,8),f(Vi,8),f(yc,8))},n.\u0275dir=M({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&k("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)}),2&e&&(ni("disabled",i.disabled),Z("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Q([Oq,Rq,{provide:Pk,useExisting:n}]),L]}),n})(),pI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),mI=(()=>{class n{constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=X.EMPTY;const s=Number(r);this.tabIndex=s||0===s?s:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=ve(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:G(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:G(),r=this.datepicker?Nt(this.datepicker.openedStream,this.datepicker.closedStream):G();this._stateChanges.unsubscribe(),this._stateChanges=Nt(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(f(Dc),f(Be),kn("tabindex"))},n.\u0275cmp=ne({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&We(r,pI,5),2&e){let s;j(s=U())&&(i._customIcon=s.first)}},viewQuery:function(e,i){if(1&e&&Ce(lq,5),2&e){let r;j(r=U())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&k("click",function(s){return i._open(s)}),2&e&&(Z("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),ie("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ie],ngContentSelectors:dq,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(vt(uq),g(0,"button",0,1),$(2,cq,2,0,"svg",2),Le(3),_()),2&e&&(E("disabled",i.disabled)("disableRipple",i.disableRipple),Z("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),w(2),E("ngIf",!i._customIcon))},directives:[zn,Vn],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})();const Fh=new I("MAT_DATE_RANGE_INPUT_PARENT"),gI=__((()=>{class n extends hI{constructor(e,i,r,s,o,a,l,c){super(i,l,c),this._rangeInput=e,this._defaultErrorStateMatcher=r,this._injector=s,this._parentForm=o,this._parentFormGroup=a}ngOnInit(){const e=this._injector.get(mi,null,Y.Self|Y.Optional);e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e);const i=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==i||i._validatorOnChange()}}return n.\u0275fac=function(e){return new(e||n)(f(Fh),f(N),f(ga),f(_e),f(Gr,8),f(gi,8),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,features:[L]}),n})());let _I=(()=>{class n extends gI{constructor(e,i,r,s,o,a,l,c){super(e,i,r,s,o,a,l,c),this._startValidator=u=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(u.value)),h=this._model?this._model.selection.end:null;return!d||!h||this._dateAdapter.compareDate(d,h)<=0?null:{matStartDateInvalid:{end:h,actual:d}}},this._validator=zr.compose([...super._getValidators(),this._startValidator])}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||((null===(i=e.oldValue)||void 0===i?void 0:i.start)?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const i=new Gt(e,this._model.selection.end);this._model.updateSelection(i,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}getMirrorValue(){const e=this._elementRef.nativeElement,i=e.value;return i.length>0?i:e.placeholder}}return n.\u0275fac=function(e){return new(e||n)(f(Fh),f(N),f(ga),f(_e),f(Gr,8),f(gi,8),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(e,i){1&e&&k("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ni("disabled",i.disabled),Z("id",i._rangeInput.id)("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Q([{provide:an,useExisting:n,multi:!0},{provide:gt,useExisting:n,multi:!0}]),L]}),n})(),yI=(()=>{class n extends gI{constructor(e,i,r,s,o,a,l,c){super(e,i,r,s,o,a,l,c),this._endValidator=u=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(u.value)),h=this._model?this._model.selection.start:null;return!d||!h||this._dateAdapter.compareDate(d,h)>=0?null:{matEndDateInvalid:{start:h,actual:d}}},this._validator=zr.compose([...super._getValidators(),this._endValidator])}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||((null===(i=e.oldValue)||void 0===i?void 0:i.end)?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const i=new Gt(this._model.selection.start,e);this._model.updateSelection(i,this)}}_onKeydown(e){8===e.keyCode&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Fh),f(N),f(ga),f(_e),f(Gr,8),f(gi,8),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,i){1&e&&k("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ni("disabled",i.disabled),Z("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Q([{provide:an,useExisting:n,multi:!0},{provide:gt,useExisting:n,multi:!0}]),L]}),n})(),Fq=0,Pq=(()=>{class n{constructor(e,i,r,s,o){if(this._changeDetectorRef=e,this._elementRef=i,this._dateAdapter=s,this._formField=o,this._closedSubscription=X.EMPTY,this.id="mat-date-range-input-"+Fq++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new H,null==o?void 0:o._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const a=i.nativeElement.classList;a.add("mat-mdc-input-element"),a.add("mat-mdc-form-field-input-control")}this.ngControl=r}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var e,i;const r=(null===(e=this._startInput)||void 0===e?void 0:e._getPlaceholder())||"",s=(null===(i=this._endInput)||void 0===i?void 0:i._getPlaceholder())||"";return r||s?`${r} ${this.separator} ${s}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{var i,r;null===(i=this._startInput)||void 0===i||i._onTouched(),null===(r=this._endInput)||void 0===r||r._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(e){this._required=ve(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._startInput,r=this._endInput,s=i&&i._matchesFilter(i.value),o=r&&r._matchesFilter(i.value);this._dateFilter=e,i&&i._matchesFilter(i.value)!==s&&i._validatorOnChange(),r&&r._matchesFilter(r.value)!==o&&r._validatorOnChange()}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._revalidate())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const i=ve(e);i!==this._groupDisabled&&(this._groupDisabled=i,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),i=!!this._endInput&&this._endInput.isEmpty();return e&&i}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),Nt(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){fI(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Be),f(N),f(Wt,10),f(rt,8),f(yc,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-date-range-input"]],contentQueries:function(e,i,r){if(1&e&&(We(r,_I,5),We(r,yI,5)),2&e){let s;j(s=U())&&(i._startInput=s.first),j(s=U())&&(i._endInput=s.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,i){2&e&&(Z("id",null)("aria-labelledby",i._getAriaLabelledby())("aria-describedby",i._ariaDescribedBy)("data-mat-calendar",i.rangePicker?i.rangePicker.id:null),ie("mat-date-range-input-hide-placeholders",i._shouldHidePlaceholders())("mat-date-range-input-required",i.required))},inputs:{separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled"},exportAs:["matDateRangeInput"],features:[Q([{provide:_c,useExisting:n},{provide:Fh,useExisting:n}]),Ie],ngContentSelectors:fq,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(e,i){1&e&&(vt(hq),g(0,"div",0),k("cdkFocusChange",function(s){return i._updateFocus(s)}),g(1,"div",1),Le(2),g(3,"span",2),S(4),_(),_(),g(5,"span",3),S(6),_(),g(7,"div",4),Le(8,1),_(),_()),2&e&&(w(4),Ve(i._getInputMirrorValue()),w(1),ie("mat-date-range-input-separator-hidden",i._shouldHideSeparator()),w(1),Ve(i.separator))},directives:[Lg],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),n})(),Nq=(()=>{class n extends Ws{_forwardContentValues(e){super._forwardContentValues(e);const i=this.datepickerInput;i&&(e.comparisonStart=i.comparisonStart,e.comparisonEnd=i.comparisonEnd)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[Q([bq,Dq,{provide:Ws,useExisting:n}]),L],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})(),bI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[Dc,Tq],imports:[[ws,w_,Ah,IS,Sh,Ke],fc]}),n})();function Lq(n,t){if(1&n&&(g(0,"mat-option",18),S(1),_()),2&n){const e=t.$implicit;E("value",e),w(1),Ve(e)}}function Vq(n,t){if(1&n&&(g(0,"mat-option",18),S(1),_()),2&n){const e=t.$implicit;E("value",e.id),w(1),Ve(e.name)}}function Bq(n,t){if(1&n&&(g(0,"mat-form-field"),g(1,"mat-label"),S(2,"Users"),_(),g(3,"mat-select",19),$(4,Vq,2,2,"mat-option",5),_(),_()),2&n){const e=V();w(4),E("ngForOf",e.users)}}const Hq=function(){return["/transactions"]};let jq=(()=>{class n{constructor(e,i,r,s,o){this.transactionService=e,this.fb=i,this.commonService=r,this.dialog=s,this.router=o,this.transactionList=[],this.financeType=["Earn","Expense"],this.categoryList=[],this.users=[],this.showUser=!1,this.displaySelectedCategory="",this.actionForm=this.fb.group({ft:[null,[zr.required]],c:[null,[zr.required]],u:[null],a:[null,[zr.required]],d:[new Date,[zr.required]],cm:[""]})}ngOnInit(){this.categoryList=this.transactionService.getAllCategory(),this.transactionList=this.transactionService.getAllTransactions(),this.users=this.transactionService.getAllUsers()}selectCategory(){this.dialog.open(Kk,{width:"80%"}).afterClosed().subscribe(e=>{var i;e&&(e.forEach(r=>{this.displaySelectedCategory+=r.name+" "}),null===(i=this.actionForm.get("c"))||void 0===i||i.setValue(e.map(r=>r.id).toString()))})}saveTransaction(){this.actionForm.value.d=this.actionForm.value.d.getTime();const e=this.commonService.getTransactionList();e.push(this.actionForm.value),this.commonService.setTransaction(e),this.router.navigate(["/transactions"])}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(G_),f(js),f(dr),f(Pt))},n.\u0275cmp=ne({type:n,selectors:[["app-action"]],decls:45,vars:9,consts:[[1,"action-main-container"],[1,"action-content"],[3,"formGroup"],[1,"form-row"],["formControlName","ft"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"],["matInput","","formControlName","a","type","number"],[1,"example-full-width"],["matInput","","formControlName","d",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matDatepickerToggleIcon",""],["picker",""],[3,"change"],[4,"ngIf"],["matInput","","formControlName","cm"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"routerLink"],[3,"value"],["formControlName","u"]],template:function(e,i){if(1&e&&(g(0,"div",0),g(1,"div",1),g(2,"form",2),g(3,"div",3),g(4,"mat-form-field"),g(5,"mat-label"),S(6,"Earn OR Expense"),_(),g(7,"mat-select",4),$(8,Lq,2,2,"mat-option",5),_(),_(),_(),g(9,"div",3),g(10,"div"),S(11),_(),g(12,"button",6),k("click",function(){return i.selectCategory()}),S(13,"Select Category"),_(),_(),g(14,"div",3),g(15,"mat-form-field"),g(16,"mat-label"),S(17,"Amount"),_(),K(18,"input",7),_(),_(),g(19,"div",3),g(20,"mat-form-field",8),g(21,"mat-label"),S(22,"Choose a date"),_(),K(23,"input",9),g(24,"mat-datepicker-toggle",10),g(25,"mat-icon",11),S(26,"calendar_today"),_(),_(),K(27,"mat-datepicker",null,12),_(),_(),g(29,"div",3),g(30,"mat-checkbox",13),k("change",function(){return i.showUser=!i.showUser}),S(31,"Want to select any user?"),_(),$(32,Bq,5,1,"mat-form-field",14),_(),g(33,"div",3),g(34,"mat-form-field"),g(35,"mat-label"),S(36,"Comment"),_(),K(37,"textarea",15),_(),_(),g(38,"div",3),g(39,"button",16),k("click",function(){return i.saveTransaction()}),S(40,"Save"),_(),K(41,"br"),K(42,"br"),g(43,"button",17),S(44,"Back To Transactions"),_(),_(),_(),_(),_()),2&e){const r=Ii(28);w(2),E("formGroup",i.actionForm),w(6),E("ngForOf",i.financeType),w(3),Ve(i.displaySelectedCategory),w(12),E("matDatepicker",r),w(1),E("for",r),w(8),E("ngIf",i.showUser),w(7),E("disabled",i.actionForm.invalid),w(4),E("routerLink",Ar(8,Hq))}},directives:[vh,dh,gi,bc,Us,tI,_a,uc,ir,zn,Th,jr,cc,yy,mI,zs,pI,xq,ly,Vn,Gl,D_],styles:[".action-main-container[_ngcontent-%COMP%]{min-height:100vh;display:flex;justify-content:center;align-items:center;text-align:center}.action-main-container[_ngcontent-%COMP%] .action-content[_ngcontent-%COMP%]{width:80%;padding:10px;background:#FFFFFF}.action-main-container[_ngcontent-%COMP%] .action-content[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{margin:5px 0}"]}),n})(),Uq=(()=>{class n{constructor(e,i,r){this.dialog=e,this.commonService=i,this.transactionService=r,this.categoryList=[]}ngOnInit(){this.transactionService.category.subscribe(e=>{this.categoryList=e}),this.categoryList=this.transactionService.getAllCategory()}addNewCategory(){this.dialog.open(cy).afterClosed().subscribe(e=>{e&&(this.categoryList.push({id:this.categoryList.length+1,name:e.name,repeatDate:e.isRepeat?e.repeatDate:0}),this.transactionService.categoryList=this.categoryList,this.transactionService.updateConfig())})}}return n.\u0275fac=function(e){return new(e||n)(f(dr),f(js),f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-category-manage"]],decls:9,vars:2,consts:[[1,"category-main-container"],[1,"category-action"],["mat-raised-button","","color","primary",3,"click"],[3,"type","categoryList"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"h2"),S(3,"Category"),_(),g(4,"button",2),k("click",function(){return i.addNewCategory()}),g(5,"mat-icon"),S(6,"add"),_(),S(7,"Add New Category"),_(),_(),K(8,"app-category-tree",3),_()),2&e&&(w(8),E("type","manage")("categoryList",i.categoryList))},directives:[zn,zs,Yk],styles:[".category-main-container[_ngcontent-%COMP%]{padding:10px}.category-main-container[_ngcontent-%COMP%] .category-action[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.category-main-container[_ngcontent-%COMP%] .category-action[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-family:Oswald-Medium,sans-serif}"]}),n})(),vI=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.name=""}ngOnInit(){this.data&&(this.name=this.data.name)}saveUser(){this.dialogRef.close(this.name)}}return n.\u0275fac=function(e){return new(e||n)(f(Hs),f(ay))},n.\u0275cmp=ne({type:n,selectors:[["app-users-add"]],decls:9,vars:1,consts:[[1,"form-content"],["matInput","",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div"),g(2,"mat-form-field"),g(3,"mat-label"),S(4,"Name"),_(),g(5,"input",1),k("ngModelChange",function(s){return i.name=s}),_(),_(),_(),g(6,"div"),g(7,"button",2),k("click",function(){return i.saveUser()}),S(8,"Save"),_(),_(),_()),2&e&&(w(5),E("ngModel",i.name))},directives:[bc,Us,Th,jr,_a,bh,zn],styles:[""]}),n})();function $q(n,t){if(1&n){const e=Ot();g(0,"li"),g(1,"div",5),S(2),_(),g(3,"div",6),g(4,"mat-icon",7),k("click",function(){const s=Fe(e).$implicit;return V().editUser(s)}),S(5,"edit"),_(),_(),_()}if(2&n){const e=t.$implicit;w(2),Ve(e.name)}}let zq=(()=>{class n{constructor(e,i,r){this.dialog=e,this.commonService=i,this.transactionService=r,this.usersList=[]}ngOnInit(){this.transactionService.users.subscribe(e=>{this.usersList=e}),this.usersList=this.transactionService.getAllUsers()}addNewUser(){this.dialog.open(vI).afterClosed().subscribe(e=>{e&&(this.usersList.push({id:this.usersList.length+1,name:e}),this.transactionService.userList=this.usersList,this.transactionService.updateConfig())})}editUser(e){this.dialog.open(vI,{data:{name:e.name}}).afterClosed().subscribe(i=>{i&&(e.name=i,this.transactionService.userList=this.usersList,this.transactionService.updateConfig())})}}return n.\u0275fac=function(e){return new(e||n)(f(dr),f(js),f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-user-manage"]],decls:11,vars:1,consts:[[1,"users-main-container"],[1,"users-action"],["mat-raised-button","","color","primary",3,"click"],[1,"users-list"],[4,"ngFor","ngForOf"],[1,"u-name"],[1,"u-action"],[3,"click"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"h2"),S(3,"Users"),_(),g(4,"button",2),k("click",function(){return i.addNewUser()}),g(5,"mat-icon"),S(6,"add"),_(),S(7,"Add New User"),_(),_(),g(8,"div",3),g(9,"ul"),$(10,$q,6,1,"li",4),_(),_(),_()),2&e&&(w(10),E("ngForOf",i.usersList))},directives:[zn,zs,ir],styles:[".users-main-container[_ngcontent-%COMP%]{padding:10px}.users-main-container[_ngcontent-%COMP%] .users-action[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.users-main-container[_ngcontent-%COMP%] .users-action[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-family:Oswald-Medium,sans-serif}.users-main-container[_ngcontent-%COMP%] .users-list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;padding:5px}.users-main-container[_ngcontent-%COMP%] .users-list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:#fff;font-size:14px;font-family:Roboto-Medium,sans-serif}"]}),n})();function Wq(n,t){if(1&n&&(g(0,"mat-option",12),S(1),_()),2&n){const e=t.$implicit;E("value",e),w(1),Ve(e)}}function Gq(n,t){if(1&n&&(g(0,"mat-option",12),S(1),_()),2&n){const e=t.$implicit;E("value",e.id),w(1),Ve(e.name)}}let qq=(()=>{class n{constructor(e,i,r,s,o){this.transactionService=e,this.commonService=i,this.dialog=r,this.fb=s,this.dialogRef=o,this.financeType=["Earn","Expense"],this.categoryList=[],this.users=[],this.displaySelectedCategory="",this.searchForm=this.fb.group({ft:[null],c:[null],u:[null],sd:[],ed:[]})}ngOnInit(){this.categoryList=this.transactionService.getAllCategory(),this.users=this.transactionService.getAllUsers()}selectCategory(){this.dialog.open(Kk,{width:"80%"}).afterClosed().subscribe(e=>{e&&(e.forEach(i=>{this.displaySelectedCategory+=i.name+" "}),this.searchForm.value.c=e.map(i=>i.id).toString())})}filterAction(){this.searchForm.value.sd&&(this.searchForm.value.sd=new Date(this.searchForm.value.sd.setHours(0,0,0,0)).getTime()),this.searchForm.value.ed&&(this.searchForm.value.ed=new Date(this.searchForm.value.ed.setHours(23,59,59,0)).getTime()),this.dialogRef.close(this.searchForm.value)}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(js),f(dr),f(G_),f(Hs))},n.\u0275cmp=ne({type:n,selectors:[["app-transaction-filter"]],decls:34,vars:6,consts:[[1,"filter-main-container"],[3,"formGroup"],[1,"form-row"],["formControlName","ft"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"],[3,"rangePicker"],["formControlName","sd","matStartDate","","placeholder","Start date"],["formControlName","ed","matEndDate","","placeholder","End date"],["matIconSuffix","",3,"for"],["picker",""],["formControlName","u"],[3,"value"]],template:function(e,i){if(1&e&&(g(0,"div",0),g(1,"form",1),g(2,"div",2),g(3,"mat-form-field"),g(4,"mat-label"),S(5,"Earn OR Expense"),_(),g(6,"mat-select",3),$(7,Wq,2,2,"mat-option",4),_(),_(),_(),g(8,"div",2),g(9,"div"),S(10),_(),g(11,"button",5),k("click",function(){return i.selectCategory()}),S(12,"Select Category"),_(),_(),g(13,"div",2),g(14,"mat-form-field"),g(15,"mat-label"),S(16,"Enter a date range"),_(),g(17,"mat-date-range-input",6),K(18,"input",7),K(19,"input",8),_(),g(20,"mat-hint"),S(21,"MM/DD/YYYY \u2013 MM/DD/YYYY"),_(),K(22,"mat-datepicker-toggle",9),K(23,"mat-date-range-picker",null,10),_(),_(),g(25,"div",2),g(26,"mat-form-field"),g(27,"mat-label"),S(28,"Users"),_(),g(29,"mat-select",11),$(30,Gq,2,2,"mat-option",4),_(),_(),_(),g(31,"div",2),g(32,"button",5),k("click",function(){return i.filterAction()}),S(33,"Filter"),_(),_(),_(),_()),2&e){const r=Ii(24);w(1),E("formGroup",i.searchForm),w(6),E("ngForOf",i.financeType),w(3),Ve(i.displaySelectedCategory),w(7),E("rangePicker",r),w(5),E("for",r),w(8),E("ngForOf",i.users)}},directives:[vh,dh,gi,bc,Us,tI,_a,uc,ir,zn,Pq,jr,_I,yI,X6,mI,Nq,D_],styles:[".filter-main-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:80%;padding:10px;background:#FFFFFF;margin:0 auto}.filter-main-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{margin:10px 0;text-align:center}.filter-main-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),n})(),Yq=(()=>{class n{constructor(e){this.transactionService=e,this.categoryList=[],this.categoryList=this.transactionService.getAllCategory()}transform(e,...i){return i.length>0&&Array.isArray(i[0])?i[0].filter(r=>e.split(",").indexOf(r.id.toString())>-1).map(r=>r.name).join(" "):e}}return n.\u0275fac=function(e){return new(e||n)(f(Hi,16))},n.\u0275pipe=Lt({name:"cateoryFlag",type:n,pure:!0}),n})(),Kq=(()=>{class n{transform(e,...i){if(i.length>0&&Array.isArray(i[0])&&null!=e){const r=i[0].find(s=>e==s.id);if(r)return r.name}return e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Lt({name:"userFlag",type:n,pure:!0}),n})();function Qq(n,t){if(1&n){const e=Ot();g(0,"button",13),k("click",function(){return Fe(e),V().openTransactionFilter()}),g(1,"mat-icon"),S(2,"filter_list"),_(),S(3," Filter"),_()}}function Jq(n,t){if(1&n){const e=Ot();g(0,"button",13),k("click",function(){return Fe(e),V().clearFilter()}),g(1,"mat-icon"),S(2,"filter_list"),_(),S(3," Clear Filter"),_()}}const Xq=function(n,t){return{earn:n,expense:t}};function Zq(n,t){if(1&n&&(g(0,"div",14),g(1,"div",15),g(2,"div",16),S(3),Tr(4,"cateoryFlag"),_(),g(5,"em"),S(6),Tr(7,"userFlag"),_(),K(8,"br"),g(9,"em"),S(10),_(),g(11,"div",17),S(12),Tr(13,"date"),_(),_(),g(14,"div",18),g(15,"div",19),S(16),Tr(17,"currency"),_(),_(),_()),2&n){const e=t.$implicit,i=V();w(3),Ve(ys(4,6,e.c,i.categoryList)),w(3),Ve(ys(7,9,e.u,i.userList)),w(4),Ve(e.cm),w(2),Ve(function(n,t,e){const i=n+20,r=A(),s=to(r,i);return wl(r,Dl(r,i)?Jw(r,Jt(),t,s.transform,e,s):s.transform(e))}(13,12,e.d)),w(3),E("ngClass",im(17,Xq,"Earn"==e.ft,"Expense"==e.ft)),w(1),Ji(" ",ys(17,14,e.a,"INR")," ")}}const eY=function(){return["/action"]},tY=function(n,t,e){return{earn:n,expense:t,warning:e}};let nY=(()=>{class n{constructor(e,i,r){this.transactionService=e,this.commonService=i,this.dialog=r,this.transactionList=[],this.totalEarn=0,this.totalExpense=0,this.totalBalance=0,this.isFilter=!1,this.categoryList=[],this.userList=[],this.transactionService.transactions.subscribe(s=>{this.generateTransactions(s)}),this.transactionService.category.subscribe(s=>{this.categoryList=s}),this.transactionService.users.subscribe(s=>{this.userList=s})}ngOnDestroy(){}ngOnInit(){this.transactionService.emitAllTransactions()}generateTransactions(e){this.transactionList=e.sort((i,r)=>r.d-i.d),this.totalExpense=0,this.totalEarn=0;for(let i of this.transactionList)"Earn"==i.ft&&(this.totalEarn+=i.a),"Expense"==i.ft&&(this.totalExpense+=i.a);this.totalBalance=this.totalEarn-this.totalExpense}openTransactionFilter(){this.dialog.open(qq).afterClosed().subscribe(e=>{if(e){this.isFilter=!0,this.totalExpense=0,this.totalEarn=0,this.transactionList=this.commonService.getTransactionList().sort((i,r)=>r.d-i.d).filter(i=>e&&(e.ft&&i.ft==e.ft||null==e.ft)&&(e.c&&i.c.indexOf(e.c)>-1||null==e.c)&&(e.u&&e.u==i.u||null==e.u)&&(e.sd&&e.sd<=i.d||null==e.sd)&&(e.ed&&e.ed>=i.d||null==e.ed));for(let i of this.transactionList)"Earn"==i.ft&&(this.totalEarn+=i.a),"Expense"==i.ft&&(this.totalExpense+=i.a);this.totalBalance=this.totalEarn-this.totalExpense}})}clearFilter(){this.generateTransactions(this.transactionService.getAllTransactions()),this.isFilter=!1}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(js),f(dr))},n.\u0275cmp=ne({type:n,selectors:[["app-transactions"]],decls:30,vars:22,consts:[[1,"trans-container"],[1,"trans-action"],["mat-raised-button","","color","accent",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],[1,"trans-group"],[1,"group-left"],[1,"earn"],[1,"group-middle"],[3,"ngClass"],[1,"group-right"],[1,"expense"],[1,"trans-list"],["class","trans-item",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"],[1,"trans-item"],[1,"trans-item-left"],[1,"trans-c"],[1,"trans-d"],[1,"trans-item-right"],[1,"trans-a",3,"ngClass"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"h2"),S(3,"Transactions"),_(),g(4,"button",2),g(5,"mat-icon"),S(6,"add"),_(),_(),$(7,Qq,4,0,"button",3),$(8,Jq,4,0,"button",3),_(),g(9,"div",4),g(10,"div",5),g(11,"span"),S(12,"Earn"),_(),g(13,"label",6),S(14),Tr(15,"currency"),_(),_(),g(16,"div",7),g(17,"span"),S(18,"Balance"),_(),g(19,"label",8),S(20),Tr(21,"currency"),_(),_(),g(22,"div",9),g(23,"span"),S(24,"Expense"),_(),g(25,"label",10),S(26),Tr(27,"currency"),_(),_(),_(),g(28,"div",11),$(29,Zq,18,20,"div",12),_(),_()),2&e&&(w(4),E("routerLink",Ar(17,eY)),w(3),E("ngIf",!i.isFilter),w(1),E("ngIf",i.isFilter),w(6),Ve(ys(15,8,i.totalEarn,"INR")),w(5),E("ngClass",Qw(18,tY,i.totalBalance>0,i.totalBalance<0,i.totalBalance<100&&i.totalBalance>0)),w(1),Ve(ys(21,11,i.totalBalance,"INR")),w(6),Ve(ys(27,14,i.totalExpense,"INR")),w(3),E("ngForOf",i.transactionList))},directives:[zn,Gl,zs,Vn,Zo,ir],pipes:[FM,Yq,Kq,OM],styles:[".trans-container[_ngcontent-%COMP%]{padding:10px}.trans-container[_ngcontent-%COMP%] .trans-action[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.trans-container[_ngcontent-%COMP%] .trans-action[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-family:Oswald-Medium,sans-serif}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:10px;background:#372060;margin:10px 0}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%]{text-align:right}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%]{text-align:center}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#fff;font-family:Roboto-Medium,sans-serif}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:20px;font-family:Oswald-Medium,sans-serif}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label.earn[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label.earn[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label.earn[_ngcontent-%COMP%]{color:#38cc8a}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label.expense[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label.expense[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label.expense[_ngcontent-%COMP%]{color:#d24b4b}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label.warning[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label.warning[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label.warning[_ngcontent-%COMP%]{color:#ffd740}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%]{height:76vh;overflow-y:scroll}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%]{display:flex;color:#fff;justify-content:space-between;padding:10px;border-bottom:1px solid #2e1f48}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-left[_ngcontent-%COMP%] .trans-c[_ngcontent-%COMP%]{font-family:Roboto-Medium,sans-serif;font-size:16px}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-right[_ngcontent-%COMP%] .trans-a[_ngcontent-%COMP%]{font-family:Oswald-Medium,sans-serif;font-size:20px}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-right[_ngcontent-%COMP%] .trans-a.earn[_ngcontent-%COMP%]{color:#38cc8a}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-right[_ngcontent-%COMP%] .trans-a.expense[_ngcontent-%COMP%]{color:#d24b4b}"]}),n})();function iY(n,t){1&n&&Le(0)}const by=["*"];function rY(n,t){}const sY=function(n){return{animationDuration:n}},oY=function(n,t){return{value:n,params:t}},aY=["tabBodyWrapper"],lY=["tabHeader"];function cY(n,t){}function uY(n,t){1&n&&$(0,cY,0,0,"ng-template",9),2&n&&E("cdkPortalOutlet",V().$implicit.templateLabel)}function dY(n,t){1&n&&S(0),2&n&&Ve(V().$implicit.textLabel)}function hY(n,t){if(1&n){const e=Ot();g(0,"div",6),k("click",function(){const r=Fe(e),s=r.$implicit,o=r.index,a=V(),l=Ii(1);return a._handleClick(s,l,o)})("cdkFocusChange",function(r){const o=Fe(e).index;return V()._tabFocusChanged(r,o)}),g(1,"div",7),$(2,uY,1,1,"ng-template",8),$(3,dY,1,1,"ng-template",8),_(),_()}if(2&n){const e=t.$implicit,i=t.index,r=V();ie("mat-tab-label-active",r.selectedIndex==i),E("id",r._getTabLabelId(i))("disabled",e.disabled)("matRippleDisabled",e.disabled||r.disableRipple),Z("tabIndex",r._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(i))("aria-selected",r.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),w(2),E("ngIf",e.templateLabel),w(1),E("ngIf",!e.templateLabel)}}function fY(n,t){if(1&n){const e=Ot();g(0,"mat-tab-body",10),k("_onCentered",function(){return Fe(e),V()._removeTabBodyWrapperHeight()})("_onCentering",function(r){return Fe(e),V()._setTabBodyWrapperHeight(r)}),_()}if(2&n){const e=t.$implicit,i=t.index,r=V();ie("mat-tab-body-active",r.selectedIndex===i),E("id",r._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration),Z("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const CI=["tabListContainer"],DI=["tabList"],wI=["nextPaginator"],EI=["previousPaginator"],mY=new I("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let Ph=(()=>{class n{constructor(e,i,r,s){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=r,this._animationMode=s}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const i=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=i.left,r.style.width=i.width}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(mY),f(Tt,8))},n.\u0275dir=M({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&&ie("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),n})();const MI=new I("MatTabContent"),SI=new I("MatTabLabel"),AI=new I("MAT_TAB"),_Y=Hr(class{}),TI=new I("MAT_TAB_GROUP");let kI=(()=>{class n extends _Y{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new H,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Kr(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(TI,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(We(r,SI,5),We(r,MI,7,dt)),2&e){let s;j(s=U())&&(i.templateLabel=s.first),j(s=U())&&(i._explicitContent=s.first)}},viewQuery:function(e,i){if(1&e&&Ce(dt,7),2&e){let r;j(r=U())&&(i._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Q([{provide:AI,useExisting:n}]),L,Ie],ngContentSelectors:by,decls:1,vars:0,template:function(e,i){1&e&&(vt(),$(0,iY,1,0,"ng-template"))},encapsulation:2}),n})();const yY={translateTab:cr("translateTab",[bn("center, void, left-origin-center, right-origin-center",He({transform:"none"})),bn("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),bn("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),zt("* => left, * => right, left => center, right => center",rn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zt("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)"}),rn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zt("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)"}),rn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let bY=(()=>{class n extends ur{constructor(e,i,r,s){super(e,i,s),this._host=r,this._centeringSub=X.EMPTY,this._leavingSub=X.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(At(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(ii),f(it),f(Se(()=>II)),f(W))},n.\u0275dir=M({type:n,selectors:[["","matTabBodyHost",""]],features:[L]}),n})(),vY=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=X.EMPTY,this._translateTabComplete=new H,this._onCentering=new R,this._beforeCentering=new R,this._afterLeavingCenter=new R,this._onCentered=new R(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(s=>{this._computePositionAnimationState(s),r.markForCheck()})),this._translateTabComplete.pipe(Bd((s,o)=>s.fromState===o.fromState&&s.toState===o.toState)).subscribe(s=>{this._isCenterPosition(s.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(s.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(at,8),f(Be))},n.\u0275dir=M({type:n,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),II=(()=>{class n extends vY{constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(at,8),f(Be))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Ce(ur,5),2&e){let r;j(r=U())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[L],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),k("@translateTab.start",function(s){return i._onTranslateTabStarted(s)})("@translateTab.done",function(s){return i._translateTabComplete.next(s)}),$(2,rY,0,0,"ng-template",2),_()),2&e&&E("@translateTab",im(3,oY,i._position,vl(1,sY,i.animationDuration)))},directives:[bY],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[yY.translateTab]}}),n})();const xI=new I("MAT_TABS_CONFIG");let CY=0;class DY{}const wY=pa(ma(class{constructor(n){this._elementRef=n}}),"primary");let EY=(()=>{class n extends wY{constructor(e,i,r,s){var o;super(e),this._changeDetectorRef=i,this._animationMode=s,this._tabs=new kr,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=X.EMPTY,this._tabLabelSubscription=X.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new R,this.focusChange=new R,this.animationDone=new R,this.selectedTabChange=new R(!0),this._groupId=CY++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=null!==(o=null==r?void 0:r.contentTabIndex)&&void 0!==o?o:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=ve(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=jn(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=jn(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,s)=>r.isActive=s===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const i=this._tabs.toArray();for(let r=0;r{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new DY;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Nt(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){e.disabled||(this.selectedIndex=i.focusIndex=r)}_getTabIndex(e,i){return e.disabled?null:this.selectedIndex===i?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(xI,8),f(Tt,8))},n.\u0275dir=M({type:n,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[L]}),n})(),MY=(()=>{class n extends EY{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(xI,8),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&We(r,kI,5),2&e){let s;j(s=U())&&(i._allTabs=s)}},viewQuery:function(e,i){if(1&e&&(Ce(aY,5),Ce(lY,5)),2&e){let r;j(r=U())&&(i._tabBodyWrapper=r.first),j(r=U())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&&ie("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Q([{provide:TI,useExisting:n}]),L],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,i){1&e&&(g(0,"mat-tab-header",0,1),k("indexFocused",function(s){return i._focusChanged(s)})("selectFocusedIndex",function(s){return i.selectedIndex=s}),$(2,hY,4,14,"div",2),_(),g(3,"div",3,4),$(5,fY,1,9,"mat-tab-body",5),_()),2&e&&(E("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),w(2),E("ngForOf",i._tabs),w(1),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode),w(2),E("ngForOf",i._tabs))},directives:function(){return[IY,ir,OI,Bi,Lg,Vn,ur,II]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),n})();const SY=Hr(class{});let OI=(()=>{class n extends SY{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(f(N))},n.\u0275dir=M({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(Z("aria-disabled",!!i.disabled),ie("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[L]}),n})();const RI=ca({passive:!0});let PI=(()=>{class n{constructor(e,i,r,s,o,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=s,this._ngZone=o,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new H,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new H,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new R,this.indexFocused=new R,o.runOutsideAngular(()=>{Yr(e.nativeElement,"mouseleave").pipe(qe(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=jn(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Yr(this._previousPaginator.nativeElement,"touchstart",RI).pipe(qe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Yr(this._nextPaginator.nativeElement,"touchstart",RI).pipe(qe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:G("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new mS(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),Nt(e,i,this._items.changes).pipe(qe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(r)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(qe(this._destroyed)).subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!fi(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:o}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=s,l=a+o):(l=this._tabList.nativeElement.offsetWidth-s,a=l-o);const c=this.scrollDistance,u=this.scrollDistance+r;au&&(this.scrollDistance+=l-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),sk(650,100).pipe(qe(Nt(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:s}=this._scrollHeader(e);(0===s||s>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(_i),f(at,8),f(z),f(xe),f(Tt,8))},n.\u0275dir=M({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),kY=(()=>{class n extends PI{constructor(e,i,r,s,o,a,l){super(e,i,r,s,o,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ve(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(_i),f(at,8),f(z),f(xe),f(Tt,8))},n.\u0275dir=M({type:n,inputs:{disableRipple:"disableRipple"},features:[L]}),n})(),IY=(()=>{class n extends kY{constructor(e,i,r,s,o,a,l){super(e,i,r,s,o,a,l)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(_i),f(at,8),f(z),f(xe),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&We(r,OI,4),2&e){let s;j(s=U())&&(i._items=s)}},viewQuery:function(e,i){if(1&e&&(Ce(Ph,7),Ce(CI,7),Ce(DI,7),Ce(wI,5),Ce(EI,5)),2&e){let r;j(r=U())&&(i._inkBar=r.first),j(r=U())&&(i._tabListContainer=r.first),j(r=U())&&(i._tabList=r.first),j(r=U())&&(i._nextPaginator=r.first),j(r=U())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&ie("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[L],ngContentSelectors:by,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(vt(),g(0,"div",0,1),k("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(s){return i._handlePaginatorPress("before",s)})("touchend",function(){return i._stopInterval()}),K(2,"div",2),_(),g(3,"div",3,4),k("keydown",function(s){return i._handleKeydown(s)}),g(5,"div",5,6),k("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7),Le(8),_(),K(9,"mat-ink-bar"),_(),_(),g(10,"div",8,9),k("mousedown",function(s){return i._handlePaginatorPress("after",s)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),K(12,"div",2),_()),2&e&&(ie("mat-tab-header-pagination-disabled",i._disableScrollBefore),E("matRippleDisabled",i._disableScrollBefore||i.disableRipple),w(5),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode),w(5),ie("mat-tab-header-pagination-disabled",i._disableScrollAfter),E("matRippleDisabled",i._disableScrollAfter||i.disableRipple))},directives:[Bi,jd,Ph],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),n})(),LI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ws,Ke,Sh,ic,Ud,IS],Ke]}),n})();function PY(n,t){1&n&&(g(0,"div",14),g(1,"mat-icon"),S(2,"autorenew"),_(),S(3," Please Wait... "),_())}function NY(n,t){if(1&n&&(g(0,"div",18),S(1),_()),2&n){const e=V(2);w(1),Ve(e.message.message)}}function LY(n,t){if(1&n&&(g(0,"div",19),S(1),_()),2&n){const e=V(2);w(1),Ve(e.message.message)}}function VY(n,t){if(1&n&&(g(0,"div",15),$(1,NY,2,1,"div",16),$(2,LY,2,1,"div",17),_()),2&n){const e=V();w(1),E("ngIf",e.message.status),w(1),E("ngIf",!e.message.status)}}let BY=(()=>{class n{constructor(e,i,r){this.fb=e,this.restService=i,this.router=r,this.loader=!1,this.message={message:"",status:null},this.authForm=this.fb.group({mobileNo:["",[zr.required]]})}ngOnInit(){}signInAction(){const e=this.authForm.value.mobileNo;this.restService.checkUser(e).subscribe(i=>{i.length>0&&(window.localStorage.setItem("_user",e),this.router.navigate(["/transactions"]))},i=>{404==i.status&&(this.message={message:"Sorry, Mobile No is not exists",status:!1},setTimeout(()=>{this.message={message:"",status:null}},3e3))})}signUpAction(){const e=this.authForm.value.mobileNo;this.loader=!0,this.restService.checkUser(e).subscribe(i=>{},i=>{404==i.status&&this.restService.create(this.authForm.value.mobileNo+"/config.json","create new config for "+e,{users:[],category:[]}).subscribe(r=>{setTimeout(()=>{this.restService.create(this.authForm.value.mobileNo+"/transactions.json","create new transaction for "+e,[]).subscribe(s=>{}),this.loader=!1,this.message={message:"Thank you for joining...",status:!0},setTimeout(()=>{this.message={message:"",status:null}},3e3)},2e3)})})}}return n.\u0275fac=function(e){return new(e||n)(f(G_),f(ZT),f(Pt))},n.\u0275cmp=ne({type:n,selectors:[["app-authenticateon"]],decls:41,vars:4,consts:[[1,"auth-container"],[1,"auth-content"],[1,"logo"],[1,"action"],["class","loader spinner",4,"ngIf"],["class","message",4,"ngIf"],["mat-stretch-tabs","false","mat-align-tabs","start",1,"auth-tab"],["label","SignIn"],[1,"form-group"],[3,"formGroup"],[1,"form-row"],["matInput","","formControlName","mobileNo","type","number"],["mat-raised-button","","color","primary",3,"click"],["label","SignUp"],[1,"loader","spinner"],[1,"message"],["class","success-message",4,"ngIf"],["class","error-message",4,"ngIf"],[1,"success-message"],[1,"error-message"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"div",2),g(3,"label"),g(4,"span"),S(5,"B"),_(),S(6,"ins"),_(),g(7,"label"),g(8,"span"),S(9,"E"),_(),S(10,"xpense"),_(),g(11,"label"),g(12,"span"),S(13,"T"),_(),S(14,"racker"),_(),_(),g(15,"div",3),$(16,PY,4,0,"div",4),$(17,VY,3,2,"div",5),g(18,"mat-tab-group",6),g(19,"mat-tab",7),g(20,"div",8),g(21,"form",9),g(22,"div",10),g(23,"mat-form-field"),g(24,"mat-label"),S(25,"Enter Mobile Number."),_(),K(26,"input",11),_(),_(),g(27,"div",10),g(28,"button",12),k("click",function(){return i.signInAction()}),S(29,"SignIn"),_(),_(),_(),_(),_(),g(30,"mat-tab",13),g(31,"div",8),g(32,"form",9),g(33,"div",10),g(34,"mat-form-field"),g(35,"mat-label"),S(36,"Enter Mobile Number."),_(),K(37,"input",11),_(),_(),g(38,"div",10),g(39,"button",12),k("click",function(){return i.signUpAction()}),S(40,"SignUp"),_(),_(),_(),_(),_(),_(),_(),_(),_()),2&e&&(w(16),E("ngIf",i.loader),w(1),E("ngIf",null!=i.message.status),w(4),E("formGroup",i.authForm),w(11),E("formGroup",i.authForm))},directives:[Vn,MY,kI,vh,dh,gi,bc,Us,Th,jr,cc,_a,uc,zn,zs],styles:[".auth-container{height:100vh;display:flex;justify-content:center;align-items:center;text-align:center}.auth-container .logo{font-size:25px;padding:15px;color:#fff;font-family:Oswald-Medium,sans-serif}.auth-container .logo span{font-size:40px}.auth-container .action{position:relative;background:#FFFFFF;padding:10px}.auth-container .action .form-row{padding:5px}.auth-container .action .message .success-message{color:#42b03d;font-family:Roboto-Medium,sans-serif}.auth-container .action .message .error-message{color:#b03d6f;font-family:Roboto-Medium,sans-serif}\n"],encapsulation:2}),n})();function VI(n,t=Vd){const i=function(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new jY(i,t))}class jY{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new vy(t,this.delay,this.scheduler))}}class vy extends Oe{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(vy.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new UY(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(ln.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(ln.createComplete()),this.unsubscribe()}}class UY{constructor(t,e){this.time=t,this.notification=e}}const $Y=["mat-menu-item",""];function zY(n,t){1&n&&(zc(),g(0,"svg",2),K(1,"polygon",3),_())}const BI=["*"];function WY(n,t){if(1&n){const e=Ot();g(0,"div",0),k("keydown",function(r){return Fe(e),V()._handleKeydown(r)})("click",function(){return Fe(e),V().closed.emit("click")})("@transformMenu.start",function(r){return Fe(e),V()._onAnimationStart(r)})("@transformMenu.done",function(r){return Fe(e),V()._onAnimationDone(r)}),g(1,"div",1),Le(2),_(),_()}if(2&n){const e=V();E("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Z("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Nh={transformMenu:cr("transformMenu",[bn("void",He({opacity:0,transform:"scale(0.8)"})),zt("void => enter",rn("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),zt("* => void",rn("100ms 25ms linear",He({opacity:0})))]),fadeInItems:cr("fadeInItems",[bn("showing",He({opacity:1})),zt("void => *",[He({opacity:0}),rn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},HI=new I("MatMenuContent"),Cy=new I("MAT_MENU_PANEL"),qY=ma(Hr(class{}));let Dy=(()=>{class n extends qY{constructor(e,i,r,s,o){super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new H,this._focused=new H,this._highlighted=!1,this._triggersSubmenu=!1,s&&s.addItem&&s.addItem(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,i;const r=this._elementRef.nativeElement.cloneNode(!0),s=r.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class n{constructor(e,i,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new kr,this._tabSubscription=X.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new H,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new R,this.close=this.closed,this.panelId="mat-menu-panel-"+KY++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ve(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ve(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new mS(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(At(this._directDescendantItems),yn(e=>Nt(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(At(this._directDescendantItems),yn(i=>Nt(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:fi(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===i||40===i)&&r.setFocusOrigin("keyboard"),r.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(wt(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const i=this._keyManager;if(i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(At(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(jI))},n.\u0275dir=M({type:n,contentQueries:function(e,i,r){if(1&e&&(We(r,HI,5),We(r,Dy,5),We(r,Dy,4)),2&e){let s;j(s=U())&&(i.lazyContent=s.first),j(s=U())&&(i._allItems=s),j(s=U())&&(i.items=s)}},viewQuery:function(e,i){if(1&e&&Ce(dt,5),2&e){let r;j(r=U())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),n})(),QY=(()=>{class n extends Ec{constructor(e,i,r){super(e,i,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(jI))},n.\u0275cmp=ne({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Z("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Q([{provide:Cy,useExisting:n}]),L],ngContentSelectors:BI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(vt(),$(0,WY,3,6,"ng-template"))},directives:[Zo],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Nh.transformMenu,Nh.fadeInItems]},changeDetection:0}),n})();const UI=new I("mat-menu-scroll-strategy"),XY={provide:UI,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}},zI=ca({passive:!0});let ZY=(()=>{class n{constructor(e,i,r,s,o,a,l,c){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=X.EMPTY,this._hoverSubscription=X.EMPTY,this._menuCloseSubscription=X.EMPTY,this._handleTouchStart=u=>{Ng(u)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new R,this.onMenuOpen=this.menuOpened,this.menuClosed=new R,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof Ec?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,zI),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,zI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ec&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Ec?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(pt(r=>"void"===r.toState),wt(1),qe(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new mc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[s,o],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",l="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:c,overlayY:s,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:s,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Nt(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:G(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(pt(o=>o!==this._menuItemInstance),pt(()=>this._menuOpen)):G(),i)}_handleMousedown(e){Pg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(pt(e=>e===this._menuItemInstance&&!e.disabled),VI(0,Z_)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ec&&this.menu._isAnimating?this.menu._animationDone.pipe(wt(1),VI(0,Z_),qe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Kr(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(f(yi),f(N),f(it),f(UI),f(Cy,8),f(Dy,10),f(at,8),f(ar))},n.\u0275dir=M({type:n,hostVars:3,hostBindings:function(e,i){1&e&&k("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(s){return i._handleClick(s)}),2&e&&Z("aria-haspopup",i._ariaHaspopup)("aria-expanded",i._ariaExpanded)("aria-controls",i._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),e7=(()=>{class n extends ZY{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[L]}),n})(),WI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[XY],imports:[[ws,Ke,ic,Ah],fc,Ke]}),n})();const t7=function(){return["/"]},n7=function(){return["/transactions"]},i7=function(){return["/category"]},r7=function(){return["/user"]};let s7=(()=>{class n{constructor(e){this.transactionService=e}ngOnInit(){}syncData(){this.transactionService.updateTransactions()}}return n.\u0275fac=function(e){return new(e||n)(f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-header"]],decls:29,vars:9,consts:[[1,"header"],[1,"logo"],[3,"routerLink"],[1,"action"],[3,"matMenuTriggerFor"],[1,"header-menu"],["menu","matMenu"],[1,"sub-menu-content"],[3,"click"]],template:function(e,i){if(1&e&&(g(0,"div",0),g(1,"div",1),g(2,"a",2),g(3,"span"),S(4,"B"),_(),S(5,"ins"),g(6,"span"),S(7,"E"),_(),S(8,"xpense"),g(9,"span"),S(10,"T"),_(),S(11,"racker"),_(),_(),g(12,"div",3),g(13,"mat-icon",4),S(14,"more_vert"),_(),g(15,"mat-menu",5,6),g(17,"div",7),g(18,"a",2),S(19,"Transactions"),_(),_(),g(20,"div",7),g(21,"a",2),S(22,"Category"),_(),_(),g(23,"div",7),g(24,"a",2),S(25,"Users"),_(),_(),g(26,"div",7),g(27,"a",8),k("click",function(){return i.syncData()}),S(28,"Sync"),_(),_(),_(),_(),_()),2&e){const r=Ii(16);w(2),E("routerLink",Ar(5,t7)),w(11),E("matMenuTriggerFor",r),w(5),E("routerLink",Ar(6,n7)),w(3),E("routerLink",Ar(7,i7)),w(3),E("routerLink",Ar(8,r7))}},directives:[ql,zs,e7,QY],styles:[""]}),n})();const o7=[{path:"",component:o5},{path:"auth",component:BY},{path:"",component:(()=>{class n{constructor(e){this.transactionService=e}ngOnInit(){this.transactionService.fetch()}}return n.\u0275fac=function(e){return new(e||n)(f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-layout"]],decls:2,vars:0,template:function(e,i){1&e&&(K(0,"app-header"),K(1,"router-outlet"))},directives:[s7,Fd],styles:[""]}),n})(),children:[{path:"action",component:jq},{path:"category",component:Uq},{path:"transactions",component:nY},{path:"user",component:zq}]}];let a7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[tS.forRoot(o7,{useHash:!0})],tS]}),n})(),l7=(()=>{class n{constructor(){this.title="my-finance"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ne({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&K(0,"router-outlet")},directives:[Fd],styles:[""]}),n})();const c7=[w_,vc,Nk,nI,Gk,WI,Mk,bI,PA,Hk,LI];let u7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[c7,w_,vc,Nk,nI,Gk,WI,Mk,bI,PA,Hk,LI]}),n})(),d7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n,bootstrap:[l7]}),n.\u0275inj=ae({providers:[],imports:[[og,a7,u7,M4,HT,Q5,dW]]}),n})();(function(){if(FE)throw new Error("Cannot enable prod mode after platform setup.");RE=!1})(),mj().bootstrapModule(d7).catch(n=>console.error(n))}},Ea=>{Ea(Ea.s=686)}]); \ No newline at end of file +(self.webpackChunkmy_finance=self.webpackChunkmy_finance||[]).push([[179],{255:Ea=>{function pr(Ma){return Promise.resolve().then(()=>{var vi=new Error("Cannot find module '"+Ma+"'");throw vi.code="MODULE_NOT_FOUND",vi})}pr.keys=()=>[],pr.resolve=pr,pr.id=255,Ea.exports=pr},686:(Ea,pr,Ma)=>{"use strict";function vi(n){return"function"==typeof n}let Vh=!1;const Wn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Vh&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Vh=n},get useDeprecatedSynchronousErrorHandling(){return Vh}};function qs(n){setTimeout(()=>{throw n},0)}const Sc={closed:!0,next(n){},error(n){if(Wn.useDeprecatedSynchronousErrorHandling)throw n;qs(n)},complete(){}},Ys=Array.isArray||(n=>n&&"number"==typeof n.length);function Bh(n){return null!==n&&"object"==typeof n}const Ac=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class X{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof X)e.remove(this);else if(null!==e)for(let o=0;ot.concat(e instanceof Ac?e.errors:e),[])}X.EMPTY=((n=new X).closed=!0,n);const Tc="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Oe extends X{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Sc;break;case 1:if(!t){this.destination=Sc;break}if("object"==typeof t){t instanceof Oe?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new My(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new My(this,t,e,i)}}[Tc](){return this}static create(t,e,i){const r=new Oe(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class My extends Oe{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;vi(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Sc&&(o=Object.create(e),vi(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Wn.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:i}=Wn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):qs(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;qs(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Wn.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(i){if(this.unsubscribe(),Wn.useDeprecatedSynchronousErrorHandling)throw i;qs(i)}}__tryOrSetError(t,e,i){if(!Wn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Wn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(qs(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Sa="function"==typeof Symbol&&Symbol.observable||"@@observable";function kc(n){return n}let Ee=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function(n,t,e){if(n){if(n instanceof Oe)return n;if(n[Tc])return n[Tc]()}return n||t||e?new Oe(n,t,e):new Oe(Sc)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||Wn.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Wn.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Wn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Oe?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Ay(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Sa](){return this}pipe(...e){return 0===e.length?this:function(n){return 0===n.length?kc:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Ay(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Ay(n){if(n||(n=Wn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Xr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Ty extends X{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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ky extends Oe{constructor(t){super(t),this.destination=t}}let H=(()=>{class n extends Ee{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Tc](){return new ky(this)}lift(e){const i=new Iy(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Xr;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;onew Iy(t,e),n})();class Iy extends H{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):X.EMPTY}}function Ks(n){return n&&"function"==typeof n.schedule}function ge(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new YI(n,t))}}class YI{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new KI(t,this.project,this.thisArg))}}class KI extends Oe{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const xy=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function Ry(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Hh=n=>{if(n&&"function"==typeof n[Sa])return(n=>t=>{const e=n[Sa]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(Oy(n))return xy(n);if(Ry(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,qs),t))(n);if(n&&"function"==typeof n[Ic])return(n=>t=>{const e=n[Ic]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Bh(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function jh(n,t){return new Ee(e=>{const i=new X;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function It(n,t){return t?function(n,t){if(null!=n){if(function(n){return n&&"function"==typeof n[Sa]}(n))return function(n,t){return new Ee(e=>{const i=new X;return i.add(t.schedule(()=>{const r=n[Sa]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(Ry(n))return function(n,t){return new Ee(e=>{const i=new X;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(Oy(n))return jh(n,t);if(function(n){return n&&"function"==typeof n[Ic]}(n)||"string"==typeof n)return function(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ee(e=>{const i=new X;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[Ic](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Ee?n:new Ee(Hh(n))}class Aa extends Oe{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 Ta extends Oe{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ka(n,t){if(t.closed)return;if(n instanceof Ee)return n.subscribe(t);let e;try{e=Hh(n)(t)}catch(i){t.error(i)}return e}function xt(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(xt((r,s)=>It(n(r,s)).pipe(ge((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new ox(n,e)))}class ox{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new ax(t,this.project,this.concurrent))}}class ax extends Ta{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,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 Ia(n=Number.POSITIVE_INFINITY){return xt(kc,n)}function Uh(n,t){return t?jh(n,t):new Ee(xy(n))}function Nt(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return Ks(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Ee?n[0]:Ia(t)(Uh(n,e))}function $h(){return function(t){return t.lift(new lx(t))}}class lx{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new cx(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class cx extends Oe{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:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Fy extends Ee{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 X,t.add(this.source.subscribe(new dx(this.getSubject(),this))),t.closed&&(this._connection=null,t=X.EMPTY)),t}refCount(){return $h()(this)}}const ux=(()=>{const n=Fy.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class dx extends ky{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 mx(){return new H}function Py(){return n=>$h()(function(n,t){return function(i){let r;r="function"==typeof n?n:function(){return n};const s=Object.create(i,ux);return s.source=i,s.subjectFactory=r,s}}(mx)(n))}function ke(n){for(let t in n)if(n[t]===ke)return t;throw Error("Could not find renamed property on target object.")}function zh(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function me(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(me).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Wh(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const gx=ke({__forward_ref__:ke});function Se(n){return n.__forward_ref__=Se,n.toString=function(){return me(this())},n}function q(n){return Ny(n)?n():n}function Ny(n){return"function"==typeof n&&n.hasOwnProperty(gx)&&n.__forward_ref__===Se}class mr extends Error{constructor(t,e){super(function(n,t){return`${n?`NG0${n}: `:""}${t}`}(t,e)),this.code=t}}function de(n){return"string"==typeof n?n:null==n?"":String(n)}function Kt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():de(n)}function xc(n,t){const e=t?` in ${t}`:"";throw new mr("201",`No provider for ${Kt(n)} found${e}`)}function un(n,t){null==n&&function(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ae(n){return{providers:n.providers||[],imports:n.imports||[]}}function zi(n){return Ly(n,Oc)||Ly(n,By)}function Ly(n,t){return n.hasOwnProperty(t)?n[t]:null}function Vy(n){return n&&(n.hasOwnProperty(qh)||n.hasOwnProperty(wx))?n[qh]:null}const Oc=ke({\u0275prov:ke}),qh=ke({\u0275inj:ke}),By=ke({ngInjectableDef:ke}),wx=ke({ngInjectorDef:ke});var Y=(()=>((Y=Y||{})[Y.Default=0]="Default",Y[Y.Host=1]="Host",Y[Y.Self=2]="Self",Y[Y.SkipSelf=4]="SkipSelf",Y[Y.Optional=8]="Optional",Y))();let Yh;function gr(n){const t=Yh;return Yh=n,t}function Hy(n,t,e){const i=zi(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Y.Optional?null:void 0!==t?t:void xc(me(n),"Injector")}function _r(n){return{toString:n}.toString()}var Mn=(()=>((Mn=Mn||{})[Mn.OnPush=0]="OnPush",Mn[Mn.Default=1]="Default",Mn))(),lt=(()=>((lt=lt||{})[lt.Emulated=0]="Emulated",lt[lt.None=2]="None",lt[lt.ShadowDom=3]="ShadowDom",lt))();const Mx="undefined"!=typeof globalThis&&globalThis,Sx="undefined"!=typeof window&&window,Ax="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Re=Mx||"undefined"!=typeof global&&global||Sx||Ax,Qs={},je=[],Rc=ke({\u0275cmp:ke}),Kh=ke({\u0275dir:ke}),Qh=ke({\u0275pipe:ke}),jy=ke({\u0275mod:ke}),Tx=ke({\u0275loc:ke}),Wi=ke({\u0275fac:ke}),xa=ke({__NG_ELEMENT_ID__:ke});let kx=0;function ne(n){return _r(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Mn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||je,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||lt.Emulated,id:"c",styles:n.styles||je,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=kx++,i.inputs=Wy(n.inputs,e),i.outputs=Wy(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Uy):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map($y):null,i})}function Uy(n){return Vt(n)||function(n){return n[Kh]||null}(n)}function $y(n){return function(n){return n[Qh]||null}(n)}const zy={};function he(n){return _r(()=>{const t={type:n.type,bootstrap:n.bootstrap||je,declarations:n.declarations||je,imports:n.imports||je,exports:n.exports||je,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(zy[n.id]=n.type),t})}function Wy(n,t){if(null==n)return Qs;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const M=ne;function Lt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function Vt(n){return n[Rc]||null}function Sn(n,t){const e=n[jy]||null;if(!e&&!0===t)throw new Error(`Type ${me(n)} does not have '\u0275mod' property.`);return e}function Ci(n){return Array.isArray(n)&&"object"==typeof n[1]}function qn(n){return Array.isArray(n)&&!0===n[1]}function Zh(n){return 0!=(8&n.flags)}function Lc(n){return 2==(2&n.flags)}function Vc(n){return 1==(1&n.flags)}function Yn(n){return null!==n.template}function Nx(n){return 0!=(512&n[2])}function is(n,t){return n.hasOwnProperty(Wi)?n[Wi]:null}class qy{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ie(){return Yy}function Yy(n){return n.type.prototype.ngOnChanges&&(n.setInput=Hx),Bx}function Bx(){const n=Qy(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Qs)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Hx(n,t,e,i){const r=Qy(n)||function(n,t){return n[Ky]=t}(n,{previous:Qs,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new qy(l&&l.currentValue,t,o===Qs),n[i]=t}Ie.ngInherit=!0;const Ky="__ngSimpleChanges__";function Qy(n){return n[Ky]||null}const Jy="http://www.w3.org/2000/svg";let nf;function tt(n){return!!n.listen}const Zy={createRenderer:(n,t)=>void 0!==nf?nf:"undefined"!=typeof document?document:void 0};function ct(n){for(;Array.isArray(n);)n=n[0];return n}function Bc(n,t){return ct(t[n])}function hn(n,t){return ct(t[n.index])}function sf(n,t){return n.data[t]}function to(n,t){return n[t]}function fn(n,t){const e=t[n];return Ci(e)?e:e[0]}function eb(n){return 4==(4&n[2])}function of(n){return 128==(128&n[2])}function br(n,t){return null==t?null:n[t]}function tb(n){n[18]=0}function af(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const se={lFrame:cb(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function nb(){return se.bindingsEnabled}function A(){return se.lFrame.lView}function Me(){return se.lFrame.tView}function Fe(n){return se.lFrame.contextLView=n,n[8]}function yt(){let n=ib();for(;null!==n&&64===n.type;)n=n.parent;return n}function ib(){return se.lFrame.currentTNode}function Di(n,t){const e=se.lFrame;e.currentTNode=n,e.isParent=t}function lf(){return se.lFrame.isParent}function cf(){se.lFrame.isParent=!1}function Hc(){return se.isInCheckNoChangesMode}function jc(n){se.isInCheckNoChangesMode=n}function Jt(){const n=se.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function no(){return se.lFrame.bindingIndex++}function Gi(n){const t=se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function tO(n,t){const e=se.lFrame;e.bindingIndex=e.bindingRootIndex=n,uf(t)}function uf(n){se.lFrame.currentDirectiveIndex=n}function df(n){const t=se.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function ob(){return se.lFrame.currentQueryIndex}function hf(n){se.lFrame.currentQueryIndex=n}function iO(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function ab(n,t,e){if(e&Y.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&Y.Host||(r=iO(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=se.lFrame=lb();return i.currentTNode=t,i.lView=n,!0}function Uc(n){const t=lb(),e=n[1];se.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function lb(){const n=se.lFrame,t=null===n?null:n.child;return null===t?cb(n):t}function cb(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function ub(){const n=se.lFrame;return se.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const db=ub;function $c(){const n=ub();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Xt(){return se.lFrame.selectedIndex}function vr(n){se.lFrame.selectedIndex=n}function Qe(){const n=se.lFrame;return sf(n.tView,n.selectedIndex)}function zc(){se.lFrame.currentNamespace=Jy}function Wc(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Na{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Yc(n,t,e){const i=tt(n);let r=0;for(;rt){o=s-1;break}}}for(;s>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let gf=!0;function Qc(n){const t=gf;return gf=n,t}let gO=0;function Va(n,t){const e=yf(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,_f(i.data,n),_f(t,null),_f(i.blueprint,null));const r=Jc(n,t),s=n.injectorIndex;if(gb(r)){const o=io(r),a=ro(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function _f(n,t){n.push(0,0,0,0,0,0,0,0,t)}function yf(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Jc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Xc(n,t,e){!function(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(xa)&&(i=e[xa]),null==i&&(i=e[xa]=gO++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:bO:t}(e);if("function"==typeof s){if(!ab(t,n,i))return i&Y.Host?bb(r,e,i):vb(t,e,i,r);try{const o=s(i);if(null!=o||i&Y.Optional)return o;xc(e)}finally{db()}}else if("number"==typeof s){let o=null,a=yf(n,t),l=-1,c=i&Y.Host?t[16][6]:null;for((-1===a||i&Y.SkipSelf)&&(l=-1===a?Jc(n,t):t[a+8],-1!==l&&Eb(i,!1)?(o=t[1],a=io(l),t=ro(l,t)):a=-1);-1!==a;){const u=t[1];if(wb(s,a,u.data)){const d=vO(a,t,e,o,i,c);if(d!==Db)return d}l=t[a+8],-1!==l&&Eb(i,t[1].data[a+8]===c)&&wb(s,a,t)?(o=u,a=io(l),t=ro(l,t)):a=-1}}}return vb(t,e,i,r)}const Db={};function bO(){return new so(yt(),A())}function vO(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=Zc(a,o,e,null==i?Lc(a)&&gf:i!=o&&0!=(3&a.type),r&Y.Host&&s===a);return null!==u?Ba(t,o,u,a):Db}function Zc(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&m.type===e)return p}if(r){const p=o[l];if(p&&Yn(p)&&p.type===e)return l}return null}function Ba(n,t,e,i){let r=n[e];const s=t.data;if(function(n){return n instanceof Na}(r)){const o=r;o.resolving&&function(n,t){throw new mr("200",`Circular dependency in DI detected for ${n}`)}(Kt(s[e]));const a=Qc(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?gr(o.injectImpl):null;ab(n,i,Y.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=Yy(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&gr(l),Qc(a),o.resolving=!1,db()}}return r}function wb(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[Wi]||bf(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Wi]||bf(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function bf(n){return Ny(n)?()=>{const t=bf(q(n));return t&&t()}:is(n)}function kn(n){return function(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(ao)?l[ao]:Object.defineProperty(l,ao,{value:[]})[ao];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class I{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=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const EO=new I("AnalyzeForEntryComponents"),co=Function;function In(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Ei(e,t):t(e))}function tu(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function ss(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Dr(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Cf(n,t){const e=uo(n,t);if(e>=0)return n[1|e]}function uo(n,t){return function(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<t?r=s:i=s+1}return~(r< ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):me(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(FO,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ho]=null,n}const po=Wa(rs("Inject",n=>({token:n})),-1),ut=Wa(rs("Optional"),8),xn=Wa(rs("SkipSelf"),4);var mn=(()=>((mn=mn||{})[mn.Important=1]="Important",mn[mn.DashCase=2]="DashCase",mn))();const Nb="__ngContext__";function Ht(n,t){n[Nb]=t}function kf(n){const t=function(n){return n[Nb]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function xf(n,t){return undefined(n,t)}function Ya(n){const t=n[3];return qn(t)?t[3]:t}function Of(n){return $b(n[13])}function Rf(n){return $b(n[4])}function $b(n){for(;null!==n&&!qn(n);)n=n[4];return n}function go(n,t,e,i,r){if(null!=i){let s,o=!1;qn(i)?s=i:Ci(i)&&(o=!0,i=i[0]);const a=ct(i);0===n&&null!==e?null==r?Kb(t,e,a):as(t,e,a,r||null,!0):1===n&&null!==e?as(t,e,a,r||null,!0):2===n?function(n,t,e){const i=ou(n,t);i&&function(n,t,e,i){tt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function(n,t,e,i,r){const s=e[7];s!==ct(e)&&go(t,n,i,s,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const s=ss(n,10+t);!function(n,t){Ka(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Gb(n,t){if(!(256&t[2])){const e=t[11];tt(e)&&e.destroyNode&&Ka(n,t,e,3,null,null),function(n){let t=n[13];if(!t)return Lf(n[1],n);for(;t;){let e=null;if(Ci(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Ci(t)&&Lf(t[1],t),t=t[3];null===t&&(t=n),Ci(t)&&Lf(t[1],t),e=t&&t[4]}t=e}}(t)}}function Lf(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;sn,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return cu}())||void 0===t?void 0:t.createHTML(n))||n}class cs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class vR extends cs{getTypeName(){return"HTML"}}class CR extends cs{getTypeName(){return"Style"}}class DR extends cs{getTypeName(){return"Script"}}class wR extends cs{getTypeName(){return"URL"}}class ER extends cs{getTypeName(){return"ResourceURL"}}function gn(n){return n instanceof cs?n.changingThisBreaksApplicationSecurity:n}function Mi(n,t){const e=av(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function av(n){return n instanceof cs&&n.getTypeName()||null}class IR{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(ls(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class xR{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=ls(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=ls(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Qa(t.trim())).join(", ")}function Si(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Ja(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const uv=Si("area,br,col,hr,img,wbr"),dv=Si("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hv=Si("rp,rt"),Wf=Ja(uv,Ja(dv,Si("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")),Ja(hv,Si("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")),Ja(hv,dv)),Gf=Si("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qf=Si("srcset"),fv=Ja(Gf,qf,Si("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"),Si("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")),PR=Si("script,style,template");class NR{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Wf.hasOwnProperty(e))return this.sanitizedSomething=!0,!PR.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Wf.hasOwnProperty(e)&&!uv.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(pv(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const LR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VR=/([^\#-~ |!])/g;function pv(n){return n.replace(/&/g,"&").replace(LR,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(VR,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let du;function mv(n,t){let e=null;try{du=du||function(n){const t=new xR(n);return function(){try{return!!(new window.DOMParser).parseFromString(ls(""),"text/html")}catch(n){return!1}}()?new IR(t):t}(n);let i=t?String(t):"";e=du.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=du.getInertBodyElement(i)}while(i!==s);return ls((new NR).sanitizeChildren(Yf(e)||e))}finally{if(e){const i=Yf(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Yf(n){return"content"in n&&function(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Te=(()=>((Te=Te||{})[Te.NONE=0]="NONE",Te[Te.HTML=1]="HTML",Te[Te.STYLE=2]="STYLE",Te[Te.SCRIPT=3]="SCRIPT",Te[Te.URL=4]="URL",Te[Te.RESOURCE_URL=5]="RESOURCE_URL",Te))();function Kf(n){const t=function(){const n=A();return n&&n[12]}();return t?t.sanitize(Te.URL,n)||"":Mi(n,"URL")?gn(n):Qa(de(n))}function hu(n){return n.ngOriginalError}function QR(n,...t){n.error(...t)}class Kn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),r=function(n){return n&&n.ngErrorLogger||QR}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?function(n){return n.ngDebugContext}(t)||this._findContext(hu(t)):null}_findOriginalError(t){let e=t&&hu(t);for(;e&&hu(e);)e=hu(e);return e||null}}const Dv=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Re))();function Ai(n){return n instanceof Function?n():n}function Ev(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Mv="ng-template";function r1(n,t,e){let i=0;for(;is?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==Ev(p,c,0)||2&i&&c!==h){if(Qn(i))return!1;o=!0}}}}else{if(!o&&!Qn(i)&&!Qn(l))return!1;if(o&&Qn(l))continue;o=!1,i=l|1&i}}return Qn(i)||o}function Qn(n){return 0==(1&n)}function a1(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Qn(o)&&(t+=Tv(s,r),r=""),i=o,s=s||!Qn(i);e++}return""!==r&&(t+=Tv(s,r)),t}const le={};function w(n){kv(Me(),A(),Xt()+n,Hc())}function kv(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&Gc(t,s,e)}else{const s=n.preOrderHooks;null!==s&&qc(t,s,0,e)}vr(e)}function fu(n,t){return n<<17|t<<2}function Jn(n){return n>>17&32767}function Jf(n){return 2|n}function qi(n){return(131068&n)>>2}function Xf(n,t){return-131069&n|t<<2}function Zf(n){return 1|n}function Bv(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&kv(n,t,20,Hc()),e(i,r)}finally{vr(s)}}function jv(n,t,e){if(Zh(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Kv(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Qv(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function V1(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&dp(e)}}function dp(n){for(let i=Of(n);null!==i;i=Rf(i))for(let r=10;r0&&dp(s)}const e=n[1].components;if(null!==e)for(let i=0;i0&&dp(r)}}function W1(n,t){const e=fn(t,n),i=e[1];(function(n,t){for(let e=t.length;ePromise.resolve(null))();function tC(n){return n[7]||(n[7]=[])}function nC(n){return n.cleanup||(n.cleanup=[])}function iC(n,t,e){return(null===n||Yn(n))&&(e=function(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function rC(n,t){const e=n[9],i=e?e.get(Kn,null):null;i&&i.handleError(t)}function sC(n,t,e,i,r){for(let s=0;sthis.processProvider(a,t,e)),Ei([t],a=>this.processInjectorType(a,[],s)),this.records.set(Co,Do(void 0,this));const o=this.records.get(tl);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:me(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=$a,i=Y.Default){this.assertNotDestroyed();const r=fo(this),s=gr(void 0);try{if(!(i&Y.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function(n){return"function"==typeof n||"object"==typeof n&&n instanceof I}(t)&&zi(t);a=l&&this.injectableDefInScope(l)?Do(_p(t),nl):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Y.Self?aC():this.parent).get(t,e=i&Y.Optional&&e===$a?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[ho]=o[ho]||[]).unshift(me(t)),r)throw o;return Ib(o,t,"R3InjectorError",this.source)}throw o}finally{gr(s),fo(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(me(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=q(t)))return!1;let r=Vy(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Vy(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Ei(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;dthis.processProvider(m,h,p||je))}}this.injectorDefTypes.add(o);const l=is(o)||(()=>new o);this.records.set(o,Do(l,nl));const c=r.providers;if(null!=c&&!a){const u=t;Ei(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=wo(t=q(t))?t:q(t&&t.provide);const s=function(n,t,e){return uC(n)?Do(void 0,n.useValue):Do(cC(n),nl)}(t);if(wo(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Do(void 0,nl,!0),o.factory=()=>os(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===nl&&(e.value=Z1,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=q(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function _p(n){const t=zi(n),e=null!==t?t.factory:is(n);if(null!==e)return e;if(n instanceof I)throw new Error(`Token ${me(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function(n){const t=n.length;if(t>0){const i=Dr(t,"?");throw new Error(`Can't resolve all parameters for ${me(n)}: (${i.join(", ")}).`)}const e=function(n){const t=n&&(n[Oc]||n[By]);if(t){const e=function(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Error("unreachable")}function cC(n,t,e){let i;if(wo(n)){const r=q(n);return is(r)||_p(r)}if(uC(n))i=()=>q(n.useValue);else if(function(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...os(n.deps||[]));else if(function(n){return!(!n||!n.useExisting)}(n))i=()=>v(q(n.useExisting));else{const r=q(n&&(n.useClass||n.provide));if(!function(n){return!!n.deps}(n))return is(r)||_p(r);i=()=>new r(...os(n.deps))}return i}function Do(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function uC(n){return null!==n&&"object"==typeof n&&Mf in n}function wo(n){return"function"==typeof n}const dC=function(n,t,e){return function(n,t=null,e=null,i){const r=lC(n,t,e,i);return r._resolveInjectorDefTypes(),r}({name:e},t,n,e)};let _e=(()=>{class n{static create(e,i){return Array.isArray(e)?dC(e,i,""):dC(e.providers,e.parent,e.name||"")}}return n.THROW_IF_NOT_FOUND=$a,n.NULL=new oC,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>v(Co)}),n.__NG_ELEMENT_ID__=-1,n})();function DF(n,t){Wc(kf(n)[1],yt())}function L(n){let t=function(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Yn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=wp(n.inputs),o.declaredInputs=wp(n.declaredInputs),o.outputs=wp(n.outputs);const a=r.hostBindings;a&&SF(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&EF(n,l),c&&MF(n,c),zh(n.inputs,r.inputs),zh(n.declaredInputs,r.declaredInputs),zh(n.outputs,r.outputs),Yn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Kc(r.hostAttrs,e=Kc(e,r.hostAttrs))}}(i)}function wp(n){return n===Qs?{}:n===je?[]:n}function EF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function MF(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function SF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let bu=null;function Eo(){if(!bu){const n=Re.Symbol;if(n&&n.iterator)bu=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ct(O[i.index])):i.index;if(tt(e)){let O=null;if(!a&&l&&(O=function(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;sl?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==O)(O.__ngLastListenerFn__||O).__ngNextListenerFn__=s,O.__ngLastListenerFn__=s,p=!1;else{s=xp(i,t,d,s,!1);const re=e.listen(D,r,s);h.push(s,re),u&&u.push(r,T,C,C+1)}}else s=xp(i,t,d,s,!0),D.addEventListener(r,s,o),h.push(s),u&&u.push(r,T,C,o)}else s=xp(i,t,d,s,!1);const m=i.outputs;let b;if(p&&null!==m&&(b=m[r])){const y=b.length;if(y)for(let D=0;D0;)t=t[15],n--;return t}(n,se.lFrame.contextLView))[8]}(n)}function oP(n,t){let e=null;const i=function(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const Ct={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lD(n){return n.substring(Ct.key,Ct.keyEnd)}function cD(n,t){const e=Ct.textEnd;return e===t?-1:(t=Ct.keyEnd=function(n,t,e){for(;t32;)t++;return t}(n,Ct.key=t,e),Po(n,t,e))}function Po(n,t,e){for(;t=0;e=cD(t,e))pn(n,lD(t),!0)}function ei(n,t,e,i){const r=A(),s=Me(),o=Gi(2);s.firstUpdatePass&&mD(s,n,o,i),t!==le&&jt(r,o,t)&&_D(s,s.data[Xt()],r,r[11],n,r[o+1]=function(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=me(gn(n)))),n}(t,e),i,o)}function pD(n,t){return t>=n.expandoStartIndex}function mD(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Xt()],o=pD(n,e);bD(s,i)&&null===t&&!o&&(t=!1),t=function(n,t,e,i){const r=df(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=al(e=Rp(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Rp(r,n,t,e,i),null===s){let l=function(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==qi(i))return n[Jn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Rp(null,n,t,l[1],i),l=al(l,t.attrs,i),function(n,t,e,i){n[Jn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Jn(n[a+1]);n[i+1]=fu(h,a),0!==h&&(n[h+1]=Xf(n[h+1],i)),n[a+1]=function(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=fu(a,0),0!==a&&(n[a+1]=Xf(n[a+1],i)),a=i;else n[i+1]=fu(l,0),0===a?a=i:n[l+1]=Xf(n[l+1],i),l=i;c&&(n[i+1]=Jf(n[i+1])),aD(n,u,i,!0),aD(n,u,i,!1),function(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&uo(s,t)>=0&&(e[i+1]=Zf(e[i+1]))}(t,u,n,i,s),o=fu(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function Rp(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===le&&(h=d?je:void 0);let p=d?Cf(h,i):u===i?h:void 0;if(c&&!Eu(p)&&(p=Cf(l,i)),Eu(p)&&(a=p,o))return a;const m=n[r+1];r=o?Jn(m):qi(m)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Cf(l,i))}return a}function Eu(n){return void 0!==n}function bD(n,t){return 0!=(n.flags&(t?16:32))}function S(n,t=""){const e=A(),i=Me(),r=n+20,s=i.firstCreatePass?yo(i,r,1,t,null):i.data[r],o=e[r]=function(n,t){return tt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);au(i,e,o,s),Di(s,!1)}function Ve(n){return Ji("",n,""),Ve}function Ji(n,t,e){const i=A(),r=So(i,n,t,e);return r!==le&&Ki(i,Xt(),r),Ji}function TD(n,t,e){!function(n,t,e,i){const r=Me(),s=Gi(2);r.firstUpdatePass&&mD(r,null,s,i);const o=A();if(e!==le&&jt(o,s,e)){const a=r.data[Xt()];if(bD(a,i)&&!pD(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Wh(l,e||"")),kp(r,a,o,e,i)}else!function(n,t,e,i,r,s,o,a){r===le&&(r=je);let l=0,c=0,u=0((P=P||{})[P.LocaleId=0]="LocaleId",P[P.DayPeriodsFormat=1]="DayPeriodsFormat",P[P.DayPeriodsStandalone=2]="DayPeriodsStandalone",P[P.DaysFormat=3]="DaysFormat",P[P.DaysStandalone=4]="DaysStandalone",P[P.MonthsFormat=5]="MonthsFormat",P[P.MonthsStandalone=6]="MonthsStandalone",P[P.Eras=7]="Eras",P[P.FirstDayOfWeek=8]="FirstDayOfWeek",P[P.WeekendRange=9]="WeekendRange",P[P.DateFormat=10]="DateFormat",P[P.TimeFormat=11]="TimeFormat",P[P.DateTimeFormat=12]="DateTimeFormat",P[P.NumberSymbols=13]="NumberSymbols",P[P.NumberFormats=14]="NumberFormats",P[P.CurrencyCode=15]="CurrencyCode",P[P.CurrencySymbol=16]="CurrencySymbol",P[P.CurrencyName=17]="CurrencyName",P[P.Currencies=18]="Currencies",P[P.Directionality=19]="Directionality",P[P.PluralCase=20]="PluralCase",P[P.ExtraData=21]="ExtraData",P))();const Su="en-US";let HD=Su;function Fp(n){un(n,"Expected localeId to be defined"),"string"==typeof n&&(HD=n.toLowerCase().replace(/_/g,"-"))}function Lp(n,t,e,i,r){if(n=q(n),Array.isArray(n))for(let s=0;s>20;if(wo(n)||!n.multi){const p=new Na(l,r,f),m=Bp(a,t,r?u:u+h,d);-1===m?(Xc(Va(c,o),s,a),Vp(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),o.push(p)):(e[m]=p,o[m]=p)}else{const p=Bp(a,t,u+h,d),m=Bp(a,t,u,u+h),b=p>=0&&e[p],y=m>=0&&e[m];if(r&&!y||!r&&!b){Xc(Va(c,o),s,a);const D=function(n,t,e,i,r){const s=new Na(n,e,f);return s.multi=[],s.index=t,s.componentProviders=0,uw(s,r,i&&!e),s}(r?HN:BN,e.length,r,i,l);!r&&y&&(e[m].providerFactory=D),Vp(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(D),o.push(D)}else Vp(s,n,p>-1?p:m,uw(e[r?m:p],l,!r&&i));!r&&i&&y&&e[m].componentProviders++}}}function Vp(n,t,e,i){const r=wo(t);if(r||function(n){return!!n.useClass}(t)){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const a=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,o]):a[l+1].push(i,o)}else a.push(e,o)}}}function uw(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Bp(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function(n,t,e){const i=Me();if(i.firstCreatePass){const r=Yn(n);Lp(e,i.data,i.blueprint,r,!0),Lp(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class dw{}const fw="ngComponent";class $N{resolveComponentFactory(t){throw function(n){const t=Error(`No component factory found for ${me(n)}. Did you add it to @NgModule.entryComponents?`);return t[fw]=n,t}(t)}}let ii=(()=>{class n{}return n.NULL=new $N,n})();function xu(...n){}function Vo(n,t){return new N(hn(n,t))}const GN=function(){return Vo(yt(),A())};let N=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=GN,n})();function pw(n){return n instanceof N?n.nativeElement:n}class ms{}let Xi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>YN(),n})();const YN=function(){const n=A(),e=fn(yt().index,n);return function(n){return n[11]}(Ci(e)?e:n)};let Up=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class Mr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const mw=new Mr("12.2.17");class gw{constructor(){}supports(t){return rl(t)}create(t){return new XN(t)}}const JN=(n,t)=>t;class XN{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||JN}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),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,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new ZN(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new _w),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._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 _w),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 ZN{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 eL{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class _w{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new eL,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.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 yw(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new nL(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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(i=>e(t[i],i))}}class nL{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 vw(){return new Bo([new gw])}let Bo=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||vw()),deps:[[n,new xn,new ut]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'`)}}return n.\u0275prov=x({token:n,providedIn:"root",factory:vw}),n})();function Cw(){return new Ho([new bw])}let Ho=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Cw()),deps:[[n,new xn,new ut]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Cw}),n})();function Ou(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(ct(s)),qn(s))for(let a=10;a-1&&(Nf(t,i),ss(e,i))}this._attachedToViewContainer=!1}Gb(this._lView[1],this._lView)}onDestroy(t){Wv(this._lView[1],this._lView,null,t)}markForCheck(){hp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){pp(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(n,t,e){jc(!0);try{pp(n,t,e)}finally{jc(!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(){this._appRef=null,function(n,t){Ka(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class rL extends hl{constructor(t){super(t),this._view=t}detectChanges(){eC(this._view)}checkNoChanges(){!function(n){jc(!0);try{eC(n)}finally{jc(!1)}}(this._view)}get context(){return null}}const oL=function(n){return function(n,t,e){if(Lc(n)&&!e){const i=fn(n.index,t);return new hl(i,i)}return 47&n.type?new hl(t[16],t):null}(yt(),A(),16==(16&n))};let Be=(()=>{class n{}return n.__NG_ELEMENT_ID__=oL,n})();const cL=[new bw],dL=new Bo([new gw]),hL=new Ho(cL),pL=function(){return Ru(yt(),A())};let dt=(()=>{class n{}return n.__NG_ELEMENT_ID__=pL,n})();const mL=dt,gL=class extends mL{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Za(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),el(e,i,t),new hl(i)}};function Ru(n,t){return 4&n.type?new gL(t,n,Vo(n,t)):null}class Ri{}class Dw{}const bL=function(){return Mw(yt(),A())};let it=(()=>{class n{}return n.__NG_ELEMENT_ID__=bL,n})();const CL=it,ww=class extends CL{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new so(this._hostTNode,this._hostLView)}get parentInjector(){const t=Jc(this._hostTNode,this._hostLView);if(gb(t)){const e=ro(t,this._hostLView),i=io(t);return new so(e[1].data[i+8],e)}return new so(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ew(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const l=o.get(Ri,null);l&&(s=l)}const a=t.create(o,r,void 0,s);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,r=i[1];if(function(n){return qn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new ww(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),iDv});class qw extends dw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function(n){return n.map(h1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Gw(this.componentDef.inputs)}get outputs(){return Gw(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function(n,t){return{get:(e,i,r)=>{const s=n.get(e,zo,r);return s!==zo||i===zo?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(ms,Zy),a=s.get(Up,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(n,t,e){if(tt(n))return n.selectRootElement(t,e===lt.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Pf(o.createRenderer(null,this.componentDef),c,function(n){const t=n.toLowerCase();return"svg"===t?Jy:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,h=function(n,t){return{components:[],scheduler:n||Dv,clean:Q1,playerHandler:t||null,flags:0}}(),p=gu(0,null,null,1,0,null,null,null,null,null),m=Za(null,p,h,d,null,null,o,l,a,s);let b,y;Uc(m);try{const D=function(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=yo(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(yu(l,c,!0),null!==n&&(Yc(r,n,c),null!==l.classes&&Uf(r,n,l.classes),null!==l.styles&&iv(r,n,l.styles)));const u=i.createRenderer(n,t),d=Za(e,Uv(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Xc(Va(l,e),o,t.type),Qv(o,l),Jv(l,e.length,1)),_u(e,d),e[20]=d}(u,this.componentDef,m,o,l);if(u)if(i)Yc(l,u,["ng-version",mw.full]);else{const{attrs:C,classes:T}=function(n){const t=[],e=[];let i=1,r=2;for(;i0&&Uf(l,u,T.join(" "))}if(y=sf(p,20),void 0!==e){const C=y.projection=[];for(let T=0;Tl(o,t)),t.contentQueries){const l=yt();t.contentQueries(1,o,l.directiveStart)}const a=yt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(vr(a.index),Yv(e[1],a,0,a.directiveStart,a.directiveEnd,t),Kv(t,o)),o}(D,this.componentDef,m,h,[DF]),el(p,m,null)}finally{$c()}return new vV(this.componentType,b,Vo(y,m),m,y)}}class vV extends class{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new rL(r),this.componentType=t}get injector(){return new so(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Wo=new Map;class wV extends Ri{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ww(this);const i=Sn(t),r=function(n){return n[Tx]||null}(t);r&&Fp(r),this._bootstrapComponents=Ai(i.bootstrap),this._r3Injector=lC(t,e,[{provide:Ri,useValue:this},{provide:ii,useValue:this.componentFactoryResolver}],me(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=_e.THROW_IF_NOT_FOUND,i=Y.Default){return t===_e||t===Ri||t===Co?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class nm extends Dw{constructor(t){super(),this.moduleType=t,null!==Sn(t)&&function(n){const t=new Set;!function e(i){const r=Sn(i,!0),s=r.id;null!==s&&(function(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${me(t)} vs ${me(t.name)}`)}(s,Wo.get(s),i),Wo.set(s,i));const o=Ai(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new wV(this.moduleType,t)}}function Ar(n,t,e){const i=Jt()+n,r=A();return r[i]===le?ki(r,i,e?t.call(e):t()):function(n,t){return n[t]}(r,i)}function vl(n,t,e,i){return Jw(A(),Jt(),n,t,e,i)}function im(n,t,e,i,r){return Xw(A(),Jt(),n,t,e,i,r)}function Qw(n,t,e,i,r,s){return function(n,t,e,i,r,s,o,a){const l=t+e;return function(n,t,e,i,r){const s=us(n,t,e,i);return jt(n,t+2,r)||s}(n,l,r,s,o)?ki(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):Cl(n,l+3)}(A(),Jt(),n,t,e,i,r,s)}function Cl(n,t){const e=n[t];return e===le?void 0:e}function Jw(n,t,e,i,r,s){const o=t+e;return jt(n,o,r)?ki(n,o+1,s?i.call(s,r):i(r)):Cl(n,o+1)}function Xw(n,t,e,i,r,s,o){const a=t+e;return us(n,a,r,s)?ki(n,a+2,o?i.call(o,r,s):i(r,s)):Cl(n,a+2)}function Tr(n,t){const e=Me();let i;const r=n+20;e.firstCreatePass?(i=function(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}throw new mr("302",`The pipe '${n}' could not be found!`)}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=is(i.type)),o=gr(f);try{const a=Qc(!1),l=s();return Qc(a),function(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,A(),r,l),l}finally{gr(o)}}function ys(n,t,e,i){const r=n+20,s=A(),o=to(s,r);return wl(s,Dl(s,r)?Xw(s,Jt(),t,o.transform,e,i,o):o.transform(e,i))}function Dl(n,t){return n[1].data[t].pure}function wl(n,t){return Zn.isWrapped(t)&&(t=Zn.unwrap(t),n[se.lFrame.bindingIndex]=le),t}function rm(n){return t=>{setTimeout(n,void 0,t)}}const R=class extends H{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=rm(l),a&&(a=rm(a)),c&&(c=rm(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof X&&t.add(u),u}};function PV(){return this._results[Eo()]()}class kr{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=Eo(),i=kr.prototype;i[e]||(i[e]=PV)}get changes(){return this._changes||(this._changes=new R)}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 i=this;i.dirty=!1;const r=In(t);(this._changesDetected=!function(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=xu,this.reject=xu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(v(Ml,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Sl=new I("AppId"),_2={provide:Sl,useFactory:function(){return`${mm()}${mm()}${mm()}`},deps:[]};function mm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const SE=new I("Platform Initializer"),Yo=new I("Platform ID"),AE=new I("appBootstrapListener");let Hu=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Zi=new I("LocaleId"),TE=new I("DefaultCurrencyCode");class b2{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const gm=function(n){return new nm(n)},v2=gm,C2=function(n){return Promise.resolve(gm(n))},kE=function(n){const t=gm(n),i=Ai(Sn(n).declarations).reduce((r,s)=>{const o=Vt(s);return o&&r.push(new qw(o)),r},[]);return new b2(t,i)},D2=kE,w2=function(n){return Promise.resolve(kE(n))};let bs=(()=>{class n{constructor(){this.compileModuleSync=v2,this.compileModuleAsync=C2,this.compileModuleAndAllComponentsSync=D2,this.compileModuleAndAllComponentsAsync=w2}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const S2=(()=>Promise.resolve(0))();function _m(n){"undefined"==typeof Zone?S2.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class z{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new R(!1),this.onMicrotaskEmpty=new R(!1),this.onStable=new R(!1),this.onError=new R(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let n=Re.requestAnimationFrame,t=Re.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(n){const t=()=>{!function(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Re,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,bm(n),n.isCheckStableRunning=!0,ym(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),bm(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return IE(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),xE(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return IE(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),xE(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,bm(n),ym(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!z.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(z.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,T2,xu,xu);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const T2={};function ym(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function bm(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function IE(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function xE(n){n._nesting--,ym(n)}class x2{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new R,this.onMicrotaskEmpty=new R,this.onStable=new R,this.onError=new R}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let vm=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{z.assertNotInAngularZone(),_m(()=>{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())_m(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(v(z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),OE=(()=>{class n{constructor(){this._applications=new Map,Cm.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Cm.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class O2{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Cm=new O2,RE=!0,FE=!1;function Dm(){return FE=!0,RE}let oi;const PE=new I("AllowMultipleToken");class wm{constructor(t,e){this.name=t,this.token=e}}function NE(n,t,e=[]){const i=`Platform: ${t}`,r=new I(i);return(s=[])=>{let o=LE();if(!o||o.injector.get(PE,!1))if(n)n(e.concat(s).concat({provide:r,useValue:!0}));else{const a=e.concat(s).concat({provide:r,useValue:!0},{provide:tl,useValue:"platform"});!function(n){if(oi&&!oi.destroyed&&!oi.injector.get(PE,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");oi=n.get(VE);const t=n.get(SE,null);t&&t.forEach(e=>e())}(_e.create({providers:a,name:i}))}return function(n){const t=LE();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function LE(){return oi&&!oi.destroyed?oi:null}let VE=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function(n,t){let e;return e="noop"===n?new x2:("zone.js"===n?void 0:n)||new z({enableLongStackTrace:Dm(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:z,useValue:a}];return a.run(()=>{const c=_e.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Kn,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:p=>{d.handleError(p)}});u.onDestroy(()=>{Em(this._modules,u),h.unsubscribe()})}),function(n,t,e){try{const i=e();return ol(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(qo);return h.runInitializers(),h.donePromise.then(()=>(Fp(u.injector.get(Zi,Su)||Su),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=BE({},i);return function(n,t,e){const i=new nm(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ir);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(v(_e))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function BE(n,t){return Array.isArray(t)?t.reduce(BE,n):Object.assign(Object.assign({},n),t)}let Ir=(()=>{class n{constructor(e,i,r,s,o){this._zone=e,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,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 a=new Ee(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Ee(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{z.assertNotInAngularZone(),_m(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=Nt(a,l.pipe(Py()))}bootstrap(e,i){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 r;r=e instanceof dw?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ri),a=r.create(_e.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(vm,null),u=c&&a.injector.get(OE);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Em(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Em(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(AE,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(v(z),v(_e),v(Kn),v(ii),v(qo))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Em(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}class Uu{}class q2{}const Y2={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let K2=(()=>{class n{constructor(e,i){this._compiler=e,this._config=i||Y2}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[i,r]=e.split("#");return void 0===r&&(r="default"),Ma(255)(i).then(s=>s[r]).then(s=>$E(s,i,r)).then(s=>this._compiler.compileModuleAsync(s))}loadFactory(e){let[i,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),Ma(255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(o=>o[r+s]).then(o=>$E(o,i,r))}}return n.\u0275fac=function(e){return new(e||n)(v(bs),v(q2,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function $E(n,t,e){if(!n)throw new Error(`Cannot find '${e}' in '${t}'`);return n}const sB=NE(null,"core",[{provide:Yo,useValue:"unknown"},{provide:VE,deps:[_e]},{provide:OE,deps:[]},{provide:Hu,deps:[]}]),uB=[{provide:Ir,useClass:Ir,deps:[z,_e,Kn,ii,qo]},{provide:_V,deps:[z],useFactory:function(n){let t=[];return n.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:qo,useClass:qo,deps:[[new ut,Ml]]},{provide:bs,useClass:bs,deps:[]},_2,{provide:Bo,useFactory:function(){return dL},deps:[]},{provide:Ho,useFactory:function(){return hL},deps:[]},{provide:Zi,useFactory:function(n){return Fp(n=n||"undefined"!=typeof $localize&&$localize.locale||Su),n},deps:[[new po(Zi),new ut,new xn]]},{provide:TE,useValue:"USD"}];let hB=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(v(Ir))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:uB}),n})(),Xu=null;function Fi(){return Xu}const W=new I("DocumentToken");let Ds=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:dH,token:n,providedIn:"platform"}),n})();function dH(){return v(fM)}const hH=new I("Location Initialized");let fM=(()=>{class n extends Ds{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fi().getBaseHref(this._doc)}onPopState(e){const i=Fi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Fi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){pM()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){pM()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:fH,token:n,providedIn:"platform"}),n})();function pM(){return!!window.history.pushState}function fH(){return new fM(v(W))}function Bm(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function mM(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function tr(n){return n&&"?"!==n[0]?"?"+n:n}let Jo=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:pH,token:n,providedIn:"root"}),n})();function pH(n){const t=v(W).location;return new gM(v(Ds),t&&t.origin||"")}const Hm=new I("appBaseHref");let gM=(()=>{class n extends Jo{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Bm(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+tr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+tr(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+tr(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(Ds),v(Hm,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),mH=(()=>{class n extends Jo{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Bm(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+tr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+tr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(v(Ds),v(Hm,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Xo=(()=>{class n{constructor(e,i){this._subject=new R,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=mM(_M(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+tr(i))}normalize(e){return n.stripTrailingSlash(function(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,_M(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+tr(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+tr(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.\u0275fac=function(e){return new(e||n)(v(Jo),v(Ds))},n.normalizeQueryParams=tr,n.joinWithSlash=Bm,n.stripTrailingSlash=mM,n.\u0275prov=x({factory:gH,token:n,providedIn:"root"}),n})();function gH(){return new Xo(v(Jo),v(Ds))}function _M(n){return n.replace(/\/index.html$/,"")}const yM={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var on=(()=>((on=on||{})[on.Decimal=0]="Decimal",on[on.Percent=1]="Percent",on[on.Currency=2]="Currency",on[on.Scientific=3]="Scientific",on))(),ht=(()=>((ht=ht||{})[ht.Zero=0]="Zero",ht[ht.One=1]="One",ht[ht.Two=2]="Two",ht[ht.Few=3]="Few",ht[ht.Many=4]="Many",ht[ht.Other=5]="Other",ht))(),ot=(()=>((ot=ot||{})[ot.Format=0]="Format",ot[ot.Standalone=1]="Standalone",ot))(),De=(()=>((De=De||{})[De.Narrow=0]="Narrow",De[De.Abbreviated=1]="Abbreviated",De[De.Wide=2]="Wide",De[De.Short=3]="Short",De))(),Ze=(()=>((Ze=Ze||{})[Ze.Short=0]="Short",Ze[Ze.Medium=1]="Medium",Ze[Ze.Long=2]="Long",Ze[Ze.Full=3]="Full",Ze))(),ee=(()=>((ee=ee||{})[ee.Decimal=0]="Decimal",ee[ee.Group=1]="Group",ee[ee.List=2]="List",ee[ee.PercentSign=3]="PercentSign",ee[ee.PlusSign=4]="PlusSign",ee[ee.MinusSign=5]="MinusSign",ee[ee.Exponential=6]="Exponential",ee[ee.SuperscriptingExponent=7]="SuperscriptingExponent",ee[ee.PerMille=8]="PerMille",ee[ee.Infinity=9]="Infinity",ee[ee.NaN=10]="NaN",ee[ee.TimeSeparator=11]="TimeSeparator",ee[ee.CurrencyDecimal=12]="CurrencyDecimal",ee[ee.CurrencyGroup=13]="CurrencyGroup",ee))();function Zu(n,t){return Ln(en(n)[P.DateFormat],t)}function ed(n,t){return Ln(en(n)[P.TimeFormat],t)}function td(n,t){return Ln(en(n)[P.DateTimeFormat],t)}function Nn(n,t){const e=en(n),i=e[P.NumberSymbols][t];if(void 0===i){if(t===ee.CurrencyDecimal)return e[P.NumberSymbols][ee.Decimal];if(t===ee.CurrencyGroup)return e[P.NumberSymbols][ee.Group]}return i}const EH=function(n){return en(n)[P.PluralCase]};function bM(n){if(!n[P.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[P.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ln(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function Um(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const IH=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xl={},xH=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Dt=(()=>((Dt=Dt||{})[Dt.Short=0]="Short",Dt[Dt.ShortGMT=1]="ShortGMT",Dt[Dt.Long=2]="Long",Dt[Dt.Extended=3]="Extended",Dt))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),pe=(()=>((pe=pe||{})[pe.DayPeriods=0]="DayPeriods",pe[pe.Days=1]="Days",pe[pe.Months=2]="Months",pe[pe.Eras=3]="Eras",pe))();function OH(n,t,e,i){let r=function(n){if(DM(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,s=1,o=1]=n.split("-").map(a=>+a);return nd(r,s-1,o)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(IH))return function(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,s=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(t,o,a,l,c),t}(i)}const t=new Date(n);if(!DM(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=nr(e,t)||t;let a,o=[];for(;t;){if(a=xH.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const u=o.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=CM(i,l),r=function(n,t,e){const r=n.getTimezoneOffset();return function(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,-1*(CM(t,r)-r))}(r,i));let c="";return o.forEach(u=>{const d=function(n){if(zm[n])return zm[n];let t;switch(n){case"G":case"GG":case"GGG":t=Ge(pe.Eras,De.Abbreviated);break;case"GGGG":t=Ge(pe.Eras,De.Wide);break;case"GGGGG":t=Ge(pe.Eras,De.Narrow);break;case"y":t=ft(te.FullYear,1,0,!1,!0);break;case"yy":t=ft(te.FullYear,2,0,!0,!0);break;case"yyy":t=ft(te.FullYear,3,0,!1,!0);break;case"yyyy":t=ft(te.FullYear,4,0,!1,!0);break;case"Y":t=od(1);break;case"YY":t=od(2,!0);break;case"YYY":t=od(3);break;case"YYYY":t=od(4);break;case"M":case"L":t=ft(te.Month,1,1);break;case"MM":case"LL":t=ft(te.Month,2,1);break;case"MMM":t=Ge(pe.Months,De.Abbreviated);break;case"MMMM":t=Ge(pe.Months,De.Wide);break;case"MMMMM":t=Ge(pe.Months,De.Narrow);break;case"LLL":t=Ge(pe.Months,De.Abbreviated,ot.Standalone);break;case"LLLL":t=Ge(pe.Months,De.Wide,ot.Standalone);break;case"LLLLL":t=Ge(pe.Months,De.Narrow,ot.Standalone);break;case"w":t=$m(1);break;case"ww":t=$m(2);break;case"W":t=$m(1,!0);break;case"d":t=ft(te.Date,1);break;case"dd":t=ft(te.Date,2);break;case"c":case"cc":t=ft(te.Day,1);break;case"ccc":t=Ge(pe.Days,De.Abbreviated,ot.Standalone);break;case"cccc":t=Ge(pe.Days,De.Wide,ot.Standalone);break;case"ccccc":t=Ge(pe.Days,De.Narrow,ot.Standalone);break;case"cccccc":t=Ge(pe.Days,De.Short,ot.Standalone);break;case"E":case"EE":case"EEE":t=Ge(pe.Days,De.Abbreviated);break;case"EEEE":t=Ge(pe.Days,De.Wide);break;case"EEEEE":t=Ge(pe.Days,De.Narrow);break;case"EEEEEE":t=Ge(pe.Days,De.Short);break;case"a":case"aa":case"aaa":t=Ge(pe.DayPeriods,De.Abbreviated);break;case"aaaa":t=Ge(pe.DayPeriods,De.Wide);break;case"aaaaa":t=Ge(pe.DayPeriods,De.Narrow);break;case"b":case"bb":case"bbb":t=Ge(pe.DayPeriods,De.Abbreviated,ot.Standalone,!0);break;case"bbbb":t=Ge(pe.DayPeriods,De.Wide,ot.Standalone,!0);break;case"bbbbb":t=Ge(pe.DayPeriods,De.Narrow,ot.Standalone,!0);break;case"B":case"BB":case"BBB":t=Ge(pe.DayPeriods,De.Abbreviated,ot.Format,!0);break;case"BBBB":t=Ge(pe.DayPeriods,De.Wide,ot.Format,!0);break;case"BBBBB":t=Ge(pe.DayPeriods,De.Narrow,ot.Format,!0);break;case"h":t=ft(te.Hours,1,-12);break;case"hh":t=ft(te.Hours,2,-12);break;case"H":t=ft(te.Hours,1);break;case"HH":t=ft(te.Hours,2);break;case"m":t=ft(te.Minutes,1);break;case"mm":t=ft(te.Minutes,2);break;case"s":t=ft(te.Seconds,1);break;case"ss":t=ft(te.Seconds,2);break;case"S":t=ft(te.FractionalSeconds,1);break;case"SS":t=ft(te.FractionalSeconds,2);break;case"SSS":t=ft(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=rd(Dt.Short);break;case"ZZZZZ":t=rd(Dt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=rd(Dt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=rd(Dt.Long);break;default:return null}return zm[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function nd(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function nr(n,t){const e=function(n){return en(n)[P.LocaleId]}(n);if(xl[e]=xl[e]||{},xl[e][t])return xl[e][t];let i="";switch(t){case"shortDate":i=Zu(n,Ze.Short);break;case"mediumDate":i=Zu(n,Ze.Medium);break;case"longDate":i=Zu(n,Ze.Long);break;case"fullDate":i=Zu(n,Ze.Full);break;case"shortTime":i=ed(n,Ze.Short);break;case"mediumTime":i=ed(n,Ze.Medium);break;case"longTime":i=ed(n,Ze.Long);break;case"fullTime":i=ed(n,Ze.Full);break;case"short":const r=nr(n,"shortTime"),s=nr(n,"shortDate");i=id(td(n,Ze.Short),[r,s]);break;case"medium":const o=nr(n,"mediumTime"),a=nr(n,"mediumDate");i=id(td(n,Ze.Medium),[o,a]);break;case"long":const l=nr(n,"longTime"),c=nr(n,"longDate");i=id(td(n,Ze.Long),[l,c]);break;case"full":const u=nr(n,"fullTime"),d=nr(n,"fullDate");i=id(td(n,Ze.Full),[u,d])}return i&&(xl[e][t]=i),i}function id(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ci(n,t,e="-",i,r){let s="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,s=e));let o=String(n);for(;o.length0||a>-e)&&(a+=e),n===te.Hours)0===a&&-12===e&&(a=12);else if(n===te.FractionalSeconds)return function(n,t){return ci(n,3).substr(0,t)}(a,t);const l=Nn(o,ee.MinusSign);return ci(a,t,l,i,r)}}function Ge(n,t,e=ot.Format,i=!1){return function(r,s){return function(n,t,e,i,r,s){switch(e){case pe.Months:return function(n,t,e){const i=en(n),s=Ln([i[P.MonthsFormat],i[P.MonthsStandalone]],t);return Ln(s,e)}(t,r,i)[n.getMonth()];case pe.Days:return function(n,t,e){const i=en(n),s=Ln([i[P.DaysFormat],i[P.DaysStandalone]],t);return Ln(s,e)}(t,r,i)[n.getDay()];case pe.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const c=function(n){const t=en(n);return bM(t),(t[P.ExtraData][2]||[]).map(i=>"string"==typeof i?Um(i):[Um(i[0]),Um(i[1])])}(t),u=function(n,t,e){const i=en(n);bM(i);const s=Ln([i[P.ExtraData][0],i[P.ExtraData][1]],t)||[];return Ln(s,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[p,m]=h,b=o>=p.hours&&a>=p.minutes,y=o0?Math.floor(r/60):Math.ceil(r/60);switch(n){case Dt.Short:return(r>=0?"+":"")+ci(o,2,s)+ci(Math.abs(r%60),2,s);case Dt.ShortGMT:return"GMT"+(r>=0?"+":"")+ci(o,1,s);case Dt.Long:return"GMT"+(r>=0?"+":"")+ci(o,2,s)+":"+ci(Math.abs(r%60),2,s);case Dt.Extended:return 0===i?"Z":(r>=0?"+":"")+ci(o,2,s)+":"+ci(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}function vM(n){return nd(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function $m(n,t=!1){return function(e,i){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=vM(e),o=function(n){const t=nd(n,0,1).getDay();return nd(n,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return ci(r,n,Nn(i,ee.MinusSign))}}function od(n,t=!1){return function(e,i){return ci(vM(e).getFullYear(),n,Nn(i,ee.MinusSign),t)}}const zm={};function CM(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function DM(n){return n instanceof Date&&!isNaN(n.valueOf())}const $H=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qH(n,t,e,i,r){const o=function(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";e.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u-1&&(t=t.replace(".","")),(s=t.search(/e/i))>0?(r<0&&(r=s),r+=+t.slice(s+1),t=t.substring(0,s)):r<0&&(r=t.length),s=0;"0"===t.charAt(s);s++);if(s===(a=t.length))i=[0],r=1;else{for(a--;"0"===t.charAt(a);)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(t.charAt(s))}return r>22&&(i=i.splice(0,21),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(n);o&&(c=function(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(c));let u=t.minInt,d=t.minFrac,h=t.maxFrac;if(s){const C=s.match($H);if(null===C)throw new Error(`${s} is not a valid digit info`);const T=C[1],O=C[3],re=C[5];null!=T&&(u=Ym(T)),null!=O&&(d=Ym(O)),null!=re?h=Ym(re):null!=O&&d>h&&(h=d)}!function(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,r=i.length-n.integerLen;const s=Math.min(Math.max(t,r),e);let o=s+n.integerLen,a=i[o];if(o>0){i.splice(Math.max(n.integerLen,o));for(let d=o;d=5)if(o-1<0){for(let d=0;d>o;d--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[o-1]++;for(;r=c?m.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),n.integerLen++)}(c,d,h);let p=c.digits,m=c.integerLen;const b=c.exponent;let y=[];for(l=p.every(C=>!C);m0?y=p.splice(m,p.length):(y=p,p=[0]);const D=[];for(p.length>=t.lgSize&&D.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)D.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&D.unshift(p.join("")),a=D.join(Nn(e,i)),y.length&&(a+=Nn(e,r)+y.join("")),b&&(a+=Nn(e,ee.Exponential)+"+"+b)}else a=Nn(e,ee.Infinity);return a=n<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(n,o,t,ee.CurrencyGroup,ee.CurrencyDecimal,r).replace("\xa4",e).replace("\xa4","").trim()}function Ym(n){const t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}class ld{}let ZH=(()=>{class n extends ld{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(EH(i||this.locale)(e)){case ht.Zero:return"zero";case ht.One:return"one";case ht.Two:return"two";case ht.Few:return"few";case ht.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(v(Zi))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function SM(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Zo=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(rl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${me(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(f(Bo),f(Ho),f(N),f(Xi))},n.\u0275dir=M({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class t3{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ir=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((r,s,o)=>{if(null==r.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new t3(null,this._ngForOf,-1,-1),null===o?void 0:o),l=new AM(r,a);i.push(l)}else if(null==o)this._viewContainer.remove(null===s?void 0:s);else if(null!==s){const a=this._viewContainer.get(s);this._viewContainer.move(a,o);const l=new AM(r,a);i.push(l)}});for(let r=0;r{this._viewContainer.get(r.currentIndex).context.$implicit=r.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt),f(Bo))},n.\u0275dir=M({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();class AM{constructor(t,e){this.record=t,this.view=e}}let Vn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new i3,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){TM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){TM("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt))},n.\u0275dir=M({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class i3{constructor(){this.$implicit=null,this.ngIf=null}}function TM(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${me(t)}'.`)}class Km{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let ea=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Km(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt),f(ea,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),kM=(()=>{class n{constructor(e,i,r){r._addDefault(new Km(e,i))}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(dt),f(ea,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),xM=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(f(it))},n.\u0275dir=M({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Ie]}),n})();function ui(n,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${me(n)}'`)}let OM=(()=>{class n{constructor(e){this.locale=e}transform(e,i="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return OH(e,i,s||this.locale,r)}catch(o){throw ui(n,o.message)}}}return n.\u0275fac=function(e){return new(e||n)(f(Zi,16))},n.\u0275pipe=Lt({name:"date",type:n,pure:!0}),n})(),FM=(()=>{class n{constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",s,o){if(!function(n){return!(null==n||""===n||n!=n)}(e))return null;o=o||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let a=i||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?function(n,t,e="en"){const i=function(n){return en(n)[P.Currencies]}(e)[n]||yM[n]||[],r=i[1];return"narrow"===t&&"string"==typeof r?r:i[0]||n}(a,"symbol"===r?"wide":"narrow",o):r);try{return qH(function(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}(e),o,a,i,s)}catch(l){throw ui(n,l.message)}}}return n.\u0275fac=function(e){return new(e||n)(f(Zi,16),f(TE,16))},n.\u0275pipe=Lt({name:"currency",type:n,pure:!0}),n})();let ws=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[{provide:ld,useClass:ZH}]}),n})();const PM="browser";let NM=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>new T3(v(W),window)}),n})();class T3{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){if(!this.supportsScrolling())return;const e=function(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=LM(this.window.history)||LM(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 LM(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class VM{}class Xm extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(n){Xu||(Xu=n)}(new Xm)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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}getBaseHref(t){const e=(Rl=Rl||document.querySelector("base"),Rl?Rl.getAttribute("href"):null);return null==e?null:function(n){ud=ud||document.createElement("a"),ud.setAttribute("href",n);const t=ud.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Rl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return SM(document.cookie,t)}}let ud,Rl=null;const BM=new I("TRANSITION_ID"),F3=[{provide:Ml,useFactory:function(n,t,e){return()=>{e.get(qo).donePromise.then(()=>{const i=Fi(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},Re.getAllAngularTestabilities=()=>t.getAllTestabilities(),Re.getAllAngularRootElements=()=>t.getAllRootElements(),Re.frameworkStabilizers||(Re.frameworkStabilizers=[]),Re.frameworkStabilizers.push(i=>{const r=Re.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Fi().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let P3=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Fl=new I("EventManagerPlugins");let hd=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Pl=(()=>{class n extends jM{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(UM),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(UM))}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function UM(n){Fi().remove(n)}const tg={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/"},ng=/%COMP%/g;function fd(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let pd=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ig(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case lt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new Q3(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case lt.ShadowDom:return new J3(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=fd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(v(hd),v(Pl),v(Sl))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class ig{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(tg[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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=tg[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=tg[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(mn.DashCase|mn.Important)?t.style.setProperty(e,i,r&mn.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&mn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,WM(i)):this.eventManager.addEventListener(t,e,WM(i))}}class Q3 extends ig{constructor(t,e,i,r){super(t),this.component=i;const s=fd(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function(n){return"_ngcontent-%COMP%".replace(ng,n)}(r+"-"+i.id),this.hostAttr=function(n){return"_nghost-%COMP%".replace(ng,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class J3 extends ig{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=fd(r.id,r.styles,[]);for(let o=0;o{class n extends eg{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const YM=["alt","control","meta","shift"],sj={"\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"},KM={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"},oj={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let aj=(()=>{class n extends eg{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fi().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(YM.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&KM.hasOwnProperty(t)&&(t=KM[t]))}return sj[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),YM.forEach(s=>{s!=r&&oj[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),ta=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return v(sg)},token:n,providedIn:"root"}),n})(),sg=(()=>{class n extends ta{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Te.NONE:return i;case Te.HTML:return Mi(i,"HTML")?gn(i):mv(this._doc,String(i)).toString();case Te.STYLE:return Mi(i,"Style")?gn(i):i;case Te.SCRIPT:if(Mi(i,"Script"))return gn(i);throw new Error("unsafe value used in a script context");case Te.URL:return av(i),Mi(i,"URL")?gn(i):Qa(String(i));case Te.RESOURCE_URL:if(Mi(i,"ResourceURL"))return gn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function(n){return new vR(n)}(e)}bypassSecurityTrustStyle(e){return function(n){return new CR(n)}(e)}bypassSecurityTrustScript(e){return function(n){return new DR(n)}(e)}bypassSecurityTrustUrl(e){return function(n){return new wR(n)}(e)}bypassSecurityTrustResourceUrl(e){return function(n){return new ER(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:function(){return function(n){return new sg(n.get(W))}(v(Co))},token:n,providedIn:"root"}),n})();const fj=[{provide:Yo,useValue:PM},{provide:SE,useValue:function(){Xm.makeCurrent(),Zm.init()},multi:!0},{provide:W,useFactory:function(){return function(n){nf=n}(document),document},deps:[]}],mj=NE(sB,"browser",fj),gj=[[],{provide:tl,useValue:"root"},{provide:Kn,useFactory:function(){return new Kn},deps:[]},{provide:Fl,useClass:X3,multi:!0,deps:[W,z,Yo]},{provide:Fl,useClass:aj,multi:!0,deps:[W]},[],{provide:pd,useClass:pd,deps:[hd,Pl,Sl]},{provide:ms,useExisting:pd},{provide:jM,useExisting:Pl},{provide:Pl,useClass:Pl,deps:[W]},{provide:vm,useClass:vm,deps:[z]},{provide:hd,useClass:hd,deps:[Fl,z]},{provide:VM,useClass:P3,deps:[]},[]];let og=(()=>{class n{constructor(e){if(e)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:n,providers:[{provide:Sl,useValue:e.appId},{provide:BM,useExisting:Sl},F3]}}}return n.\u0275fac=function(e){return new(e||n)(v(n,12))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:gj,imports:[ws,hB]}),n})();function G(...n){let t=n[n.length-1];return Ks(t)?(n.pop(),jh(n,t)):Uh(n)}"undefined"!=typeof window&&window;class Bn extends H{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 Xr;return this._value}next(t){super.next(this._value=t)}}class Ej extends Oe{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Mj extends Oe{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,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 Sj(n,t,e,i,r=new Mj(n,e,i)){if(!r.closed)return t instanceof Ee?t.subscribe(r):Hh(t)(r)}const JM={};class Tj{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new kj(t,this.resultSelector))}}class kj extends Ej{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(JM),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 i=0;i{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function lg(...n){return Ia(1)(G(...n))}const Es=new Ee(n=>n.complete());function gd(n){return n?function(n){return new Ee(t=>n.schedule(()=>t.complete()))}(n):Es}function _d(n){return new Ee(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?It(e):gd()).subscribe(t)})}function yn(n,t){return"function"==typeof t?e=>e.pipe(yn((i,r)=>It(n(i,r)).pipe(ge((s,o)=>t(i,s,r,o))))):e=>e.lift(new Oj(n))}class Oj{constructor(t){this.project=t}call(t,e){return e.subscribe(new Rj(t,this.project))}}class Rj extends Ta{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Aa(this),r=this.destination;r.add(i),this.innerSubscription=ka(t,i),this.innerSubscription!==i&&r.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 XM=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function wt(n){return t=>0===n?gd():t.lift(new Fj(n))}class Fj{constructor(t){if(this.total=t,this.total<0)throw new XM}call(t,e){return e.subscribe(new Pj(t,this.total))}}class Pj extends Oe{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function At(...n){const t=n[n.length-1];return Ks(t)?(n.pop(),e=>lg(n,e,t)):e=>lg(n,e)}function ZM(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Nj(n,t,e))}}class Nj{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Lj(t,this.accumulator,this.seed,this.hasSeed))}}class Lj extends Oe{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function pt(n,t){return function(i){return i.lift(new Vj(n,t))}}class Vj{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Bj(t,this.predicate,this.thisArg))}}class Bj extends Oe{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function Rr(n){return function(e){const i=new Hj(n),r=e.lift(i);return i.caught=r}}class Hj{constructor(t){this.selector=t}call(t,e){return e.subscribe(new jj(t,this.selector,this.caught))}}class jj extends Ta{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Aa(this);this.add(i);const r=ka(e,i);r!==i&&this.add(r)}}}function na(n,t){return xt(n,t,1)}function cg(n){return function(e){return 0===n?gd():e.lift(new Uj(n))}}class Uj{constructor(t){if(this.total=t,this.total<0)throw new XM}call(t,e){return e.subscribe(new $j(t,this.total))}}class $j extends Oe{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;st.lift(new zj(n))}class zj{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Wj(t,this.errorFactory))}}class Wj extends Oe{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 t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Gj(){return new md}function t0(n=null){return t=>t.lift(new qj(n))}class qj{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Yj(t,this.defaultValue))}}class Yj extends Oe{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 ia(n,t){const e=arguments.length>=2;return i=>i.pipe(n?pt((r,s)=>n(r,s,i)):kc,wt(1),e?t0(t):e0(()=>new md))}function Fr(){}function Rt(n,t,e){return function(r){return r.lift(new Qj(n,t,e))}}class Qj{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Jj(t,this.nextOrObserver,this.error,this.complete))}}class Jj extends Oe{constructor(t,e,i,r){super(t),this._tapNext=Fr,this._tapError=Fr,this._tapComplete=Fr,this._tapError=i||Fr,this._tapComplete=r||Fr,vi(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Fr,this._tapError=e.error||Fr,this._tapComplete=e.complete||Fr)}_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(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function n0(n){return t=>t.lift(new Xj(n))}class Xj{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Zj(t,this.callback))}}class Zj extends Oe{constructor(t,e){super(t),this.add(new X(e))}}class rr{constructor(t,e){this.id=t,this.url=e}}class ug extends rr{constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nl extends rr{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class r0 extends rr{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class eU extends rr{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iU extends rr{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sU extends rr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class s0{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class o0{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oU{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aU{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lU{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cU{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class a0{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class uU{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 ra(n){return new uU(n)}const l0="ngNavigationCancelingError";function dg(n){const t=Error("NavigationCancelingError: "+n);return t[l0]=!0,t}function hU(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[s]===r)}return n===t}function u0(n){return Array.prototype.concat.apply([],n)}function d0(n){return n.length>0?n[n.length-1]:null}function Ft(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ni(n){return Du(n)?n:ol(n)?It(Promise.resolve(n)):G(n)}const mU={exact:function p0(n,t,e){if(!Ss(n.segments,t.segments)||!yd(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!p0(n.children[i],t.children[i],e))return!1;return!0},subset:m0},h0={exact:function(n,t){return Pi(n,t)},subset:function(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>c0(n[e],t[e]))},ignored:()=>!0};function f0(n,t,e){return mU[e.paths](n.root,t.root,e.matrixParams)&&h0[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function m0(n,t,e){return g0(n,t,t.segments,e)}function g0(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Ss(r,e)||t.hasChildren()||!yd(r,e,i))}if(n.segments.length===e.length){if(!Ss(n.segments,e)||!yd(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!m0(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(Ss(n.segments,r)&&yd(n.segments,r,i)&&n.children[be])&&g0(n.children[be],t,s,i)}}function yd(n,t,e){return t.every((i,r)=>h0[e](n[r].parameters,i.parameters))}class Ms{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ra(this.queryParams)),this._queryParamMap}toString(){return vU.serialize(this)}}class we{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ft(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bd(this)}}class Ll{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ra(this.parameters)),this._parameterMap}toString(){return v0(this)}}function Ss(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class hg{}class _0{parse(t){const e=new kU(t);return new Ms(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Vl(t.root,!0)}`,i=function(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${vd(e)}=${vd(r)}`).join("&"):`${vd(e)}=${vd(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const vU=new _0;function bd(n){return n.segments.map(t=>v0(t)).join("/")}function Vl(n,t){if(!n.hasChildren())return bd(n);if(t){const e=n.children[be]?Vl(n.children[be],!1):"",i=[];return Ft(n.children,(r,s)=>{s!==be&&i.push(`${s}:${Vl(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(n,t){let e=[];return Ft(n.children,(i,r)=>{r===be&&(e=e.concat(t(i,r)))}),Ft(n.children,(i,r)=>{r!==be&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===be?[Vl(n.children[be],!1)]:[`${r}:${Vl(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[be]?`${bd(n)}/${e[0]}`:`${bd(n)}/(${e.join("//")})`}}function y0(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vd(n){return y0(n).replace(/%3B/gi,";")}function fg(n){return y0(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cd(n){return decodeURIComponent(n)}function b0(n){return Cd(n.replace(/\+/g,"%20"))}function v0(n){return`${fg(n.path)}${function(n){return Object.keys(n).map(t=>`;${fg(t)}=${fg(n[t])}`).join("")}(n.parameters)}`}const EU=/^[^\/()?;=#]+/;function Dd(n){const t=n.match(EU);return t?t[0]:""}const MU=/^[^=?&#]+/,AU=/^[^?&#]+/;class kU{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[be]=new we(t,e)),i}parseSegment(){const t=Dd(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ll(Cd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Dd(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Dd(this.remaining);r&&(i=r,this.capture(i))}t[Cd(e)]=Cd(i)}parseQueryParam(t){const e=function(n){const t=n.match(MU);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function(n){const t=n.match(AU);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=b0(e),s=b0(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Dd(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=be);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[be]:new we([],o),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 C0{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=pg(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=pg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=mg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return mg(t,this._root).map(e=>e.value)}}function pg(n,t){if(n===t.value)return t;for(const e of t.children){const i=pg(n,e);if(i)return i}return null}function mg(n,t){if(n===t.value)return[t];for(const e of t.children){const i=mg(n,e);if(i.length)return i.unshift(t),i}return[]}class sr{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Bl(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class D0 extends C0{constructor(t,e){super(t),this.snapshot=e,gg(this,t)}toString(){return this.snapshot.toString()}}function w0(n,t){const e=function(n,t){const o=new wd([],{},{},"",{},be,t,null,n.root,-1,{});return new M0("",new sr(o,[]))}(n,t),i=new Bn([new Ll("",{})]),r=new Bn({}),s=new Bn({}),o=new Bn({}),a=new Bn(""),l=new sa(i,r,o,a,s,be,t,e.root);return l.snapshot=e.root,new D0(new sr(l,[]),e)}class sa{constructor(t,e,i,r,s,o,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}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(ge(t=>ra(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ge(t=>ra(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function E0(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function(n){return n.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:{}})}(e.slice(i))}class wd{constructor(t,e,i,r,s,o,a,l,c,u,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}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=ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class M0 extends C0{constructor(t,e){super(e),this.url=t,gg(this,e)}toString(){return S0(this._root)}}function gg(n,t){t.value._routerState=n,t.children.forEach(e=>gg(n,e))}function S0(n){const t=n.children.length>0?` { ${n.children.map(S0).join(", ")} } `:"";return`${n.value}${t}`}function _g(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Pi(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Pi(t.params,e.params)||n.params.next(e.params),function(n,t){if(n.length!==t.length)return!1;for(let e=0;ePi(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||yg(n.parent,t.parent))}function Ed(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Ed(n,i,r);return Ed(n,i)})}(n,t,e);return new sr(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return A0(t,o),o}}const i=function(n){return new sa(new Bn(n.url),new Bn(n.params),new Bn(n.queryParams),new Bn(n.fragment),new Bn(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>Ed(n,s));return new sr(i,r)}}function A0(n,t){if(n.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=n.value;for(let e=0;e{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Ms(e.root===n?t:T0(e.root,n,t),s,r)}function T0(n,t,e){const i={};return Ft(n.children,(r,s)=>{i[s]=r===t?e:T0(r,t,e)}),new we(n.segments,i)}class k0{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Md(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(Hl);if(r&&r!==d0(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vg{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function I0(n,t,e){if(n||(n=new we([],{})),0===n.segments.length&&n.hasChildren())return Sd(n,t,e);const i=function(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return s;const o=n.segments[r],a=e[i];if(Hl(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!O0(l,c,o))return s;i+=2}else{if(!O0(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=I0(n.children[o],t,s))}),Ft(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new we(n.segments,r)}}function Cg(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Cg(new we([],{}),0,e))}),t}function x0(n){const t={};return Ft(n,(e,i)=>t[i]=`${e}`),t}function O0(n,t,e){return n==e.path&&Pi(t,e.parameters)}class $U{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),_g(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Bl(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Ft(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const r=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Bl(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Bl(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new cU(s.value.snapshot))}),t.children.length&&this.forwardEvent(new aU(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(_g(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),R0(a.route)}else{const a=function(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}function R0(n){_g(n.value),n.children.forEach(R0)}class Dg{constructor(t,e){this.routes=t,this.module=e}}function Pr(n){return"function"==typeof n}function As(n){return n instanceof Ms}const jl=Symbol("INITIAL_VALUE");function Ul(){return yn(n=>function(...n){let t,e;return Ks(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Ys(n[0])&&(n=n[0]),Uh(n,e).lift(new Tj(t))}(n.map(t=>t.pipe(wt(1),At(jl)))).pipe(ZM((t,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==jl?r:(s===jl&&(i=!0),i||!1!==s&&o!==e.length-1&&!As(s)?r:s),t)},jl),pt(t=>t!==jl),ge(t=>As(t)?t:!0===t),wt(1)))}let F0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ne({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&K(0,"router-outlet")},directives:function(){return[Fd]},encapsulation:2}),n})();function P0(n,t=""){for(let e=0;eHn(i)===t);return e.push(...n.filter(i=>Hn(i)!==t)),e}const L0={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ad(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},L0):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||hU)(e,n,t);if(!s)return Object.assign({},L0);const o={};Ft(s.posParams,(l,c)=>{o[c]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Td(n,t,e,i,r="corrected"){if(e.length>0&&function(n,t,e){return e.some(i=>kd(n,t,i)&&Hn(i)!==be)}(n,e,i)){const o=new we(t,function(n,t,e,i){const r={};r[be]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Hn(s)!==be){const o=new we([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[Hn(s)]=o}return r}(n,t,i,new we(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function(n,t,e){return e.some(i=>kd(n,t,i))}(n,e,i)){const o=new we(n.segments,function(n,t,e,i,r,s){const o={};for(const a of i)if(kd(n,e,a)&&!r[Hn(a)]){const l=new we([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[Hn(a)]=l}return Object.assign(Object.assign({},r),o)}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new we(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function kd(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function V0(n,t,e,i){return!!(Hn(n)===i||i!==be&&kd(t,e,n))&&("**"===n.path||Ad(t,n,e).matched)}function B0(n,t,e){return 0===t.length&&!n.children[e]}class $l{constructor(t){this.segmentGroup=t||null}}class H0{constructor(t){this.urlTree=t}}function Id(n){return new Ee(t=>t.error(new $l(n)))}function j0(n){return new Ee(t=>t.error(new H0(n)))}function n$(n){return new Ee(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class s${constructor(t,e,i,r,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Ri)}apply(){const t=Td(this.urlTree.root,[],[],this.config).segmentGroup,e=new we(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,be).pipe(ge(s=>this.createUrlTree(Eg(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Rr(s=>{if(s instanceof H0)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof $l?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,be).pipe(ge(r=>this.createUrlTree(Eg(r),t.queryParams,t.fragment))).pipe(Rr(r=>{throw r instanceof $l?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new we([],{[be]:t}):t;return new Ms(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ge(s=>new we([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return It(r).pipe(na(s=>{const o=i.children[s],a=N0(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(ge(l=>({segment:l,outlet:s})))}),ZM((s,o)=>(s[o.outlet]=o.segment,s),{}),function(n,t){const e=arguments.length>=2;return i=>i.pipe(n?pt((r,s)=>n(r,s,i)):kc,cg(1),e?t0(t):e0(()=>new md))}())}expandSegment(t,e,i,r,s,o){return It(i).pipe(na(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(Rr(c=>{if(c instanceof $l)return G(null);throw c}))),ia(a=>!!a),Rr((a,l)=>{if(a instanceof md||"EmptyError"===a.name){if(B0(e,r,s))return G(new we([],{}));throw new $l(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return V0(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):Id(e):Id(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?j0(s):this.lineralizeSegments(i,s).pipe(xt(o=>{const a=new we(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:u}=Ad(e,r,s);if(!a)return Id(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?j0(d):this.lineralizeSegments(r,d).pipe(xt(h=>this.expandSegment(t,e,i,h.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?G(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(ge(h=>(i._loadedConfig=h,new we(r,{})))):G(new we(r,{}));const{matched:o,consumedSegments:a,lastChild:l}=Ad(e,i,r);if(!o)return Id(e);const c=r.slice(l);return this.getChildConfig(t,i,r).pipe(xt(d=>{const h=d.module,p=d.routes,{segmentGroup:m,slicedSegments:b}=Td(e,a,c,p),y=new we(m.segments,m.children);if(0===b.length&&y.hasChildren())return this.expandChildren(h,p,y).pipe(ge(O=>new we(a,O)));if(0===p.length&&0===b.length)return G(new we(a,{}));const D=Hn(i)===s;return this.expandSegment(h,y,p,b,D?be:s,!0).pipe(ge(T=>new we(a.concat(T.segments),T.children)))}))}getChildConfig(t,e,i){return e.children?G(new Dg(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?G(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(xt(r=>r?this.configLoader.load(t.injector,e).pipe(ge(s=>(e._loadedConfig=s,s))):function(n){return new Ee(t=>t.error(dg(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):G(new Dg([],t))}runCanLoadGuards(t,e,i){const r=e.canLoad;if(!r||0===r.length)return G(!0);const s=r.map(o=>{const a=t.get(o);let l;if(function(n){return n&&Pr(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!Pr(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return Ni(l)});return G(s).pipe(Ul(),Rt(o=>{if(!As(o))return;const a=dg(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ge(o=>!0===o))}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return G(i);if(r.numberOfChildren>1||!r.children[be])return n$(t.redirectTo);r=r.children[be]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new Ms(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ft(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return Ft(e.children,(a,l)=>{o[l]=this.createSegmentGroup(t,a,i,r)}),new we(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function Eg(n){const t={};for(const i of Object.keys(n.children)){const s=Eg(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function(n){if(1===n.numberOfChildren&&n.children[be]){const t=n.children[be];return new we(n.segments.concat(t.segments),t.children)}return n}(new we(n.segments,t))}class U0{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class xd{constructor(t,e){this.component=t,this.route=e}}function l$(n,t,e){const i=n._root;return zl(i,t?t._root:null,e,[i.value])}function Od(n,t,e){const i=function(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function zl(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Bl(t);return n.children.forEach(o=>{(function(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Ss(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ss(n.url,t.url)||!Pi(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yg(n,t)||!Pi(n.queryParams,t.queryParams);default:return!yg(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new U0(i)):(s.data=o.data,s._resolvedData=o._resolvedData),zl(n,t,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new xd(a.outlet.component,o))}else o&&Wl(t,a,r),r.canActivateChecks.push(new U0(i)),zl(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Ft(s,(o,a)=>Wl(o,e.getContext(a),r)),r}function Wl(n,t,e){const i=Bl(n),r=n.value;Ft(i,(s,o)=>{Wl(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new xd(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class C${}function $0(n){return new Ee(t=>t.error(n))}class w${constructor(t,e,i,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Td(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,be);if(null===e)return null;const i=new wd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new sr(i,e),s=new M0(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=E0(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=N0(t,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;i.push(...l)}const r=z0(i);return function(n){n.sort((t,e)=>t.value.outlet===be?-1:e.value.outlet===be?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return B0(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!V0(t,e,i,r))return null;let s,o=[],a=[];if("**"===t.path){const p=i.length>0?d0(i).parameters:{};s=new wd(i,p,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,q0(t),Hn(t),t.component,t,W0(e),G0(e)+i.length,Y0(t))}else{const p=Ad(e,t,i);if(!p.matched)return null;o=p.consumedSegments,a=i.slice(p.lastChild),s=new wd(o,p.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,q0(t),Hn(t),t.component,t,W0(e),G0(e)+o.length,Y0(t))}const l=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Td(e,o,a,l.filter(p=>void 0===p.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const p=this.processChildren(l,c);return null===p?null:[new sr(s,p)]}if(0===l.length&&0===u.length)return[new sr(s,[])];const d=Hn(t)===r,h=this.processSegment(l,c,u,d?be:r);return null===h?null:[new sr(s,h)]}}function S$(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function z0(n){const t=[],e=new Set;for(const i of n){if(!S$(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=z0(i.children);t.push(new sr(i.value,r))}return t.filter(i=>!e.has(i))}function W0(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function G0(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function q0(n){return n.data||{}}function Y0(n){return n.resolve||{}}function Mg(n){return yn(t=>{const e=n(t);return e?It(e).pipe(ge(()=>t)):G(t)})}class F$ 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 Sg=new I("ROUTES");class K0{constructor(t,e,i,r){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(ge(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(t);return new Dg(u0(o.injector.get(Sg,void 0,Y.Self|Y.Optional)).map(wg),o)}),Rr(s=>{throw e._loader$=void 0,s}));return e._loader$=new Fy(r,()=>new H).pipe($h()),e._loader$}loadModuleFactory(t){return"string"==typeof t?It(this.loader.load(t)):Ni(t()).pipe(xt(e=>e instanceof Dw?G(e):It(this.compiler.compileModuleAsync(e))))}}class P${constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new oa,this.attachRef=null}}class oa{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=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 P$,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class L${shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function V$(n){throw n}function B$(n,t,e){return t.parse("/")}function Q0(n,t){return G(null)}const H$={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},j$={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pt=(()=>{class n{constructor(e,i,r,s,o,a,l,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new H,this.errorHandler=V$,this.malformedUriErrorHandler=B$,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Q0,afterPreactivation:Q0},this.urlHandlingStrategy=new L$,this.routeReuseStrategy=new F$,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Ri),this.console=o.get(Hu);const h=o.get(z);this.isNgZoneEnabled=h instanceof z&&z.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ms(new we([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new K0(a,l,p=>this.triggerEvent(new s0(p)),p=>this.triggerEvent(new o0(p))),this.routerState=w0(this.currentUrlTree,this.rootComponentType),this.transitions=new Bn({id:0,targetPageId: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()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(pt(r=>0!==r.id),ge(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),yn(r=>{let s=!1,o=!1;return G(r).pipe(Rt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),yn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Rd(a.source)&&(this.browserUrlTree=a.extractedUrl),G(a).pipe(yn(d=>{const h=this.transitions.getValue();return i.next(new ug(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Es:Promise.resolve(d)}),function(n,t,e,i){return yn(r=>function(n,t,e,i,r){return new s$(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ge(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Rt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(n,t,e,i,r){return xt(s=>function(n,t,e,i,r="emptyOnly",s="legacy"){try{const o=new w$(n,t,e,i,r,s).recognize();return null===o?$0(new C$):G(o)}catch(o){return $0(o)}}(n,t,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(ge(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Rt(d=>{"eager"===this.urlUpdateStrategy&&(d.extras.skipLocationChange||this.setBrowserUrl(d.urlAfterRedirects,d),this.browserUrlTree=d.urlAfterRedirects);const h=new tU(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:m,restoredState:b,extras:y}=a,D=new ug(h,this.serializeUrl(p),m,b);i.next(D);const C=w0(p,this.rootComponentType).snapshot;return G(Object.assign(Object.assign({},a),{targetSnapshot:C,urlAfterRedirects:p,extras:Object.assign(Object.assign({},y),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Es}),Mg(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:p}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!p})}),Rt(a=>{const l=new nU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ge(a=>Object.assign(Object.assign({},a),{guards:l$(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(n,t){return xt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?G(Object.assign(Object.assign({},e),{guardsResult:!0})):function(n,t,e,i){return It(n).pipe(xt(r=>function(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?G(s.map(a=>{const l=Od(a,t,r);let c;if(function(n){return n&&Pr(n.canDeactivate)}(l))c=Ni(l.canDeactivate(n,t,e,i));else{if(!Pr(l))throw new Error("Invalid CanDeactivate guard");c=Ni(l(n,t,e,i))}return c.pipe(ia())})).pipe(Ul()):G(!0)}(r.component,r.route,e,t,i)),ia(r=>!0!==r,!0))}(o,i,r,n).pipe(xt(a=>a&&function(n){return"boolean"==typeof n}(a)?function(n,t,e,i){return It(t).pipe(na(r=>lg(function(n,t){return null!==n&&t&&t(new oU(n)),G(!0)}(r.route.parent,i),function(n,t){return null!==n&&t&&t(new lU(n)),G(!0)}(r.route,i),function(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>_d(()=>G(o.guards.map(l=>{const c=Od(l,o.node,e);let u;if(function(n){return n&&Pr(n.canActivateChild)}(c))u=Ni(c.canActivateChild(i,n));else{if(!Pr(c))throw new Error("Invalid CanActivateChild guard");u=Ni(c(i,n))}return u.pipe(ia())})).pipe(Ul())));return G(s).pipe(Ul())}(n,r.path,e),function(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return G(!0);const r=i.map(s=>_d(()=>{const o=Od(s,t,e);let a;if(function(n){return n&&Pr(n.canActivate)}(o))a=Ni(o.canActivate(t,n));else{if(!Pr(o))throw new Error("Invalid CanActivate guard");a=Ni(o(t,n))}return a.pipe(ia())}));return G(r).pipe(Ul())}(n,r.route,e))),ia(r=>!0!==r,!0))}(i,s,n,t):G(a)),ge(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Rt(a=>{if(As(a.guardsResult)){const c=dg(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new iU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),pt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Mg(a=>{if(a.guards.canActivateChecks.length)return G(a).pipe(Rt(l=>{const c=new rU(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),yn(l=>{let c=!1;return G(l).pipe(function(n,t){return xt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return G(e);let s=0;return It(r).pipe(na(o=>function(n,t,e,i){return function(n,t,e,i){const r=Object.keys(n);if(0===r.length)return G({});const s={};return It(r).pipe(xt(o=>function(n,t,e,i){const r=Od(n,t,i);return Ni(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(Rt(a=>{s[o]=a}))),cg(1),xt(()=>Object.keys(s).length===r.length?G(s):Es))}(n._resolve,n,t,i).pipe(ge(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),E0(n,e).resolve),null)))}(o.route,i,n,t)),Rt(()=>s++),cg(1),xt(o=>s===r.length?G(e):Es))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Rt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Rt(l=>{const c=new sU(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Mg(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:p}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!p})}),ge(a=>{const l=function(n,t,e){const i=Ed(n,t._root,e?e._root:void 0);return new D0(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Rt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>ge(i=>(new $U(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Rt({next(){s=!0},complete(){s=!0}}),n0(()=>{var a;if(!s&&!o){const l=`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(r),this.cancelNavigationTransition(r,l)):this.cancelNavigationTransition(r,l)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),Rr(a=>{if(o=!0,function(n){return n&&n[l0]}(a)){const l=As(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new r0(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Rd(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new eU(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Es}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,i)&&setTimeout(()=>{const{source:r,state:s,urlTree:o}=i,a={replaceUrl:!0};if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(o,r,s,a)},0),this.lastLocationChangeInfo=i}))}extractLocationChangeInfoFromEvent(e){var i;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,i){if(!e)return!0;const r=i.urlTree.toString()===e.urlTree.toString();return i.transitionId!==e.transitionId||!r||!("hashchange"===i.source&&"popstate"===e.source||"popstate"===i.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){P0(e),this.config=e.map(wg),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(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function(n,t,e,i,r){if(0===e.length)return bg(t.root,t.root,t,i,r);const s=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new k0(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Ft(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new k0(e,t,i)}(e);if(s.toRoot())return bg(t.root,new we([],{}),t,i,r);const o=function(n,t,e){if(n.isAbsolute)return new vg(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new vg(s,s===t.root,0)}const i=Md(n.commands[0])?0:1;return function(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new vg(i,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(s,t,n),a=o.processChildren?Sd(o.segmentGroup,o.index,s.commands):I0(o.segmentGroup,o.index,s.commands);return bg(o.segmentGroup,a,t,i,r)}(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=As(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function(n){for(let t=0;t{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Nl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,l;if(this.disposed)return Promise.resolve(!1);const c=this.getTransition(),u=Rd(i)&&c&&!Rd(c.source),p=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(u&&p)return Promise.resolve(!0);let m,b,y;o?(m=o.resolve,b=o.reject,y=o.promise):y=new Promise((T,O)=>{m=T,b=O});const D=++this.navigationId;let C;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),C=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):C=0,this.setTransition({id:D,targetPageId:C,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:m,reject:b,promise:y,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),y.catch(T=>Promise.reject(T))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new r0(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)(v(co),v(hg),v(oa),v(Xo),v(_e),v(Uu),v(bs),v(void 0))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Rd(n){return"imperative"!==n}let Gl=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.route=i,this.commands=[],this.onChanges=new H,null==r&&s.setAttribute(o.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:aa(this.skipLocationChange),replaceUrl:aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!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:aa(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(f(Pt),f(sa),kn("tabindex"),f(Xi),f(N))},n.\u0275dir=M({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&k("click",function(){return i.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ie]}),n})(),ql=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=[],this.onChanges=new H,this.subscription=e.events.subscribe(s=>{s instanceof Nl&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:aa(this.skipLocationChange),replaceUrl:aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!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:aa(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(f(Pt),f(sa),f(Jo))},n.\u0275dir=M({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&k("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&(ni("href",i.href,Kf),Z("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ie]}),n})();function aa(n){return""===n||!!n}let Fd=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new R,this.deactivateEvents=new R,this.name=s||be,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new W$(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(f(oa),f(it),f(ii),kn("name"),f(Be))},n.\u0275dir=M({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n})();class W${constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===sa?this.route:t===oa?this.childContexts:this.parent.get(t,e)}}class J0{}class X0{preload(t,e){return G(null)}}let Z0=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.injector=s,this.preloadingStrategy=o,this.loader=new K0(i,r,c=>e.triggerEvent(new s0(c)),c=>e.triggerEvent(new o0(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(pt(e=>e instanceof Nl),na(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Ri);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return It(r).pipe(Ia(),ge(s=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?G(i._loadedConfig):this.loader.load(e.injector,i)).pipe(xt(s=>(i._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(v(Pt),v(Uu),v(bs),v(_e),v(J0))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Ag=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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(e=>{e instanceof ug?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof a0&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new a0(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(v(Pt),v(NM),v(void 0))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Ts=new I("ROUTER_CONFIGURATION"),eS=new I("ROUTER_FORROOT_GUARD"),q$=[Xo,{provide:hg,useClass:_0},{provide:Pt,useFactory:function(n,t,e,i,r,s,o,a={},l,c){const u=new Pt(null,n,t,e,i,r,s,u0(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(d=>{var h,p;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(p=console.groupEnd)||void 0===p||p.call(console)}),u},deps:[hg,oa,Xo,_e,Uu,bs,Sg,Ts,[class{},new ut],[class{},new ut]]},oa,{provide:sa,useFactory:function(n){return n.routerState.root},deps:[Pt]},{provide:Uu,useClass:K2},Z0,X0,class{preload(t,e){return e().pipe(Rr(()=>G(null)))}},{provide:Ts,useValue:{enableTracing:!1}}];function Y$(){return new wm("Router",Pt)}let tS=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[q$,nS(e),{provide:eS,useFactory:J$,deps:[[Pt,new ut,new xn]]},{provide:Ts,useValue:i||{}},{provide:Jo,useFactory:Q$,deps:[Ds,[new po(Hm),new ut],Ts]},{provide:Ag,useFactory:K$,deps:[Pt,NM,Ts]},{provide:J0,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:X0},{provide:wm,multi:!0,useFactory:Y$},[Tg,{provide:Ml,multi:!0,useFactory:t8,deps:[Tg]},{provide:iS,useFactory:n8,deps:[Tg]},{provide:AE,multi:!0,useExisting:iS}]]}}static forChild(e){return{ngModule:n,providers:[nS(e)]}}}return n.\u0275fac=function(e){return new(e||n)(v(eS,8),v(Pt,8))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();function K$(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ag(n,t,e)}function Q$(n,t,e={}){return e.useHash?new mH(n,t):new gM(n,t)}function J$(n){return"guarded"}function nS(n){return[{provide:EO,multi:!0,useValue:n},{provide:Sg,multi:!0,useValue:n}]}let Tg=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new H}appInitializer(){return this.injector.get(hH,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),s=this.injector.get(Pt),o=this.injector.get(Ts);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?G(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),s.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(Ts),r=this.injector.get(Z0),s=this.injector.get(Ag),o=this.injector.get(Pt),a=this.injector.get(Ir);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(v(_e))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function t8(n){return n.appInitializer.bind(n)}function n8(n){return n.bootstrapListener.bind(n)}const iS=new I("Router Initializer");function fi(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}class p8 extends X{constructor(t,e){super()}schedule(t,e=0){return this}}class Ld extends p8{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 i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let sS=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class pi extends sS{constructor(t,e=sS.now){super(t,()=>pi.delegate&&pi.delegate!==this?pi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return pi.delegate&&pi.delegate!==this?pi.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Vd=new pi(Ld);function oS(n,t=Vd){return e=>e.lift(new m8(n,t))}class m8{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new g8(t,this.dueTime,this.scheduler))}}class g8 extends Oe{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,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(_8,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 _8(n){n.debouncedNext()}class b8{constructor(t){this.total=t}call(t,e){return e.subscribe(new v8(t,this.total))}}class v8 extends Oe{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function Bd(n,t){return e=>e.lift(new C8(n,t))}class C8{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new D8(t,this.compare,this.keySelector))}}class D8 extends Oe{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function qe(n){return t=>t.lift(new w8(n))}class w8{constructor(t){this.notifier=t}call(t,e){const i=new E8(t),r=ka(this.notifier,new Aa(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class E8 extends Ta{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ve(n){return null!=n&&"false"!=`${n}`}function jn(n,t=0){return function(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function aS(n){return Array.isArray(n)?n:[n]}function mt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function or(n){return n instanceof N?n.nativeElement:n}let xg;try{xg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){xg=!1}let la,xe=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function(n){return n===PM}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!xg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(v(Yo))},n.\u0275prov=x({factory:function(){return new n(v(Yo))},token:n,providedIn:"root"}),n})(),Kl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();const lS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function cS(){if(la)return la;if("object"!=typeof document||!document)return la=new Set(lS),la;let n=document.createElement("input");return la=new Set(lS.filter(t=>(n.setAttribute("type",t),n.type===t))),la}let Ql,xs,Og;function ca(n){return function(){if(null==Ql&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ql=!0}))}finally{Ql=Ql||!1}return Ql}()?n:!!n.capture}function uS(){if(null==xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xs=!1,xs;if("scrollBehavior"in document.documentElement.style)xs=!0;else{const n=Element.prototype.scrollTo;xs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xs}function Xl(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Os(n){return n.composedPath?n.composedPath()[0]:n.target}function Rg(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let Fg=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})(),dS=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=or(e);return new Ee(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new H,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(v(Fg))},n.\u0275prov=x({factory:function(){return new n(v(Fg))},token:n,providedIn:"root"}),n})(),jd=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new R,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ve(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=jn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(oS(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(dS),f(N),f(z))},n.\u0275dir=M({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),Ud=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[Fg]}),n})();class pS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new H,this._typeaheadSubscription=X.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new H,this.change=new H,t instanceof kr&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Rt(e=>this._pressedLetters.push(e)),oS(t),pt(()=>this._pressedLetters.length>0),ge(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||fi(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof kr?this._items.toArray():this._items}}class O8 extends pS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class mS extends pS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let gS=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function(n){try{return n.frameElement}catch(t){return null}}(function(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===yS(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=yS(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function(n){return!function(n){return function(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function(n){return function(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||_S(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(v(xe))},n.\u0275prov=x({factory:function(){return new n(v(xe))},token:n,providedIn:"root"}),n})();function _S(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function yS(n){if(!_S(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class $8{constructor(t,e,i,r,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(wt(1)).subscribe(t)}}let bS=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new $8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(v(gS),v(z),v(W))},n.\u0275prov=x({factory:function(){return new n(v(gS),v(z),v(W))},token:n,providedIn:"root"}),n})(),z8=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=ve(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=ve(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Xl(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(bS),f(W))},n.\u0275dir=M({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Ie]}),n})();function Pg(n){return 0===n.offsetX&&0===n.offsetY}function Ng(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈const vS=new I("cdk-input-modality-detector-options"),K8={ignoreKeys:[18,17,224,91,16]},ua=ca({passive:!0,capture:!0});let DS=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new Bn(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Os(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Pg(o)?"keyboard":"mouse"),this._mostRecentTarget=Os(o))},this._onTouchstart=o=>{Ng(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Os(o))},this._options=Object.assign(Object.assign({},K8),s),this.modalityDetected=this._modality.pipe(t=>t.lift(new b8(1))),this.modalityChanged=this.modalityDetected.pipe(Bd()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ua),r.addEventListener("mousedown",this._onMousedown,ua),r.addEventListener("touchstart",this._onTouchstart,ua)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ua),document.removeEventListener("mousedown",this._onMousedown,ua),document.removeEventListener("touchstart",this._onTouchstart,ua))}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(z),v(W),v(vS,8))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(z),v(W),v(vS,8))},token:n,providedIn:"root"}),n})();const wS=new I("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),ES=new I("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let MS=(()=>{class n{constructor(e,i,r,s){this._ngZone=i,this._defaultOptions=s,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let s,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[s,o]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let s=0;s{class n{constructor(e,i,r,s){this._elementRef=e,this._liveAnnouncer=i,this._contentObserver=r,this._ngZone=s,this._politeness="polite"}get politeness(){return this._politeness}set politeness(e){this._politeness="off"===e||"assertive"===e?e:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const i=this._elementRef.nativeElement.textContent;i!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(i,this._politeness),this._previousAnnouncedText=i)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(MS),f(dS),f(z))},n.\u0275dir=M({type:n,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),n})();const SS=new I("cdk-focus-monitor-default-options"),$d=ca({passive:!0,capture:!0});let ar=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new H,this._rootNodeFocusAndBlurListener=a=>{const l=Os(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=or(e);if(!this._platform.isBrowser||1!==r.nodeType)return G(null);const s=function(n){if(function(){if(null==Og){const n="undefined"!=typeof document?document.head:null;Og=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Og}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new H,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=or(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=or(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,r){r?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Os(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,$d),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,$d)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(qe(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$d),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$d),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(v(z),v(xe),v(DS),v(W,8),v(SS,8))},n.\u0275prov=x({factory:function(){return new n(v(z),v(xe),v(DS),v(W,8),v(SS,8))},token:n,providedIn:"root"}),n})(),Lg=(()=>{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new R}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(ar))},n.\u0275dir=M({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const AS="cdk-high-contrast-black-on-white",TS="cdk-high-contrast-white-on-black",Vg="cdk-high-contrast-active";let kS=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Vg),e.remove(AS),e.remove(TS),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Vg),e.add(AS)):2===i&&(e.add(Vg),e.add(TS))}}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(W))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(W))},token:n,providedIn:"root"}),n})(),IS=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(v(kS))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Kl,Ud]]}),n})();const xS=new I("cdk-dir-doc",{providedIn:"root",factory:function(){return Sf(W)}});let at=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new R,e){const r=e.documentElement?e.documentElement.dir:null,s=(e.body?e.body.dir:null)||r;this.value="ltr"===s||"rtl"===s?s:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(v(xS,8))},n.\u0275prov=x({factory:function(){return new n(v(xS,8))},token:n,providedIn:"root"}),n})(),Zl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();const OS=new Mr("12.2.13");class RS{}const lr="*";function cr(n,t){return{type:7,name:n,definitions:t,options:{}}}function rn(n,t=null){return{type:4,styles:t,timings:n}}function FS(n,t=null){return{type:2,steps:n,options:t}}function He(n){return{type:6,styles:n,offset:null}}function bn(n,t,e){return{type:0,name:n,styles:t,options:e}}function PS(n){return{type:5,steps:n}}function zt(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function ez(n=null){return{type:9,options:n}}function tz(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function NS(n){Promise.resolve(null).then(n)}class da{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){NS(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class LS{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?NS(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function VS(){return"undefined"!=typeof window&&void 0!==window.document}function Hg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vr(n){switch(n.length){case 0:return new da;case 1:return n[0];default:return new LS(n)}}function BS(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,p=h&&c||{};Object.keys(u).forEach(m=>{let b=m,y=u[m];if("offset"!==m)switch(b=t.normalizePropertyName(b,o),y){case"!":y=r[m];break;case lr:y=s[m];break;default:y=t.normalizeStyleValue(m,b,y,o)}p[b]=y}),h||a.push(p),c=p,l=d}),o.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${o.join(u)}`)}return a}function jg(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Ug(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Ug(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Ug(e,"destroy",n)))}}function Ug(n,t,e){const i=e.totalTime,s=$g(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function $g(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function vn(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function HS(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let zg=(n,t)=>!1,Wg=(n,t)=>!1,jS=(n,t,e)=>[];const US=Hg();(US||"undefined"!=typeof Element)&&(zg=VS()?(n,t)=>{for(;t&&t!==document.documentElement;){if(t===n)return!0;t=t.parentNode||t.host}return!1}:(n,t)=>n.contains(t),Wg=(()=>{if(US||Element.prototype.matches)return(n,t)=>n.matches(t);{const n=Element.prototype,t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return t?(e,i)=>t.apply(e,[i]):Wg}})(),jS=(n,t,e)=>{let i=[];if(e){const r=n.querySelectorAll(t);for(let s=0;s{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=n[e]}),t}let WS=(()=>{class n{validateStyleProperty(e){return Gg(e)}matchesElement(e,i){return qg(e,i)}containsElement(e,i){return Yg(e,i)}query(e,i,r){return Kg(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new da(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Qg=(()=>{class n{}return n.NOOP=new WS,n})();const Jg="ng-enter",zd="ng-leave",Wd="ng-trigger",Gd=".ng-trigger",qS="ng-animating",Xg=".ng-animating";function Fs(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Zg(parseFloat(t[1]),t[2])}function Zg(n,t){return"s"===t?1e3*n:n}function qd(n,t,e){return n.hasOwnProperty("duration")?n:function(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=Zg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Zg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:s,easing:o}}(n,t,e)}function ha(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Br(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else ha(n,e);return e}function KS(n,t,e){return e?t+":"+e+";":""}function QS(n){let t="";for(let e=0;e{const r=t_(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Hg()&&QS(n))}function Ps(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=t_(e);n.style[i]=""}),Hg()&&QS(n))}function ec(n){return Array.isArray(n)?1==n.length?n[0]:FS(n):n}const e_=new RegExp("{{\\s*(.+?)\\s*}}","g");function JS(n){let t=[];if("string"==typeof n){let e;for(;e=e_.exec(n);)t.push(e[1]);e_.lastIndex=0}return t}function Yd(n,t,e){const i=n.toString(),r=i.replace(e_,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return r==i?n:r}function Kd(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const lz=/-+([a-z0-9])/g;function t_(n){return n.replace(lz,(...t)=>t[1].toUpperCase())}function cz(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function XS(n,t){return 0===n||0===t}function ZS(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;rfunction(n,t,e){if(":"==n[0]){const l=function(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${n}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(eA(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(eA(o,r))}(i,e,t)):e.push(n),e}const Jd=new Set(["true","1"]),Xd=new Set(["false","0"]);function eA(n,t){const e=Jd.has(n)||Xd.has(n),i=Jd.has(t)||Xd.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Jd.has(n):Xd.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Jd.has(t):Xd.has(t)),o&&a}}const fz=new RegExp("s*:selfs*,?","g");function i_(n,t,e){return new pz(n).build(t,e)}class pz{constructor(t){this._driver=t}build(t,e){const i=new _z(e);return this._resetContextStyleTimingState(i),Cn(this,ec(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};if(i.styles.forEach(a=>{if(Zd(a)){const l=a;Object.keys(l).forEach(c=>{JS(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size){const a=Kd(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Cn(this,ec(t.animation),e);return{type:1,matchers:uz(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ns(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Cn(this,i,e)),options:Ns(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=Cn(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Ns(t.options)}}visitAnimate(t,e){const i=function(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return r_(qd(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=r_(0,0,"");return s.dynamic=!0,s.strValue=i,s}return e=e||qd(i,t),r_(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:He({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=He(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==lr?i.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(Zd(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function(n,t,e){const i=t.params||{},r=JS(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(D=>{const C=this._makeStyleAst(D,e);let T=null!=C.offset?C.offset:function(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Zd(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Zd(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(C.styles),O=0;return null!=T&&(s++,O=C.offset=T),l=l||O<0||O>1,a=a||O0&&s{const T=h>0?C==p?1:h*C:o[C],O=T*y;e.currentTime=m+b.delay+O,b.duration=O,this._validateStyleAst(D,e),D.offset=T,i.styles.push(D)}),i}visitReference(t,e){return{type:8,animation:Cn(this,ec(t.animation),e),options:Ns(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ns(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ns(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(fz,"")),n=n.replace(/@\*/g,Gd).replace(/@\w+/g,e=>Gd+"-"+e.substr(1)).replace(/:animating/g,Xg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,vn(e.collectedStyles,e.currentQuerySelector,{});const a=Cn(this,ec(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ns(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:qd(t.timings,e.errors,!0);return{type:12,animation:Cn(this,ec(t.animation),e),timings:i,options:null}}}class _z{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Zd(n){return!Array.isArray(n)&&"object"==typeof n}function Ns(n){return n?(n=ha(n)).params&&(n.params=function(n){return n?ha(n):null}(n.params)):n={},n}function r_(n,t,e){return{duration:n,delay:t,easing:e}}function s_(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class eh{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Dz=new RegExp(":enter","g"),Ez=new RegExp(":leave","g");function o_(n,t,e,i,r,s={},o={},a,l,c=[]){return(new Mz).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class Mz{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new eh;const d=new a_(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Cn(this,i,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&Object.keys(a).length){const p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[s_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Fs(i.duration):null,a=null!=i.delay?Fs(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Cn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=th);const o=Fs(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Cn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Fs(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Cn(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return qd(e.params?Yd(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Fs(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=th);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),Cn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Cn(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const th={};class a_{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=th,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new nh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Fs(i.duration)),null!=i.delay&&(r.delay=Fs(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Yd(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new a_(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=th,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Sz(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Dz,"."+this._enterClassName)).replace(Ez,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class nh{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new nh(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||lr,this._currentKeyframe[e]=lr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=lr})):Br(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Yd(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:lr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Br(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==lr&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?Kd(t.values()):[],o=e.size?Kd(e.values()):[];if(i){const a=r[0],l=ha(a);a.offset=0,l.offset=1,r=[a,l]}return s_(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Sz extends nh{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=Br(t[0],!1);l.offset=0,s.push(l);const c=Br(t[0],!1);c.offset=iA(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Br(t[d],!1);h.offset=iA((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return s_(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function iA(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class l_{}class Tz extends l_{normalizePropertyName(t,e){return t_(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(kz[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const kz=(()=>function(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function rA(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const c_={};class sA{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||c_,m=this.buildStyles(i,a&&a.params||c_,d),b=l&&l.params||c_,y=this.buildStyles(r,b,d),D=new Set,C=new Map,T=new Map,O="void"===r,re={params:Object.assign(Object.assign({},h),b)},Ne=u?[]:o_(t,e,this.ast.animation,s,o,m,y,re,c,d);let Ue=0;if(Ne.forEach(qt=>{Ue=Math.max(qt.duration+qt.delay,Ue)}),d.length)return rA(e,this._triggerName,i,r,O,m,y,[],[],C,T,Ue,d);Ne.forEach(qt=>{const Yt=qt.element,hr=vn(C,Yt,{});qt.preStyleProps.forEach(bi=>hr[bi]=!0);const fr=vn(T,Yt,{});qt.postStyleProps.forEach(bi=>fr[bi]=!0),Yt!==e&&D.add(Yt)});const sn=Kd(D.values());return rA(e,this._triggerName,i,r,O,m,y,Ne,sn,C,T,Ue)}}class Oz{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=ha(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Yd(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class Fz{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new Oz(r.style,r.options&&r.options.params||{},i)}),oA(this.states,"true","1"),oA(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new sA(t,r,this.states))}),this.fallbackTransition=function(n,t,e){return new sA(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function oA(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const Nz=new eh;class Lz{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],r=i_(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,i){const r=t.element,s=BS(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=o_(this._driver,e,s,Jg,zd,{},{},i,Nz,r),o.forEach(u=>{const d=vn(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,lr)})});const c=Vr(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,r){const s=$g(e,"","","");return jg(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const aA="ng-animate-queued",lA="ng-animate-disabled",cA=".ng-animate-disabled",jz=[],uA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Uz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Un="__ng_removed";class u_{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function(n){return null!=n?n:null}(i?t.value:t),i){const s=ha(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const tc="void",d_=new u_(tc);class $z{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$n(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(n){return"start"==n||"done"==n}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const s=vn(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=vn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||($n(t,Wd),$n(t,Wd+"-"+e),a[e]=d_),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new h_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||($n(t,Wd),$n(t,Wd+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new u_(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=d_),c.value!==tc&&l.value===c.value){if(!function(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ps(t,y),Li(t,D)})}return}const h=vn(this._engine.playersByElement,t,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=s.matchTransition(l.value,c.value,t,c.params),m=!1;if(!p){if(!r)return;p=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||($n(t,aA),o.onStart(()=>{fa(t,aA)})),o.onDone(()=>{let b=this.players.indexOf(o);b>=0&&this.players.splice(b,1);const y=this._engine.playersByElement.get(t);if(y){let D=y.indexOf(o);D>=0&&y.splice(D,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Gd,!0);i.forEach(r=>{if(r[Un])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(a=>{if(this._triggers[a]){const l=this.trigger(t,a,tc,r);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Vr(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||d_,u=new u_(tc),d=new h_(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[Un];(!s||s===uA)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){$n(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=$g(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,jg(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class zz{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new $z(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let r=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),$n(t,lA)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),fa(t,lA))}removeNode(t,e,i,r){if(ih(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r){this.collectedLeaveElements.push(e),e[Un]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,r,s){return ih(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Gd,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Xg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Vr(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Un];if(e&&e.setForRemoval){if(t[Un]=uA,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,cA)&&this.markElementAsDisabled(t,!1),this.driver.query(t,cA,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Vr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new eh,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const J=this.driver.query(B,".ng-animate-queued",!0);for(let ue=0;ue{const ue=Jg+b++;m.set(J,ue),B.forEach(Ae=>$n(Ae,ue))});const y=[],D=new Set,C=new Set;for(let B=0;BD.add(Ae)):C.add(J))}const T=new Map,O=fA(h,Array.from(D));O.forEach((B,J)=>{const ue=zd+b++;T.set(J,ue),B.forEach(Ae=>$n(Ae,ue))}),t.push(()=>{p.forEach((B,J)=>{const ue=m.get(J);B.forEach(Ae=>fa(Ae,ue))}),O.forEach((B,J)=>{const ue=T.get(J);B.forEach(Ae=>fa(Ae,ue))}),y.forEach(B=>{this.processLeaveNode(B)})});const re=[],Ne=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(ue=>{const Ae=ue.player,kt=ue.element;if(re.push(Ae),this.collectedEnterElements.length){const Ui=kt[Un];if(Ui&&Ui.setForMove)return void Ae.destroy()}const ji=!d||!this.driver.containsElement(d,kt),En=T.get(kt),Jr=m.get(kt),st=this._buildInstruction(ue,i,Jr,En,ji);if(st.errors&&st.errors.length)Ne.push(st);else{if(ji)return Ae.onStart(()=>Ps(kt,st.fromStyles)),Ae.onDestroy(()=>Li(kt,st.toStyles)),void r.push(Ae);if(ue.isFallbackTransition)return Ae.onStart(()=>Ps(kt,st.fromStyles)),Ae.onDestroy(()=>Li(kt,st.toStyles)),void r.push(Ae);st.timelines.forEach(Ui=>Ui.stretchStartingKeyframe=!0),i.append(kt,st.timelines),o.push({instruction:st,player:Ae,element:kt}),st.queriedElements.forEach(Ui=>vn(a,Ui,[]).push(Ae)),st.preStyleProps.forEach((Ui,Mc)=>{const Lh=Object.keys(Ui);if(Lh.length){let Gs=l.get(Mc);Gs||l.set(Mc,Gs=new Set),Lh.forEach(wy=>Gs.add(wy))}}),st.postStyleProps.forEach((Ui,Mc)=>{const Lh=Object.keys(Ui);let Gs=c.get(Mc);Gs||c.set(Mc,Gs=new Set),Lh.forEach(wy=>Gs.add(wy))})}});if(Ne.length){const B=[];Ne.forEach(J=>{B.push(`@${J.triggerName} has failed due to:\n`),J.errors.forEach(ue=>B.push(`- ${ue}\n`))}),re.forEach(J=>J.destroy()),this.reportError(B)}const Ue=new Map,sn=new Map;o.forEach(B=>{const J=B.element;i.has(J)&&(sn.set(J,J),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Ue))}),r.forEach(B=>{const J=B.element;this._getPreviousPlayers(J,!1,B.namespaceId,B.triggerName,null).forEach(Ae=>{vn(Ue,J,[]).push(Ae),Ae.destroy()})});const qt=y.filter(B=>mA(B,l,c)),Yt=new Map;hA(Yt,this.driver,C,c,lr).forEach(B=>{mA(B,l,c)&&qt.push(B)});const fr=new Map;p.forEach((B,J)=>{hA(fr,this.driver,new Set(B),l,"!")}),qt.forEach(B=>{const J=Yt.get(B),ue=fr.get(B);Yt.set(B,Object.assign(Object.assign({},J),ue))});const bi=[],Da=[],wa={};o.forEach(B=>{const{element:J,player:ue,instruction:Ae}=B;if(i.has(J)){if(u.has(J))return ue.onDestroy(()=>Li(J,Ae.toStyles)),ue.disabled=!0,ue.overrideTotalTime(Ae.totalTime),void r.push(ue);let kt=wa;if(sn.size>1){let En=J;const Jr=[];for(;En=En.parentNode;){const st=sn.get(En);if(st){kt=st;break}Jr.push(En)}Jr.forEach(st=>sn.set(st,kt))}const ji=this._buildAnimation(ue.namespaceId,Ae,Ue,s,fr,Yt);if(ue.setRealPlayer(ji),kt===wa)bi.push(ue);else{const En=this.playersByElement.get(kt);En&&En.length&&(ue.parentPlayer=Vr(En)),r.push(ue)}}else Ps(J,Ae.fromStyles),ue.onDestroy(()=>Li(J,Ae.toStyles)),Da.push(ue),u.has(J)&&r.push(ue)}),Da.forEach(B=>{const J=s.get(B.element);if(J&&J.length){const ue=Vr(J);B.setRealPlayer(ue)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B!ji.destroyed);kt.length?Yz(this,J,kt):this.processLeaveNode(J)}return y.length=0,bi.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const J=this.players.indexOf(B);this.players.splice(J,1)}),B.play()}),bi}elementContainsData(t,e){let i=!1;const r=e[Un];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==tc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=vn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(p=>{const m=p.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),p.destroy(),d.push(p)})}Ps(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(m=>{const b=m.element;u.add(b);const y=b[Un];if(y&&y.removedBeforeQueried)return new da(m.duration,m.delay);const D=b!==l,C=function(n){const t=[];return pA(n,t),t}((i.get(b)||jz).map(Ue=>Ue.getRealPlayer())).filter(Ue=>!!Ue.element&&Ue.element===b),T=s.get(b),O=o.get(b),re=BS(0,this._normalizer,0,m.keyframes,T,O),Ne=this._buildPlayer(m,re,C);if(m.subTimeline&&r&&d.add(b),D){const Ue=new h_(t,a,b);Ue.setRealPlayer(Ne),c.push(Ue)}return Ne});c.forEach(m=>{vn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>$n(m,qS));const p=Vr(h);return p.onDestroy(()=>{u.forEach(m=>fa(m,qS)),Li(l,e.toStyles)}),d.forEach(m=>{vn(r,m,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new da(t.duration,t.delay)}}class h_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new da,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>jg(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){vn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function ih(n){return n&&1===n.nodeType}function dA(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function hA(n,t,e,i,r){const s=[];e.forEach(l=>s.push(dA(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[Un]=Uz,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>dA(l,s[a++])),o}function fA(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}const rh="$$classes";function $n(n,t){if(n.classList)n.classList.add(t);else{let e=n[rh];e||(e=n[rh]={}),e[t]=!0}}function fa(n,t){if(n.classList)n.classList.remove(t);else{let e=n[rh];e&&delete e[t]}}function Yz(n,t,e){Vr(e).onDone(()=>n.processLeaveNode(t))}function pA(n,t){for(let e=0;er.add(s)):t.set(n,i),e.delete(n),!0}class sh{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new zz(t,e,i),this._timelineEngine=new Lz(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],c=i_(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(n,t,e){return new Fz(n,t,e)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=HS(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=HS(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function gA(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=f_(t[0]),t.length>1&&(i=f_(t[t.length-1]))):t&&(e=f_(t)),e||i?new Jz(n,e,i):null}let Jz=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Li(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Li(this._element,this._initialStyles),this._endStyles&&(Li(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ps(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ps(this._element,this._endStyles),this._endStyles=null),Li(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function f_(n){let t=null;const e=Object.keys(n);for(let i=0;ithis._handleCallback(l)}apply(){(function(n,t){const e=m_(n,"").trim();let i=0;e.length&&(function(n,t){let e=0;for(let i=0;i=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),CA(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(n,t){const i=m_(n,"").split(","),r=p_(i,t);r>=0&&(i.splice(r,1),oh(n,"",i.join(",")))}(this._element,this._name))}}function bA(n,t,e){oh(n,"PlayState",e,vA(n,t))}function vA(n,t){const e=m_(n,"");return e.indexOf(",")>0?p_(e.split(","),t):p_([e],t)}function p_(n,t){for(let e=0;e=0)return e;return-1}function CA(n,t,e){e?n.removeEventListener(yA,t):n.addEventListener(yA,t)}function oh(n,t,e,i){const r=_A+t;if(null!=i){const s=n.style[r];if(s.length){const o=s.split(",");o[i]=e,e=o.join(",")}}n.style[r]=e}function m_(n,t){return n.style[_A+t]||""}class DA{constructor(t,e,i,r,s,o,a,l){this.element=t,this.keyframes=e,this.animationName=i,this._duration=r,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new t4(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:n_(this.element,i))})}this.currentSnapshot=t}}class a4 extends da{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=zS(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class EA{constructor(){this._count=0}validateStyleProperty(t){return Gg(t)}matchesElement(t,e){return qg(t,e)}containsElement(t,e){return Yg(t,e)}query(t,e,i){return Kg(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(a=>zS(a));let r=`@keyframes ${e} {\n`,s="";i.forEach(a=>{s=" ";const l=parseFloat(a.offset);r+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(c=>{const u=a[c];switch(c){case"offset":return;case"easing":return void(u&&(r+=`${s}animation-timing-function: ${u};\n`));default:return void(r+=`${s}${c}: ${u};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(t,e,i,r,s,o=[],a){const l=o.filter(y=>y instanceof DA),c={};XS(i,r)&&l.forEach(y=>{let D=y.currentSnapshot;Object.keys(D).forEach(C=>c[C]=D[C])});const u=function(n){let t={};return n&&(Array.isArray(n)?n:[n]).forEach(i=>{Object.keys(i).forEach(r=>{"offset"==r||"easing"==r||(t[r]=i[r])})}),t}(e=ZS(t,e,c));if(0==i)return new a4(t,u);const d="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,d,e);(function(n){var t;const e=null===(t=n.getRootNode)||void 0===t?void 0:t.call(n);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const m=gA(t,e),b=new DA(t,e,d,i,r,s,u,m);return b.onDestroy(()=>function(n){n.parentNode.removeChild(n)}(h)),b}}class SA{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:n_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class h4{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(AA().toString()),this._cssKeyframesDriver=new EA}validateStyleProperty(t){return Gg(t)}matchesElement(t,e){return qg(t,e)}containsElement(t,e){return Yg(t,e)}query(t,e,i){return Kg(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,r,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,r,s,o);const u={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(u.easing=s);const d={},h=o.filter(m=>m instanceof SA);XS(i,r)&&h.forEach(m=>{let b=m.currentSnapshot;Object.keys(b).forEach(y=>d[y]=b[y])});const p=gA(t,e=ZS(t,e=e.map(m=>Br(m,!1)),d));return new SA(t,e,u,p)}}function AA(){return VS()&&Element.prototype.animate||{}}let p4=(()=>{class n extends RS{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:lt.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?FS(e):e;return TA(this._renderer,null,i,"register",[r]),new m4(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(v(ms),v(W))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class m4 extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new g4(this._id,t,e||{},this._renderer)}}class g4{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return TA(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function TA(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const kA="@.disabled";let _4=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{o&&o.parentNode(s)&&o.removeChild(s.parentNode,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new IA("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new y4(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(v(ms),v(sh),v(z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class IA{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==kA?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class y4 extends IA{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==kA?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let C4=(()=>{class n extends sh{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(v(W),v(Qg),v(l_))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Tt=new I("AnimationModuleType"),xA=[{provide:RS,useClass:p4},{provide:l_,useFactory:function(){return new Tz}},{provide:sh,useClass:C4},{provide:ms,useFactory:function(n,t,e){return new _4(n,t,e)},deps:[pd,sh,z]}],OA=[{provide:Qg,useFactory:function(){return"function"==typeof AA()?new h4:new EA}},{provide:Tt,useValue:"BrowserAnimations"},...xA],RA=[{provide:Qg,useClass:WS},{provide:Tt,useValue:"NoopAnimations"},...xA];let M4=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?RA:OA}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:OA,imports:[og]}),n})();function T4(n,t){if(1&n&&K(0,"mat-pseudo-checkbox",4),2&n){const e=V();E("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function k4(n,t){if(1&n&&(g(0,"span",5),S(1),_()),2&n){const e=V();w(1),Ji("(",e.group.label,")")}}const I4=["*"],FA=new Mr("12.2.13"),O4=new I("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ke=(()=>{class n{constructor(e,i,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!Dm()||Rg())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&FA.full!==OS.full&&console.warn("The Angular Material version ("+FA.full+") does not match the Angular CDK version ("+OS.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(v(kS),v(O4,8),v(W))},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Zl],Zl]}),n})();function Hr(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ve(t)}}}function pa(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function ma(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ve(t)}}}function g_(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?jn(e):this.defaultTabIndex}}}function __(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new H,this.errorState=!1}updateErrorState(){const t=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==t&&(this.errorState=s,this.stateChanges.next())}}}const R4=new I("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Sf(Zi)}});class rt{constructor(){this._localeChanges=new H,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const Vi=new I("mat-date-formats");let Ls;try{Ls="undefined"!=typeof Intl}catch(n){Ls=!1}const P4={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},N4=lh(31,n=>String(n+1)),L4={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},V4=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function lh(n,t){const e=Array(n);for(let i=0;i{class n extends rt{constructor(e,i){super(),this.useUtcForDisplay=!0,super.setLocale(e),this.useUtcForDisplay=!i.TRIDENT,this._clampDate=i.TRIDENT||i.EDGE}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){if(Ls){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return lh(12,r=>this._stripDirectionalityCharacters(this._format(i,new Date(2017,r,1))))}return P4[e]}getDateNames(){if(Ls){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lh(31,i=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,i+1))))}return N4}getDayOfWeekNames(e){if(Ls){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return lh(7,r=>this._stripDirectionalityCharacters(this._format(i,new Date(2017,0,r+1))))}return L4[e]}getYearName(e){if(Ls){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(i,e))}return String(this.getYear(e))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let s=this._createDateWithOverflow(e,i,r);return s.getMonth(),s}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Ls){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),i=Object.assign(Object.assign({},i),{timeZone:"utc"});const r=new Intl.DateTimeFormat(this.locale,i);return this._stripDirectionalityCharacters(this._format(r,e))}return this._stripDirectionalityCharacters(e.toDateString())}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(V4.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){const s=new Date;return s.setFullYear(e,i,r),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_stripDirectionalityCharacters(e){return e.replace(/[\u200e\u200f]/g,"")}_format(e,i){const r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(v(R4,8),v(xe))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),j4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[{provide:rt,useClass:B4}],imports:[[Kl]]}),n})();const U4={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let PA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[{provide:Vi,useValue:U4}],imports:[[j4]]}),n})(),ga=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})();class $4{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const NA={enterDuration:225,exitDuration:150},y_=ca({passive:!0}),LA=["mousedown","touchstart"],VA=["mouseup","mouseleave","touchend","touchcancel"];class BA{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=or(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},NA),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new $4(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},NA),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=or(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(LA))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(VA),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Pg(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,y_)})})}_removeTriggerEvents(){this._triggerElement&&(LA.forEach(t=>{this._triggerElement.removeEventListener(t,this,y_)}),this._pointerUpEventsRegistered&&VA.forEach(t=>{this._triggerElement.removeEventListener(t,this,y_)}))}}const b_=new I("mat-ripple-global-options");let Bi=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new BA(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(xe),f(b_,8),f(Tt,8))},n.\u0275dir=M({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&ie("mat-ripple-unbounded",i.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),n})(),ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Ke,Kl],Ke]}),n})(),q4=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&ie("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),Y4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Ke]]}),n})();const v_=new I("MAT_OPTION_PARENT_COMPONENT"),K4=Hr(class{});let Q4=0,HA=(()=>{class n extends K4{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+Q4++,this._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i}}return n.\u0275fac=function(e){return new(e||n)(f(v_,8))},n.\u0275dir=M({type:n,inputs:{label:"label"},features:[L]}),n})();const C_=new I("MatOptgroup");let J4=0;class X4{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Z4=(()=>{class n{constructor(e,i,r,s){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+J4++,this.onSelectionChange=new R,this._stateChanges=new H}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ve(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!fi(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new X4(this,e))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(void 0),f(HA))},n.\u0275dir=M({type:n,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),D_=(()=>{class n extends Z4{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(v_,8),f(C_,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&k("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&e&&(ni("id",i.id),Z("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),ie("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[L],ngContentSelectors:I4,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(vt(),$(0,T4,1,2,"mat-pseudo-checkbox",0),g(1,"span",1),Le(2),_(),$(3,k4,2,1,"span",2),K(4,"div",3)),2&e&&(E("ngIf",i.multiple),w(3),E("ngIf",i.group&&i.group._inert),w(1),E("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[Vn,Bi,q4],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function jA(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),s=0;for(let o=0;o{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ic,ws,Ke,Y4]]}),n})();const $A=["mat-button",""],zA=["*"],WA=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",n5=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],i5=pa(Hr(ma(class{constructor(n){this._elementRef=n}})));let zn=(()=>{class n extends i5{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of n5)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(ar),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Ce(Bi,5),2&e){let r;j(r=U())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Z("disabled",i.disabled||null),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[L],attrs:$A,ngContentSelectors:zA,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(vt(),g(0,"span",0),Le(1),_(),K(2,"span",1),K(3,"span",2)),2&e&&(w(2),ie("mat-button-ripple-round",i.isRoundButton||i.isIconButton),E("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Bi],styles:[WA],encapsulation:2,changeDetection:0}),n})(),r5=(()=>{class n extends zn{constructor(e,i,r){super(i,e,r)}_haltDisabledEvents(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}return n.\u0275fac=function(e){return new(e||n)(f(ar),f(N),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){1&e&&k("click",function(s){return i._haltDisabledEvents(s)}),2&e&&(Z("tabindex",i.disabled?-1:i.tabIndex||0)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[L],attrs:$A,ngContentSelectors:zA,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(vt(),g(0,"span",0),Le(1),_(),K(2,"span",1),K(3,"span",2)),2&e&&(w(2),ie("mat-button-ripple-round",i.isRoundButton||i.isIconButton),E("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Bi],styles:[WA],encapsulation:2,changeDetection:0}),n})(),w_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ic,Ke],Ke]}),n})();const s5=function(){return["/auth"]};let o5=(()=>{class n{constructor(e){this.router=e}ngOnInit(){window.localStorage.getItem("_user")&&this.router.navigate(["/transactions"])}}return n.\u0275fac=function(e){return new(e||n)(f(Pt))},n.\u0275cmp=ne({type:n,selectors:[["app-landing"]],decls:18,vars:2,consts:[[1,"landing-container"],[1,"landing-content"],[1,"logo"],[1,"action"],["mat-raised-button","","color","primary",3,"routerLink"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"div",2),g(3,"label"),g(4,"span"),S(5,"B"),_(),S(6,"ins"),_(),g(7,"label"),g(8,"span"),S(9,"E"),_(),S(10,"xpense"),_(),g(11,"label"),g(12,"span"),S(13,"T"),_(),S(14,"racker"),_(),_(),g(15,"div",3),g(16,"a",4),S(17,"Get Started"),_(),_(),_(),_()),2&e&&(w(16),E("routerLink",Ar(1,s5)))},directives:[r5,ql],styles:[".landing-container[_ngcontent-%COMP%]{height:100vh;display:flex;justify-content:center;align-items:center;text-align:center}.landing-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{font-size:25px;padding:15px;color:#fff;font-family:Oswald-Medium,sans-serif}.landing-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:40px}.landing-container[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{padding:10px}"]}),n})();function GA(...n){if(1===n.length){const t=n[0];if(Ys(t))return ch(t,null);if(Bh(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return ch(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return ch(n=1===n.length&&Ys(n[0])?n[0]:n,null).pipe(ge(e=>t(...e)))}return ch(n,null)}function ch(n,t){return new Ee(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let qA=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(f(Xi),f(N))},n.\u0275dir=M({type:n}),n})(),Vs=(()=>{class n extends qA{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,features:[L]}),n})();const an=new I("NgValueAccessor"),l5={provide:an,useExisting:Se(()=>jr),multi:!0},u5=new I("CompositionEventMode");let jr=(()=>{class n extends qA{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const n=Fi()?Fi().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Xi),f(N),f(u5,8))},n.\u0275dir=M({type:n,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(e,i){1&e&&k("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Q([l5]),L]}),n})();function Ur(n){return null==n||0===n.length}function KA(n){return null!=n&&"number"==typeof n.length}const gt=new I("NgValidators"),$r=new I("NgAsyncValidators"),d5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zr{static min(t){return QA(t)}static max(t){return JA(t)}static required(t){return function(n){return Ur(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function(n){return Ur(n.value)||d5.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function(n){return t=>Ur(t.value)||!KA(t.value)?null:t.value.lengthKA(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function(n){if(!n)return Wr;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ur(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return cT(t)}static composeAsync(t){return uT(t)}}function QA(n){return t=>{if(Ur(t.value)||Ur(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Ur(t.value)||Ur(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Wr(n){return null}function rT(n){return null!=n}function sT(n){const t=ol(n)?It(n):n;return Du(t),t}function oT(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function aT(n,t){return t.map(e=>e(n))}function lT(n){return n.map(t=>function(n){return!n.validate}(t)?t:e=>t.validate(e))}function cT(n){if(!n)return null;const t=n.filter(rT);return 0==t.length?null:function(e){return oT(aT(e,t))}}function E_(n){return null!=n?cT(lT(n)):null}function uT(n){if(!n)return null;const t=n.filter(rT);return 0==t.length?null:function(e){return GA(aT(e,t).map(sT)).pipe(ge(oT))}}function M_(n){return null!=n?uT(lT(n)):null}function dT(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function hT(n){return n._rawValidators}function fT(n){return n._rawAsyncValidators}function S_(n){return n?Array.isArray(n)?n:[n]:[]}function uh(n,t){return Array.isArray(n)?n.includes(t):n===t}function pT(n,t){const e=S_(t);return S_(n).forEach(r=>{uh(e,r)||e.push(r)}),e}function mT(n,t){return S_(t).filter(e=>!uh(n,e))}let gT=(()=>{class n{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(e){this._rawValidators=e||[],this._composedValidatorFn=E_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=M_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,i){return!!this.control&&this.control.hasError(e,i)}getError(e,i){return this.control?this.control.getError(e,i):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})(),Wt=(()=>{class n extends gT{get formDirective(){return null}get path(){return null}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,features:[L]}),n})();class mi extends gT{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _T{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}let _a=(()=>{class n extends _T{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(f(mi,2))},n.\u0275dir=M({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&ie("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[L]}),n})(),dh=(()=>{class n extends _T{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Wt,10))},n.\u0275dir=M({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&ie("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[L]}),n})();function fh(n,t){return[...t.path,n]}function rc(n,t){k_(n,t),t.valueAccessor.writeValue(n.value),function(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&yT(n,t)})}(n,t),function(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&yT(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function ph(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),gh(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function mh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function k_(n,t){const e=hT(n);null!==t.validator?n.setValidators(dT(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=fT(n);null!==t.asyncValidator?n.setAsyncValidators(dT(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();mh(t._rawValidators,r),mh(t._rawAsyncValidators,r)}function gh(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=hT(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(null!==t.asyncValidator){const r=fT(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}const i=()=>{};return mh(t._rawValidators,i),mh(t._rawAsyncValidators,i),e}function yT(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function bT(n,t){k_(n,t)}function I_(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function vT(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function x_(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===jr?e=s:function(n){return Object.getPrototypeOf(n.constructor)===Vs}(s)?i=s:r=s}),r||i||e||null}function _h(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const sc="VALID",yh="INVALID",ya="PENDING",oc="DISABLED";function O_(n){return(F_(n)?n.validators:n)||null}function CT(n){return Array.isArray(n)?E_(n):n||null}function R_(n,t){return(F_(t)?t.asyncValidators:n)||null}function DT(n){return Array.isArray(n)?M_(n):n||null}function F_(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class P_{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=CT(this._rawValidators),this._composedAsyncValidatorFn=DT(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===sc}get invalid(){return this.status===yh}get pending(){return this.status==ya}get disabled(){return this.status===oc}get enabled(){return this.status!==oc}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=CT(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=DT(t)}addValidators(t){this.setValidators(pT(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(pT(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(mT(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(mT(t,this._rawAsyncValidators))}hasValidator(t){return uh(this._rawValidators,t)}hasAsyncValidator(t){return uh(this._rawAsyncValidators,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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ya,!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=oc,this.errors=null,this._forEachChild(i=>{i.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(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=sc,this._forEachChild(i=>{i.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(i=>i(!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===sc||this.status===ya)&&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()?oc:sc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ya,this._hasOwnPendingAsyncValidator=!0;const e=sT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{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(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=i instanceof ac?i.controls.hasOwnProperty(r)?i.controls[r]:null:i instanceof N_&&i.at(r)||null}),i}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.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 R,this.statusChanges=new R}_calculateStatus(){return this._allControlsDisabled()?oc:this.errors?yh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ya)?ya:this._anyControlsHaveStatus(yh)?yh:sc}_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){F_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ba extends P_{constructor(t=null,e,i){super(O_(e),R_(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(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){_h(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){_h(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 ac extends P_{constructor(t,e,i){super(O_(e),R_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof ba?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);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 i=this.controls[e];i&&t(i,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 i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class N_ extends P_{constructor(t,e,i){super(O_(e),R_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((i,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ba?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!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,i)=>{t(e,i)})}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_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 E5={provide:Wt,useExisting:Se(()=>Gr)},lc=(()=>Promise.resolve(null))();let Gr=(()=>{class n extends Wt{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new R,this.form=new ac({},E_(e),M_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){lc.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),rc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){lc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),_h(this._directives,e)})}addFormGroup(e){lc.then(()=>{const i=this._findContainer(e.path),r=new ac({});bT(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){lc.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){lc.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,vT(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(f(gt,10),f($r,10))},n.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&k("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Q([E5]),L]}),n})();const S5={provide:mi,useExisting:Se(()=>bh)},MT=(()=>Promise.resolve(null))();let bh=(()=>{class n extends mi{constructor(e,i,r,s){super(),this.control=new ba,this._registered=!1,this.update=new R,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=x_(0,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),I_(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?fh(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){rc(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(e){MT.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;MT.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return n.\u0275fac=function(e){return new(e||n)(f(Wt,9),f(gt,10),f($r,10),f(an,10))},n.\u0275dir=M({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Q([S5]),L,Ie]}),n})(),vh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const A5={provide:an,useExisting:Se(()=>cc),multi:!0};let cc=(()=>{class n extends Vs{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&k("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[Q([A5]),L]}),n})(),ST=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();const L_=new I("NgModelWithFormControlWarning"),O5={provide:Wt,useExisting:Se(()=>gi)};let gi=(()=>{class n extends Wt{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new R,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(gh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return rc(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){ph(e.control||null,e,!1),_h(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,vT(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(ph(i||null,e),r instanceof ba&&(rc(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);bT(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function(n,t){return gh(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){k_(this.form,this),this._oldForm&&gh(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(f(gt,10),f($r,10))},n.\u0275dir=M({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&k("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Q([O5]),L,Ie]}),n})();const P5={provide:mi,useExisting:Se(()=>uc)};let uc=(()=>{class n extends mi{constructor(e,i,r,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new R,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=x_(0,s)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),I_(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return fh(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n.\u0275fac=function(e){return new(e||n)(f(Wt,13),f(gt,10),f($r,10),f(an,10),f(L_,8))},n.\u0275dir=M({type:n,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Q([P5]),L,Ie]}),n._ngModelWarningSentOnce=!1,n})(),FT=(()=>{class n{constructor(){this._validator=Wr}handleChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._validator=this.createValidator(i),this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})();const U5={provide:gt,useExisting:Se(()=>U_),multi:!0};let U_=(()=>{class n extends FT{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>parseFloat(e),this.createValidator=e=>JA(e)}ngOnChanges(e){this.handleChanges(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,i){if(2&e){let r;Z("max",null!==(r=i.max)&&void 0!==r?r:null)}},inputs:{max:"max"},features:[Q([U5]),L,Ie]}),n})();const $5={provide:gt,useExisting:Se(()=>$_),multi:!0};let $_=(()=>{class n extends FT{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>parseFloat(e),this.createValidator=e=>QA(e)}ngOnChanges(e){this.handleChanges(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){if(2&e){let r;Z("min",null!==(r=i.min)&&void 0!==r?r:null)}},inputs:{min:"min"},features:[Q([$5]),L,Ie]}),n})(),BT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ST]]}),n})(),Q5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[BT]}),n})(),HT=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:L_,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[BT]}),n})(),G_=(()=>{class n{group(e,i=null){const r=this._reduceControls(e);let a,s=null,o=null;return null!=i&&(function(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(i)?(s=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,a=null!=i.updateOn?i.updateOn:void 0):(s=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new ac(r,{asyncValidators:o,updateOn:a,validators:s})}control(e,i,r){return new ba(e,i,r)}array(e,i,r){const s=e.map(o=>this._createControl(o));return new N_(s,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof ba||e instanceof ac||e instanceof N_?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:HT}),n})();class jT{}class UT{}class Dn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}: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 Dn?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 Dn;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Dn?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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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 X5{encodeKey(t){return $T(t)}encodeValue(t){return $T(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $T(n){return encodeURIComponent(n).replace(eW,(t,e)=>{var i;return null!==(i=tW[e])&&void 0!==i?i:t})}function zT(n){return`${n}`}class qr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new X5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,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(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new qr({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(zT(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(zT(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class nW{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function WT(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function GT(n){return"undefined"!=typeof Blob&&n instanceof Blob}function qT(n){return"undefined"!=typeof FormData&&n instanceof FormData}class dc{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Dn),this.context||(this.context=new nW),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(p,t.setHeaders[p]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,p)=>h.set(p,t.setParams[p]),u)),new dc(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var _t=(()=>((_t=_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 q_{constructor(t,e=200,i="OK"){this.headers=t.headers||new Dn,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Y_ extends q_{constructor(t={}){super(t),this.type=_t.ResponseHeader}clone(t={}){return new Y_({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 Ch extends q_{constructor(t={}){super(t),this.type=_t.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ch({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 YT extends q_{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 K_(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let hc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof dc)s=e;else{let l,c;l=r.headers instanceof Dn?r.headers:new Dn(r.headers),r.params&&(c=r.params instanceof qr?r.params:new qr({fromObject:r.params})),s=new dc(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=G(s).pipe(na(l=>this.handler.handle(l)));if(e instanceof dc||"events"===r.observe)return o;const a=o.pipe(pt(l=>l instanceof Ch));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(ge(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ge(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ge(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ge(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new qr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,K_(r,i))}post(e,i,r={}){return this.request("POST",e,K_(r,i))}put(e,i,r={}){return this.request("PUT",e,K_(r,i))}}return n.\u0275fac=function(e){return new(e||n)(v(jT))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class KT{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const QT=new I("HTTP_INTERCEPTORS");let sW=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const oW=/^\)\]\}',?\n/;let JT=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ee(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,m)=>r.setRequestHeader(p,m.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const p=1223===r.status?204:r.status,m=r.statusText||"OK",b=new Dn(r.getAllResponseHeaders()),y=function(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new Y_({headers:b,status:p,statusText:m,url:y}),o},l=()=>{let{headers:p,status:m,statusText:b,url:y}=a(),D=null;204!==m&&(D=void 0===r.response?r.responseText:r.response),0===m&&(m=D?200:0);let C=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof D){const T=D;D=D.replace(oW,"");try{D=""!==D?JSON.parse(D):null}catch(O){D=T,C&&(C=!1,D={error:O,text:D})}}C?(i.next(new Ch({body:D,headers:p,status:m,statusText:b,url:y||void 0})),i.complete()):i.error(new YT({error:D,headers:p,status:m,statusText:b,url:y||void 0}))},c=p=>{const{url:m}=a(),b=new YT({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:m||void 0});i.error(b)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let m={type:_t.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),"text"===e.responseType&&!!r.responseText&&(m.partialText=r.responseText),i.next(m)},h=p=>{let m={type:_t.UploadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),i.next(m)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==s&&r.upload&&r.upload.addEventListener("progress",h)),r.send(s),i.next({type:_t.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==s&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(v(VM))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Q_=new I("XSRF_COOKIE_NAME"),J_=new I("XSRF_HEADER_NAME");class XT{}let lW=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=SM(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(v(W),v(Yo),v(Q_))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),X_=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const s=this.tokenService.getToken();return null!==s&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,s)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(v(XT),v(J_))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),cW=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(QT,[]);this.chain=i.reduceRight((r,s)=>new KT(r,s),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(v(UT),v(_e))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),uW=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:X_,useClass:sW}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Q_,useValue:e.cookieName}:[],e.headerName?{provide:J_,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[X_,{provide:QT,useExisting:X_,multi:!0},{provide:XT,useClass:lW},{provide:Q_,useValue:"XSRF-TOKEN"},{provide:J_,useValue:"X-XSRF-TOKEN"}]}),n})(),dW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[hc,{provide:jT,useClass:cW},JT,{provide:UT,useExisting:JT}],imports:[[uW.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})(),ZT=(()=>{class n{constructor(e){this.http=e,this.baseUrl="",this.token="",this.header={"X-GitHub-Api-Version":"2022-11-28",Accept:"application/vnd.github+json"},this.header.Authorization="Bearer "+atob(atob("WjJod1gzcEdUMFZ5TVZKWU1teFVPR05CYVdOYVdsVnJOVGh3YUhSTFQwbENOVE52TUhCR2J3PT0=")),this.baseUrl="https://api.github.com/repos/BinsSoft/bins-api-container/contents/expense-tracker"}checkUser(e){return this.http.get(this.baseUrl+"/"+e,{headers:new Dn(this.header)})}create(e,i,r){return this.http.put(this.baseUrl+"/"+e,JSON.stringify({content:btoa(JSON.stringify(r)),message:i,committer:{name:"Tonmoy",email:"tonmoy.nandy@gmail.com"}}),{headers:new Dn(this.header)})}update(e,i,r,s=null){return this.http.put(this.baseUrl+"/"+e,JSON.stringify({content:btoa(JSON.stringify(r)),message:i,sha:s,committer:{name:"Tonmoy",email:"tonmoy.nandy@gmail.com"}}),{headers:new Dn(this.header)})}getContent(e){return this.http.get(this.baseUrl+"/"+e,{headers:new Dn(this.header)})}}return n.\u0275fac=function(e){return new(e||n)(v(hc))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hi=(()=>{class n{constructor(e){this.restService=e,this.transactionsSubject=new H,this.transactions=this.transactionsSubject.asObservable(),this.transactionSha="",this.configSha="",this.usersSubject=new H,this.users=this.usersSubject.asObservable(),this.categorySubject=new H,this.category=this.categorySubject.asObservable(),this.transactionList=[],this.userList=[],this.categoryList=[]}fetch(){const e=window.localStorage.getItem("_user");e&&this.restService.getContent(e+"/config.json").subscribe(i=>{this.configSha=i.sha;const r=JSON.parse(atob(i.content));this.userList=r.users,this.categoryList=r.category,this.getAllCategory(),this.getAllUsers(),setTimeout(()=>{this.restService.getContent(e+"/transactions.json").subscribe(s=>{this.transactionSha=s.sha,this.transactionList=JSON.parse(atob(s.content)),this.emitAllTransactions()})},1e3)})}emitAllTransactions(){this.transactionsSubject.next(this.getAllTransactions())}getAllTransactions(){let e=this.transactionList;return e=e.concat(this.getLocalData("_t")),e}getLocalData(e){const i=window.localStorage.getItem(e);return i?JSON.parse(i):[]}updateTransactions(){const e=this.getAllTransactions();if(this.getLocalData("_t").length>0){const i=window.localStorage.getItem("_user");this.restService.update(i+"/transactions.json","Update Transactions of "+i,e,this.transactionSha).subscribe(r=>{window.localStorage.setItem("_t",JSON.stringify([]))})}}getAllCategory(){let e=this.categoryList;return this.categorySubject.next(e),e}getAllUsers(){let e=this.userList;return this.usersSubject.next(e),e}updateConfig(){const e={users:this.getAllUsers(),category:this.getAllCategory()},i=window.localStorage.getItem("_user");this.restService.update(i+"/config.json","Update Config of "+i,e,this.configSha).subscribe(r=>{this.configSha=r.content.sha})}}return n.\u0275fac=function(e){return new(e||n)(v(ZT))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Yr(n,t,e,i){return vi(e)&&(i=e,e=void 0),i?Yr(n,t,e).pipe(ge(r=>Ys(r)?i(...r):i(r))):new Ee(r=>{ek(n,t,function(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function ek(n,t,e,i,r){let s;if(function(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let yW=1;const bW=Promise.resolve(),Dh={};function tk(n){return n in Dh&&(delete Dh[n],!0)}const nk={setImmediate(n){const t=yW++;return Dh[t]=!0,bW.then(()=>tk(t)&&n()),t},clearImmediate(n){tk(n)}},Z_=new class extends pi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=nk.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(nk.clearImmediate(e),t.scheduled=void 0)}});class wW{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new EW(t,this.durationSelector))}}class EW extends Ta{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=ka(e,new Aa(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function rk(n){return!Ys(n)&&n-parseFloat(n)+1>=0}function sk(n=0,t,e){let i=-1;return rk(t)?i=Number(t)<1?1:Number(t):Ks(t)&&(e=t),Ks(e)||(e=Vd),new Ee(r=>{const s=rk(n)?n:+n-e.now();return e.schedule(MW,s,{index:0,period:i,subscriber:r})})}function MW(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function wh(n,t=Vd){return function(n){return function(e){return e.lift(new wW(n))}}(()=>sk(n,t))}function ok(n,t){return new Ee(t?e=>t.schedule(OW,0,{error:n,subscriber:e}):e=>e.error(n))}function OW({error:n,subscriber:t}){t.error(n)}new class extends pi{}(class extends Ld{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});class ln{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return G(this.value);case"E":return ok(this.error);case"C":return gd()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new ln("N",t):ln.undefinedValueNotification}static createError(t){return new ln("E",void 0,t)}static createComplete(){return ln.completeNotification}}ln.completeNotification=new ln("C"),ln.undefinedValueNotification=new ln("N",void 0);class $W{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new H,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let Mh=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new H,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ee(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(wh(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):G()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(pt(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=or(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Yr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(v(z),v(xe),v(W,8))},n.\u0275prov=x({factory:function(){return new n(v(z),v(xe),v(W,8))},token:n,providedIn:"root"}),n})(),_i=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new H,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(wh(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(z),v(W,8))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(z),v(W,8))},token:n,providedIn:"root"}),n})(),fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})(),dk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Zl,Kl,fc],Zl,fc]}),n})();class ey{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class pc extends ey{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Kr extends ey{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class ZW extends ey{constructor(t){super(),this.element=t instanceof N?t.nativeElement:t}}class ty{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof pc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Kr?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof ZW?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class hk extends ty{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let ur=(()=>{class n extends ty{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new R,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(s,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(f(ii),f(it),f(W))},n.\u0275dir=M({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[L]}),n})(),Sh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})();class t6{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new n6(t,this.predicate,this.inclusive))}}class n6 extends Oe{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const fk=uS();class i6{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=mt(-this._previousScrollPosition.left),t.style.top=mt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),fk&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),fk&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class r6{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class pk{enable(){}disable(){}attach(){}}function iy(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function mk(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class s6{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();iy(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let o6=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new pk,this.close=o=>new r6(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new i6(this._viewportRuler,this._document),this.reposition=o=>new s6(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(v(Mh),v(_i),v(z),v(W))},n.\u0275prov=x({factory:function(){return new n(v(Mh),v(_i),v(z),v(W))},token:n,providedIn:"root"}),n})();class mc{constructor(t){if(this.scrollStrategy=new pk,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class a6{constructor(t,e,i,r,s){this.offsetX=i,this.offsetY=r,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class l6{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let gk=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:function(){return new n(v(W))},token:n,providedIn:"root"}),n})(),c6=(()=>{class n extends gk{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(v(W))},n.\u0275prov=x({factory:function(){return new n(v(W))},token:n,providedIn:"root"}),n})(),u6=(()=>{class n extends gk{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Os(r)},this._clickListener=r=>{const s=Os(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(v(W),v(xe))},n.\u0275prov=x({factory:function(){return new n(v(W),v(xe))},token:n,providedIn:"root"}),n})(),gc=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Rg()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;sthis._backdropClick.next(u),this._keydownEvents=new H,this._outsidePointerEvents=new H,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(wt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=mt(this._config.width),t.height=mt(this._config.height),t.minWidth=mt(this._config.minWidth),t.minHeight=mt(this._config.minHeight),t.maxWidth=mt(this._config.maxWidth),t.maxHeight=mt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=t.classList;aS(e).forEach(s=>{s&&(i?r.add(s):r.remove(s))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(qe(Nt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const _k="cdk-overlay-connected-position-bounding-box",h6=/([A-Za-z%]+)$/;class ry{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new H,this._resizeSubscription=X.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(_k),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=[];let s;for(let o of this._preferredPositions){let a=this._getOriginPoint(t,o),l=this._getOverlayPoint(a,e,o),c=this._getOverlayFit(l,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:o,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,o)}):(!s||s.overlayFit.visibleAreaa&&(a=c,o=l)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Bs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_k),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,r;if("center"==e.originX)i=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;i="start"==e.originX?s:o}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:r}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=bk(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,p=a+s.height-i.height,m=this._subtractOverflows(s.width,0-o,o+s.width-i.width),b=this._subtractOverflows(s.height,h,p),y=m*b;return{visibleArea:y,isCompletelyWithinViewport:s.width*s.height===y,fitsInViewportVertically:b===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=yk(this._overlayRef.getConfig().minHeight),a=yk(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=bk(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.xm&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const p=Math.min(i.right-t.x+i.left,t.x),m=this._lastBoundingBoxSize.width;u=2*p,d=t.x-p,u>m&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-m/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=mt(i.height),r.top=mt(i.top),r.bottom=mt(i.bottom),r.width=mt(i.width),r.left=mt(i.left),r.right=mt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=mt(s)),o&&(r.maxWidth=mt(o))}this._lastBoundingBoxSize=i,Bs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Bs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Bs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Bs(i,this._getExactOverlayY(e,t,u)),Bs(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=mt(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=mt(o.maxWidth):s&&(i.maxWidth="")),Bs(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=mt(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=mt(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mk(t,i),isOriginOutsideView:iy(t,i),isOverlayClipped:mk(e,i),isOverlayOutsideView:iy(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&aS(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof N)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Bs(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function yk(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(h6);return e&&"px"!==e?null:parseFloat(t)}return n||null}function bk(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}class f6{constructor(t,e,i,r,s,o,a){this._preferredPositions=[],this._positionStrategy=new ry(i,r,s,o,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,r){const s=new a6(t,e,i,r);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const vk="cdk-global-overlay-wrapper";class p6{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(vk),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(vk),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let m6=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new p6}connectedTo(e,i,r){return new f6(i,r,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new ry(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(v(_i),v(W),v(xe),v(gc))},n.\u0275prov=x({factory:function(){return new n(v(_i),v(W),v(xe),v(gc))},token:n,providedIn:"root"}),n})(),g6=0,yi=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new mc(e);return o.direction=o.direction||this._directionality.value,new d6(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+g6++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ir)),new hk(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(v(o6),v(gc),v(ii),v(m6),v(c6),v(_e),v(z),v(W),v(at),v(Xo),v(u6))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const _6=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ck=new I("cdk-connected-overlay-scroll-strategy");let y6=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(f(N))},n.\u0275dir=M({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Dk=(()=>{class n{constructor(e,i,r,s,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=X.EMPTY,this._attachSubscription=X.EMPTY,this._detachSubscription=X.EMPTY,this._positionSubscription=X.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new R,this.positionChange=new R,this.attach=new R,this.detach=new R,this.overlayKeydown=new R,this.overlayOutsideClick=new R,this._templatePortal=new Kr(i,r),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ve(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ve(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ve(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ve(e)}get push(){return this._push}set push(e){this._push=ve(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_6);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!fi(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new mc({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(n,t=!1){return e=>e.lift(new t6(n,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(yi),f(dt),f(it),f(Ck),f(at,8))},n.\u0275dir=M({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ie]}),n})();const v6={provide:Ck,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};let Ah=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[yi,v6],imports:[[Zl,Sh,dk],dk]}),n})();function C6(n,t){}class sy{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const D6={dialogContainer:cr("dialogContainer",[bn("void, exit",He({opacity:0,transform:"scale(0.7)"})),bn("enter",He({transform:"none"})),zt("* => enter",rn("150ms cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1}))),zt("* => void, * => exit",rn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})))])};let w6=(()=>{class n extends ty{constructor(e,i,r,s,o,a){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=o,this._focusMonitor=a,this._animationStateChanged=new R,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(l)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Xl(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Xl())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Xl();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(bS),f(Be),f(W,8),f(sy),f(ar))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&Ce(ur,7),2&e){let r;j(r=U())&&(i._portalOutlet=r.first)}},features:[L]}),n})(),E6=(()=>{class n extends w6{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&wu("@dialogContainer.start",function(s){return i._onAnimationStart(s)})("@dialogContainer.done",function(s){return i._onAnimationDone(s)}),2&e&&(ni("id",i._id),Z("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Mu("@dialogContainer",i._state))},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&$(0,C6,0,0,"ng-template",0)},directives:[ur],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[D6.dialogContainer]}}),n})(),M6=0;class Hs{constructor(t,e,i="mat-dialog-"+M6++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new H,this._afterClosed=new H,this._beforeClosed=new H,this._state=0,e._id=i,e._animationStateChanged.pipe(pt(r=>"opened"===r.state),wt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(pt(r=>"closed"===r.state),wt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(pt(r=>27===r.keyCode&&!this.disableClose&&!fi(r))).subscribe(r=>{r.preventDefault(),oy(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():oy(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(pt(e=>"closing"===e.state),wt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function oy(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const ay=new I("MatDialogData"),S6=new I("mat-dialog-default-options"),wk=new I("mat-dialog-scroll-strategy"),T6={provide:wk,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.block()}};let k6=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new H,this._afterOpenedAtThisLevel=new H,this._ariaHiddenElements=new Map,this.afterAllClosed=_d(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(At(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){i=function(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new sy),i.id&&this.getDialogById(i.id);const r=this._createOverlay(i),s=this._attachDialogContainer(r,i),o=this._attachDialogContent(e,s,r,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),s._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new mc({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const s=_e.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:sy,useValue:i}]}),o=new pc(this._dialogContainerType,i.viewContainerRef,s,i.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,i,r,s){const o=new this._dialogRefConstructor(r,i,s.id);if(e instanceof dt)i.attachTemplatePortal(new Kr(e,null,{$implicit:s.data,dialogRef:o}));else{const a=this._createInjector(s,o,i),l=i.attachComponentPortal(new pc(e,s.viewContainerRef,a));o.componentInstance=l.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,i,r){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!s||!s.get(at,null,Y.Optional))&&o.push({provide:at,useValue:{value:e.direction,change:G()}}),_e.create({parent:s||this._injector,providers:o})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let s=i[r];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){return new(e||n)(f(yi),f(_e),f(void 0),f(void 0),f(gc),f(void 0),f(co),f(co),f(I))},n.\u0275dir=M({type:n}),n})(),dr=(()=>{class n extends k6{constructor(e,i,r,s,o,a,l){super(e,i,s,a,l,o,Hs,E6,ay)}}return n.\u0275fac=function(e){return new(e||n)(v(yi),v(_e),v(Xo,8),v(S6,8),v(wk),v(n,12),v(gc))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Mk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[dr,T6],imports:[[Ah,Sh,Ke],Ke]}),n})(),js=(()=>{class n{constructor(){this.categoryList=[]}categoryInit(){return this.categoryList=this.getCategoryList(),this.setCategoryList(this.categoryList),this.categoryList}getCategoryList(){if(this.categoryList=this.appendCategory("Bill Pay",this.categoryList),this.categoryList=this.appendCategory("Recharge",this.categoryList),window.localStorage.getItem("_c")){const e=window.localStorage.getItem("_c");this.categoryList=JSON.parse(e)}return this.categoryList}appendCategory(e,i){return i.push({id:i.length+1,name:e}),i}setCategoryList(e){window.localStorage.setItem("_c",JSON.stringify(e))}getTransactionList(){const e=window.localStorage.getItem("_t");return e?JSON.parse(e):[]}setTransaction(e){window.localStorage.setItem("_t",JSON.stringify(e))}getUsersList(){const e=window.localStorage.getItem("_u");return e?JSON.parse(e):[]}setUsers(e){window.localStorage.setItem("_u",JSON.stringify(e))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const O6=["underline"],R6=["connectionContainer"],F6=["inputContainer"],P6=["label"];function N6(n,t){1&n&&(ds(0),g(1,"div",14),K(2,"div",15),K(3,"div",16),K(4,"div",17),_(),g(5,"div",18),K(6,"div",15),K(7,"div",16),K(8,"div",17),_(),hs())}function L6(n,t){1&n&&(g(0,"div",19),Le(1,1),_())}function V6(n,t){if(1&n&&(ds(0),Le(1,2),g(2,"span"),S(3),_(),hs()),2&n){const e=V(2);w(3),Ve(e._control.placeholder)}}function B6(n,t){1&n&&Le(0,3,["*ngSwitchCase","true"])}function H6(n,t){1&n&&(g(0,"span",23),S(1," *"),_())}function j6(n,t){if(1&n){const e=Ot();g(0,"label",20,21),k("cdkObserveContent",function(){return Fe(e),V().updateOutlineGap()}),$(2,V6,4,1,"ng-container",12),$(3,B6,1,0,"ng-content",12),$(4,H6,2,0,"span",22),_()}if(2&n){const e=V();ie("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),E("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Z("for",e._control.id)("aria-owns",e._control.id),w(2),E("ngSwitchCase",!1),w(1),E("ngSwitchCase",!0),w(1),E("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function U6(n,t){1&n&&(g(0,"div",24),Le(1,4),_())}function $6(n,t){if(1&n&&(g(0,"div",25,26),K(2,"span",27),_()),2&n){const e=V();w(2),ie("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function z6(n,t){1&n&&(g(0,"div"),Le(1,5),_()),2&n&&E("@transitionMessages",V()._subscriptAnimationState)}function W6(n,t){if(1&n&&(g(0,"div",31),S(1),_()),2&n){const e=V(2);E("id",e._hintLabelId),w(1),Ve(e.hintLabel)}}function G6(n,t){if(1&n&&(g(0,"div",28),$(1,W6,2,2,"div",29),Le(2,6),K(3,"div",30),Le(4,7),_()),2&n){const e=V();E("@transitionMessages",e._subscriptAnimationState),w(1),E("ngIf",e.hintLabel)}}const q6=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Y6=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Sk=new I("MatError"),Q6={transitionMessages:cr("transitionMessages",[bn("enter",He({opacity:1,transform:"translateY(0%)"})),zt("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),rn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _c=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})(),J6=0;const Ak=new I("MatHint");let X6=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+J6++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,i){2&e&&(Z("id",i.id)("align",null),ie("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[Q([{provide:Ak,useExisting:n}])]}),n})(),Us=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-label"]]}),n})(),Z6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-placeholder"]]}),n})();const Tk=new I("MatPrefix"),kk=new I("MatSuffix");let Ik=0;const tG=pa(class{constructor(n){this._elementRef=n}},"primary"),nG=new I("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yc=new I("MatFormField");let bc=(()=>{class n extends tG{constructor(e,i,r,s,o,a,l,c){super(e),this._changeDetectorRef=i,this._dir=s,this._defaults=o,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new H,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ik++,this._labelId="mat-form-field-label-"+Ik++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ve(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(At(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(qe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(qe(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Nt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(At(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(At(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(qe(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Yr(this._label.nativeElement,"transitionend").pipe(wt(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,r=0;const s=this._connectionContainerRef.nativeElement,o=s.querySelectorAll(".mat-form-field-outline-start"),a=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=s.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),u=e.children,d=this._getStartEnd(u[0].getBoundingClientRect());let h=0;for(let p=0;p0?.75*h+10:0}for(let l=0;l{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ws,Ke,Ud],Ke]}),n})();const Ok=ca({passive:!0});let Rk=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Es;const i=or(e),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new H,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,Ok),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,Ok)}}),s}stopMonitoring(e){const i=or(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(v(xe),v(z))},n.\u0275prov=x({factory:function(){return new n(v(xe),v(z))},token:n,providedIn:"root"}),n})(),Fk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Kl]]}),n})();const Pk=new I("MAT_INPUT_VALUE_ACCESSOR"),rG=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sG=0;const oG=__(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let Th=(()=>{class n extends oG{constructor(e,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+sG++,this.focused=!1,this.stateChanges=new H,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>cS().has(m));const h=this._elementRef.nativeElement,p=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",m=>{const b=m.target;!b.value&&0===b.selectionStart&&0===b.selectionEnd&&(b.setSelectionRange(1,1),b.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ve(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=ve(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&cS().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ve(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){rG.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(xe),f(mi,10),f(Gr,8),f(gi,8),f(ga),f(Pk,10),f(Rk),f(z),f(yc,8))},n.\u0275dir=M({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&k("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(ni("disabled",i.disabled)("required",i.required),Z("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),ie("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Q([{provide:_c,useExisting:n}]),L,Ie]}),n})(),Nk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[ga],imports:[[Fk,vc,Ke],Fk,vc]}),n})();const aG=["input"],lG=function(n){return{enterDuration:n}},cG=["*"],uG=new I("mat-checkbox-default-options",{providedIn:"root",factory:Lk});function Lk(){return{color:"accent",clickAction:"check-indeterminate"}}let dG=0;const Vk=Lk(),hG={provide:an,useExisting:Se(()=>ly),multi:!0};class fG{}const pG=g_(pa(ma(Hr(class{constructor(n){this._elementRef=n}}))));let ly=(()=>{class n extends pG{constructor(e,i,r,s,o,a,l){super(e),this._changeDetectorRef=i,this._focusMonitor=r,this._ngZone=s,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++dG,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new R,this.indeterminateChange=new R,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Vk,this.color=this.defaultColor=this._options.color||Vk.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=ve(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=ve(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=ve(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(s)},1e3)})}}_emitChangeEvent(){const e=new fG;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var i;const r=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===i)r="unchecked-checked";else{if(3!=i)return"";r="unchecked-indeterminate"}break;case 2:r=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(ar),f(z),kn("tabindex"),f(Tt,8),f(uG,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(Ce(aG,5),Ce(Bi,5)),2&e){let r;j(r=U())&&(i._inputElement=r.first),j(r=U())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(ni("id",i.id),Z("tabindex",null),ie("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Q([hG]),L],ngContentSelectors:cG,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(vt(),g(0,"label",0,1),g(2,"span",2),g(3,"input",3,4),k("change",function(s){return i._onInteractionEvent(s)})("click",function(s){return i._onInputClick(s)}),_(),g(5,"span",5),K(6,"span",6),_(),K(7,"span",7),g(8,"span",8),zc(),g(9,"svg",9),K(10,"path",10),_(),se.lFrame.currentNamespace=null,K(11,"span",11),_(),_(),g(12,"span",12,13),k("cdkObserveContent",function(){return i._onLabelTextChange()}),g(14,"span",14),S(15,"\xa0"),_(),Le(16),_(),_()),2&e){const r=Ii(1),s=Ii(13);Z("for",i.inputId),w(2),ie("mat-checkbox-inner-container-no-side-margin",!s.textContent||!s.textContent.trim()),w(1),E("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),Z("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),w(2),E("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",vl(19,lG,"NoopAnimations"===i._animationMode?0:150))}},directives:[Bi,jd],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),Bk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({}),n})(),Hk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ic,Ke,Ud,Bk],Ke,Bk]}),n})();function _G(n,t){if(1&n){const e=Ot();g(0,"div"),g(1,"mat-form-field"),g(2,"mat-label"),S(3,"Day"),_(),g(4,"input",5),k("ngModelChange",function(r){return Fe(e),V().repeatDate=r}),_(),_(),_()}if(2&n){const e=V();w(4),E("ngModel",e.repeatDate)}}let cy=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.name="",this.isRepeat=!1,this.repeatDate=0}ngOnInit(){this.data&&(this.name=this.data.name,this.data.repeatDate&&0!=this.data.repeatDate&&(this.isRepeat=!0),this.repeatDate=this.data.repeatDate)}saveCategory(){this.dialogRef.close({name:this.name,isRepeat:this.isRepeat,repeatDate:this.repeatDate})}}return n.\u0275fac=function(e){return new(e||n)(f(Hs),f(ay))},n.\u0275cmp=ne({type:n,selectors:[["app-category-add"]],decls:13,vars:4,consts:[[1,"form-content"],["matInput","",3,"ngModel","ngModelChange"],[3,"checked","ngModel","ngModelChange"],[4,"ngIf"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number","min","0","max","31",3,"ngModel","ngModelChange"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div"),g(2,"mat-form-field"),g(3,"mat-label"),S(4,"Name"),_(),g(5,"input",1),k("ngModelChange",function(s){return i.name=s}),_(),_(),_(),g(6,"div"),g(7,"mat-checkbox",2),k("ngModelChange",function(s){return i.isRepeat=s}),_(),S(8," Want to repeat? "),_(),$(9,_G,5,1,"div",3),g(10,"div"),g(11,"button",4),k("click",function(){return i.saveCategory()}),S(12,"Save"),_(),_(),_()),2&e&&(w(5),E("ngModel",i.name),w(2),E("checked",i.isRepeat)("ngModel",i.isRepeat),w(2),E("ngIf",i.isRepeat))},directives:[bc,Us,Th,jr,_a,bh,ly,Vn,zn,$_,U_,cc],styles:[".form-content[_ngcontent-%COMP%]{text-align:center}"]}),n})();const yG=["*"];function jk(n){return Error(`Unable to find icon with the name "${n}"`)}function Uk(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function $k(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class $s{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let kh=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new $s(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(Te.HTML,r);if(!o)throw $k(r);return this._addSvgIconConfig(e,i,new $s("",o,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new $s(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(Te.HTML,i);if(!s)throw $k(i);return this._addSvgIconSetConfig(e,new $s("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Te.RESOURCE_URL,e);if(!i)throw Uk(e);const r=this._cachedIconsByUrl.get(i);return r?G(Ih(r)):this._loadSvgIconFromConfig(new $s(e,null)).pipe(Rt(s=>this._cachedIconsByUrl.set(i,s)),ge(s=>Ih(s)))}getNamedSvgIcon(e,i=""){const r=zk(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):ok(jk(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?G(Ih(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ge(i=>Ih(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?G(r):GA(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Rr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Te.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),G(null)})))).pipe(ge(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw jk(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Rt(i=>e.svgText=i),ge(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?G(null):this._fetchIcon(e).pipe(Rt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString("");return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(""),r=e.attributes;for(let s=0;sthis._inProgressUrlFetches.delete(a)),Py());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(zk(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),Wk=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],MG=n=>`[${n}]`,SG=Wk.map(MG).join(", "),AG=/^url\(['"]?#(.*?)['"]?\)$/;let zs=(()=>{class n extends DG{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=X.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ve(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(SG),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const a=i[s],l=a.getAttribute(o),c=l?l.match(AG):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(wt(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(kh),kn("aria-hidden"),f(wG),f(Kn))},n.\u0275cmp=ne({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(Z("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),ie("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[L],ngContentSelectors:yG,decls:1,vars:0,template:function(e,i){1&e&&(vt(),Le(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),Gk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[Ke],Ke]}),n})();const qk=function(n){return{$implicit:n}};function TG(n,t){if(1&n&&Ip(0,3),2&n){const e=t.$implicit;V(),E("ngTemplateOutlet",Ii(3))("ngTemplateOutletContext",vl(2,qk,e))}}function kG(n,t){if(1&n){const e=Ot();ds(0),g(1,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().addNewCategory(r)}),S(2,"add"),_(),g(3,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().editNewCategory(r)}),S(4,"edit"),_(),g(5,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().deleteCategory(r)}),S(6,"delete"),_(),hs()}}function IG(n,t){if(1&n){const e=Ot();ds(0),g(1,"mat-icon",9),k("click",function(){Fe(e);const r=V().$implicit;return V().addNewCategory(r)}),S(2,"check"),_(),hs()}}function xG(n,t){if(1&n&&Ip(0,3),2&n){const e=t.$implicit;V(3),E("ngTemplateOutlet",Ii(3))("ngTemplateOutletContext",vl(2,qk,e))}}function OG(n,t){if(1&n&&(ds(0),g(1,"ul",10),$(2,xG,1,4,"ng-container",1),_(),hs()),2&n){const e=V().$implicit;w(2),E("ngForOf",e.children)}}function RG(n,t){if(1&n){const e=Ot();g(0,"li",4),g(1,"div",5),g(2,"span",6),k("click",function(){const s=Fe(e).$implicit;return V().selectCategory(s)}),S(3),_(),g(4,"span",7),$(5,kG,7,0,"ng-container",8),$(6,IG,3,0,"ng-container",8),_(),_(),_(),$(7,OG,3,1,"ng-container",8)}if(2&n){const e=t.$implicit,i=V();w(3),Ve(e.name),w(2),E("ngIf","manage"==i.type),w(1),E("ngIf","action"==i.type),w(1),E("ngIf",e.children&&!e.collapsed)}}let Yk=(()=>{class n{constructor(e,i,r){this.transactionService=e,this.dialog=i,this.commonService=r,this.type="",this.categoryList=[],this.onSelect=new R,this.rootCategory=[]}ngOnInit(){}addNewCategory(e){this.dialog.open(cy).afterClosed().subscribe(i=>{i&&(this.categoryList.push({id:this.categoryList.length+1,name:i.name,repeatDate:i.isRepeat?i.repeatDate:0,parent:e.id}),this.transactionService.categoryList=this.categoryList,this.transactionService.updateConfig())})}editNewCategory(e){this.dialog.open(cy,{data:e}).afterClosed().subscribe(i=>{i&&(e.name=i.name,e.repeatDate=i.isRepeat?i.repeatDate:0,this.transactionService.categoryList=this.categoryList,this.transactionService.updateConfig())})}selectCategory(e){if("action"==this.type){let i=[],r=e;for(;null!=r.parent;)i.push(r),r=this.categoryList.find(s=>s.id==r.parent);r.parent||i.push(r),this.onSelect.emit(i)}}generateChildCategory(e,i){return e.children=i.filter(r=>null!=r.parent&&r.parent==e.id),e.children.map(r=>Object.assign(Object.assign({},r),{category:this.generateChildCategory(r,i)})),e}ngOnChanges(e){for(let i of this.categoryList)null==i.parent&&(i.children=[],i=this.generateChildCategory(i,this.categoryList),this.rootCategory.push(i))}deleteCategory(e){this.transactionService.categoryList.splice(this.transactionService.categoryList.findIndex(i=>i.id==e.id),1),this.transactionService.updateConfig()}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(dr),f(js))},n.\u0275cmp=ne({type:n,selectors:[["app-category-tree"]],inputs:{type:"type",categoryList:"categoryList"},outputs:{onSelect:"select"},features:[Ie],decls:4,vars:1,consts:[[1,"category-list"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],["treeNode",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"main-child"],[1,"node-name"],[1,"n-name",3,"click"],[1,"node-action"],[4,"ngIf"],[3,"click"],[1,"child-menu-list"]],template:function(e,i){1&e&&(g(0,"ul",0),$(1,TG,1,4,"ng-container",1),_(),$(2,RG,8,4,"ng-template",null,2,lE)),2&e&&(w(1),E("ngForOf",i.rootCategory))},directives:[ir,xM,Vn,zs],styles:[".category-list[_ngcontent-%COMP%]{border-left:1px solid #FFF;padding:0}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;position:relative;cursor:pointer;font-family:Roboto-Medium,sans-serif;color:#fff}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%]{display:flex;align-items:center;width:80%}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%] .n-name[_ngcontent-%COMP%]{font-size:16px;display:inline;max-width:95%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid;border-left:1px solid;padding:5px}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%] .n-name[_ngcontent-%COMP%]:hover + .node-action[_ngcontent-%COMP%]{display:inline}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-action[_ngcontent-%COMP%]{display:none;z-index:99}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff;font-size:20px}.category-list[_ngcontent-%COMP%] .main-child[_ngcontent-%COMP%] .node-action[_ngcontent-%COMP%]:hover{display:inline}.category-list[_ngcontent-%COMP%] .child-menu-list[_ngcontent-%COMP%]{border-left:1px solid #FFFFFF}.category-list[_ngcontent-%COMP%] > .main-child[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%] .n-name[_ngcontent-%COMP%]{border-left:0}.category-list[_ngcontent-%COMP%] > .child-menu-list[_ngcontent-%COMP%]{border-left:none}"]}),n})(),Kk=(()=>{class n{constructor(e,i,r){this.transactionService=e,this.dialogRef=i,this.commonService=r,this.categoryList=[]}ngOnInit(){this.categoryList=this.transactionService.getAllCategory()}onSelectAction(e){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(Hs),f(js))},n.\u0275cmp=ne({type:n,selectors:[["app-category-action"]],decls:2,vars:2,consts:[[1,"category-action"],[3,"type","categoryList","select"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"app-category-tree",1),k("select",function(s){return i.onSelectAction(s)}),_(),_()),2&e&&(w(1),E("type","action")("categoryList",i.categoryList))},directives:[Yk],styles:[".category-action[_ngcontent-%COMP%]{background:#49228d}"]}),n})();const FG=["trigger"],PG=["panel"];function NG(n,t){if(1&n&&(g(0,"span",8),S(1),_()),2&n){const e=V();w(1),Ve(e.placeholder)}}function LG(n,t){if(1&n&&(g(0,"span",12),S(1),_()),2&n){const e=V(2);w(1),Ve(e.triggerValue)}}function VG(n,t){1&n&&Le(0,0,["*ngSwitchCase","true"])}function BG(n,t){1&n&&(g(0,"span",9),$(1,LG,2,1,"span",10),$(2,VG,1,0,"ng-content",11),_()),2&n&&(E("ngSwitch",!!V().customTrigger),w(2),E("ngSwitchCase",!0))}function HG(n,t){if(1&n){const e=Ot();g(0,"div",13),g(1,"div",14,15),k("@transformPanel.done",function(r){return Fe(e),V()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return Fe(e),V()._handleKeydown(r)}),Le(3,1),_(),_()}if(2&n){const e=V();E("@transformPanelWrap",void 0),w(1),TD("mat-select-panel ",e._getPanelTheme(),""),fs("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),E("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Z("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const jG=[[["mat-select-trigger"]],"*"],UG=["mat-select-trigger","*"],Qk={transformPanelWrap:cr("transformPanelWrap",[zt("* => void",tz("@transformPanel",[ez()],{optional:!0}))]),transformPanel:cr("transformPanel",[bn("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),bn("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),bn("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),zt("void => *",rn("120ms cubic-bezier(0, 0, 0.2, 1)")),zt("* => void",rn("100ms 25ms linear",He({opacity:0})))])};let Jk=0;const Zk=new I("mat-select-scroll-strategy"),GG=new I("MAT_SELECT_CONFIG"),qG={provide:Zk,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};class YG{constructor(t,e){this.source=t,this.value=e}}const KG=ma(g_(Hr(__(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),eI=new I("MatSelectTrigger");let QG=(()=>{class n extends KG{constructor(e,i,r,s,o,a,l,c,u,d,h,p,m,b){var y,D,C;super(o,s,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=m,this._defaultOptions=b,this._panelOpen=!1,this._compareWith=(T,O)=>T===O,this._uid="mat-select-"+Jk++,this._triggerAriaLabelledBy=null,this._destroy=new H,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Jk++,this._panelDoneAnimatingStream=new H,this._overlayPanelClass=(null===(y=this._defaultOptions)||void 0===y?void 0:y.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(C=null===(D=this._defaultOptions)||void 0===D?void 0:D.disableOptionCentering)&&void 0!==C&&C,this.ariaLabel="",this.optionSelectionChanges=_d(()=>{const T=this.options;return T?T.changes.pipe(At(T),yn(()=>Nt(...T.map(O=>O.onSelectionChange)))):this._ngZone.onStable.pipe(wt(1),yn(()=>this.optionSelectionChanges))}),this.openedChange=new R,this._openedStream=this.openedChange.pipe(pt(T=>T),ge(()=>{})),this._closedStream=this.openedChange.pipe(pt(T=>!T),ge(()=>{})),this.selectionChange=new R,this.valueChange=new R,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==b?void 0:b.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=b.typeaheadDebounceInterval),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=ve(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ve(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ve(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=jn(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new $W(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Bd(),qe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(qe(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(At(null),qe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,s=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&s&&!fi(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,s=40===r||38===r,o=i.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(o||13!==r&&32!==r||!i.activeItem||fi(e))if(!o&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&s&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(wt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(s){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new O8(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(qe(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(qe(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Nt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(qe(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Nt(...this.options.map(i=>i._stateChanges)).pipe(qe(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(f(_i),f(Be),f(z),f(ga),f(N),f(at,8),f(Gr,8),f(gi,8),f(yc,8),f(mi,10),kn("tabindex"),f(Zk),f(MS),f(GG,8))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&(Ce(FG,5),Ce(PG,5),Ce(Dk,5)),2&e){let r;j(r=U())&&(i.trigger=r.first),j(r=U())&&(i.panel=r.first),j(r=U())&&(i._overlayDir=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[L,Ie]}),n})(),tI=(()=>{class n extends QG{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-i+s/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(qe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(wt(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=jA(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function(n,t,e,i){return ne+256?Math.max(0,n-256+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new YG(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),s=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let c=this._selectionModel.selected[0]||this.options.first;o=c&&c.group?32:16}r||(o*=-1);const a=0-(e.left+o-(r?s:0)),l=e.right+o-i.width+(r?0:s);a>0?o+=a+8:l>0&&(o-=l+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const s=this._getItemHeight(),o=(s-this._triggerRect.height)/2,a=Math.floor(256/s);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*s:this._scrollTop===r?(e-(this._getItemCount()-a))*s+(s-(this._getItemCount()*s-256)%s):i-s/2,Math.round(-1*l-o))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,o=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>o?this._adjustPanelUp(c,o):a>s?this._adjustPanelDown(a,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const s=Math.round(e-i);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),o=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=jA(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,o),this._offsetY=this._calculateOverlayOffsetY(a,l,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(We(r,eI,5),We(r,D_,5),We(r,C_,5)),2&e){let s;j(s=U())&&(i.customTrigger=s.first),j(s=U())&&(i.options=s),j(s=U())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&k("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Z("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),ie("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Q([{provide:_c,useExisting:n},{provide:v_,useExisting:n}]),L],ngContentSelectors:UG,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(vt(jG),g(0,"div",0,1),k("click",function(){return i.toggle()}),g(3,"div",2),$(4,NG,2,1,"span",3),$(5,BG,3,2,"span",4),_(),g(6,"div",5),K(7,"div",6),_(),_(),$(8,HG,4,14,"ng-template",7),k("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Ii(1);Z("aria-owns",i.panelOpen?i.id+"-panel":null),w(3),E("ngSwitch",i.empty),Z("id",i._valueId),w(1),E("ngSwitchCase",!0),w(1),E("ngSwitchCase",!1),w(3),E("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[y6,ea,cd,Dk,kM,Zo],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Qk.transformPanelWrap,Qk.transformPanel]},changeDetection:0}),n})(),nI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[qG],imports:[[ws,Ah,UA,Ke],fc,vc,UA,Ke]}),n})();const JG=["mat-calendar-body",""];function XG(n,t){if(1&n&&(g(0,"tr",2),g(1,"td",3),S(2),_(),_()),2&n){const e=V();w(1),fs("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Z("colspan",e.numCols),w(1),Ji(" ",e.label," ")}}function ZG(n,t){if(1&n&&(g(0,"td",3),S(1),_()),2&n){const e=V(2);fs("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Z("colspan",e._firstRowOffset),w(1),Ji(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function eq(n,t){if(1&n){const e=Ot();g(0,"td",7),k("click",function(r){const o=Fe(e).$implicit;return V(2)._cellClicked(o,r)}),g(1,"div",8),S(2),_(),K(3,"div",9),_()}if(2&n){const e=t.$implicit,i=t.index,r=V().index,s=V();fs("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),ie("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",s._isActiveCell(r,i))("mat-calendar-body-range-start",s._isRangeStart(e.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",s._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",s._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",s._isInPreview(e.compareValue)),E("ngClass",e.cssClasses)("tabindex",s._isActiveCell(r,i)?0:-1),Z("data-mat-row",r)("data-mat-col",i)("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-selected",s._isSelected(e.compareValue)),w(1),ie("mat-calendar-body-selected",s._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",s.todayValue===e.compareValue),w(1),Ji(" ",e.displayValue," ")}}function tq(n,t){if(1&n&&(g(0,"tr",4),$(1,ZG,2,6,"td",5),$(2,eq,4,46,"td",6),_()),2&n){const e=t.$implicit,i=t.index,r=V();w(1),E("ngIf",0===i&&r._firstRowOffset),w(1),E("ngForOf",e)}}function nq(n,t){if(1&n&&(g(0,"th",5),g(1,"abbr",6),S(2),_(),_()),2&n){const e=t.$implicit;Z("aria-label",e.long),w(1),Z("title",e.long),w(1),Ve(e.narrow)}}const iI=["*"];function iq(n,t){}function rq(n,t){if(1&n){const e=Ot();g(0,"mat-month-view",5),k("activeDateChange",function(r){return Fe(e),V().activeDate=r})("_userSelection",function(r){return Fe(e),V()._dateSelected(r)}),_()}if(2&n){const e=V();E("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function sq(n,t){if(1&n){const e=Ot();g(0,"mat-year-view",6),k("activeDateChange",function(r){return Fe(e),V().activeDate=r})("monthSelected",function(r){return Fe(e),V()._monthSelectedInYearView(r)})("selectedChange",function(r){return Fe(e),V()._goToDateInView(r,"month")}),_()}if(2&n){const e=V();E("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function oq(n,t){if(1&n){const e=Ot();g(0,"mat-multi-year-view",7),k("activeDateChange",function(r){return Fe(e),V().activeDate=r})("yearSelected",function(r){return Fe(e),V()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return Fe(e),V()._goToDateInView(r,"year")}),_()}if(2&n){const e=V();E("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function aq(n,t){}const lq=["button"];function cq(n,t){1&n&&(zc(),g(0,"svg",3),K(1,"path",4),_())}const uq=[[["","matDatepickerToggleIcon",""]]],dq=["[matDatepickerToggleIcon]"],hq=[[["input","matStartDate",""]],[["input","matEndDate",""]]],fq=["input[matStartDate]","input[matEndDate]"];let Dc=(()=>{class n{constructor(){this.changes=new H,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,i){return`${e} \u2013 ${i}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})();class uy{constructor(t,e,i,r,s={},o=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=s,this.compareValue=o,this.rawValue=a}}let Ca=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new R,this.previewChange=new R,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const s=this._getCellFromElement(r.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&dy(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:s}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?s-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(wt(1)).subscribe(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})}_isRangeStart(e){return hy(e,this.startValue,this.endValue)}_isRangeEnd(e){return fy(e,this.startValue,this.endValue)}_isInRange(e){return py(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return hy(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let s=this.rows[i][r-1];if(!s){const o=this.rows[i-1];s=o&&o[o.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let s=this.rows[i][r+1];if(!s){const o=this.rows[i+1];s=o&&o[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(e){return fy(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return py(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return hy(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return fy(e,this.previewStart,this.previewEnd)}_isInPreview(e){return py(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(dy(e)?i=e:dy(e.parentNode)&&(i=e.parentNode),i){const r=i.getAttribute("data-mat-row"),s=i.getAttribute("data-mat-col");if(r&&s)return this.rows[parseInt(r)][parseInt(s)]}return null}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z))},n.\u0275cmp=ne({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Ie],attrs:JG,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&($(0,XG,3,6,"tr",0),$(1,tq,3,2,"tr",1)),2&e&&(E("ngIf",i._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),n})();function dy(n){return"TD"===n.nodeName}function hy(n,t,e){return null!==e&&t!==e&&n=t&&n===e}function py(n,t,e,i){return i&&null!==t&&null!==e&&t!==e&&n>=t&&n<=e}class Gt{constructor(t,e){this.start=t,this.end=e}}let Qr=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new H,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){return new(e||n)(v(void 0),v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),mq=(()=>{class n extends Qr{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),gq=(()=>{class n extends Qr{constructor(e){super(new Gt(null,null),e)}add(e){let{start:i,end:r}=this.selection;null==i?i=e:null==r?r=e:(i=e,r=null),super.updateSelection(new Gt(i,r),this)}isValid(){const{start:e,end:i}=this.selection;return null==e&&null==i||(null!=e&&null!=i?this._isValidDateInstance(e)&&this._isValidDateInstance(i)&&this._adapter.compareDate(e,i)<=0:(null==e||this._isValidDateInstance(e))&&(null==i||this._isValidDateInstance(i)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const rI={provide:Qr,deps:[[new ut,new xn,Qr],rt],useFactory:function(n,t){return n||new mq(t)}},bq={provide:Qr,deps:[[new ut,new xn,Qr],rt],useFactory:function(n,t){return n||new gq(t)}},Oh=new I("MAT_DATE_RANGE_SELECTION_STRATEGY");let vq=(()=>{class n{constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:r,end:s}=i;return null==r?r=e:null==s&&e&&this._dateAdapter.compareDate(e,r)>=0?s=e:(r=e,s=null),new Gt(r,s)}createPreview(e,i){let r=null,s=null;return i.start&&!i.end&&e&&(r=i.start,s=e),new Gt(r,s)}}return n.\u0275fac=function(e){return new(e||n)(v(rt))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Dq={provide:Oh,deps:[[new ut,new xn,Oh],rt],useFactory:function(n,t){return n||new vq(t)}};let sI=(()=>{class n{constructor(e,i,r,s,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rangeStrategy=o,this._rerenderSubscription=X.EMPTY,this.selectedChange=new R,this._userSelection=new R,this.activeDateChange=new R,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._dateAdapter.getYear(this.activeDate),s=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,s,i);let a,l;this._selected instanceof Gt?(a=this._getDateInCurrentMonth(this._selected.start),l=this._getDateInCurrentMonth(this._selected.end)):a=l=this._getDateInCurrentMonth(this._selected),(a!==i||l!==i)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!fi(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const s=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((o,a)=>({long:o,narrow:i[a]}));this._weekdays=s.slice(e).concat(s.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,s=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),s=this._dateAdapter.getDate(e);return new Date(i,r,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Gt?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Be),f(Vi,8),f(rt,8),f(at,8),f(Oh,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&Ce(Ca,5),2&e){let r;j(r=U())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ie],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(e,i){1&e&&(g(0,"table",0),g(1,"thead",1),g(2,"tr"),$(3,nq,3,3,"th",2),_(),g(4,"tr"),K(5,"th",3),_(),_(),g(6,"tbody",4),k("selectedValueChange",function(s){return i._dateSelected(s)})("previewChange",function(s){return i._previewChanged(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),_(),_()),2&e&&(w(3),E("ngForOf",i._weekdays),w(3),E("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},directives:[ir,Ca],encapsulation:2,changeDetection:0}),n})(),oI=(()=>{class n{constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=X.EMPTY,this.selectedChange=new R,this.yearSelected=new R,this.activeDateChange=new R,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),aI(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,s=[];r<24;r++)s.push(i+r),4==s.length&&(this._years.push(s.map(o=>this._createCellForYear(o))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value;this.yearSelected.emit(this._dateAdapter.createDate(i,0,1));let r=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,r,1));this.selectedChange.emit(this._dateAdapter.createDate(i,r,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),s=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new uy(e,r,r,this._shouldEnableYear(e),s)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,i,r,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=s,this._rerenderSubscription=X.EMPTY,this.selectedChange=new R,this.monthSelected=new R,this.activeDateChange=new R,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(At(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const s=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),s)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),s=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(r,"year"):void 0;return new uy(e,i.toLocaleUpperCase(),s,this._shouldEnableMonth(e),o)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(s)==e;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>s}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(e,i,r,s,o){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=s,this._buttonDescriptionId="mat-calendar-button-"+Eq++,this.calendar.stateChanges.subscribe(()=>o.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-wc(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),o=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(s,o)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):aI(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(f(Dc),f(Se(()=>_y)),f(rt,8),f(Vi,8),f(Be))},n.\u0275cmp=ne({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:iI,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(vt(),g(0,"div",0),g(1,"div",1),g(2,"button",2),k("click",function(){return i.currentPeriodClicked()}),g(3,"span"),S(4),_(),K(5,"div",3),_(),K(6,"div",4),Le(7),g(8,"button",5),k("click",function(){return i.previousClicked()}),_(),g(9,"button",6),k("click",function(){return i.nextClicked()}),_(),_(),_()),2&e&&(w(2),Z("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),w(1),Z("id",i._buttonDescriptionId),w(1),Ve(i.periodButtonText),w(1),ie("mat-calendar-invert","month"!==i.calendar.currentView),w(3),E("disabled",!i.previousEnabled()),Z("aria-label",i.prevButtonLabel),w(1),E("disabled",!i.nextEnabled()),Z("aria-label",i.nextButtonLabel))},directives:[zn,J8],encapsulation:2,changeDetection:0}),n})(),_y=(()=>{class n{constructor(e,i,r,s){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new R,this.yearSelected=new R,this.monthSelected=new R,this.viewChanged=new R(!0),this._userSelection=new R,this.stateChanges=new H,this._intlChanges=e.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Gt?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new pc(this.headerComponent||Mq),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate||e.maxDate||e.dateFilter;if(i&&!i.firstChange){const r=this._getCurrentViewComponent();r&&(this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof Gt||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(f(Dc),f(rt,8),f(Vi,8),f(Be))},n.\u0275cmp=ne({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(Ce(sI,5),Ce(cI,5),Ce(oI,5)),2&e){let r;j(r=U())&&(i.monthView=r.first),j(r=U())&&(i.yearView=r.first),j(r=U())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Q([rI]),Ie],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&($(0,iq,0,0,"ng-template",0),g(1,"div",1),$(2,rq,1,8,"mat-month-view",2),$(3,sq,1,6,"mat-year-view",3),$(4,oq,1,6,"mat-multi-year-view",4),_()),2&e&&(E("cdkPortalOutlet",i._calendarHeaderPortal),w(1),E("ngSwitch",i.currentView),w(1),E("ngSwitchCase","month"),w(1),E("ngSwitchCase","year"),w(1),E("ngSwitchCase","multi-year"))},directives:[ur,Lg,ea,cd,sI,cI,oI],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),n})();const uI={transformPanel:cr("transformPanel",[zt("void => enter-dropdown",rn("120ms cubic-bezier(0, 0, 0.2, 1)",PS([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),zt("void => enter-dialog",rn("150ms cubic-bezier(0, 0, 0.2, 1)",PS([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),zt("* => void",rn("100ms linear",He({opacity:0})))]),fadeInCalendar:cr("fadeInCalendar",[bn("void",He({opacity:0})),bn("enter",He({opacity:1})),zt("void => *",rn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Sq=0;const dI=new I("mat-datepicker-scroll-strategy"),Tq={provide:dI,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}},kq=pa(class{constructor(n){this._elementRef=n}});let Iq=(()=>{class n extends kq{constructor(e,i,r,s,o,a){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=s,this._rangeSelectionStrategy=o,this._subscriptions=new X,this._animationDone=new H,this._actionsPortal=null,this._closeButtonText=a.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,s=i instanceof Gt;if(s&&this._rangeSelectionStrategy){const o=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(o,this)}else r&&(s||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(Qr),f(rt),f(Oh,8),f(Dc))},n.\u0275cmp=ne({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&Ce(_y,5),2&e){let r;j(r=U())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&wu("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(Mu("@transformPanel",i._animationState),ie("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[L],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"mat-calendar",1),k("yearSelected",function(s){return i.datepicker._selectYear(s)})("monthSelected",function(s){return i.datepicker._selectMonth(s)})("viewChanged",function(s){return i.datepicker._viewChanged(s)})("_userSelection",function(s){return i._handleUserSelection(s)}),_(),$(2,aq,0,0,"ng-template",2),g(3,"button",3),k("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),S(4),_(),_()),2&e&&(ie("mat-datepicker-content-container-with-actions",i._actionsPortal),w(1),E("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),w(1),E("cdkPortalOutlet",i._actionsPortal),w(1),ie("cdk-visually-hidden",!i._closeButtonFocused),E("color",i.color||"primary"),w(1),Ve(i._closeButtonText))},directives:[z8,_y,Zo,ur,zn],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[uI.transformPanel,uI.fadeInCalendar]},changeDetection:0}),n})(),Ws=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u){this._overlay=i,this._ngZone=r,this._viewContainerRef=s,this._dateAdapter=a,this._dir=l,this._model=u,this._inputStateChanges=X.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new R,this.monthSelected=new R,this.viewChanged=new R(!0),this.openedStream=new R,this.closedStream=new R,this._opened=!1,this.id="mat-datepicker-"+Sq++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new H,this._scrollStrategy=o}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=ve(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=ve(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=ve(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const s=`${r}`.trim();s&&e.push(s)}}return e}(e)}get opened(){return this._opened}set opened(e){ve(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof ry&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Xl(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const i=this._componentRef.instance;i._startExitAnimation(),i._animationDone.pipe(wt(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=this.datepickerInput.getOverlayLabelId(),r=new pc(Iq,this._viewContainerRef),s=this._overlayRef=this._overlay.create(new mc({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")})),o=s.overlayElement;o.setAttribute("role","dialog"),i&&o.setAttribute("aria-labelledby",i),e&&o.setAttribute("aria-modal","true"),this._getCloseStream(s).subscribe(a=>{a&&a.preventDefault(),this.close()}),this._componentRef=s.attach(r),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(wt(1)).subscribe(()=>s.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",s="above"===this.yPosition?"bottom":"top",o="top"===s?"bottom":"top";return e.withPositions([{originX:i,originY:o,overlayX:i,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o}])}_getCloseStream(e){return Nt(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(pt(i=>27===i.keyCode&&!fi(i)||this.datepickerInput&&fi(i,"altKey")&&38===i.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(yi),f(z),f(it),f(dI),f(rt,8),f(at,8),f(W,8),f(Qr))},n.\u0275dir=M({type:n,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ie]}),n})(),xq=(()=>{class n extends Ws{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Q([rI,{provide:Ws,useExisting:n}]),L],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})();class Rh{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let hI=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new R,this.dateInput=new R,this.stateChanges=new H,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=X.EMPTY,this._localeSubscription=X.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!o||this._matchesFilter(o)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMinDate();return!a||!o||this._dateAdapter.compareDate(a,o)<=0?null:{matDatepickerMin:{min:a,actual:o}}},this._maxValidator=s=>{const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),a=this._getMaxDate();return!a||!o||this._dateAdapter.compareDate(a,o)>=0?null:{matDatepickerMax:{max:a,actual:o}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=ve(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Rh(this,this._elementRef.nativeElement)),this.dateChange.emit(new Rh(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){fI(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r),this._dateAdapter.sameDate(r,this.value)?(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(r),this._cvaOnChange(r),this.dateInput.emit(new Rh(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Rh(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ie]}),n})();function fI(n,t){const e=Object.keys(n);for(let i of e){const{previousValue:r,currentValue:s}=n[i];if(!t.isDateInstance(r)||!t.isDateInstance(s))return!0;if(!t.sameDate(r,s))return!0}return!1}const Oq={provide:an,useExisting:Se(()=>yy),multi:!0},Rq={provide:gt,useExisting:Se(()=>yy),multi:!0};let yy=(()=>{class n extends hI{constructor(e,i,r,s){super(e,i,r),this._formField=s,this._closedSubscription=X.EMPTY,this._validator=zr.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(rt,8),f(Vi,8),f(yc,8))},n.\u0275dir=M({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&k("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)}),2&e&&(ni("disabled",i.disabled),Z("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Q([Oq,Rq,{provide:Pk,useExisting:n}]),L]}),n})(),pI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),mI=(()=>{class n{constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=X.EMPTY;const s=Number(r);this.tabIndex=s||0===s?s:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=ve(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:G(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:G(),r=this.datepicker?Nt(this.datepicker.openedStream,this.datepicker.closedStream):G();this._stateChanges.unsubscribe(),this._stateChanges=Nt(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(f(Dc),f(Be),kn("tabindex"))},n.\u0275cmp=ne({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&We(r,pI,5),2&e){let s;j(s=U())&&(i._customIcon=s.first)}},viewQuery:function(e,i){if(1&e&&Ce(lq,5),2&e){let r;j(r=U())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&k("click",function(s){return i._open(s)}),2&e&&(Z("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),ie("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ie],ngContentSelectors:dq,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(vt(uq),g(0,"button",0,1),$(2,cq,2,0,"svg",2),Le(3),_()),2&e&&(E("disabled",i.disabled)("disableRipple",i.disableRipple),Z("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),w(2),E("ngIf",!i._customIcon))},directives:[zn,Vn],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})();const Fh=new I("MAT_DATE_RANGE_INPUT_PARENT"),gI=__((()=>{class n extends hI{constructor(e,i,r,s,o,a,l,c){super(i,l,c),this._rangeInput=e,this._defaultErrorStateMatcher=r,this._injector=s,this._parentForm=o,this._parentFormGroup=a}ngOnInit(){const e=this._injector.get(mi,null,Y.Self|Y.Optional);e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e);const i=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==i||i._validatorOnChange()}}return n.\u0275fac=function(e){return new(e||n)(f(Fh),f(N),f(ga),f(_e),f(Gr,8),f(gi,8),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,features:[L]}),n})());let _I=(()=>{class n extends gI{constructor(e,i,r,s,o,a,l,c){super(e,i,r,s,o,a,l,c),this._startValidator=u=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(u.value)),h=this._model?this._model.selection.end:null;return!d||!h||this._dateAdapter.compareDate(d,h)<=0?null:{matStartDateInvalid:{end:h,actual:d}}},this._validator=zr.compose([...super._getValidators(),this._startValidator])}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||((null===(i=e.oldValue)||void 0===i?void 0:i.start)?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const i=new Gt(e,this._model.selection.end);this._model.updateSelection(i,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}getMirrorValue(){const e=this._elementRef.nativeElement,i=e.value;return i.length>0?i:e.placeholder}}return n.\u0275fac=function(e){return new(e||n)(f(Fh),f(N),f(ga),f(_e),f(Gr,8),f(gi,8),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(e,i){1&e&&k("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ni("disabled",i.disabled),Z("id",i._rangeInput.id)("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Q([{provide:an,useExisting:n,multi:!0},{provide:gt,useExisting:n,multi:!0}]),L]}),n})(),yI=(()=>{class n extends gI{constructor(e,i,r,s,o,a,l,c){super(e,i,r,s,o,a,l,c),this._endValidator=u=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(u.value)),h=this._model?this._model.selection.start:null;return!d||!h||this._dateAdapter.compareDate(d,h)>=0?null:{matEndDateInvalid:{start:h,actual:d}}},this._validator=zr.compose([...super._getValidators(),this._endValidator])}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){var i;return!(!super._shouldHandleChangeEvent(e)||((null===(i=e.oldValue)||void 0===i?void 0:i.end)?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const i=new Gt(this._model.selection.start,e);this._model.updateSelection(i,this)}}_onKeydown(e){8===e.keyCode&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Fh),f(N),f(ga),f(_e),f(Gr,8),f(gi,8),f(rt,8),f(Vi,8))},n.\u0275dir=M({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,i){1&e&&k("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("keydown",function(s){return i._onKeydown(s)})("blur",function(){return i._onBlur()}),2&e&&(ni("disabled",i.disabled),Z("aria-haspopup",i._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==i._rangeInput.rangePicker?null:i._rangeInput.rangePicker.opened)&&i._rangeInput.rangePicker.id||null)("min",i._getMinDate()?i._dateAdapter.toIso8601(i._getMinDate()):null)("max",i._getMaxDate()?i._dateAdapter.toIso8601(i._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Q([{provide:an,useExisting:n,multi:!0},{provide:gt,useExisting:n,multi:!0}]),L]}),n})(),Fq=0,Pq=(()=>{class n{constructor(e,i,r,s,o){if(this._changeDetectorRef=e,this._elementRef=i,this._dateAdapter=s,this._formField=o,this._closedSubscription=X.EMPTY,this.id="mat-date-range-input-"+Fq++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new H,null==o?void 0:o._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const a=i.nativeElement.classList;a.add("mat-mdc-input-element"),a.add("mat-mdc-form-field-input-control")}this.ngControl=r}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var e,i;const r=(null===(e=this._startInput)||void 0===e?void 0:e._getPlaceholder())||"",s=(null===(i=this._endInput)||void 0===i?void 0:i._getPlaceholder())||"";return r||s?`${r} ${this.separator} ${s}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{var i,r;null===(i=this._startInput)||void 0===i||i._onTouched(),null===(r=this._endInput)||void 0===r||r._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(e){this._required=ve(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._startInput,r=this._endInput,s=i&&i._matchesFilter(i.value),o=r&&r._matchesFilter(i.value);this._dateFilter=e,i&&i._matchesFilter(i.value)!==s&&i._validatorOnChange(),r&&r._matchesFilter(r.value)!==o&&r._validatorOnChange()}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._revalidate())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const i=ve(e);i!==this._groupDisabled&&(this._groupDisabled=i,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),i=!!this._endInput&&this._endInput.isEmpty();return e&&i}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),Nt(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){fI(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Be),f(N),f(Wt,10),f(rt,8),f(yc,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-date-range-input"]],contentQueries:function(e,i,r){if(1&e&&(We(r,_I,5),We(r,yI,5)),2&e){let s;j(s=U())&&(i._startInput=s.first),j(s=U())&&(i._endInput=s.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,i){2&e&&(Z("id",null)("aria-labelledby",i._getAriaLabelledby())("aria-describedby",i._ariaDescribedBy)("data-mat-calendar",i.rangePicker?i.rangePicker.id:null),ie("mat-date-range-input-hide-placeholders",i._shouldHidePlaceholders())("mat-date-range-input-required",i.required))},inputs:{separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled"},exportAs:["matDateRangeInput"],features:[Q([{provide:_c,useExisting:n},{provide:Fh,useExisting:n}]),Ie],ngContentSelectors:fq,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(e,i){1&e&&(vt(hq),g(0,"div",0),k("cdkFocusChange",function(s){return i._updateFocus(s)}),g(1,"div",1),Le(2),g(3,"span",2),S(4),_(),_(),g(5,"span",3),S(6),_(),g(7,"div",4),Le(8,1),_(),_()),2&e&&(w(4),Ve(i._getInputMirrorValue()),w(1),ie("mat-date-range-input-separator-hidden",i._shouldHideSeparator()),w(1),Ve(i.separator))},directives:[Lg],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),n})(),Nq=(()=>{class n extends Ws{_forwardContentValues(e){super._forwardContentValues(e);const i=this.datepickerInput;i&&(e.comparisonStart=i.comparisonStart,e.comparisonEnd=i.comparisonEnd)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275cmp=ne({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[Q([bq,Dq,{provide:Ws,useExisting:n}]),L],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),n})(),bI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[Dc,Tq],imports:[[ws,w_,Ah,IS,Sh,Ke],fc]}),n})();function Lq(n,t){if(1&n&&(g(0,"mat-option",18),S(1),_()),2&n){const e=t.$implicit;E("value",e),w(1),Ve(e)}}function Vq(n,t){if(1&n&&(g(0,"mat-option",18),S(1),_()),2&n){const e=t.$implicit;E("value",e.id),w(1),Ve(e.name)}}function Bq(n,t){if(1&n&&(g(0,"mat-form-field"),g(1,"mat-label"),S(2,"Users"),_(),g(3,"mat-select",19),$(4,Vq,2,2,"mat-option",5),_(),_()),2&n){const e=V();w(4),E("ngForOf",e.users)}}const Hq=function(){return["/transactions"]};let jq=(()=>{class n{constructor(e,i,r,s,o){this.transactionService=e,this.fb=i,this.commonService=r,this.dialog=s,this.router=o,this.transactionList=[],this.financeType=["Earn","Expense"],this.categoryList=[],this.users=[],this.showUser=!1,this.displaySelectedCategory="",this.actionForm=this.fb.group({ft:[null,[zr.required]],c:[null,[zr.required]],u:[null],a:[null,[zr.required]],d:[new Date,[zr.required]],cm:[""]})}ngOnInit(){this.categoryList=this.transactionService.getAllCategory(),this.transactionList=this.transactionService.getAllTransactions(),this.users=this.transactionService.getAllUsers()}selectCategory(){this.dialog.open(Kk,{width:"80%"}).afterClosed().subscribe(e=>{var i;e&&(e.forEach(r=>{this.displaySelectedCategory+=r.name+" "}),null===(i=this.actionForm.get("c"))||void 0===i||i.setValue(e.map(r=>r.id).toString()))})}saveTransaction(){this.actionForm.value.d=this.actionForm.value.d.getTime();const e=this.commonService.getTransactionList();e.push(this.actionForm.value),this.commonService.setTransaction(e),this.router.navigate(["/transactions"])}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(G_),f(js),f(dr),f(Pt))},n.\u0275cmp=ne({type:n,selectors:[["app-action"]],decls:45,vars:9,consts:[[1,"action-main-container"],[1,"action-content"],[3,"formGroup"],[1,"form-row"],["formControlName","ft"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"],["matInput","","formControlName","a","type","number"],[1,"example-full-width"],["matInput","","formControlName","d",3,"matDatepicker"],["matIconSuffix","",3,"for"],["matDatepickerToggleIcon",""],["picker",""],[3,"change"],[4,"ngIf"],["matInput","","formControlName","cm"],["mat-raised-button","","color","primary",3,"disabled","click"],["mat-raised-button","","color","primary",3,"routerLink"],[3,"value"],["formControlName","u"]],template:function(e,i){if(1&e&&(g(0,"div",0),g(1,"div",1),g(2,"form",2),g(3,"div",3),g(4,"mat-form-field"),g(5,"mat-label"),S(6,"Earn OR Expense"),_(),g(7,"mat-select",4),$(8,Lq,2,2,"mat-option",5),_(),_(),_(),g(9,"div",3),g(10,"div"),S(11),_(),g(12,"button",6),k("click",function(){return i.selectCategory()}),S(13,"Select Category"),_(),_(),g(14,"div",3),g(15,"mat-form-field"),g(16,"mat-label"),S(17,"Amount"),_(),K(18,"input",7),_(),_(),g(19,"div",3),g(20,"mat-form-field",8),g(21,"mat-label"),S(22,"Choose a date"),_(),K(23,"input",9),g(24,"mat-datepicker-toggle",10),g(25,"mat-icon",11),S(26,"calendar_today"),_(),_(),K(27,"mat-datepicker",null,12),_(),_(),g(29,"div",3),g(30,"mat-checkbox",13),k("change",function(){return i.showUser=!i.showUser}),S(31,"Want to select any user?"),_(),$(32,Bq,5,1,"mat-form-field",14),_(),g(33,"div",3),g(34,"mat-form-field"),g(35,"mat-label"),S(36,"Comment"),_(),K(37,"textarea",15),_(),_(),g(38,"div",3),g(39,"button",16),k("click",function(){return i.saveTransaction()}),S(40,"Save"),_(),K(41,"br"),K(42,"br"),g(43,"button",17),S(44,"Back To Transactions"),_(),_(),_(),_(),_()),2&e){const r=Ii(28);w(2),E("formGroup",i.actionForm),w(6),E("ngForOf",i.financeType),w(3),Ve(i.displaySelectedCategory),w(12),E("matDatepicker",r),w(1),E("for",r),w(8),E("ngIf",i.showUser),w(7),E("disabled",i.actionForm.invalid),w(4),E("routerLink",Ar(8,Hq))}},directives:[vh,dh,gi,bc,Us,tI,_a,uc,ir,zn,Th,jr,cc,yy,mI,zs,pI,xq,ly,Vn,Gl,D_],styles:[".action-main-container[_ngcontent-%COMP%]{min-height:100vh;display:flex;justify-content:center;align-items:center;text-align:center}.action-main-container[_ngcontent-%COMP%] .action-content[_ngcontent-%COMP%]{width:80%;padding:10px;background:#FFFFFF}.action-main-container[_ngcontent-%COMP%] .action-content[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{margin:5px 0}"]}),n})(),Uq=(()=>{class n{constructor(e,i,r){this.dialog=e,this.commonService=i,this.transactionService=r,this.categoryList=[]}ngOnInit(){this.transactionService.category.subscribe(e=>{this.categoryList=e}),this.categoryList=this.transactionService.getAllCategory()}addNewCategory(){this.dialog.open(cy).afterClosed().subscribe(e=>{e&&(this.categoryList.push({id:this.categoryList.length+1,name:e.name,repeatDate:e.isRepeat?e.repeatDate:0}),this.transactionService.categoryList=this.categoryList,this.transactionService.updateConfig())})}}return n.\u0275fac=function(e){return new(e||n)(f(dr),f(js),f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-category-manage"]],decls:9,vars:2,consts:[[1,"category-main-container"],[1,"category-action"],["mat-raised-button","","color","primary",3,"click"],[3,"type","categoryList"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"h2"),S(3,"Category"),_(),g(4,"button",2),k("click",function(){return i.addNewCategory()}),g(5,"mat-icon"),S(6,"add"),_(),S(7,"Add New Category"),_(),_(),K(8,"app-category-tree",3),_()),2&e&&(w(8),E("type","manage")("categoryList",i.categoryList))},directives:[zn,zs,Yk],styles:[".category-main-container[_ngcontent-%COMP%]{padding:10px}.category-main-container[_ngcontent-%COMP%] .category-action[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.category-main-container[_ngcontent-%COMP%] .category-action[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-family:Oswald-Medium,sans-serif}"]}),n})(),vI=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.name=""}ngOnInit(){this.data&&(this.name=this.data.name)}saveUser(){this.dialogRef.close(this.name)}}return n.\u0275fac=function(e){return new(e||n)(f(Hs),f(ay))},n.\u0275cmp=ne({type:n,selectors:[["app-users-add"]],decls:9,vars:1,consts:[[1,"form-content"],["matInput","",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div"),g(2,"mat-form-field"),g(3,"mat-label"),S(4,"Name"),_(),g(5,"input",1),k("ngModelChange",function(s){return i.name=s}),_(),_(),_(),g(6,"div"),g(7,"button",2),k("click",function(){return i.saveUser()}),S(8,"Save"),_(),_(),_()),2&e&&(w(5),E("ngModel",i.name))},directives:[bc,Us,Th,jr,_a,bh,zn],styles:[""]}),n})();function $q(n,t){if(1&n){const e=Ot();g(0,"li"),g(1,"div",5),S(2),_(),g(3,"div",6),g(4,"mat-icon",7),k("click",function(){const s=Fe(e).$implicit;return V().editUser(s)}),S(5,"edit"),_(),_(),_()}if(2&n){const e=t.$implicit;w(2),Ve(e.name)}}let zq=(()=>{class n{constructor(e,i,r){this.dialog=e,this.commonService=i,this.transactionService=r,this.usersList=[]}ngOnInit(){this.transactionService.users.subscribe(e=>{this.usersList=e}),this.usersList=this.transactionService.getAllUsers()}addNewUser(){this.dialog.open(vI).afterClosed().subscribe(e=>{e&&(this.usersList.push({id:this.usersList.length+1,name:e}),this.transactionService.userList=this.usersList,this.transactionService.updateConfig())})}editUser(e){this.dialog.open(vI,{data:{name:e.name}}).afterClosed().subscribe(i=>{i&&(e.name=i,this.transactionService.userList=this.usersList,this.transactionService.updateConfig())})}}return n.\u0275fac=function(e){return new(e||n)(f(dr),f(js),f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-user-manage"]],decls:11,vars:1,consts:[[1,"users-main-container"],[1,"users-action"],["mat-raised-button","","color","primary",3,"click"],[1,"users-list"],[4,"ngFor","ngForOf"],[1,"u-name"],[1,"u-action"],[3,"click"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"h2"),S(3,"Users"),_(),g(4,"button",2),k("click",function(){return i.addNewUser()}),g(5,"mat-icon"),S(6,"add"),_(),S(7,"Add New User"),_(),_(),g(8,"div",3),g(9,"ul"),$(10,$q,6,1,"li",4),_(),_(),_()),2&e&&(w(10),E("ngForOf",i.usersList))},directives:[zn,zs,ir],styles:[".users-main-container[_ngcontent-%COMP%]{padding:10px}.users-main-container[_ngcontent-%COMP%] .users-action[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.users-main-container[_ngcontent-%COMP%] .users-action[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-family:Oswald-Medium,sans-serif}.users-main-container[_ngcontent-%COMP%] .users-list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;padding:5px}.users-main-container[_ngcontent-%COMP%] .users-list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:#fff;font-size:14px;font-family:Roboto-Medium,sans-serif}"]}),n})();function Wq(n,t){if(1&n&&(g(0,"mat-option",12),S(1),_()),2&n){const e=t.$implicit;E("value",e),w(1),Ve(e)}}function Gq(n,t){if(1&n&&(g(0,"mat-option",12),S(1),_()),2&n){const e=t.$implicit;E("value",e.id),w(1),Ve(e.name)}}let qq=(()=>{class n{constructor(e,i,r,s,o){this.transactionService=e,this.commonService=i,this.dialog=r,this.fb=s,this.dialogRef=o,this.financeType=["Earn","Expense"],this.categoryList=[],this.users=[],this.displaySelectedCategory="",this.searchForm=this.fb.group({ft:[null],c:[null],u:[null],sd:[],ed:[]})}ngOnInit(){this.categoryList=this.transactionService.getAllCategory(),this.users=this.transactionService.getAllUsers()}selectCategory(){this.dialog.open(Kk,{width:"80%"}).afterClosed().subscribe(e=>{e&&(e.forEach(i=>{this.displaySelectedCategory+=i.name+" "}),this.searchForm.value.c=e.map(i=>i.id).toString())})}filterAction(){this.searchForm.value.sd&&(this.searchForm.value.sd=new Date(this.searchForm.value.sd.setHours(0,0,0,0)).getTime()),this.searchForm.value.ed&&(this.searchForm.value.ed=new Date(this.searchForm.value.ed.setHours(23,59,59,0)).getTime()),this.dialogRef.close(this.searchForm.value)}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(js),f(dr),f(G_),f(Hs))},n.\u0275cmp=ne({type:n,selectors:[["app-transaction-filter"]],decls:34,vars:6,consts:[[1,"filter-main-container"],[3,"formGroup"],[1,"form-row"],["formControlName","ft"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"],[3,"rangePicker"],["formControlName","sd","matStartDate","","placeholder","Start date"],["formControlName","ed","matEndDate","","placeholder","End date"],["matIconSuffix","",3,"for"],["picker",""],["formControlName","u"],[3,"value"]],template:function(e,i){if(1&e&&(g(0,"div",0),g(1,"form",1),g(2,"div",2),g(3,"mat-form-field"),g(4,"mat-label"),S(5,"Earn OR Expense"),_(),g(6,"mat-select",3),$(7,Wq,2,2,"mat-option",4),_(),_(),_(),g(8,"div",2),g(9,"div"),S(10),_(),g(11,"button",5),k("click",function(){return i.selectCategory()}),S(12,"Select Category"),_(),_(),g(13,"div",2),g(14,"mat-form-field"),g(15,"mat-label"),S(16,"Enter a date range"),_(),g(17,"mat-date-range-input",6),K(18,"input",7),K(19,"input",8),_(),g(20,"mat-hint"),S(21,"MM/DD/YYYY \u2013 MM/DD/YYYY"),_(),K(22,"mat-datepicker-toggle",9),K(23,"mat-date-range-picker",null,10),_(),_(),g(25,"div",2),g(26,"mat-form-field"),g(27,"mat-label"),S(28,"Users"),_(),g(29,"mat-select",11),$(30,Gq,2,2,"mat-option",4),_(),_(),_(),g(31,"div",2),g(32,"button",5),k("click",function(){return i.filterAction()}),S(33,"Filter"),_(),_(),_(),_()),2&e){const r=Ii(24);w(1),E("formGroup",i.searchForm),w(6),E("ngForOf",i.financeType),w(3),Ve(i.displaySelectedCategory),w(7),E("rangePicker",r),w(5),E("for",r),w(8),E("ngForOf",i.users)}},directives:[vh,dh,gi,bc,Us,tI,_a,uc,ir,zn,Pq,jr,_I,yI,X6,mI,Nq,D_],styles:[".filter-main-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:80%;padding:10px;background:#FFFFFF;margin:0 auto}.filter-main-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{margin:10px 0;text-align:center}.filter-main-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),n})(),Yq=(()=>{class n{constructor(e){this.transactionService=e,this.categoryList=[],this.categoryList=this.transactionService.getAllCategory()}transform(e,...i){return i.length>0&&Array.isArray(i[0])?i[0].filter(r=>e.split(",").indexOf(r.id.toString())>-1).map(r=>r.name).join(" "):e}}return n.\u0275fac=function(e){return new(e||n)(f(Hi,16))},n.\u0275pipe=Lt({name:"cateoryFlag",type:n,pure:!0}),n})(),Kq=(()=>{class n{transform(e,...i){if(i.length>0&&Array.isArray(i[0])&&null!=e){const r=i[0].find(s=>e==s.id);if(r)return r.name}return e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Lt({name:"userFlag",type:n,pure:!0}),n})();function Qq(n,t){if(1&n){const e=Ot();g(0,"button",13),k("click",function(){return Fe(e),V().openTransactionFilter()}),g(1,"mat-icon"),S(2,"filter_list"),_(),S(3," Filter"),_()}}function Jq(n,t){if(1&n){const e=Ot();g(0,"button",13),k("click",function(){return Fe(e),V().clearFilter()}),g(1,"mat-icon"),S(2,"filter_list"),_(),S(3," Clear Filter"),_()}}const Xq=function(n,t){return{earn:n,expense:t}};function Zq(n,t){if(1&n&&(g(0,"div",14),g(1,"div",15),g(2,"div",16),S(3),Tr(4,"cateoryFlag"),_(),g(5,"em"),S(6),Tr(7,"userFlag"),_(),K(8,"br"),g(9,"em"),S(10),_(),g(11,"div",17),S(12),Tr(13,"date"),_(),_(),g(14,"div",18),g(15,"div",19),S(16),Tr(17,"currency"),_(),_(),_()),2&n){const e=t.$implicit,i=V();w(3),Ve(ys(4,6,e.c,i.categoryList)),w(3),Ve(ys(7,9,e.u,i.userList)),w(4),Ve(e.cm),w(2),Ve(function(n,t,e){const i=n+20,r=A(),s=to(r,i);return wl(r,Dl(r,i)?Jw(r,Jt(),t,s.transform,e,s):s.transform(e))}(13,12,e.d)),w(3),E("ngClass",im(17,Xq,"Earn"==e.ft,"Expense"==e.ft)),w(1),Ji(" ",ys(17,14,e.a,"INR")," ")}}const eY=function(){return["/action"]},tY=function(n,t,e){return{earn:n,expense:t,warning:e}};let nY=(()=>{class n{constructor(e,i,r){this.transactionService=e,this.commonService=i,this.dialog=r,this.transactionList=[],this.totalEarn=0,this.totalExpense=0,this.totalBalance=0,this.isFilter=!1,this.categoryList=[],this.userList=[],this.transactionService.transactions.subscribe(s=>{this.generateTransactions(s)}),this.transactionService.category.subscribe(s=>{this.categoryList=s}),this.transactionService.users.subscribe(s=>{this.userList=s})}ngOnDestroy(){}ngOnInit(){this.transactionService.emitAllTransactions()}generateTransactions(e){this.transactionList=e.sort((i,r)=>r.d-i.d),this.totalExpense=0,this.totalEarn=0;for(let i of this.transactionList)"Earn"==i.ft&&(this.totalEarn+=i.a),"Expense"==i.ft&&(this.totalExpense+=i.a);this.totalBalance=this.totalEarn-this.totalExpense}openTransactionFilter(){this.dialog.open(qq).afterClosed().subscribe(e=>{if(e){this.isFilter=!0,this.totalExpense=0,this.totalEarn=0,this.transactionList=this.commonService.getTransactionList().sort((i,r)=>r.d-i.d).filter(i=>e&&(e.ft&&i.ft==e.ft||null==e.ft)&&(e.c&&i.c.indexOf(e.c)>-1||null==e.c)&&(e.u&&e.u==i.u||null==e.u)&&(e.sd&&e.sd<=i.d||null==e.sd)&&(e.ed&&e.ed>=i.d||null==e.ed));for(let i of this.transactionList)"Earn"==i.ft&&(this.totalEarn+=i.a),"Expense"==i.ft&&(this.totalExpense+=i.a);this.totalBalance=this.totalEarn-this.totalExpense}})}clearFilter(){this.generateTransactions(this.transactionService.getAllTransactions()),this.isFilter=!1}}return n.\u0275fac=function(e){return new(e||n)(f(Hi),f(js),f(dr))},n.\u0275cmp=ne({type:n,selectors:[["app-transactions"]],decls:30,vars:22,consts:[[1,"trans-container"],[1,"trans-action"],["mat-raised-button","","color","accent",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],[1,"trans-group"],[1,"group-left"],[1,"earn"],[1,"group-middle"],[3,"ngClass"],[1,"group-right"],[1,"expense"],[1,"trans-list"],["class","trans-item",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"],[1,"trans-item"],[1,"trans-item-left"],[1,"trans-c"],[1,"trans-d"],[1,"trans-item-right"],[1,"trans-a",3,"ngClass"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"h2"),S(3,"Transactions"),_(),g(4,"button",2),g(5,"mat-icon"),S(6,"add"),_(),_(),$(7,Qq,4,0,"button",3),$(8,Jq,4,0,"button",3),_(),g(9,"div",4),g(10,"div",5),g(11,"span"),S(12,"Earn"),_(),g(13,"label",6),S(14),Tr(15,"currency"),_(),_(),g(16,"div",7),g(17,"span"),S(18,"Balance"),_(),g(19,"label",8),S(20),Tr(21,"currency"),_(),_(),g(22,"div",9),g(23,"span"),S(24,"Expense"),_(),g(25,"label",10),S(26),Tr(27,"currency"),_(),_(),_(),g(28,"div",11),$(29,Zq,18,20,"div",12),_(),_()),2&e&&(w(4),E("routerLink",Ar(17,eY)),w(3),E("ngIf",!i.isFilter),w(1),E("ngIf",i.isFilter),w(6),Ve(ys(15,8,i.totalEarn,"INR")),w(5),E("ngClass",Qw(18,tY,i.totalBalance>0,i.totalBalance<0,i.totalBalance<100&&i.totalBalance>0)),w(1),Ve(ys(21,11,i.totalBalance,"INR")),w(6),Ve(ys(27,14,i.totalExpense,"INR")),w(3),E("ngForOf",i.transactionList))},directives:[zn,Gl,zs,Vn,Zo,ir],pipes:[FM,Yq,Kq,OM],styles:[".trans-container[_ngcontent-%COMP%]{padding:10px}.trans-container[_ngcontent-%COMP%] .trans-action[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.trans-container[_ngcontent-%COMP%] .trans-action[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-family:Oswald-Medium,sans-serif}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:10px;background:#372060;margin:10px 0}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%]{text-align:right}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%]{text-align:center}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#fff;font-family:Roboto-Medium,sans-serif}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:20px;font-family:Oswald-Medium,sans-serif}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label.earn[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label.earn[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label.earn[_ngcontent-%COMP%]{color:#38cc8a}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label.expense[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label.expense[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label.expense[_ngcontent-%COMP%]{color:#d24b4b}.trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-left[_ngcontent-%COMP%] label.warning[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-right[_ngcontent-%COMP%] label.warning[_ngcontent-%COMP%], .trans-container[_ngcontent-%COMP%] .trans-group[_ngcontent-%COMP%] .group-middle[_ngcontent-%COMP%] label.warning[_ngcontent-%COMP%]{color:#ffd740}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%]{height:76vh;overflow-y:scroll}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%]{display:flex;color:#fff;justify-content:space-between;padding:10px;border-bottom:1px solid #2e1f48}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-left[_ngcontent-%COMP%] .trans-c[_ngcontent-%COMP%]{font-family:Roboto-Medium,sans-serif;font-size:16px}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-right[_ngcontent-%COMP%] .trans-a[_ngcontent-%COMP%]{font-family:Oswald-Medium,sans-serif;font-size:20px}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-right[_ngcontent-%COMP%] .trans-a.earn[_ngcontent-%COMP%]{color:#38cc8a}.trans-container[_ngcontent-%COMP%] .trans-list[_ngcontent-%COMP%] .trans-item[_ngcontent-%COMP%] .trans-item-right[_ngcontent-%COMP%] .trans-a.expense[_ngcontent-%COMP%]{color:#d24b4b}"]}),n})();function iY(n,t){1&n&&Le(0)}const by=["*"];function rY(n,t){}const sY=function(n){return{animationDuration:n}},oY=function(n,t){return{value:n,params:t}},aY=["tabBodyWrapper"],lY=["tabHeader"];function cY(n,t){}function uY(n,t){1&n&&$(0,cY,0,0,"ng-template",9),2&n&&E("cdkPortalOutlet",V().$implicit.templateLabel)}function dY(n,t){1&n&&S(0),2&n&&Ve(V().$implicit.textLabel)}function hY(n,t){if(1&n){const e=Ot();g(0,"div",6),k("click",function(){const r=Fe(e),s=r.$implicit,o=r.index,a=V(),l=Ii(1);return a._handleClick(s,l,o)})("cdkFocusChange",function(r){const o=Fe(e).index;return V()._tabFocusChanged(r,o)}),g(1,"div",7),$(2,uY,1,1,"ng-template",8),$(3,dY,1,1,"ng-template",8),_(),_()}if(2&n){const e=t.$implicit,i=t.index,r=V();ie("mat-tab-label-active",r.selectedIndex==i),E("id",r._getTabLabelId(i))("disabled",e.disabled)("matRippleDisabled",e.disabled||r.disableRipple),Z("tabIndex",r._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(i))("aria-selected",r.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),w(2),E("ngIf",e.templateLabel),w(1),E("ngIf",!e.templateLabel)}}function fY(n,t){if(1&n){const e=Ot();g(0,"mat-tab-body",10),k("_onCentered",function(){return Fe(e),V()._removeTabBodyWrapperHeight()})("_onCentering",function(r){return Fe(e),V()._setTabBodyWrapperHeight(r)}),_()}if(2&n){const e=t.$implicit,i=t.index,r=V();ie("mat-tab-body-active",r.selectedIndex===i),E("id",r._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration),Z("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const CI=["tabListContainer"],DI=["tabList"],wI=["nextPaginator"],EI=["previousPaginator"],mY=new I("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let Ph=(()=>{class n{constructor(e,i,r,s){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=r,this._animationMode=s}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const i=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=i.left,r.style.width=i.width}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(mY),f(Tt,8))},n.\u0275dir=M({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&&ie("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),n})();const MI=new I("MatTabContent"),SI=new I("MatTabLabel"),AI=new I("MAT_TAB"),_Y=Hr(class{}),TI=new I("MAT_TAB_GROUP");let kI=(()=>{class n extends _Y{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new H,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Kr(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(f(it),f(TI,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(We(r,SI,5),We(r,MI,7,dt)),2&e){let s;j(s=U())&&(i.templateLabel=s.first),j(s=U())&&(i._explicitContent=s.first)}},viewQuery:function(e,i){if(1&e&&Ce(dt,7),2&e){let r;j(r=U())&&(i._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Q([{provide:AI,useExisting:n}]),L,Ie],ngContentSelectors:by,decls:1,vars:0,template:function(e,i){1&e&&(vt(),$(0,iY,1,0,"ng-template"))},encapsulation:2}),n})();const yY={translateTab:cr("translateTab",[bn("center, void, left-origin-center, right-origin-center",He({transform:"none"})),bn("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),bn("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),zt("* => left, * => right, left => center, right => center",rn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zt("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)"}),rn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zt("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)"}),rn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let bY=(()=>{class n extends ur{constructor(e,i,r,s){super(e,i,s),this._host=r,this._centeringSub=X.EMPTY,this._leavingSub=X.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(At(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(ii),f(it),f(Se(()=>II)),f(W))},n.\u0275dir=M({type:n,selectors:[["","matTabBodyHost",""]],features:[L]}),n})(),vY=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=X.EMPTY,this._translateTabComplete=new H,this._onCentering=new R,this._beforeCentering=new R,this._afterLeavingCenter=new R,this._onCentered=new R(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(s=>{this._computePositionAnimationState(s),r.markForCheck()})),this._translateTabComplete.pipe(Bd((s,o)=>s.fromState===o.fromState&&s.toState===o.toState)).subscribe(s=>{this._isCenterPosition(s.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(s.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(at,8),f(Be))},n.\u0275dir=M({type:n,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),II=(()=>{class n extends vY{constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(at,8),f(Be))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Ce(ur,5),2&e){let r;j(r=U())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[L],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(g(0,"div",0,1),k("@translateTab.start",function(s){return i._onTranslateTabStarted(s)})("@translateTab.done",function(s){return i._translateTabComplete.next(s)}),$(2,rY,0,0,"ng-template",2),_()),2&e&&E("@translateTab",im(3,oY,i._position,vl(1,sY,i.animationDuration)))},directives:[bY],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[yY.translateTab]}}),n})();const xI=new I("MAT_TABS_CONFIG");let CY=0;class DY{}const wY=pa(ma(class{constructor(n){this._elementRef=n}}),"primary");let EY=(()=>{class n extends wY{constructor(e,i,r,s){var o;super(e),this._changeDetectorRef=i,this._animationMode=s,this._tabs=new kr,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=X.EMPTY,this._tabLabelSubscription=X.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new R,this.focusChange=new R,this.animationDone=new R,this.selectedTabChange=new R(!0),this._groupId=CY++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=null!==(o=null==r?void 0:r.contentTabIndex)&&void 0!==o?o:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=ve(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=jn(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=jn(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,s)=>r.isActive=s===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const i=this._tabs.toArray();for(let r=0;r{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new DY;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Nt(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){e.disabled||(this.selectedIndex=i.focusIndex=r)}_getTabIndex(e,i){return e.disabled?null:this.selectedIndex===i?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(xI,8),f(Tt,8))},n.\u0275dir=M({type:n,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[L]}),n})(),MY=(()=>{class n extends EY{constructor(e,i,r,s){super(e,i,r,s)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(xI,8),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&We(r,kI,5),2&e){let s;j(s=U())&&(i._allTabs=s)}},viewQuery:function(e,i){if(1&e&&(Ce(aY,5),Ce(lY,5)),2&e){let r;j(r=U())&&(i._tabBodyWrapper=r.first),j(r=U())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&&ie("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Q([{provide:TI,useExisting:n}]),L],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,i){1&e&&(g(0,"mat-tab-header",0,1),k("indexFocused",function(s){return i._focusChanged(s)})("selectFocusedIndex",function(s){return i.selectedIndex=s}),$(2,hY,4,14,"div",2),_(),g(3,"div",3,4),$(5,fY,1,9,"mat-tab-body",5),_()),2&e&&(E("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),w(2),E("ngForOf",i._tabs),w(1),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode),w(2),E("ngForOf",i._tabs))},directives:function(){return[IY,ir,OI,Bi,Lg,Vn,ur,II]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),n})();const SY=Hr(class{});let OI=(()=>{class n extends SY{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(f(N))},n.\u0275dir=M({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(Z("aria-disabled",!!i.disabled),ie("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[L]}),n})();const RI=ca({passive:!0});let PI=(()=>{class n{constructor(e,i,r,s,o,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=s,this._ngZone=o,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new H,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new H,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new R,this.indexFocused=new R,o.runOutsideAngular(()=>{Yr(e.nativeElement,"mouseleave").pipe(qe(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=jn(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Yr(this._previousPaginator.nativeElement,"touchstart",RI).pipe(qe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Yr(this._nextPaginator.nativeElement,"touchstart",RI).pipe(qe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:G("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new mS(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),Nt(e,i,this._items.changes).pipe(qe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(r)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(qe(this._destroyed)).subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!fi(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:o}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=s,l=a+o):(l=this._tabList.nativeElement.offsetWidth-s,a=l-o);const c=this.scrollDistance,u=this.scrollDistance+r;au&&(this.scrollDistance+=l-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),sk(650,100).pipe(qe(Nt(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:s}=this._scrollHeader(e);(0===s||s>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(_i),f(at,8),f(z),f(xe),f(Tt,8))},n.\u0275dir=M({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),kY=(()=>{class n extends PI{constructor(e,i,r,s,o,a,l){super(e,i,r,s,o,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ve(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(_i),f(at,8),f(z),f(xe),f(Tt,8))},n.\u0275dir=M({type:n,inputs:{disableRipple:"disableRipple"},features:[L]}),n})(),IY=(()=>{class n extends kY{constructor(e,i,r,s,o,a,l){super(e,i,r,s,o,a,l)}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(Be),f(_i),f(at,8),f(z),f(xe),f(Tt,8))},n.\u0275cmp=ne({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&We(r,OI,4),2&e){let s;j(s=U())&&(i._items=s)}},viewQuery:function(e,i){if(1&e&&(Ce(Ph,7),Ce(CI,7),Ce(DI,7),Ce(wI,5),Ce(EI,5)),2&e){let r;j(r=U())&&(i._inkBar=r.first),j(r=U())&&(i._tabListContainer=r.first),j(r=U())&&(i._tabList=r.first),j(r=U())&&(i._nextPaginator=r.first),j(r=U())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&ie("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[L],ngContentSelectors:by,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(vt(),g(0,"div",0,1),k("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(s){return i._handlePaginatorPress("before",s)})("touchend",function(){return i._stopInterval()}),K(2,"div",2),_(),g(3,"div",3,4),k("keydown",function(s){return i._handleKeydown(s)}),g(5,"div",5,6),k("cdkObserveContent",function(){return i._onContentChanges()}),g(7,"div",7),Le(8),_(),K(9,"mat-ink-bar"),_(),_(),g(10,"div",8,9),k("mousedown",function(s){return i._handlePaginatorPress("after",s)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),K(12,"div",2),_()),2&e&&(ie("mat-tab-header-pagination-disabled",i._disableScrollBefore),E("matRippleDisabled",i._disableScrollBefore||i.disableRipple),w(5),ie("_mat-animation-noopable","NoopAnimations"===i._animationMode),w(5),ie("mat-tab-header-pagination-disabled",i._disableScrollAfter),E("matRippleDisabled",i._disableScrollAfter||i.disableRipple))},directives:[Bi,jd,Ph],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),n})(),LI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[ws,Ke,Sh,ic,Ud,IS],Ke]}),n})();function PY(n,t){1&n&&(g(0,"div",14),g(1,"mat-icon"),S(2,"autorenew"),_(),S(3," Please Wait... "),_())}function NY(n,t){if(1&n&&(g(0,"div",18),S(1),_()),2&n){const e=V(2);w(1),Ve(e.message.message)}}function LY(n,t){if(1&n&&(g(0,"div",19),S(1),_()),2&n){const e=V(2);w(1),Ve(e.message.message)}}function VY(n,t){if(1&n&&(g(0,"div",15),$(1,NY,2,1,"div",16),$(2,LY,2,1,"div",17),_()),2&n){const e=V();w(1),E("ngIf",e.message.status),w(1),E("ngIf",!e.message.status)}}let BY=(()=>{class n{constructor(e,i,r){this.fb=e,this.restService=i,this.router=r,this.loader=!1,this.message={message:"",status:null},this.authForm=this.fb.group({mobileNo:["",[zr.required]]})}ngOnInit(){}signInAction(){const e=this.authForm.value.mobileNo;this.restService.checkUser(e).subscribe(i=>{i.length>0&&(window.localStorage.setItem("_user",e),this.router.navigate(["/transactions"]))},i=>{404==i.status&&(this.message={message:"Sorry, Mobile No is not exists",status:!1},setTimeout(()=>{this.message={message:"",status:null}},3e3))})}signUpAction(){const e=this.authForm.value.mobileNo;this.loader=!0,this.restService.checkUser(e).subscribe(i=>{},i=>{404==i.status&&this.restService.create(this.authForm.value.mobileNo+"/config.json","create new config for "+e,{users:[],category:[]}).subscribe(r=>{setTimeout(()=>{this.restService.create(this.authForm.value.mobileNo+"/transactions.json","create new transaction for "+e,[]).subscribe(s=>{}),this.loader=!1,this.message={message:"Thank you for joining...",status:!0},setTimeout(()=>{this.message={message:"",status:null}},3e3)},2e3)})})}}return n.\u0275fac=function(e){return new(e||n)(f(G_),f(ZT),f(Pt))},n.\u0275cmp=ne({type:n,selectors:[["app-authenticateon"]],decls:41,vars:4,consts:[[1,"auth-container"],[1,"auth-content"],[1,"logo"],[1,"action"],["class","loader spinner",4,"ngIf"],["class","message",4,"ngIf"],["mat-stretch-tabs","false","mat-align-tabs","start",1,"auth-tab"],["label","SignIn"],[1,"form-group"],[3,"formGroup"],[1,"form-row"],["matInput","","formControlName","mobileNo","type","number"],["mat-raised-button","","color","primary",3,"click"],["label","SignUp"],[1,"loader","spinner"],[1,"message"],["class","success-message",4,"ngIf"],["class","error-message",4,"ngIf"],[1,"success-message"],[1,"error-message"]],template:function(e,i){1&e&&(g(0,"div",0),g(1,"div",1),g(2,"div",2),g(3,"label"),g(4,"span"),S(5,"B"),_(),S(6,"ins"),_(),g(7,"label"),g(8,"span"),S(9,"E"),_(),S(10,"xpense"),_(),g(11,"label"),g(12,"span"),S(13,"T"),_(),S(14,"racker"),_(),_(),g(15,"div",3),$(16,PY,4,0,"div",4),$(17,VY,3,2,"div",5),g(18,"mat-tab-group",6),g(19,"mat-tab",7),g(20,"div",8),g(21,"form",9),g(22,"div",10),g(23,"mat-form-field"),g(24,"mat-label"),S(25,"Enter Mobile Number."),_(),K(26,"input",11),_(),_(),g(27,"div",10),g(28,"button",12),k("click",function(){return i.signInAction()}),S(29,"SignIn"),_(),_(),_(),_(),_(),g(30,"mat-tab",13),g(31,"div",8),g(32,"form",9),g(33,"div",10),g(34,"mat-form-field"),g(35,"mat-label"),S(36,"Enter Mobile Number."),_(),K(37,"input",11),_(),_(),g(38,"div",10),g(39,"button",12),k("click",function(){return i.signUpAction()}),S(40,"SignUp"),_(),_(),_(),_(),_(),_(),_(),_(),_()),2&e&&(w(16),E("ngIf",i.loader),w(1),E("ngIf",null!=i.message.status),w(4),E("formGroup",i.authForm),w(11),E("formGroup",i.authForm))},directives:[Vn,MY,kI,vh,dh,gi,bc,Us,Th,jr,cc,_a,uc,zn,zs],styles:[".auth-container{height:100vh;display:flex;justify-content:center;align-items:center;text-align:center}.auth-container .logo{font-size:25px;padding:15px;color:#fff;font-family:Oswald-Medium,sans-serif}.auth-container .logo span{font-size:40px}.auth-container .action{position:relative;background:#FFFFFF;padding:10px}.auth-container .action .form-row{padding:5px}.auth-container .action .message .success-message{color:#42b03d;font-family:Roboto-Medium,sans-serif}.auth-container .action .message .error-message{color:#b03d6f;font-family:Roboto-Medium,sans-serif}\n"],encapsulation:2}),n})();function VI(n,t=Vd){const i=function(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return r=>r.lift(new jY(i,t))}class jY{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new vy(t,this.delay,this.scheduler))}}class vy extends Oe{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,r=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(vy.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new UY(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(ln.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(ln.createComplete()),this.unsubscribe()}}class UY{constructor(t,e){this.time=t,this.notification=e}}const $Y=["mat-menu-item",""];function zY(n,t){1&n&&(zc(),g(0,"svg",2),K(1,"polygon",3),_())}const BI=["*"];function WY(n,t){if(1&n){const e=Ot();g(0,"div",0),k("keydown",function(r){return Fe(e),V()._handleKeydown(r)})("click",function(){return Fe(e),V().closed.emit("click")})("@transformMenu.start",function(r){return Fe(e),V()._onAnimationStart(r)})("@transformMenu.done",function(r){return Fe(e),V()._onAnimationDone(r)}),g(1,"div",1),Le(2),_(),_()}if(2&n){const e=V();E("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Z("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Nh={transformMenu:cr("transformMenu",[bn("void",He({opacity:0,transform:"scale(0.8)"})),zt("void => enter",rn("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),zt("* => void",rn("100ms 25ms linear",He({opacity:0})))]),fadeInItems:cr("fadeInItems",[bn("showing",He({opacity:1})),zt("void => *",[He({opacity:0}),rn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},HI=new I("MatMenuContent"),Cy=new I("MAT_MENU_PANEL"),qY=ma(Hr(class{}));let Dy=(()=>{class n extends qY{constructor(e,i,r,s,o){super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new H,this._focused=new H,this._highlighted=!1,this._triggersSubmenu=!1,s&&s.addItem&&s.addItem(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,i;const r=this._elementRef.nativeElement.cloneNode(!0),s=r.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class n{constructor(e,i,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new kr,this._tabSubscription=X.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new H,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new R,this.close=this.closed,this.panelId="mat-menu-panel-"+KY++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ve(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ve(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new mS(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(At(this._directDescendantItems),yn(e=>Nt(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(At(this._directDescendantItems),yn(i=>Nt(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:fi(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===i||40===i)&&r.setFocusOrigin("keyboard"),r.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(wt(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const i=this._keyManager;if(i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(At(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(jI))},n.\u0275dir=M({type:n,contentQueries:function(e,i,r){if(1&e&&(We(r,HI,5),We(r,Dy,5),We(r,Dy,4)),2&e){let s;j(s=U())&&(i.lazyContent=s.first),j(s=U())&&(i._allItems=s),j(s=U())&&(i.items=s)}},viewQuery:function(e,i){if(1&e&&Ce(dt,5),2&e){let r;j(r=U())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),n})(),QY=(()=>{class n extends Ec{constructor(e,i,r){super(e,i,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(f(N),f(z),f(jI))},n.\u0275cmp=ne({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Z("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Q([{provide:Cy,useExisting:n}]),L],ngContentSelectors:BI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(vt(),$(0,WY,3,6,"ng-template"))},directives:[Zo],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Nh.transformMenu,Nh.fadeInItems]},changeDetection:0}),n})();const UI=new I("mat-menu-scroll-strategy"),XY={provide:UI,deps:[yi],useFactory:function(n){return()=>n.scrollStrategies.reposition()}},zI=ca({passive:!0});let ZY=(()=>{class n{constructor(e,i,r,s,o,a,l,c){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=X.EMPTY,this._hoverSubscription=X.EMPTY,this._menuCloseSubscription=X.EMPTY,this._handleTouchStart=u=>{Ng(u)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new R,this.onMenuOpen=this.menuOpened,this.menuClosed=new R,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof Ec?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,zI),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,zI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ec&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Ec?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(pt(r=>"void"===r.toState),wt(1),qe(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new mc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[s,o],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",l="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:c,overlayY:s,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:s,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Nt(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:G(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(pt(o=>o!==this._menuItemInstance),pt(()=>this._menuOpen)):G(),i)}_handleMousedown(e){Pg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(pt(e=>e===this._menuItemInstance&&!e.disabled),VI(0,Z_)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ec&&this.menu._isAnimating?this.menu._animationDone.pipe(wt(1),VI(0,Z_),qe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Kr(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(f(yi),f(N),f(it),f(UI),f(Cy,8),f(Dy,10),f(at,8),f(ar))},n.\u0275dir=M({type:n,hostVars:3,hostBindings:function(e,i){1&e&&k("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(s){return i._handleClick(s)}),2&e&&Z("aria-haspopup",i._ariaHaspopup)("aria-expanded",i._ariaExpanded)("aria-controls",i._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),e7=(()=>{class n extends ZY{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Je(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[L]}),n})(),WI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({providers:[XY],imports:[[ws,Ke,ic,Ah],fc,Ke]}),n})();const t7=function(){return["/"]},n7=function(){return["/transactions"]},i7=function(){return["/category"]},r7=function(){return["/user"]};let s7=(()=>{class n{constructor(e){this.transactionService=e}ngOnInit(){}syncData(){this.transactionService.updateTransactions()}}return n.\u0275fac=function(e){return new(e||n)(f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-header"]],decls:29,vars:9,consts:[[1,"header"],[1,"logo"],[3,"routerLink"],[1,"action"],[3,"matMenuTriggerFor"],[1,"header-menu"],["menu","matMenu"],[1,"sub-menu-content"],[3,"click"]],template:function(e,i){if(1&e&&(g(0,"div",0),g(1,"div",1),g(2,"a",2),g(3,"span"),S(4,"B"),_(),S(5,"ins"),g(6,"span"),S(7,"E"),_(),S(8,"xpense"),g(9,"span"),S(10,"T"),_(),S(11,"racker"),_(),_(),g(12,"div",3),g(13,"mat-icon",4),S(14,"more_vert"),_(),g(15,"mat-menu",5,6),g(17,"div",7),g(18,"a",2),S(19,"Transactions"),_(),_(),g(20,"div",7),g(21,"a",2),S(22,"Category"),_(),_(),g(23,"div",7),g(24,"a",2),S(25,"Users"),_(),_(),g(26,"div",7),g(27,"a",8),k("click",function(){return i.syncData()}),S(28,"Sync"),_(),_(),_(),_(),_()),2&e){const r=Ii(16);w(2),E("routerLink",Ar(5,t7)),w(11),E("matMenuTriggerFor",r),w(5),E("routerLink",Ar(6,n7)),w(3),E("routerLink",Ar(7,i7)),w(3),E("routerLink",Ar(8,r7))}},directives:[ql,zs,e7,QY],styles:[""]}),n})();const o7=[{path:"",component:o5},{path:"auth",component:BY},{path:"",component:(()=>{class n{constructor(e){this.transactionService=e}ngOnInit(){this.transactionService.fetch()}}return n.\u0275fac=function(e){return new(e||n)(f(Hi))},n.\u0275cmp=ne({type:n,selectors:[["app-layout"]],decls:2,vars:0,template:function(e,i){1&e&&(K(0,"app-header"),K(1,"router-outlet"))},directives:[s7,Fd],styles:[""]}),n})(),children:[{path:"action",component:jq},{path:"category",component:Uq},{path:"transactions",component:nY},{path:"user",component:zq}]}];let a7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[[tS.forRoot(o7,{useHash:!0})],tS]}),n})(),l7=(()=>{class n{constructor(){this.title="my-finance"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ne({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(e,i){1&e&&K(0,"router-outlet")},directives:[Fd],styles:[""]}),n})();const c7=[w_,vc,Nk,nI,Gk,WI,Mk,bI,PA,Hk,LI];let u7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n}),n.\u0275inj=ae({imports:[c7,w_,vc,Nk,nI,Gk,WI,Mk,bI,PA,Hk,LI]}),n})(),d7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=he({type:n,bootstrap:[l7]}),n.\u0275inj=ae({providers:[],imports:[[og,a7,u7,M4,HT,Q5,dW]]}),n})();(function(){if(FE)throw new Error("Cannot enable prod mode after platform setup.");RE=!1})(),mj().bootstrapModule(d7).catch(n=>console.error(n))}},Ea=>{Ea(Ea.s=686)}]); \ No newline at end of file diff --git a/src/app/service/transaction.service.ts b/src/app/service/transaction.service.ts index 9bbfa7d..e7afea1 100644 --- a/src/app/service/transaction.service.ts +++ b/src/app/service/transaction.service.ts @@ -27,7 +27,7 @@ export class TransactionService { constructor(private restService:RestService) { } fetch() { - const mobileNo: any = window.sessionStorage.getItem('_user'); + const mobileNo: any = window.localStorage.getItem('_user'); if (mobileNo) { this.restService.getContent(mobileNo+'/config.json').subscribe((response:any)=>{ this.configSha = response.sha; @@ -65,7 +65,7 @@ export class TransactionService { updateTransactions() { const transactions = this.getAllTransactions(); if (this.getLocalData('_t').length >0) { - const mobileNo: any = window.sessionStorage.getItem('_user'); + const mobileNo: any = window.localStorage.getItem('_user'); this.restService.update(mobileNo + '/transactions.json', 'Update Transactions of ' + mobileNo, transactions, this.transactionSha).subscribe((response: any) => { window.localStorage.setItem('_t', JSON.stringify([])); }); @@ -90,7 +90,7 @@ export class TransactionService { users: this.getAllUsers(), category: this.getAllCategory() } - const mobileNo: any = window.sessionStorage.getItem('_user'); + const mobileNo: any = window.localStorage.getItem('_user'); this.restService.update(mobileNo + '/config.json', 'Update Config of ' + mobileNo, body, this.configSha).subscribe((response: any) => { this.configSha = response.content.sha; });