@drayman/elements 1.26.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";function Rr(n){return"function"==typeof n}let ul=!1;const Lt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ul&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ul=n},get useDeprecatedSynchronousErrorHandling(){return ul}};function Ii(n){setTimeout(()=>{throw n},0)}const Us={closed:!0,next(n){},error(n){if(Lt.useDeprecatedSynchronousErrorHandling)throw n;Ii(n)},complete(){}},Or=Array.isArray||(n=>n&&"number"==typeof n.length);function dl(n){return null!==n&&"object"==typeof n}const zs=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class de{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof de)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Rr(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof zs?Pf(o.errors):[o]}}if(Or(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(dl(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof zs?e=e.concat(Pf(c.errors)):e.push(c)}}}if(e)throw new zs(e)}add(e){let t=e;if(!e)return de.EMPTY;switch(typeof e){case"function":t=new de(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof de)){const s=t;t=new de,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof de){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Pf(n){return n.reduce((e,t)=>e.concat(t instanceof zs?t.errors:t),[])}de.EMPTY=((n=new de).closed=!0,n);const Ws="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Fe extends de{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Us;break;case 1:if(!e){this.destination=Us;break}if("object"==typeof e){e instanceof Fe?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Nf(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Nf(this,e,t,i)}}[Ws](){return this}static create(e,t,i){const r=new Fe(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Nf extends Fe{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Rr(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==Us&&(o=Object.create(t),Rr(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(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Lt.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=Lt;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ii(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Ii(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Lt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),Lt.useDeprecatedSynchronousErrorHandling)throw i;Ii(i)}}__tryOrSetError(e,t,i){if(!Lt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Lt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Ii(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Lf(n){return n}let _e=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function HD(n,e,t){if(n){if(n instanceof Fe)return n;if(n[Ws])return n[Ws]()}return n||e||t?new Fe(n,e,t):new Fe(Us)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Lt.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Lt.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Lt.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function jD(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof Fe?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Bf(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[kr](){return this}pipe(...t){return 0===t.length?this:function Vf(n){return 0===n.length?Lf:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Bf(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Bf(n){if(n||(n=Lt.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Jn=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class jf extends de{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Hf extends Fe{constructor(e){super(e),this.destination=e}}let Ne=(()=>{class n extends _e{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ws](){return new Hf(this)}lift(t){const i=new Gf(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Jn;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Jn;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Jn;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Jn;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Jn;return this.hasError?(t.error(this.thrownError),de.EMPTY):this.isStopped?(t.complete(),de.EMPTY):(this.observers.push(t),new jf(this,t))}asObservable(){const t=new _e;return t.source=this,t}}return n.create=(e,t)=>new Gf(e,t),n})();class Gf extends Ne{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):de.EMPTY}}function qs(n){return n&&"function"==typeof n.schedule}function Fi(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new GD(n,e))}}class GD{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new $D(e,this.project,this.thisArg))}}class $D extends Fe{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const $f=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},Ks=function zD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Uf=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function zf(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Wf=n=>{if(n&&"function"==typeof n[kr])return(n=>e=>{const t=n[kr]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Uf(n))return $f(n);if(zf(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Ii),e))(n);if(n&&"function"==typeof n[Ks])return(n=>e=>{const t=n[Ks]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${dl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function fl(n,e){return new _e(t=>{const i=new de;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Qs(n,e){return e?function JD(n,e){if(null!=n){if(function ZD(n){return n&&"function"==typeof n[kr]}(n))return function KD(n,e){return new _e(t=>{const i=new de;return i.add(e.schedule(()=>{const r=n[kr]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(zf(n))return function QD(n,e){return new _e(t=>{const i=new de;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(Uf(n))return fl(n,e);if(function XD(n){return n&&"function"==typeof n[Ks]}(n)||"string"==typeof n)return function YD(n,e){if(!n)throw new Error("Iterable cannot be null");return new _e(t=>{const i=new de;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[Ks](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof _e?n:new _e(Wf(n))}class Ys extends Fe{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Zs extends Fe{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Xs(n,e){if(!e.closed)return n instanceof _e?n.subscribe(e):Wf(n)(e)}function qf(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(qf((r,s)=>Qs(n(r,s)).pipe(Fi((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new ew(n,t)))}class ew{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new tw(e,this.project,this.concurrent))}}class tw extends Zs{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Ys(this),i=this.destination;i.add(t);const r=Xs(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function nw(n=Number.POSITIVE_INFINITY){return qf(Lf,n)}function Kf(n,e){return e?fl(n,e):new _e($f(n))}function Pr(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return qs(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof _e?n[0]:nw(e)(Kf(n,t))}function Qf(){return function(e){return e.lift(new iw(e))}}class iw{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new rw(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class rw extends Fe{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class sw extends _e{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new de,e.add(this.source.subscribe(new aw(this.getSubject(),this))),e.closed&&(this._connection=null,e=de.EMPTY)),e}refCount(){return Qf()(this)}}const ow=(()=>{const n=sw.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 aw extends Hf{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class uw{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function dw(){return new Ne}function re(n){for(let e in n)if(n[e]===re)return e;throw Error("Could not find renamed property on target object.")}function hl(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ee(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ee).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function pl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const hw=re({__forward_ref__:re});function se(n){return n.__forward_ref__=se,n.toString=function(){return ee(this())},n}function $(n){return Yf(n)?n():n}function Yf(n){return"function"==typeof n&&n.hasOwnProperty(hw)&&n.__forward_ref__===se}class I extends Error{constructor(e,t){super(function gl(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function V(n){return"string"==typeof n?n:null==n?"":String(n)}function $e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():V(n)}function Js(n,e){const t=e?` in ${e}`:"";throw new I(-201,`No provider for ${$e(n)} found${t}`)}function dt(n,e){null==n&&function te(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function w(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function he(n){return{providers:n.providers||[],imports:n.imports||[]}}function ml(n){return Zf(n,eo)||Zf(n,Jf)}function Zf(n,e){return n.hasOwnProperty(e)?n[e]:null}function Xf(n){return n&&(n.hasOwnProperty(_l)||n.hasOwnProperty(bw))?n[_l]:null}const eo=re({\u0275prov:re}),_l=re({\u0275inj:re}),Jf=re({ngInjectableDef:re}),bw=re({ngInjectorDef:re});var H=(()=>((H=H||{})[H.Default=0]="Default",H[H.Host=1]="Host",H[H.Self=2]="Self",H[H.SkipSelf=4]="SkipSelf",H[H.Optional=8]="Optional",H))();let yl;function On(n){const e=yl;return yl=n,e}function eh(n,e,t){const i=ml(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&H.Optional?null:void 0!==e?e:void Js(ee(n),"Injector")}function kn(n){return{toString:n}.toString()}var Vt=(()=>((Vt=Vt||{})[Vt.OnPush=0]="OnPush",Vt[Vt.Default=1]="Default",Vt))(),Bt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Bt||(Bt={})),Bt))();const Dw="undefined"!=typeof globalThis&&globalThis,ww="undefined"!=typeof window&&window,Ew="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ie=Dw||"undefined"!=typeof global&&global||ww||Ew,Ti={},oe=[],to=re({\u0275cmp:re}),vl=re({\u0275dir:re}),bl=re({\u0275pipe:re}),th=re({\u0275mod:re}),vn=re({\u0275fac:re}),Nr=re({__NG_ELEMENT_ID__:re});let xw=0;function no(n){return kn(()=>{const t={},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:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Vt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||oe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Bt.Emulated,id:"c",styles:n.styles||oe,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=xw++,i.inputs=sh(n.inputs,t),i.outputs=sh(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(nh):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ih):null,i})}function nh(n){return Ue(n)||function Pn(n){return n[vl]||null}(n)}function ih(n){return function ei(n){return n[bl]||null}(n)}const rh={};function ye(n){return kn(()=>{const e={type:n.type,bootstrap:n.bootstrap||oe,declarations:n.declarations||oe,imports:n.imports||oe,exports:n.exports||oe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(rh[n.id]=n.type),e})}function sh(n,e){if(null==n)return Ti;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const D=no;function Ue(n){return n[to]||null}function Mt(n,e){const t=n[th]||null;if(!t&&!0===e)throw new Error(`Type ${ee(n)} does not have '\u0275mod' property.`);return t}const G=11;function rn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Ht(n){return Array.isArray(n)&&!0===n[1]}function wl(n){return 0!=(8&n.flags)}function oo(n){return 2==(2&n.flags)}function ao(n){return 1==(1&n.flags)}function Gt(n){return null!==n.template}function Tw(n){return 0!=(512&n[2])}function ri(n,e){return n.hasOwnProperty(vn)?n[vn]:null}class ah{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function $t(){return lh}function lh(n){return n.type.prototype.ngOnChanges&&(n.setInput=Pw),kw}function kw(){const n=uh(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Ti)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function Pw(n,e,t,i){const r=uh(n)||function Nw(n,e){return n[ch]=e}(n,{previous:Ti,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new ah(l&&l.currentValue,e,o===Ti),n[i]=e}$t.ngInherit=!0;const ch="__ngSimpleChanges__";function uh(n){return n[ch]||null}let Sl;function xe(n){return!!n.listen}const dh={createRenderer:(n,e)=>function Il(){return void 0!==Sl?Sl:"undefined"!=typeof document?document:void 0}()};function Te(n){for(;Array.isArray(n);)n=n[0];return n}function lo(n,e){return Te(e[n])}function ht(n,e){return Te(e[n.index])}function Fl(n,e){return n.data[e]}function pt(n,e){const t=e[n];return rn(t)?t:t[0]}function fh(n){return 4==(4&n[2])}function Tl(n){return 128==(128&n[2])}function Nn(n,e){return null==e?null:n[e]}function hh(n){n[18]=0}function Rl(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const B={lFrame:Dh(null),bindingsEnabled:!0};function gh(){return B.bindingsEnabled}function C(){return B.lFrame.lView}function Y(){return B.lFrame.tView}function Le(){let n=mh();for(;null!==n&&64===n.type;)n=n.parent;return n}function mh(){return B.lFrame.currentTNode}function sn(n,e){const t=B.lFrame;t.currentTNode=n,t.isParent=e}function Ol(){return B.lFrame.isParent}function kl(){B.lFrame.isParent=!1}function Li(){return B.lFrame.bindingIndex++}function eE(n,e){const t=B.lFrame;t.bindingIndex=t.bindingRootIndex=n,Pl(e)}function Pl(n){B.lFrame.currentDirectiveIndex=n}function vh(){return B.lFrame.currentQueryIndex}function Ll(n){B.lFrame.currentQueryIndex=n}function nE(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function bh(n,e,t){if(t&H.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&H.Host||(r=nE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=B.lFrame=Ch();return i.currentTNode=e,i.lView=n,!0}function uo(n){const e=Ch(),t=n[1];B.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Ch(){const n=B.lFrame,e=null===n?null:n.child;return null===e?Dh(n):e}function Dh(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function wh(){const n=B.lFrame;return B.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Eh=wh;function fo(){const n=wh();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 Xe(){return B.lFrame.selectedIndex}function Ln(n){B.lFrame.selectedIndex=n}function ve(){const n=B.lFrame;return Fl(n.tView,n.selectedIndex)}function ho(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function po(n,e,t){xh(n,e,3,t)}function go(n,e,t,i){(3&n[2])===t&&xh(n,e,t,i)}function Vl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function xh(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(dE(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function dE(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Hr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function mo(n,e,t){const i=xe(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];jl(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Ah(n){return 3===n||4===n||6===n}function jl(n){return 64===n.charCodeAt(0)}function _o(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Mh(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Mh(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Sh(n){return-1!==n}function Vi(n){return 32767&n}function Bi(n,e){let t=function mE(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Hl=!0;function yo(n){const e=Hl;return Hl=n,e}let _E=0;function $r(n,e){const t=$l(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Gl(i.data,n),Gl(e,null),Gl(i.blueprint,null));const r=vo(n,e),s=n.injectorIndex;if(Sh(r)){const o=Vi(r),a=Bi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Gl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function $l(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function vo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;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(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function bo(n,e,t){!function yE(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Nr)&&(i=t[Nr]),null==i&&(i=t[Nr]=_E++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Th(n,e,t){if(t&H.Optional)return n;Js(e,"NodeInjector")}function Rh(n,e,t,i){if(t&H.Optional&&void 0===i&&(i=null),0==(t&(H.Self|H.Host))){const r=n[9],s=On(void 0);try{return r?r.get(e,i,t&H.Optional):eh(e,i,t&H.Optional)}finally{On(s)}}return Th(i,e,t)}function Oh(n,e,t,i=H.Default,r){if(null!==n){const s=function DE(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Nr)?n[Nr]:void 0;return"number"==typeof e?e>=0?255&e:bE:e}(t);if("function"==typeof s){if(!bh(e,n,i))return i&H.Host?Th(r,t,i):Rh(e,t,i,r);try{const o=s(i);if(null!=o||i&H.Optional)return o;Js(t)}finally{Eh()}}else if("number"==typeof s){let o=null,a=$l(n,e),l=-1,c=i&H.Host?e[16][6]:null;for((-1===a||i&H.SkipSelf)&&(l=-1===a?vo(n,e):e[a+8],-1!==l&&Nh(i,!1)?(o=e[1],a=Vi(l),e=Bi(l,e)):a=-1);-1!==a;){const u=e[1];if(Ph(s,a,u.data)){const d=CE(a,e,t,o,i,c);if(d!==kh)return d}l=e[a+8],-1!==l&&Nh(i,e[1].data[a+8]===c)&&Ph(s,a,e)?(o=u,a=Vi(l),e=Bi(l,e)):a=-1}}}return Rh(e,t,i,r)}const kh={};function bE(){return new ji(Le(),C())}function CE(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Co(a,o,t,null==i?oo(a)&&Hl:i!=o&&0!=(3&a.type),r&H.Host&&s===a);return null!==u?Ur(e,o,u,a):kh}function Co(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,f=r?a+u:n.directiveEnd;for(let h=i?a:a+u;h<f;h++){const p=o[h];if(h<l&&t===p||h>=l&&p.type===t)return h}if(r){const h=o[l];if(h&&Gt(h)&&h.type===t)return l}return null}function Ur(n,e,t,i){let r=n[t];const s=e.data;if(function fE(n){return n instanceof Hr}(r)){const o=r;o.resolving&&function pw(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new I(-200,`Circular dependency in DI detected for ${n}${t}`)}($e(s[t]));const a=yo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?On(o.injectImpl):null;bh(n,i,H.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function uE(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=lh(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&On(l),yo(a),o.resolving=!1,Eh()}}return r}function Ph(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Nh(n,e){return!(n&H.Self||n&H.Host&&e)}class ji{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Oh(this._tNode,this._lView,e,i,t)}}function O(n){return kn(()=>{const e=n.prototype.constructor,t=e[vn]||Ul(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[vn]||Ul(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ul(n){return Yf(n)?()=>{const e=Ul($(n));return e&&e()}:ri(n)}function zr(n){return function vE(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Ah(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Le(),n)}const Gi="__parameters__";function Ui(n,e,t){return kn(()=>{const i=function zl(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);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(Gi)?l[Gi]:Object.defineProperty(l,Gi,{value:[]})[Gi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class F{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=w({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ft(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Ft(i,e)):e!==n&&e.push(i)}return e}function on(n,e){n.forEach(t=>Array.isArray(t)?on(t,e):e(t))}function Vh(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Do(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Kr(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function gt(n,e,t){let i=zi(n,e);return i>=0?n[1|i]=t:(i=~i,function AE(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function ql(n,e){const t=zi(n,e);if(t>=0)return n[1|t]}function zi(n,e){return function Hh(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const Qr={},Ql="__NG_DI_FLAG__",Eo="ngTempTokenPath",OE=/\n/gm,$h="__source",PE=re({provide:String,useValue:re});let Yr;function Uh(n){const e=Yr;return Yr=n,e}function NE(n,e=H.Default){if(void 0===Yr)throw new I(203,"");return null===Yr?eh(n,void 0,e):Yr.get(n,e&H.Optional?null:void 0,e)}function v(n,e=H.Default){return(function Cw(){return yl}()||NE)($(n),e)}const Zr=v;function Yl(n){const e=[];for(let t=0;t<n.length;t++){const i=$(n[t]);if(Array.isArray(i)){if(0===i.length)throw new I(900,"");let r,s=H.Default;for(let o=0;o<i.length;o++){const a=i[o],l=LE(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(v(r,s))}else e.push(v(i))}return e}function Xr(n,e){return n[Ql]=e,n.prototype[Ql]=e,n}function LE(n){return n[Ql]}const xo=Xr(Ui("Optional"),8),Ao=Xr(Ui("SkipSelf"),4);var mt=(()=>((mt=mt||{})[mt.Important=1]="Important",mt[mt.DashCase=2]="DashCase",mt))();const Xh="__ngContext__";function We(n,e){n[Xh]=e}function ec(n){const e=function es(n){return n[Xh]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function nc(n,e){return undefined(n,e)}function ts(n){const e=n[3];return Ht(e)?e[3]:e}function ic(n){return sp(n[13])}function rc(n){return sp(n[4])}function sp(n){for(;null!==n&&!Ht(n);)n=n[4];return n}function qi(n,e,t,i,r){if(null!=i){let s,o=!1;Ht(i)?s=i:rn(i)&&(o=!0,i=i[0]);const a=Te(i);0===n&&null!==t?null==r?dp(e,t,a):si(e,t,a,r||null,!0):1===n&&null!==t?si(e,t,a,r||null,!0):2===n?function dc(n,e,t){const i=So(n,e);i&&function px(n,e,t,i){xe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function _x(n,e,t,i,r){const s=t[7];s!==Te(t)&&qi(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];ns(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function oc(n,e,t){if(xe(n))return n.createElement(e,t);{const i=null!==t?function jw(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function ap(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Rl(r,-1)),t.splice(i,1)}function ac(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&ap(r,i),e>0&&(n[t-1][4]=i[4]);const s=Do(n,10+e);!function ox(n,e){ns(n,e,e[G],2,null,null),e[0]=null,e[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 lp(n,e){if(!(256&e[2])){const t=e[G];xe(t)&&t.destroyNode&&ns(n,e,t,3,null,null),function cx(n){let e=n[13];if(!e)return lc(n[1],n);for(;e;){let t=null;if(rn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)rn(e)&&lc(e[1],e),e=e[3];null===e&&(e=n),rn(e)&&lc(e[1],e),t=e&&e[4]}e=t}}(e)}}function lc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function hx(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Hr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function fx(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Te(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&xe(e[G])&&e[G].destroy();const t=e[17];if(null!==t&&Ht(e[3])){t!==e[3]&&ap(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function cp(n,e,t){return function up(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Bt.None||r===Bt.Emulated)return null}return ht(i,t)}(n,e.parent,t)}function si(n,e,t,i,r){xe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function dp(n,e,t){xe(n)?n.appendChild(e,t):e.appendChild(t)}function fp(n,e,t,i,r){null!==i?si(n,e,t,i,r):dp(n,e,t)}function So(n,e){return xe(n)?n.parentNode(e):e.parentNode}function hp(n,e,t){return gp(n,e,t)}let gp=function pp(n,e,t){return 40&n.type?ht(n,t):null};function Io(n,e,t,i){const r=cp(n,i,e),s=e[G],a=hp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)fp(s,r,t[l],a,!1);else fp(s,r,t,a,!1)}function Fo(n,e){if(null!==e){const t=e.type;if(3&t)return ht(e,n);if(4&t)return uc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Fo(n,i);{const r=n[e.index];return Ht(r)?uc(-1,r):Te(r)}}if(32&t)return nc(e,n)()||Te(n[e.index]);{const i=_p(n,e);return null!==i?Array.isArray(i)?i[0]:Fo(ts(n[16]),i):Fo(n,e.next)}}return null}function _p(n,e){return null!==e?n[16][6].projection[e.projection]:null}function uc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Fo(i,r)}return e[7]}function fc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&We(Te(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)fc(n,e,t.child,i,r,s,!1),qi(e,n,r,a,s);else if(32&l){const c=nc(t,i);let u;for(;u=c();)qi(e,n,r,u,s);qi(e,n,r,a,s)}else 16&l?yp(n,e,i,t,r,s):qi(e,n,r,a,s);t=o?t.projectionNext:t.next}}function ns(n,e,t,i,r,s){fc(t,i,n.firstChild,e,r,s,!1)}function yp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)qi(e,n,r,l[c],s);else fc(n,e,l,o[3],r,s,!0)}function vp(n,e,t){xe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function hc(n,e,t){xe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Cc(n){return n.ngOriginalError}function Xx(n,...e){n.error(...e)}class os{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function Zx(n){return n&&n.ngErrorLogger||Xx}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Cc(e);for(;t&&Cc(t);)t=Cc(t);return t||null}}const sA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ie))();function cn(n){return n instanceof Function?n():n}function Pp(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const Np="ng-template";function cA(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Pp(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Lp(n){return 4===n.type&&n.value!==Np}function uA(n,e,t){return e===(4!==n.type||t?n.value:Np)}function dA(n,e,t){let i=4;const r=n.attrs||[],s=function pA(n){for(let e=0;e<n.length;e++)if(Ah(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!uA(n,l,t)||""===l&&1===e.length){if(Ut(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!cA(n.attrs,c,t)){if(Ut(i))return!1;o=!0}continue}const d=fA(8&i?"class":l,r,Lp(n),t);if(-1===d){if(Ut(i))return!1;o=!0;continue}if(""!==c){let f;f=d>s?"":r[d+1].toLowerCase();const h=8&i?f:null;if(h&&-1!==Pp(h,c,0)||2&i&&c!==f){if(Ut(i))return!1;o=!0}}}}else{if(!o&&!Ut(i)&&!Ut(l))return!1;if(o&&Ut(l))continue;o=!1,i=l|1&i}}return Ut(i)||o}function Ut(n){return 0==(1&n)}function fA(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function gA(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Vp(n,e,t=!1){for(let i=0;i<e.length;i++)if(dA(n,e[i],t))return!0;return!1}function mA(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Bp(n,e){return n?":not("+e.trim()+")":e}function _A(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Ut(o)&&(e+=Bp(s,r),r=""),i=o,s=s||!Ut(i);t++}return""!==r&&(e+=Bp(s,r)),e}const j={};function yt(n){jp(Y(),C(),Xe()+n,!1)}function jp(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&po(e,s,t)}else{const s=n.preOrderHooks;null!==s&&go(e,s,0,t)}Ln(t)}function ko(n,e){return n<<17|e<<2}function zt(n){return n>>17&32767}function Dc(n){return 2|n}function Dn(n){return(131068&n)>>2}function wc(n,e){return-131069&n|e<<2}function Ec(n){return 1|n}function Zp(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Ll(r),o.contentQueries(2,e[s],s)}}}function as(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,hh(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[G]=a||n&&n[G],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function Qi(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Oc(n,e,t,i,r){const s=mh(),o=Ol(),l=n.data[e]=function PA(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function Jw(){return B.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function jr(){const n=B.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return sn(s,!0),s}function Yi(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function ls(n,e,t){uo(e);try{const i=n.viewQuery;null!==i&&Gc(1,i,t);const r=n.template;null!==r&&Xp(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Zp(n,e),n.staticViewQueries&&Gc(2,n.viewQuery,t);const s=n.components;null!==s&&function RA(n,e){for(let t=0;t<e.length;t++)JA(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,fo()}}function Zi(n,e,t,i){const r=e[2];if(256!=(256&r)){uo(e);try{hh(e),function _h(n){return B.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Xp(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&po(e,c,null)}else{const c=n.preOrderHooks;null!==c&&go(e,c,0,null),Vl(e,0)}if(function ZA(n){for(let e=ic(n);null!==e;e=rc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Rl(s,1),r[2]|=1024}}}(e),function YA(n){for(let e=ic(n);null!==e;e=rc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Tl(i)&&Zi(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&Zp(n,e),o){const c=n.contentCheckHooks;null!==c&&po(e,c)}else{const c=n.contentHooks;null!==c&&go(e,c,1),Vl(e,1)}!function FA(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Ln(~r);else{const s=r,o=t[++i],a=t[++i];eE(o,s),a(2,e[s])}}}finally{Ln(-1)}}(n,e);const a=n.components;null!==a&&function TA(n,e){for(let t=0;t<e.length;t++)XA(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Gc(2,l,i),o){const c=n.viewCheckHooks;null!==c&&po(e,c)}else{const c=n.viewHooks;null!==c&&go(e,c,2),Vl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Rl(e[3],-1))}finally{fo()}}}function OA(n,e,t,i){const r=e[10],o=fh(e);try{!o&&r.begin&&r.begin(),o&&ls(n,e,i),Zi(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Xp(n,e,t,i,r){const s=Xe(),o=2&i;try{Ln(-1),o&&e.length>20&&jp(n,e,20,!1),t(i,r)}finally{Ln(s)}}function kc(n,e,t){!gh()||(function GA(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||$r(t,e),We(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Gt(l);c&&qA(e,t,l);const u=Ur(e,n,a,t);We(u,e),null!==o&&KA(0,a-r,u,l,0,o),c&&(pt(t.index,e)[8]=u)}}(n,e,t,ht(t,e)),128==(128&t.flags)&&function $A(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function tE(){return B.lFrame.currentDirectiveIndex}();try{Ln(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Pl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&ag(c,u)}}finally{Ln(-1),Pl(a)}}(n,e,t))}function Pc(n,e,t=ht){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function eg(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Lo(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Lo(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,f=function kA(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:j);return t}(u,d),h="function"==typeof c?c():c;return f[1]={type:n,blueprint:f,template:t,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function ig(n,e,t,i){const r=hg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&pg(n).push(i,r.length-1))}function rg(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Nc(n,e,t,i){let r=!1;if(gh()){const s=function UA(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Vp(t,o.selectors,!1)&&(r||(r=[]),bo($r(t,e),n,o.type),Gt(o)?(lg(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,cg(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Yi(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=_o(t.mergedAttrs,d.hostAttrs),ug(n,t,e,c,d),WA(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function NA(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,f=null===s||Lp(e)?null:QA(d,s);o.push(f),a=rg(d,c,a),l=rg(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function zA(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new I(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=_o(t.mergedAttrs,t.attrs),r}function og(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function HA(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function ag(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function lg(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function WA(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Gt(e)&&(t[""]=n)}}function cg(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function ug(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=ri(r.type)),o=new Hr(s,Gt(r),null);n.blueprint[i]=o,t[i]=o,og(n,e,0,i,Yi(n,t,r.hostVars,j),r)}function qA(n,e,t){const i=ht(e,n),r=eg(t),s=n[10],o=Vo(n,as(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function un(n,e,t,i,r,s){const o=ht(n,e);!function Lc(n,e,t,i,r,s,o){if(null==s)xe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?V(s):o(s,i||"",r);xe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[G],o,s,n.value,t,i,r)}function KA(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function QA(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function dg(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function XA(n,e){const t=pt(e,n);if(Tl(t)){const i=t[1];80&t[2]?Zi(i,t,i.template,t[8]):t[5]>0&&Vc(t)}}function Vc(n){for(let i=ic(n);null!==i;i=rc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Zi(o,s,o.template,s[8])}else s[5]>0&&Vc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=pt(t[i],n);Tl(r)&&r[5]>0&&Vc(r)}}function JA(n,e){const t=pt(e,n),i=t[1];(function eM(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),ls(i,t,t[8])}function Vo(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Bc(n){for(;n;){n[2]|=64;const e=ts(n);if(Tw(n)&&!e)return n;n=e}return null}function fg(n){!function jc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=ec(t),r=i[1];OA(r,i,r.template,t)}}(n[8])}function Gc(n,e,t){Ll(0),e(n,t)}const nM=(()=>Promise.resolve(null))();function hg(n){return n[7]||(n[7]=[])}function pg(n){return n.cleanup||(n.cleanup=[])}function mg(n,e){const t=n[9],i=t?t.get(os,null):null;i&&i.handleError(e)}function _g(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function wn(n,e,t){const i=lo(e,n);!function op(n,e,t){xe(n)?n.setValue(e,t):e.textContent=t}(n[G],i,t)}function Bo(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=pl(r,a):2==s&&(i=pl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const $c=new F("INJECTOR",-1);class yg{get(e,t=Qr){if(t===Qr){const i=new Error(`NullInjectorError: No provider for ${ee(e)}!`);throw i.name="NullInjectorError",i}return t}}const Uc=new F("Set Injector scope."),cs={},sM={};let zc;function vg(){return void 0===zc&&(zc=new yg),zc}function bg(n,e=null,t=null,i){const r=Cg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function Cg(n,e=null,t=null,i){return new oM(n,t,e||vg(),i)}class oM{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&on(t,a=>this.processProvider(a,e,t)),on([e],a=>this.processInjectorType(a,[],s)),this.records.set($c,Xi(void 0,this));const o=this.records.get(Uc);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ee(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Qr,i=H.Default){this.assertNotDestroyed();const r=Uh(this),s=On(void 0);try{if(!(i&H.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function pM(n){return"function"==typeof n||"object"==typeof n&&n instanceof F}(e)&&ml(e);a=l&&this.injectableDefInScope(l)?Xi(Wc(e),cs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&H.Self?vg():this.parent).get(e,t=i&H.Optional&&t===Qr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Eo]=o[Eo]||[]).unshift(ee(e)),r)throw o;return function VE(n,e,t,i){const r=n[Eo];throw e[$h]&&r.unshift(e[$h]),n.message=function BE(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ee(e);if(Array.isArray(e))r=e.map(ee).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ee(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(OE,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Eo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{On(s),Uh(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ee(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processInjectorType(e,t,i){if(!(e=$(e)))return!1;let r=Xf(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Xf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{on(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:f,providers:h}=u[d];on(h,p=>this.processProvider(p,f,h||oe))}}this.injectorDefTypes.add(o);const l=ri(o)||(()=>new o);this.records.set(o,Xi(l,cs));const c=r.providers;if(null!=c&&!a){const u=e;on(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=Ji(e=$(e))?e:$(e&&e.provide);const s=function lM(n,e,t){return wg(n)?Xi(void 0,n.useValue):Xi(Dg(n),cs)}(e);if(Ji(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Xi(void 0,cs,!0),o.factory=()=>Yl(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===cs&&(t.value=sM,t.value=t.factory()),"object"==typeof t.value&&t.value&&function hM(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=$(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Wc(n){const e=ml(n),t=null!==e?e.factory:ri(n);if(null!==t)return t;if(n instanceof F)throw new I(204,!1);if(n instanceof Function)return function aM(n){const e=n.length;if(e>0)throw Kr(e,"?"),new I(204,!1);const t=function yw(n){const e=n&&(n[eo]||n[Jf]);if(e){const t=function vw(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new I(204,!1)}function Dg(n,e,t){let i;if(Ji(n)){const r=$(n);return ri(r)||Wc(r)}if(wg(n))i=()=>$(n.useValue);else if(function uM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Yl(n.deps||[]));else if(function cM(n){return!(!n||!n.useExisting)}(n))i=()=>v($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function fM(n){return!!n.deps}(n))return ri(r)||Wc(r);i=()=>new r(...Yl(n.deps))}return i}function Xi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function wg(n){return null!==n&&"object"==typeof n&&PE in n}function Ji(n){return"function"==typeof n}let qe=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return bg({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return bg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Qr,n.NULL=new yg,n.\u0275prov=w({token:n,providedIn:"any",factory:()=>v($c)}),n.__NG_ELEMENT_ID__=-1,n})();function DM(n,e){ho(ec(n)[1],Le())}function E(n){let e=function Pg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Gt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new I(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Qc(n.inputs),o.declaredInputs=Qc(n.declaredInputs),o.outputs=Qc(n.outputs);const a=r.hostBindings;a&&AM(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&EM(n,l),c&&xM(n,c),hl(n.inputs,r.inputs),hl(n.declaredInputs,r.declaredInputs),hl(n.outputs,r.outputs),Gt(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<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===E&&(t=!1)}}e=Object.getPrototypeOf(e)}!function wM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=_o(r.hostAttrs,t=_o(t,r.hostAttrs))}}(i)}function Qc(n){return n===Ti?{}:n===oe?[]:n}function EM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function xM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function AM(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let jo=null;function er(){if(!jo){const n=ie.Symbol;if(n&&n.iterator)jo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(jo=i)}}}return jo}function us(n){return!!function Yc(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&er()in n)}function Ke(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function st(n,e,t,i){const r=C();return Ke(r,Li(),e)&&(Y(),un(ve(),r,n,e,t,i)),st}function fs(n,e,t,i,r,s,o,a){const l=C(),c=Y(),u=n+20,d=c.firstCreatePass?function OM(n,e,t,i,r,s,o,a,l){const c=e.consts,u=Qi(e,n,4,o||null,Nn(c,a));Nc(e,t,u,Nn(c,l)),ho(e,u);const d=u.tViews=Lo(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];sn(d,!1);const f=l[G].createComment("");Io(c,l,f,d),We(f,l),Vo(l,l[u]=dg(f,l,f,d)),ao(d)&&kc(c,l,d),null!=o&&Pc(l,d,a)}function g(n,e=H.Default){const t=C();return null===t?v(n,e):Oh(Le(),t,$(n),e)}function qt(n,e,t){const i=C();return Ke(i,Li(),e)&&function vt(n,e,t,i,r,s,o,a){const l=ht(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(_g(n,t,u,i,r),oo(e)&&function VA(n,e){const t=pt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function LA(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,xe(s)?s.setProperty(l,i,r):jl(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(Y(),ve(),i,n,e,i[G],t,!1),qt}function tu(n,e,t,i,r){const o=r?"class":"style";_g(n,t,e.inputs[o],o,i)}function ot(n,e,t,i){const r=C(),s=Y(),o=20+n,a=r[G],l=r[o]=oc(a,e,function cE(){return B.lFrame.currentNamespace}()),c=s.firstCreatePass?function eS(n,e,t,i,r,s,o){const a=e.consts,c=Qi(e,n,2,r,Nn(a,s));return Nc(e,t,c,Nn(a,o)),null!==c.attrs&&Bo(c,c.attrs,!1),null!==c.mergedAttrs&&Bo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];sn(c,!0);const u=c.mergedAttrs;null!==u&&mo(a,l,u);const d=c.classes;null!==d&&hc(a,l,d);const f=c.styles;return null!==f&&vp(a,l,f),64!=(64&c.flags)&&Io(s,r,l,c),0===function Ww(){return B.lFrame.elementDepthCount}()&&We(l,r),function qw(){B.lFrame.elementDepthCount++}(),ao(c)&&(kc(s,r,c),function Jp(n,e,t){if(wl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}(s,c,r)),null!==i&&Pc(r,c),ot}function at(){let n=Le();Ol()?kl():(n=n.parent,sn(n,!1));const e=n;!function Kw(){B.lFrame.elementDepthCount--}();const t=Y();return t.firstCreatePass&&(ho(t,n),wl(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function pE(n){return 0!=(16&n.flags)}(e)&&tu(t,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function gE(n){return 0!=(32&n.flags)}(e)&&tu(t,e,C(),e.stylesWithoutHost,!1),at}function $o(n,e,t,i){return ot(n,e,t,i),at(),$o}function Uo(n){return!!n&&"function"==typeof n.then}const sm=function rm(n){return!!n&&"function"==typeof n.subscribe};function bt(n,e,t,i){const r=C(),s=Y(),o=Le();return function am(n,e,t,i,r,s,o,a){const l=ao(i),u=n.firstCreatePass&&pg(n),d=e[8],f=hg(e);let h=!0;if(3&i.type||a){const y=ht(i,e),b=a?a(y):y,_=f.length,x=a?R=>a(Te(R[i.index])):i.index;if(xe(t)){let R=null;if(!a&&l&&(R=function iS(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==R)(R.__ngLastListenerFn__||R).__ngNextListenerFn__=s,R.__ngLastListenerFn__=s,h=!1;else{s=ru(i,e,d,s,!1);const W=t.listen(b,r,s);f.push(s,W),u&&u.push(r,x,_,_+1)}}else s=ru(i,e,d,s,!0),b.addEventListener(r,s,o),f.push(s),u&&u.push(r,x,_,o)}else s=ru(i,e,d,s,!1);const p=i.outputs;let m;if(h&&null!==p&&(m=p[r])){const y=m.length;if(y)for(let b=0;b<y;b+=2){const me=e[m[b]][m[b+1]].subscribe(s),De=f.length;f.push(s,me),u&&u.push(r,i.index,De,-(De+1))}}}(s,r,r[G],o,n,e,!!t,i),bt}function lm(n,e,t,i){try{return!1!==t(i)}catch(r){return mg(n,r),!1}}function ru(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?pt(n.index,e):e;0==(32&e[2])&&Bc(a);let l=lm(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=lm(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function zo(n=1){return function iE(n){return(B.lFrame.contextLView=function rE(n,e){for(;n>0;)e=e[15],n--;return e}(n,B.lFrame.contextLView))[8]}(n)}function rS(n,e){let t=null;const i=function hA(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Vp(n,s,!0):mA(i,s))return r}else t=r}return t}function bm(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?zt(s):Dn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];aS(n[a],e)&&(l=!0,n[a+1]=i?Ec(u):Dc(u)),a=i?zt(u):Dn(u)}l&&(n[t+1]=i?Dc(s):Ec(s))}function aS(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&zi(n,e)>=0}function Hn(n,e){return function Kt(n,e,t,i){const r=C(),s=Y(),o=function Cn(n){const e=B.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);s.firstUpdatePass&&function Im(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Xe()],o=function Sm(n,e){return e>=n.expandoStartIndex}(n,t);(function Om(n,e){return 0!=(n.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function mS(n,e,t,i){const r=function Nl(n){const e=B.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=hs(t=ou(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=ou(r,n,e,t,i),null===s){let l=function _S(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Dn(i))return n[zt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=ou(null,n,e,l[1],i),l=hs(l,e.attrs,i),function yS(n,e,t,i){n[zt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function vS(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=hs(i,n[s].hostAttrs,t);return hs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function sS(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=zt(o),l=Dn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||zi(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const f=zt(n[a+1]);n[i+1]=ko(f,a),0!==f&&(n[f+1]=wc(n[f+1],i)),n[a+1]=function bA(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=ko(a,0),0!==a&&(n[a+1]=wc(n[a+1],i)),a=i;else n[i+1]=ko(l,0),0===a?a=i:n[l+1]=wc(n[l+1],i),l=i;c&&(n[i+1]=Dc(n[i+1])),bm(n,u,i,!0),bm(n,u,i,!1),function oS(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&zi(s,e)>=0&&(t[i+1]=Ec(t[i+1]))}(e,u,n,i,s),o=ko(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}(s,n,o,i),e!==j&&Ke(r,o,e)&&function Tm(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Wo(function $p(n){return 1==(1&n)}(c)?Rm(l,e,t,r,Dn(c),o):void 0)||(Wo(s)||function Gp(n){return 2==(2&n)}(c)&&(s=Rm(l,null,t,r,a,o)),function yx(n,e,t,i,r){const s=xe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:mt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=mt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,lo(Xe(),t),r,s))}(s,s.data[Xe()],r,r[G],n,r[o+1]=function DS(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ee(function _t(n){return n instanceof class ai{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?n.changingThisBreaksApplicationSecurity:n}(n)))),n}(e,t),i,o)}(n,e,null,!0),Hn}function ou(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=hs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function hs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),gt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Rm(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[r+1];f===j&&(f=d?oe:void 0);let h=d?ql(f,i):u===i?f:void 0;if(c&&!Wo(h)&&(h=ql(l,i)),Wo(h)&&(a=h,o))return a;const p=n[r+1];r=o?zt(p):Dn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ql(l,i))}return a}function Wo(n){return void 0!==n}function fr(n,e=""){const t=C(),i=Y(),r=n+20,s=i.firstCreatePass?Qi(i,r,1,e,null):i.data[r],o=t[r]=function sc(n,e){return xe(n)?n.createText(e):n.createTextNode(e)}(t[G],e);Io(i,t,o,s),sn(s,!1)}function au(n){return hr("",n,""),au}function hr(n,e,t){const i=C(),r=function nr(n,e,t,i){return Ke(n,Li(),t)?e+V(t)+i:j}(i,n,e,t);return r!==j&&wn(i,Xe(),r),hr}const qo="en-US";let t_=qo;function uu(n,e,t,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)uu(n[s],e,t,i,r);else{const s=Y(),o=C();let a=Ji(n)?n:$(n.provide),l=Dg(n);const c=Le(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(Ji(n)||!n.multi){const h=new Hr(l,r,g),p=fu(a,e,r?u:u+f,d);-1===p?(bo($r(c,o),s,a),du(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(h),o.push(h)):(t[p]=h,o[p]=h)}else{const h=fu(a,e,u+f,d),p=fu(a,e,u,u+f),m=h>=0&&t[h],y=p>=0&&t[p];if(r&&!y||!r&&!m){bo($r(c,o),s,a);const b=function G0(n,e,t,i,r){const s=new Hr(n,t,g);return s.multi=[],s.index=e,s.componentProviders=0,x_(s,r,i&&!t),s}(r?H0:j0,t.length,r,i,l);!r&&y&&(t[p].providerFactory=b),du(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(b),o.push(b)}else du(s,n,h>-1?h:p,x_(t[r?p:h],l,!r&&i));!r&&i&&y&&t[p].componentProviders++}}}function du(n,e,t,i){const r=Ji(e),s=function dM(n){return!!n.useClass}(e);if(r||s){const l=(s?$(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function x_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function fu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function j0(n,e,t,i){return hu(this.multi,[])}function H0(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Ur(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),hu(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],hu(r,s);return s}function hu(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function le(n,e=[]){return t=>{t.providersResolver=(i,r)=>function B0(n,e,t){const i=Y();if(i.firstCreatePass){const r=Gt(n);uu(t,i.data,i.blueprint,r,!0),uu(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class A_{}class z0{resolveComponentFactory(e){throw function U0(n){const e=Error(`No component factory found for ${ee(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let ui=(()=>{class n{}return n.NULL=new z0,n})();function W0(){return mr(Le(),C())}function mr(n,e){return new U(ht(n,e))}let U=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=W0,n})();function q0(n){return n instanceof U?n.nativeElement:n}class ys{}let En=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Q0(){const n=C(),t=pt(Le().index,n);return function K0(n){return n[G]}(rn(t)?t:n)}(),n})(),Y0=(()=>{class n{}return n.\u0275prov=w({token:n,providedIn:"root",factory:()=>null}),n})();class Gn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Z0=new Gn("13.4.0"),pu={};function Xo(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Te(s)),Ht(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Xo(l[1],l,c,i)}const o=t.type;if(8&o)Xo(n,e,t.child,i);else if(32&o){const a=nc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=_p(e,t);if(Array.isArray(a))i.push(...a);else{const l=ts(e[16]);Xo(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class vs{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Xo(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Ht(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(ac(e,i),Do(t,i))}this._attachedToViewContainer=!1}lp(this._lView[1],this._lView)}onDestroy(e){ig(this._lView[1],this._lView,null,e)}markForCheck(){Bc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Hc(n,e,t){const i=e[10];i.begin&&i.begin();try{Zi(n,e,n.template,t)}catch(r){throw mg(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function lx(n,e){ns(n,e,e[G],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,"");this._appRef=e}}class X0 extends vs{constructor(e){super(e),this._view=e}detectChanges(){fg(this._view)}checkNoChanges(){}get context(){return null}}class S_ extends ui{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ue(e);return new gu(t,this.ngModule)}}function I_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class gu extends A_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function yA(n){return n.map(_A).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return I_(this.componentDef.inputs)}get outputs(){return I_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function eI(n,e){return{get:(t,i,r)=>{const s=n.get(t,pu,r);return s!==pu||i===pu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(ys,dh),a=s.get(Y0,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function ng(n,e,t){if(xe(n))return n.selectRootElement(e,t===Bt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):oc(o.createRenderer(null,this.componentDef),c,function J0(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,f=function kg(n,e){return{components:[],scheduler:n||sA,clean:nM,playerHandler:e||null,flags:0}}(),h=Lo(0,null,null,1,0,null,null,null,null,null),p=as(null,h,f,d,null,null,o,l,a,s);let m,y;uo(p);try{const b=function Rg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=Qi(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Bo(l,c,!0),null!==n&&(mo(r,n,c),null!==l.classes&&hc(r,n,l.classes),null!==l.styles&&vp(r,n,l.styles)));const u=i.createRenderer(n,e),d=as(t,eg(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(bo($r(l,t),o,e.type),lg(o,l),cg(l,t.length,1)),Vo(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)mo(l,u,["ng-version",Z0.full]);else{const{attrs:_,classes:x}=function vA(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Ut(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);_&&mo(l,u,_),x&&x.length>0&&hc(l,u,x.join(" "))}if(y=Fl(h,20),void 0!==t){const _=y.projection=[];for(let x=0;x<this.ngContentSelectors.length;x++){const R=t[x];_.push(null!=R?Array.from(R):null)}}m=function Og(n,e,t,i,r){const s=t[1],o=function jA(n,e,t){const i=Le();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),ug(n,i,e,Yi(n,e,1,null),t));const r=Ur(e,n,i.directiveStart,i);We(r,e);const s=ht(i,e);return s&&We(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Le();e.contentQueries(1,o,l.directiveStart)}const a=Le();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ln(a.index),og(t[1],a,0,a.directiveStart,a.directiveEnd,e),ag(e,o)),o}(b,this.componentDef,p,f,[DM]),ls(h,p,null)}finally{fo()}return new nI(this.componentType,m,mr(y,p),p,y)}}class nI extends class $0{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new X0(r),this.componentType=e}get injector(){return new ji(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class _r{}const yr=new Map;class R_ extends _r{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new S_(this);const i=Mt(e);this._bootstrapComponents=cn(i.bootstrap),this._r3Injector=Cg(e,t,[{provide:_r,useValue:this},{provide:ui,useValue:this.componentFactoryResolver}],ee(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=qe.THROW_IF_NOT_FOUND,i=H.Default){return e===qe||e===_r||e===$c?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class mu extends class rI{}{constructor(e){super(),this.moduleType=e,null!==Mt(e)&&function sI(n){const e=new Set;!function t(i){const r=Mt(i,!0),s=r.id;null!==s&&(function F_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ee(e)} vs ${ee(e.name)}`)}(s,yr.get(s),i),yr.set(s,i));const o=cn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new R_(this.moduleType,e)}}function O_(n,e,t,i){return function k_(n,e,t,i,r,s){const o=e+t;return Ke(n,o,r)?function dn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function bs(n,e){const t=n[e];return t===j?void 0:t}(n,o+1)}(C(),function Ze(){const n=B.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),n,e,t,i)}function _u(n){return e=>{setTimeout(n,void 0,e)}}const Re=class DI extends Ne{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;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=_u(l),a&&(a=_u(a)),c&&(c=_u(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof de&&e.add(u),u}};function wI(){return this._results[er()]()}class yu{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=er(),i=yu.prototype;i[t]||(i[t]=wI)}get changes(){return this._changes||(this._changes=new Re)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ft(e);(this._changesDetected=!function EE(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let xn=(()=>{class n{}return n.__NG_ELEMENT_ID__=AI,n})();const EI=xn,xI=class extends EI{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=as(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),ls(t,i,e),new vs(i)}};function AI(){return Jo(Le(),C())}function Jo(n,e){return 4&n.type?new xI(e,n,mr(n,e)):null}let pn=(()=>{class n{}return n.__NG_ELEMENT_ID__=MI,n})();function MI(){return H_(Le(),C())}const SI=pn,B_=class extends SI{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return mr(this._hostTNode,this._hostLView)}get injector(){return new ji(this._hostTNode,this._hostLView)}get parentInjector(){const e=vo(this._hostTNode,this._hostLView);if(Sh(e)){const t=Bi(e,this._hostLView),i=Vi(e);return new ji(t[1].data[i+8],t)}return new ji(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=j_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function qr(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new gu(Ue(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const f=(o?c:this.parentInjector).get(_r,null);f&&(s=f)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function zw(n){return Ht(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],f=new B_(d,d[6],d[3]);f.detach(f.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function ux(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],Vh(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function dx(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=uc(s,o),l=i[G],c=So(l,o[7]);return null!==c&&function ax(n,e,t,i,r,s){i[0]=r,i[6]=e,ns(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Vh(vu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=j_(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=ac(this._lContainer,t);i&&(Do(vu(this._lContainer),t),lp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=ac(this._lContainer,t);return i&&null!=Do(vu(this._lContainer),t)?new vs(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function j_(n){return n[8]}function vu(n){return n[8]||(n[8]=[])}function H_(n,e){let t;const i=e[n.index];if(Ht(i))t=i;else{let r;if(8&n.type)r=Te(i);else{const s=e[G];r=s.createComment("");const o=ht(n,e);si(s,So(s,o),r,function gx(n,e){return xe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=dg(i,e,r,n),Vo(e,t)}return new B_(t,n,e)}class bu{constructor(e){this.queryList=e,this.matches=null}clone(){return new bu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Cu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==K_(e,t).matches&&this.queries[t].setDirty()}}class G_{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Du{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Du(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class wu{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new wu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,TI(t,s)),this.matchTNodeWithReadOption(e,t,Co(t,e,s,!1,!1))}else i===xn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Co(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===U||r===pn||r===xn&&4&t.type)this.addMatch(t.index,-2);else{const s=Co(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function TI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function OI(n,e,t,i){return-1===t?function RI(n,e){return 11&n.type?mr(n,e):4&n.type?Jo(n,e):null}(e,n):-2===t?function kI(n,e,t){return t===U?mr(e,n):t===xn?Jo(e,n):t===pn?H_(e,n):void 0}(n,e,i):Ur(n,n[1],t,e)}function $_(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:OI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Eu(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=$_(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Eu(f[1],f,c,i)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const h=d[f];Eu(h[1],h,c,i)}}}}}return i}function xu(n){const e=C(),t=Y(),i=vh();Ll(i+1);const r=K_(t,i);if(n.dirty&&fh(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Eu(t,e,i,[]):$_(t,e,r,i);n.reset(s,q0),n.notifyOnChanges()}return!0}return!1}function Au(){return function PI(n,e){return n[19].queries[e].queryList}(C(),vh())}function W_(n,e,t){const i=new yu(4==(4&t));ig(n,e,i,i.destroy),null===e[19]&&(e[19]=new Cu),e[19].queries.push(new bu(i))}function q_(n,e,t){null===n.queries&&(n.queries=new Du),n.queries.track(new wu(e,t))}function K_(n,e){return n.queries.getByIndex(e)}function na(...n){}const dy=new F("Application Initializer");let Ru=(()=>{class n{constructor(t){this.appInits=t,this.resolve=na,this.reject=na,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Uo(s))t.push(s);else if(sm(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(v(dy,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ws=new F("AppId",{providedIn:"root",factory:function fy(){return`${Ou()}${Ou()}${Ou()}`}});function Ou(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const hy=new F("Platform Initializer"),Yt=new F("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),py=new F("appBootstrapListener"),An=new F("LocaleId",{providedIn:"root",factory:()=>Zr(An,H.Optional|H.SkipSelf)||function eF(){return"undefined"!=typeof $localize&&$localize.locale||qo}()}),rF=(()=>Promise.resolve(0))();function ku(n){"undefined"==typeof Zone?rF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ne{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Re(!1),this.onMicrotaskEmpty=new Re(!1),this.onStable=new Re(!1),this.onError=new Re(!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)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function sF(){let n=ie.requestAnimationFrame,e=ie.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function lF(n){const e=()=>{!function aF(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ie,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Nu(n),n.isCheckStableRunning=!0,Pu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Nu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return gy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),my(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return gy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),my(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Nu(n),Pu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ne.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ne.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,oF,na,na);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const oF={};function Pu(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 Nu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function gy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function my(n){n._nesting--,Pu(n)}class cF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Re,this.onMicrotaskEmpty=new Re,this.onStable=new Re,this.onError=new Re}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Lu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ne.assertNotInAngularZone(),ku(()=>{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())ku(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(v(ne))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),uF=(()=>{class n{constructor(){this._applications=new Map,Vu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Vu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class dF{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Vu=new dF,di=null;const _y=new F("AllowMultipleToken"),yy=new F("PlatformOnDestroy");function vy(n,e,t=[]){const i=`Platform: ${e}`,r=new F(i);return(s=[])=>{let o=Bu();if(!o||o.injector.get(_y,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function gF(n){if(di&&!di.get(_y,!1))throw new I(400,"");di=n;const e=n.get(by),t=n.get(hy,null);t&&t.forEach(i=>i())}(function _F(n=[],e){return qe.create({name:e,providers:[{provide:Uc,useValue:"platform"},{provide:yy,useValue:()=>di=null},...n]})}(a,i))}return function mF(n){const e=Bu();if(!e)throw new I(401,"");return e}()}}function Bu(){var n;return null!==(n=null==di?void 0:di.get(by))&&void 0!==n?n:null}let by=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function yF(n,e){let t;return t="noop"===n?new cF:("zone.js"===n?void 0:n)||new ne({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:ne,useValue:a}];return a.run(()=>{const c=qe.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(os,null);if(!d)throw new I(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});u.onDestroy(()=>{ju(this._modules,u),f.unsubscribe()})}),function vF(n,e,t){try{const i=t();return Uo(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const f=u.injector.get(Ru);return f.runInitializers(),f.donePromise.then(()=>(function qS(n){dt(n,"Expected localeId to be defined"),"string"==typeof n&&(t_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(An,qo)||qo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Cy({},i);return function hF(n,e,t){const i=new mu(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(ia);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new I(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(yy,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(v(qe))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Cy(n,e){return Array.isArray(e)?e.reduce(Cy,n):Object.assign(Object.assign({},n),e)}let ia=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,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 o=new _e(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new _e(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ne.assertNotInAngularZone(),ku(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Pr(o,a.pipe(function fw(){return n=>Qf()(function cw(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new uw(r,e));const s=Object.create(i,ow);return s.source=i,s.subjectFactory=r,s}}(dw)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new I(405,"");let r;r=t instanceof A_?t:this._injector.get(ui).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function pF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(_r),a=r.create(qe.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Lu,null),u=c&&a.injector.get(uF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),ju(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new I(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;ju(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(py,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(v(ne),v(qe),v(os),v(Ru))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ju(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let wy=!0,Es=(()=>{class n{}return n.__NG_ELEMENT_ID__=DF,n})();function DF(n){return function wF(n,e,t){if(oo(n)&&!t){const i=pt(n.index,e);return new vs(i,i)}return 47&n.type?new vs(e[16],e):null}(Le(),C(),16==(16&n))}class Sy{constructor(){}supports(e){return us(e)}create(e){return new IF(e)}}const SF=(n,e)=>e;class IF{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||SF}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Fy(i,r,s)?t:i,a=Fy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let f=0;f<c;f++){const h=f<s.length?s[f]:s[f]=0,p=h+f;u<=p&&p<c&&(s[f]=h+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!us(e))throw new I(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function RM(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[er()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new FF(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Iy),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Iy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class FF{constructor(e,t){this.item=e,this.trackById=t,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 TF{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Iy{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new TF,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Fy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}function Ry(){return new xs([new Sy])}let xs=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ry()),deps:[[n,new Ao,new xo]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new I(901,"")}}return n.\u0275prov=w({token:n,providedIn:"root",factory:Ry}),n})();const NF=vy(null,"core",[]);let LF=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(v(ia))},n.\u0275mod=ye({type:n}),n.\u0275inj=he({}),n})(),oa=null;function gn(){return oa}const X=new F("DocumentToken");class RT{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,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 Ky=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new RT(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Qy(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Qy(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(pn),g(xn),g(xs))},n.\u0275dir=D({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Qy(n,e){n.context.$implicit=e.item}let Yy=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new OT,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Zy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Zy("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(pn),g(xn))},n.\u0275dir=D({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class OT{constructor(){this.$implicit=null,this.ngIf=null}}function Zy(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ee(e)}'.`)}const Xy="browser";function gi(n){return n===Xy}function br(n){return"server"===n}let sv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({}),n})();class cd extends class NR extends class jF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function BF(n){oa||(oa=n)}(new cd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function LR(){return Fs=Fs||document.querySelector("base"),Fs?Fs.getAttribute("href"):null}();return null==t?null:function VR(n){ya=ya||document.createElement("a"),ya.setAttribute("href",n);const e=ya.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Fs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function FT(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let ya,Fs=null;const av=new F("TRANSITION_ID"),jR=[{provide:dy,useFactory:function BR(n,e,t){return()=>{t.get(Ru).donePromise.then(()=>{const i=gn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[av,X,qe],multi:!0}];class ud{static init(){!function fF(n){Vu=n}(new ud)}addToWindow(e){ie.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ie.getAllAngularTestabilities=()=>e.getAllTestabilities(),ie.getAllAngularRootElements=()=>e.getAllRootElements(),ie.frameworkStabilizers||(ie.frameworkStabilizers=[]),ie.frameworkStabilizers.push(i=>{const r=ie.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(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?gn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let HR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const va=new F("EventManagerPlugins");let ba=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(v(va),v(ne))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class lv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=gn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let cv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),Ts=(()=>{class n extends cv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(uv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(uv))}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();function uv(n){gn().remove(n)}const dd={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/",math:"http://www.w3.org/1998/MathML/"},fd=/%COMP%/g;function Ca(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Ca(n,r,t):(r=r.replace(fd,n),t.push(r))}return t}function hv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Da=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new hd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Bt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new qR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Bt.ShadowDom:return new KR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ca(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(v(ba),v(Ts),v(ws))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class hd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(dd[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=dd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=dd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(mt.DashCase|mt.Important)?e.style.setProperty(t,i,r&mt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&mt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,hv(i)):this.eventManager.addEventListener(e,t,hv(i))}}class qR extends hd{constructor(e,t,i,r){super(e),this.component=i;const s=Ca(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function UR(n){return"_ngcontent-%COMP%".replace(fd,n)}(r+"-"+i.id),this.hostAttr=function zR(n){return"_nghost-%COMP%".replace(fd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class KR extends hd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ca(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let QR=(()=>{class n extends lv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const gv=["alt","control","meta","shift"],ZR={"\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"},mv={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"},XR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let JR=(()=>{class n extends lv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(gv.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(t){let i="",r=function eO(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&mv.hasOwnProperty(e)&&(e=mv[e]))}return ZR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),gv.forEach(s=>{s!=r&&XR[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const rO=vy(NF,"browser",[{provide:Yt,useValue:Xy},{provide:hy,useValue:function tO(){cd.makeCurrent(),ud.init()},multi:!0},{provide:X,useFactory:function iO(){return function Hw(n){Sl=n}(document),document},deps:[]}]),sO=[{provide:Uc,useValue:"root"},{provide:os,useFactory:function nO(){return new os},deps:[]},{provide:va,useClass:QR,multi:!0,deps:[X,ne,Yt]},{provide:va,useClass:JR,multi:!0,deps:[X]},{provide:Da,useClass:Da,deps:[ba,Ts,ws]},{provide:ys,useExisting:Da},{provide:cv,useExisting:Ts},{provide:Ts,useClass:Ts,deps:[X]},{provide:Lu,useClass:Lu,deps:[ne]},{provide:ba,useClass:ba,deps:[va,ne]},{provide:class kR{},useClass:HR,deps:[]}];let _v=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:ws,useValue:t.appId},{provide:av,useExisting:ws},jR]}}}return n.\u0275fac=function(t){return new(t||n)(v(n,12))},n.\u0275mod=ye({type:n}),n.\u0275inj=he({providers:sO,imports:[sv,LF]}),n})();"undefined"!=typeof window&&window;class mO extends de{constructor(e,t){super()}schedule(e,t=0){return this}}class wa extends mO{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Dv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Jt extends Dv{constructor(e,t=Dv.now){super(e,()=>Jt.delegate&&Jt.delegate!==this?Jt.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return Jt.delegate&&Jt.delegate!==this?Jt.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const vO=new class yO extends Jt{}(class _O extends wa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),bO=new _e(n=>n.complete());function gd(...n){let e=n[n.length-1];return qs(e)?(n.pop(),fl(n,e)):Kf(n)}function wO({error:n,subscriber:e}){e.error(n)}class kt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return gd(this.value);case"E":return function DO(n,e){return new _e(e?t=>e.schedule(wO,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return function wv(n){return n?function CO(n){return new _e(e=>n.schedule(()=>e.complete()))}(n):bO}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new kt("N",e):kt.undefinedValueNotification}static createError(e){return new kt("E",void 0,e)}static createComplete(){return kt.completeNotification}}kt.completeNotification=new kt("C"),kt.undefinedValueNotification=new kt("N",void 0);class Ea extends Fe{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ea.dispatch,this.delay,new xO(e,this.destination)))}_next(e){this.scheduleMessage(kt.createNext(e))}_error(e){this.scheduleMessage(kt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(kt.createComplete()),this.unsubscribe()}}class xO{constructor(e,t){this.notification=e,this.destination=t}}class AO extends Ne{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new MO(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Jn;if(this.isStopped||this.hasError?o=de.EMPTY:(this.observers.push(e),o=new jf(this,e)),r&&e.add(e=new Ea(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||vO).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class MO{constructor(e,t){this.time=e,this.value=t}}function Ev(n,e){return"function"==typeof e?t=>t.pipe(Ev((i,r)=>Qs(n(i,r)).pipe(Fi((s,o)=>e(i,s,r,o))))):t=>t.lift(new SO(n))}class SO{constructor(e){this.project=e}call(e,t){return t.subscribe(new IO(e,this.project))}}class IO extends Zs{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Ys(this),r=this.destination;r.add(i),this.innerSubscription=Xs(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const xa={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return xa.schedule(n,0);if(void 0===window.requestAnimationFrame)return xa.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let md;function VO(n,e,t){let i=t;return function TO(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function OO(n,e){if(!md){const t=Element.prototype;md=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&md.call(n,e)}(n,r)||(i=s,0))),i}class jO{constructor(e,t){this.componentFactory=t.get(ui).resolveComponentFactory(e)}create(e){return new HO(this.componentFactory,e)}}class HO{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new AO(1),this.events=this.eventEmitters.pipe(Ev(i=>Pr(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(ne),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=xa.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function kO(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=qe.create({providers:[],parent:this.injector}),i=function LO(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=VO(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Es),this.implementsOnChanges=function RO(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ia).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(Fi(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=xa.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new ah(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class GO extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}const UO=new F("cdk-dir-doc",{providedIn:"root",factory:function zO(){return Zr(X)}}),WO=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vd,_d=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Re,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function qO(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?WO.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(v(UO,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({}),n})();try{vd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){vd=!1}let Rs,bd,Sn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?gi(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&&!vd)&&"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(t){return new(t||n)(v(Yt))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Aa(n){return function KO(){if(null==Rs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Rs=!0}))}finally{Rs=Rs||!1}return Rs}()?n:!!n.capture}function _i(n){return n.composedPath?n.composedPath()[0]:n.target}function Cd(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class Mv extends Ne{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Jn;return this._value}next(e){super.next(this._value=e)}}class rk{constructor(e){this.total=e}call(e,t){return t.subscribe(new sk(e,this.total))}}class sk extends Fe{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class ak{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new lk(e,this.compare,this.keySelector))}}class lk extends Fe{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}function Un(n){return e=>e.lift(new ck(n))}class ck{constructor(e){this.notifier=e}call(e,t){const i=new uk(e),r=Xs(this.notifier,new Ys(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class uk extends Zs{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ct(n){return null!=n&&"false"!=`${n}`}function Sv(n,e=0){return function dk(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function Dr(n){return n instanceof U?n.nativeElement:n}function Ov(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function kv(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const vk=new F("cdk-input-modality-detector-options"),bk={ignoreKeys:[18,17,224,91,16]},wr=Aa({passive:!0,capture:!0});let Ck=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new Mv(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=_i(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ov(o)?"keyboard":"mouse"),this._mostRecentTarget=_i(o))},this._onTouchstart=o=>{kv(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=_i(o))},this._options=Object.assign(Object.assign({},bk),s),this.modalityDetected=this._modality.pipe(function ik(n){return e=>e.lift(new rk(n))}(1)),this.modalityChanged=this.modalityDetected.pipe(function ok(n,e){return t=>t.lift(new ak(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,wr),r.addEventListener("mousedown",this._onMousedown,wr),r.addEventListener("touchstart",this._onTouchstart,wr)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,wr),document.removeEventListener("mousedown",this._onMousedown,wr),document.removeEventListener("touchstart",this._onTouchstart,wr))}}return n.\u0275fac=function(t){return new(t||n)(v(Sn),v(ne),v(X),v(vk,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wk=new F("cdk-focus-monitor-default-options"),Sa=Aa({passive:!0,capture:!0});let Ek=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ne,this._rootNodeFocusAndBlurListener=a=>{const l=_i(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(t,i=!1){const r=Dr(t);if(!this._platform.isBrowser||1!==r.nodeType)return gd(null);const s=function ZO(n){if(function YO(){if(null==bd){const n="undefined"!=typeof document?document.head:null;bd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return bd}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}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 Ne,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=Dr(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=Dr(t);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((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=_i(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Sa),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Sa)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Un(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.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,Sa),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sa),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(v(ne),v(Sn),v(Ck),v(X,8),v(wk,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Nv="cdk-high-contrast-black-on-white",Lv="cdk-high-contrast-white-on-black",Dd="cdk-high-contrast-active";let xk=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),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 t=this._document.body.classList;t.remove(Dd),t.remove(Nv),t.remove(Lv),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Dd),t.add(Nv)):2===i&&(t.add(Dd),t.add(Lv))}}}return n.\u0275fac=function(t){return new(t||n)(v(Sn),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Vv{}const In="*";function Bv(n,e=null){return{type:2,steps:n,options:e}}function Ia(n){return{type:6,styles:n,offset:null}}function jv(n){Promise.resolve(null).then(n)}class Os{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){jv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Hv{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?jv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const Q=!1;function Gv(n){return new I(3e3,Q)}function uP(){return"undefined"!=typeof window&&void 0!==window.document}function Ed(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function zn(n){switch(n.length){case 0:return new Os;case 1:return n[0];default:return new Hv(n)}}function $v(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,f=d==l,h=f&&c||{};Object.keys(u).forEach(p=>{let m=p,y=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),y){case"!":y=r[p];break;case In:y=s[p];break;default:y=e.normalizeStyleValue(p,m,y,o)}h[m]=y}),f||a.push(h),c=h,l=d}),o.length)throw function Jk(n){return new I(3502,Q)}();return a}function xd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ad(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ad(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ad(t,"destroy",n)))}}function Ad(n,e,t){const i=t.totalTime,s=Md(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Md(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Ct(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function Uv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Sd=(n,e)=>!1,zv=(n,e,t)=>[],Wv=null;function Id(n){const e=n.parentNode||n.host;return e===Wv?null:e}(Ed()||"undefined"!=typeof Element)&&(uP()?(Wv=(()=>document.documentElement)(),Sd=(n,e)=>{for(;e;){if(e===n)return!0;e=Id(e)}return!1}):Sd=(n,e)=>n.contains(e),zv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let yi=null,qv=!1;function Kv(n){yi||(yi=function fP(){return"undefined"!=typeof document?document.body:null}()||{},qv=!!yi.style&&"WebkitAppearance"in yi.style);let e=!0;return yi.style&&!function dP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in yi.style,!e&&qv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in yi.style)),e}const Qv=Sd,Yv=zv;let Zv=(()=>{class n{validateStyleProperty(t){return Kv(t)}matchesElement(t,i){return!1}containsElement(t,i){return Qv(t,i)}getParentElement(t){return Id(t)}query(t,i,r){return Yv(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Os(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),Fd=(()=>{class n{}return n.NOOP=new Zv,n})();const Td="ng-enter",Ta="ng-leave",Ra="ng-trigger",Oa=".ng-trigger",Jv="ng-animating",Rd=".ng-animating";function vi(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Od(parseFloat(e[1]),e[2])}function Od(n,e){return"s"===e?1e3*n:n}function ka(n,e,t){return n.hasOwnProperty("duration")?n:function gP(n,e,t){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 e.push(Gv()),{duration:0,delay:0,easing:""};r=Od(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Od(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function Tk(){return new I(3100,Q)}()),a=!0),s<0&&(e.push(function Rk(){return new I(3101,Q)}()),a=!0),a&&e.splice(l,0,Gv())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Er(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Wn(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Er(n,t);return t}function tb(n,e,t){return t?e+":"+t+";":""}function nb(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=tb(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=tb(0,yP(t),n.style[t]));n.setAttribute("style",e)}function mn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Pd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Ed()&&nb(n))}function bi(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Pd(t);n.style[i]=""}),Ed()&&nb(n))}function ks(n){return Array.isArray(n)?1==n.length?n[0]:Bv(n):n}const kd=new RegExp("{{\\s*(.+?)\\s*}}","g");function ib(n){let e=[];if("string"==typeof n){let t;for(;t=kd.exec(n);)e.push(t[1]);kd.lastIndex=0}return e}function Pa(n,e,t){const i=n.toString(),r=i.replace(kd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function kk(n){return new I(3003,Q)}()),a=""),a.toString()});return r==i?n:r}function Na(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const _P=/-+([a-z0-9])/g;function Pd(n){return n.replace(_P,(...e)=>e[1].toUpperCase())}function yP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Dt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function Pk(n){return new I(3004,Q)}()}}function rb(n,e){return window.getComputedStyle(n)[e]}function EP(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function xP(n,e,t){if(":"==n[0]){const l=function AP(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function Qk(n){return new I(3016,Q)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function Kk(n){return new I(3015,Q)}()),e;const r=i[1],s=i[2],o=i[3];e.push(sb(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(sb(o,r))}(i,t,e)):t.push(n),t}const ja=new Set(["true","1"]),Ha=new Set(["false","0"]);function sb(n,e){const t=ja.has(n)||Ha.has(n),i=ja.has(e)||Ha.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?ja.has(n):Ha.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?ja.has(e):Ha.has(e)),o&&a}}const MP=new RegExp("s*:selfs*,?","g");function Nd(n,e,t,i){return new SP(n).build(e,t,i)}class SP{constructor(e){this._driver=e}build(e,t,i){const r=new TP(t);this._resetContextStyleTimingState(r);const s=Dt(this,ks(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function Lk(){return new I(3006,Q)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function Vk(){return new I(3007,Q)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Ga(a)){const l=a;Object.keys(l).forEach(c=>{ib(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Na(s.values()),t.errors.push(function Bk(n,e){return new I(3008,Q)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Dt(this,ks(e.animation),t);return{type:1,matchers:EP(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ci(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Dt(this,i,t)),options:Ci(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Dt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Ci(e.options)}}visitAnimate(e,t){const i=function OP(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ld(ka(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Ld(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=ka(t,e);return Ld(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Ia({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Ia(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==In?i.push(o):t.errors.push(function jk(n){return new I(3002,Q)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Ga(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:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function Hk(n,e,t,i,r){return new I(3010,Q)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function mP(n,e,t){const i=e.params||{},r=ib(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function Ok(n){return new I(3001,Q)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function Gk(){return new I(3011,Q)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const _=this._makeStyleAst(b,t);let x=null!=_.offset?_.offset:function RP(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Ga(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Ga(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(_.styles),R=0;return null!=x&&(s++,R=_.offset=x),l=l||R<0||R>1,a=a||R<c,c=R,o.push(R),_});l&&t.errors.push(function $k(){return new I(3012,Q)}()),a&&t.errors.push(function Uk(){return new I(3200,Q)}());const d=e.steps.length;let f=0;s>0&&s<d?t.errors.push(function zk(){return new I(3202,Q)}()):0==s&&(f=1/(d-1));const h=d-1,p=t.currentTime,m=t.currentAnimateTimings,y=m.duration;return u.forEach((b,_)=>{const x=f>0?_==h?1:f*_:o[_],R=x*y;t.currentTime=p+m.delay+R,m.duration=R,this._validateStyleAst(b,t),b.offset=x,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:Dt(this,ks(e.animation),t),options:Ci(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ci(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ci(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function IP(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(MP,"")),n=n.replace(/@\*/g,Oa).replace(/@\w+/g,t=>Oa+"-"+t.substr(1)).replace(/:animating/g,Rd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Ct(t.collectedStyles,t.currentQuerySelector,{});const a=Dt(this,ks(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ci(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Wk(){return new I(3013,Q)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:ka(e.timings,t.errors,!0);return{type:12,animation:Dt(this,ks(e.animation),t),timings:i,options:null}}}class TP{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function Ga(n){return!Array.isArray(n)&&"object"==typeof n}function Ci(n){return n?(n=Er(n)).params&&(n.params=function FP(n){return n?Er(n):null}(n.params)):n={},n}function Ld(n,e,t){return{duration:n,delay:e,easing:t}}function Vd(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class $a{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const NP=new RegExp(":enter","g"),VP=new RegExp(":leave","g");function Bd(n,e,t,i,r,s={},o={},a,l,c=[]){return(new BP).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class BP{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new $a;const d=new jd(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Dt(this,i,d);const f=d.timelines.filter(h=>h.containsAnimation());if(Object.keys(a).length){let h;for(let p=f.length-1;p>=0;p--){const m=f[p];if(m.element===t){h=m;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[Vd(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?vi(i.duration):null,a=null!=i.delay?vi(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Dt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ua);const o=vi(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Dt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?vi(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Dt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return ka(t.params?Pa(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?vi(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ua);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Dt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Dt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Ua={};class jd{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ua,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new za(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=vi(i.duration)),null!=i.delay&&(r.delay=vi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Pa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new jd(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(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Ua,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new jP(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(NP,"."+this._enterClassName)).replace(VP,"."+this._leaveClassName);let c=this._driver.query(this.element,e,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(function qk(n){return new I(3014,Q)}()),a}}class za{constructor(e,t,i,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new za(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||In,this._currentKeyframe[t]=In}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function HP(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=In})):Wn(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Pa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:In),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Wn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==In&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Na(e.values()):[],o=t.size?Na(t.values()):[];if(i){const a=r[0],l=Er(a);a.offset=0,l.offset=1,r=[a,l]}return Vd(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class jP extends za{constructor(e,t,i,r,s,o,a=!1){super(e,t,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 e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Wn(e[0],!1);l.offset=0,s.push(l);const c=Wn(e[0],!1);c.offset=lb(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let f=Wn(e[d],!1);f.offset=lb((t+f.offset*i)/o),s.push(f)}i=o,t=0,r="",e=s}return Vd(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function lb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Hd{}class GP extends Hd{normalizePropertyName(e,t){return Pd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if($P[t]&&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(function Nk(n,e){return new I(3005,Q)}())}return o+s}}const $P=(()=>function UP(n){const e={};return n.forEach(t=>e[t]=!0),e}("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 cb(n,e,t,i,r,s,o,a,l,c,u,d,f){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const Gd={};class ub{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function zP(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||Gd,p=this.buildStyles(i,a&&a.params||Gd,d),m=l&&l.params||Gd,y=this.buildStyles(r,m,d),b=new Set,_=new Map,x=new Map,R="void"===r,W={params:Object.assign(Object.assign({},f),m)},me=u?[]:Bd(e,t,this.ast.animation,s,o,p,y,W,c,d);let De=0;if(me.forEach(Et=>{De=Math.max(Et.duration+Et.delay,De)}),d.length)return cb(t,this._triggerName,i,r,R,p,y,[],[],_,x,De,d);me.forEach(Et=>{const xt=Et.element,Ir=Ct(_,xt,{});Et.preStyleProps.forEach(nn=>Ir[nn]=!0);const Rn=Ct(x,xt,{});Et.postStyleProps.forEach(nn=>Rn[nn]=!0),xt!==t&&b.add(xt)});const wt=Na(b.values());return cb(t,this._triggerName,i,r,R,p,y,me,wt,_,x,De)}}class WP{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Er(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[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=Pa(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class KP{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new WP(r.style,r.options&&r.options.params||{},i)}),db(this.states,"true","1"),db(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new ub(e,r,this.states))}),this.fallbackTransition=function QP(n,e,t){return new ub(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function db(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const YP=new $a;class ZP{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Nd(this._driver,t,i,[]);if(i.length)throw function eP(n){return new I(3503,Q)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=$v(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Bd(this._driver,t,s,Td,Ta,{},{},i,YP,r),o.forEach(u=>{const d=Ct(a,u.element,{});u.postStyleProps.forEach(f=>d[f]=null)})):(r.push(function tP(){return new I(3300,Q)}()),o=[]),r.length)throw function nP(n){return new I(3504,Q)}();a.forEach((u,d)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(d,f,In)})});const c=zn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function iP(n){return new I(3301,Q)}();return t}listen(e,t,i,r){const s=Md(t,"","","");return xd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);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(e)}}}const fb="ng-animate-queued",$d="ng-animate-disabled",nN=[],hb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},iN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pt="__ng_removed";class Ud{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function aN(n){return null!=n?n:null}(i?e.value:e),i){const s=Er(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Ps="void",zd=new Ud(Ps);class rN{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Nt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function rP(n,e){return new I(3302,Q)}();if(null==i||0==i.length)throw function sP(n){return new I(3303,Q)}();if(!function lN(n){return"start"==n||"done"==n}(i))throw function oP(n,e){return new I(3400,Q)}();const s=Ct(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Ct(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Nt(e,Ra),Nt(e,Ra+"-"+t),a[t]=zd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function aP(n){return new I(3401,Q)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Wd(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Nt(e,Ra),Nt(e,Ra+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Ud(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=zd),c.value!==Ps&&l.value===c.value){if(!function dN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],y=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{bi(e,y),mn(e,b)})}return}const f=Ct(this._engine.playersByElement,e,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!h){if(!r)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Nt(e,fb),o.onStart(()=>{xr(e,fb)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(e);if(y){let b=y.indexOf(o);b>=0&&y.splice(b,1)}}),this.players.push(o),f.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Oa,!0);i.forEach(r=>{if(r[Pt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,Ps,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&zn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||zd,u=new Ud(Ps),d=new Wd(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Pt];(!s||s===hb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Nt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];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=Md(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,xd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.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(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class sN{constructor(e,t,i){this.bodyNode=e,this.driver=t,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(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new rN(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(Wa(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Wa(t))return;const s=t[Pt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Nt(e,$d)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xr(e,$d))}removeNode(e,t,i,r){if(Wa(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Pt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Wa(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Oa,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Rd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return zn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Pt];if(i&&i.setForRemoval){if(e[Pt]=hb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains($d))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];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;i<this.collectedEnterElements.length;i++)Nt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?zn(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function lP(n){return new I(3402,Q)}()}_flushAnimations(e,t){const i=new $a,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const k=this.driver.query(T,".ng-animate-queued",!0);for(let L=0;L<k.length;L++)u.add(k[L])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=mb(f,this.collectedEnterElements),p=new Map;let m=0;h.forEach((T,k)=>{const L=Td+m++;p.set(k,L),T.forEach(J=>Nt(J,L))});const y=[],b=new Set,_=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const k=this.collectedLeaveElements[T],L=k[Pt];L&&L.setForRemoval&&(y.push(k),b.add(k),L.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach(J=>b.add(J)):_.add(k))}const x=new Map,R=mb(f,Array.from(b));R.forEach((T,k)=>{const L=Ta+m++;x.set(k,L),T.forEach(J=>Nt(J,L))}),e.push(()=>{h.forEach((T,k)=>{const L=p.get(k);T.forEach(J=>xr(J,L))}),R.forEach((T,k)=>{const L=x.get(k);T.forEach(J=>xr(J,L))}),y.forEach(T=>{this.processLeaveNode(T)})});const W=[],me=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(L=>{const J=L.player,Ge=L.element;if(W.push(J),this.collectedEnterElements.length){const it=Ge[Pt];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(L.triggerName)){const Mi=it.previousTriggersValues.get(L.triggerName),Xn=this.statesByElement.get(L.element);Xn&&Xn[L.triggerName]&&(Xn[L.triggerName].value=Mi)}return void J.destroy()}}const _n=!d||!this.driver.containsElement(d,Ge),At=x.get(Ge),Zn=p.get(Ge),we=this._buildInstruction(L,i,Zn,At,_n);if(we.errors&&we.errors.length)return void me.push(we);if(_n)return J.onStart(()=>bi(Ge,we.fromStyles)),J.onDestroy(()=>mn(Ge,we.toStyles)),void r.push(J);if(L.isFallbackTransition)return J.onStart(()=>bi(Ge,we.fromStyles)),J.onDestroy(()=>mn(Ge,we.toStyles)),void r.push(J);const BD=[];we.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||BD.push(it)}),we.timelines=BD,i.append(Ge,we.timelines),o.push({instruction:we,player:J,element:Ge}),we.queriedElements.forEach(it=>Ct(a,it,[]).push(J)),we.preStyleProps.forEach((it,Mi)=>{const Xn=Object.keys(it);if(Xn.length){let Si=l.get(Mi);Si||l.set(Mi,Si=new Set),Xn.forEach(kf=>Si.add(kf))}}),we.postStyleProps.forEach((it,Mi)=>{const Xn=Object.keys(it);let Si=c.get(Mi);Si||c.set(Mi,Si=new Set),Xn.forEach(kf=>Si.add(kf))})});if(me.length){const T=[];me.forEach(k=>{T.push(function cP(n,e){return new I(3505,Q)}())}),W.forEach(k=>k.destroy()),this.reportError(T)}const De=new Map,wt=new Map;o.forEach(T=>{const k=T.element;i.has(k)&&(wt.set(k,k),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,De))}),r.forEach(T=>{const k=T.element;this._getPreviousPlayers(k,!1,T.namespaceId,T.triggerName,null).forEach(J=>{Ct(De,k,[]).push(J),J.destroy()})});const Et=y.filter(T=>yb(T,l,c)),xt=new Map;gb(xt,this.driver,_,c,In).forEach(T=>{yb(T,l,c)&&Et.push(T)});const Rn=new Map;h.forEach((T,k)=>{gb(Rn,this.driver,new Set(T),l,"!")}),Et.forEach(T=>{const k=xt.get(T),L=Rn.get(T);xt.set(T,Object.assign(Object.assign({},k),L))});const nn=[],Fr=[],Tr={};o.forEach(T=>{const{element:k,player:L,instruction:J}=T;if(i.has(k)){if(u.has(k))return L.onDestroy(()=>mn(k,J.toStyles)),L.disabled=!0,L.overrideTotalTime(J.totalTime),void r.push(L);let Ge=Tr;if(wt.size>1){let At=k;const Zn=[];for(;At=At.parentNode;){const we=wt.get(At);if(we){Ge=we;break}Zn.push(At)}Zn.forEach(we=>wt.set(we,Ge))}const _n=this._buildAnimation(L.namespaceId,J,De,s,Rn,xt);if(L.setRealPlayer(_n),Ge===Tr)nn.push(L);else{const At=this.playersByElement.get(Ge);At&&At.length&&(L.parentPlayer=zn(At)),r.push(L)}}else bi(k,J.fromStyles),L.onDestroy(()=>mn(k,J.toStyles)),Fr.push(L),u.has(k)&&r.push(L)}),Fr.forEach(T=>{const k=s.get(T.element);if(k&&k.length){const L=zn(k);T.setRealPlayer(L)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<y.length;T++){const k=y[T],L=k[Pt];if(xr(k,Ta),L&&L.hasAnimation)continue;let J=[];if(a.size){let _n=a.get(k);_n&&_n.length&&J.push(..._n);let At=this.driver.query(k,Rd,!0);for(let Zn=0;Zn<At.length;Zn++){let we=a.get(At[Zn]);we&&we.length&&J.push(...we)}}const Ge=J.filter(_n=>!_n.destroyed);Ge.length?cN(this,k,Ge):this.processLeaveNode(k)}return y.length=0,nn.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const k=this.players.indexOf(T);this.players.splice(k,1)}),T.play()}),nn}elementContainsData(e,t){let i=!1;const r=t[Pt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==Ps;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(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Ct(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}bi(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const m=p.element;u.add(m);const y=m[Pt];if(y&&y.removedBeforeQueried)return new Os(p.duration,p.delay);const b=m!==l,_=function uN(n){const e=[];return _b(n,e),e}((i.get(m)||nN).map(De=>De.getRealPlayer())).filter(De=>!!De.element&&De.element===m),x=s.get(m),R=o.get(m),W=$v(0,this._normalizer,0,p.keyframes,x,R),me=this._buildPlayer(p,W,_);if(p.subTimeline&&r&&d.add(m),b){const De=new Wd(e,a,m);De.setRealPlayer(me),c.push(De)}return me});c.forEach(p=>{Ct(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function oN(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Nt(p,Jv));const h=zn(f);return h.onDestroy(()=>{u.forEach(p=>xr(p,Jv)),mn(l,t.toStyles)}),d.forEach(p=>{Ct(r,p,[]).push(h)}),h}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Os(e.duration,e.delay)}}class Wd{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Os,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>xd(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Ct(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Wa(n){return n&&1===n.nodeType}function pb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function gb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(pb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const f=u[d]=e.computeStyle(c,d,r);(!f||0==f.length)&&(c[Pt]=iN,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>pb(l,s[a++])),o}function mb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),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=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Nt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function xr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function cN(n,e,t){zn(t).onDone(()=>n.processLeaveNode(e))}function _b(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Hv?_b(i.players,e):e.push(i)}}function yb(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class qa{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new sN(e,t,i),this._timelineEngine=new ZP(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Nd(this._driver,s,l,[]);if(l.length)throw function Xk(n,e){return new I(3404,Q)}();a=function qP(n,e,t){return new KP(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=Uv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=Uv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let hN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&mn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mn(this._element,this._initialStyles),this._endStyles&&(mn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(bi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bi(this._element,this._endStyles),this._endStyles=null),mn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function qd(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];pN(r)&&(e=e||{},e[r]=n[r])}return e}function pN(n){return"display"===n||"position"===n}class vb{constructor(e,t,i,r){this.element=e,this.keyframes=t,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:rb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class gN{validateStyleProperty(e){return Kv(e)}matchesElement(e,t){return!1}containsElement(e,t){return Qv(e,t)}getParentElement(e){return Id(e)}query(e,t,i){return Yv(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(f=>f instanceof vb);(function vP(n,e){return 0===n||0===e})(i,r)&&u.forEach(f=>{let h=f.currentSnapshot;Object.keys(h).forEach(p=>c[p]=h[p])}),t=function bP(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=rb(n,l)})}}return e}(e,t=t.map(f=>Wn(f,!1)),c);const d=function fN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=qd(e[0]),e.length>1&&(i=qd(e[e.length-1]))):e&&(t=qd(e)),t||i?new hN(n,t,i):null}(e,t);return new vb(e,t,l,d)}}let mN=(()=>{class n extends Vv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Bt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?Bv(t):t;return bb(this._renderer,null,i,"register",[r]),new _N(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(v(ys),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class _N extends class Ak{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new yN(this._id,e,t||{},this._renderer)}}class yN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return bb(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function bb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Cb="@.disabled";let vN=(()=>{class n{constructor(t,i,r){this.delegate=t,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)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Db("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new bN(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(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(t){return new(t||n)(v(ys),v(qa),v(ne))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class Db{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==Cb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class bN extends Db{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Cb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function CN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function DN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let wN=(()=>{class n extends qa{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(v(X),v(Fd),v(Hd))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const Qa=new F("AnimationModuleType"),wb=[{provide:Vv,useClass:mN},{provide:Hd,useFactory:function EN(){return new GP}},{provide:qa,useClass:wN},{provide:ys,useFactory:function xN(n,e,t){return new vN(n,e,t)},deps:[Da,qa,ne]}],Eb=[{provide:Fd,useFactory:()=>new gN},{provide:Qa,useValue:"BrowserAnimations"},...wb],AN=[{provide:Fd,useClass:Zv},{provide:Qa,useValue:"NoopAnimations"},...wb];let MN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?AN:Eb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({providers:Eb,imports:[_v]}),n})();const IN=new F("mat-sanity-checks",{providedIn:"root",factory:function SN(){return!0}});let Di=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Cd()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(v(xk),v(IN,8),v(X))},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[yd],yd]}),n})();function FN(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ct(e)}}}function TN(n,e=0){return class extends n{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Sv(t):this.defaultTabIndex}}}let ON=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class kN{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ab={enterDuration:225,exitDuration:150},Kd=Aa({passive:!0}),Mb=["mousedown","touchstart"],Sb=["mouseup","mouseleave","touchend","touchcancel"];class NN{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Dr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Ab),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function VN(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-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 LN(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new kN(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const f=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!f||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},Ab),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Dr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Mb))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Sb),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=Ov(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!kv(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Kd)})})}_removeTriggerEvents(){this._triggerElement&&(Mb.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kd)}),this._pointerUpEventsRegistered&&Sb.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kd)}))}}const BN=new F("mat-ripple-global-options");let jN=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new NN(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(ne),g(Sn),g(BN,8),g(Qa,8))},n.\u0275dir=D({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Hn("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),HN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[Di],Di]}),n})();function Ya(n,e){return new _e(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Qs(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,f)=>(u[d]=r[f],u),{}):r),t.complete())}}))}})}let Ib=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(g(En),g(U))},n.\u0275dir=D({type:n}),n})(),wi=(()=>{class n extends Ib{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,features:[E]}),n})();const en=new F("NgValueAccessor"),UN={provide:en,useExisting:se(()=>Qd),multi:!0},WN=new F("CompositionEventMode");let Qd=(()=>{class n extends Ib{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zN(){const n=gn()?gn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(g(En),g(U),g(WN,8))},n.\u0275dir=D({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(t,i){1&t&&bt("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:[le([UN]),E]}),n})();const Qe=new F("NgValidators"),Kn=new F("NgAsyncValidators");function jb(n){return null!=n}function Hb(n){const e=Uo(n)?Qs(n):n;return sm(e),e}function Gb(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function $b(n,e){return e.map(t=>t(n))}function Ub(n){return n.map(e=>function KN(n){return!n.validate}(e)?e:t=>e.validate(t))}function Yd(n){return null!=n?function zb(n){if(!n)return null;const e=n.filter(jb);return 0==e.length?null:function(t){return Gb($b(t,e))}}(Ub(n)):null}function Zd(n){return null!=n?function Wb(n){if(!n)return null;const e=n.filter(jb);return 0==e.length?null:function(t){return function GN(...n){if(1===n.length){const e=n[0];if(Or(e))return Ya(e,null);if(dl(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Ya(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Ya(n=1===n.length&&Or(n[0])?n[0]:n,null).pipe(Fi(t=>e(...t)))}return Ya(n,null)}($b(t,e).map(Hb)).pipe(Fi(Gb))}}(Ub(n)):null}function qb(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Kb(n){return n._rawValidators}function Qb(n){return n._rawAsyncValidators}function Xd(n){return n?Array.isArray(n)?n:[n]:[]}function Xa(n,e){return Array.isArray(n)?n.includes(e):n===e}function Yb(n,e){const t=Xd(e);return Xd(n).forEach(r=>{Xa(t,r)||t.push(r)}),t}function Zb(n,e){return Xd(e).filter(t=>!Xa(n,t))}class Qn extends class Xb{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=Yd(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Zd(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,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let eC=(()=>{class n extends class Jb{constructor(e){this._cd=e}is(e){var t,i,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[e])}}{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(g(Qn,2))},n.\u0275dir=D({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Hn("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:[E]}),n})();function Ls(n,e){(function tf(n,e){const t=Kb(n);null!==e.validator?n.setValidators(qb(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=Qb(n);null!==e.asyncValidator?n.setAsyncValidators(qb(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();nl(e._rawValidators,r),nl(e._rawAsyncValidators,r)})(n,e),e.valueAccessor.writeValue(n.value),function iL(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&nC(n,e)})}(n,e),function sL(n,e){const t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function rL(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&nC(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function nL(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function tl(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),function il(n,e){let t=!1;if(null!==n){if(null!==e.validator){const r=Kb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.validator);s.length!==r.length&&(t=!0,n.setValidators(s))}}if(null!==e.asyncValidator){const r=Qb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(t=!0,n.setAsyncValidators(s))}}}const i=()=>{};return nl(e._rawValidators,i),nl(e._rawAsyncValidators,i),t}(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function nl(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function nC(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function sf(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Vs="VALID",rl="INVALID",Ar="PENDING",Bs="DISABLED";function lf(n){return(sl(n)?n.validators:n)||null}function oC(n){return Array.isArray(n)?Yd(n):n||null}function cf(n,e){return(sl(e)?e.asyncValidators:n)||null}function aC(n){return Array.isArray(n)?Zd(n):n||null}function sl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const uf=n=>n instanceof hf;function cC(n){return(n=>n instanceof ff)(n)?n.value:n.getRawValue()}function uC(n,e){const t=uf(n),i=n.controls;if(!(t?Object.keys(i):i).length)throw new I(1e3,"");if(!i[e])throw new I(1001,"")}function dC(n,e){uf(n),n._forEachChild((i,r)=>{if(void 0===e[r])throw new I(1002,"")})}class df{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=oC(this._rawValidators),this._composedAsyncValidatorFn=aC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Vs}get invalid(){return this.status===rl}get pending(){return this.status==Ar}get disabled(){return this.status===Bs}get enabled(){return this.status!==Bs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=oC(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=aC(e)}addValidators(e){this.setValidators(Yb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Yb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Zb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Zb(e,this._rawAsyncValidators))}hasValidator(e){return Xa(this._rawValidators,e)}hasAsyncValidator(e){return Xa(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ar,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Bs,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Vs,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Vs||this.status===Ar)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Bs:Vs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ar,this._hasOwnPendingAsyncValidator=!0;const t=Hb(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function cL(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=uf(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof dL)(i)&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?Bs:this.errors?rl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ar)?Ar:this._anyControlsHaveStatus(rl)?rl:Vs}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){sl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ff extends df{constructor(e=null,t,i){super(lf(t),cf(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sl(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sf(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sf(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class hf extends df{constructor(e,t,i){super(lf(t),cf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){dC(this,e),Object.keys(e).forEach(i=>{uC(this,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=cC(t),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class dL extends df{constructor(e,t,i){super(lf(t),cf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){dC(this,e),e.forEach((i,r)=>{uC(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>cC(e))}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}let _C=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({}),n})();const gf=new F("NgModelWithFormControlWarning"),bL={provide:Qn,useExisting:se(()=>mf)};let mf=(()=>{class n extends Qn{constructor(t,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Re,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=function rf(n,e){if(!e)return null;let t,i,r;return Array.isArray(e),e.forEach(s=>{s.constructor===Qd?t=s:function lL(n){return Object.getPrototypeOf(n.constructor)===wi}(s)?i=s:r=s}),r||i||t||null}(0,r)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const i=t.form.previousValue;i&&tl(i,this,!1),Ls(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function nf(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(g(Qe,10),g(Kn,10),g(en,10),g(gf,8))},n.\u0275dir=D({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[le([bL]),E,$t]}),n})(),OC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[_C]]}),n})(),jL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[OC]}),n})(),HL=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:gf,useValue:t.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[OC]}),n})(),GL=(()=>{class n{constructor(){this._listeners=[]}notify(t,i){for(let r of this._listeners)r(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $L=["input"],UL=function(n){return{enterDuration:n}},zL=["*"],WL=new F("mat-radio-default-options",{providedIn:"root",factory:function qL(){return{color:"accent"}}});let kC=0;const KL={provide:en,useExisting:se(()=>LC),multi:!0};class PC{constructor(e,t){this.source=e,this.value=t}}const NC=new F("MatRadioGroup");let QL=(()=>{class n{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+kC++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Re}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=ct(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=ct(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new PC(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(g(Es))},n.\u0275dir=D({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),LC=(()=>{class n extends QL{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["mat-radio-group"]],contentQueries:function(t,i,r){if(1&t&&function z_(n,e,t,i){const r=Y();if(r.firstCreatePass){const s=Le();q_(r,new G_(e,t,i),s.index),function NI(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}W_(r,C(),t)}(r,VC,5),2&t){let s;xu(s=Au())&&(i._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[le([KL,{provide:NC,useExisting:n}]),E]}),n})();class YL{constructor(e){this._elementRef=e}}const ZL=FN(TN(YL));let XL=(()=>{class n extends ZL{constructor(t,i,r,s,o,a,l,c){super(i),this._changeDetector=r,this._focusMonitor=s,this._radioDispatcher=o,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++kC,this.id=this._uniqueId,this.change=new Re,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,c&&(this.tabIndex=Sv(c,0)),this._removeUniqueSelectionListener=o.listen((u,d)=>{u!==this.id&&d===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const i=ct(t);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(ct(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=ct(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,i){i?this._focusMonitor.focusVia(this._inputElement,i,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new PC(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputInteraction(t){if(t.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}_updateTabIndex(){var t;const i=this.radioGroup;let r;if(r=i&&i.selected&&!this.disabled?i.selected===this?this.tabIndex:-1:this.tabIndex,r!==this._previousTabIndex){const s=null===(t=this._inputElement)||void 0===t?void 0:t.nativeElement;s&&(s.setAttribute("tabindex",r+""),this._previousTabIndex=r)}}}return n.\u0275fac=function(t){!function nm(){throw new Error("invalid")}()},n.\u0275dir=D({type:n,viewQuery:function(t,i){if(1&t&&function U_(n,e,t){const i=Y();i.firstCreatePass&&(q_(i,new G_(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),W_(i,C(),e)}($L,5),2&t){let r;xu(r=Au())&&(i._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[E]}),n})(),VC=(()=>{class n extends XL{constructor(t,i,r,s,o,a,l,c){super(t,i,r,s,o,a,l,c)}}return n.\u0275fac=function(t){return new(t||n)(g(NC,8),g(U),g(Es),g(Ek),g(GL),g(Qa,8),g(WL,8),zr("tabindex"))},n.\u0275cmp=no({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,i){1&t&&bt("focus",function(){return i._inputElement.nativeElement.focus()}),2&t&&(st("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Hn("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[E],ngContentSelectors:zL,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,i){if(1&t&&(function cm(n){const e=C()[16][6];if(!e.projection){const i=e.projection=Kr(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?rS(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}(),ot(0,"label",0,1)(2,"span",2),$o(3,"span",3)(4,"span",4),ot(5,"input",5,6),bt("change",function(s){return i._onInputInteraction(s)})("click",function(s){return i._onInputClick(s)}),at(),ot(7,"span",7),$o(8,"span",8),at()(),ot(9,"span",9)(10,"span",10),fr(11,"\xa0"),at(),function um(n,e=0,t){const i=C(),r=Y(),s=Qi(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),kl(),64!=(64&s.flags)&&function mx(n,e,t){yp(e[G],0,e,t,cp(n,t,e),hp(t.parent||e[6],t,e))}(r,i,s)}(12),at()()),2&t){const r=function zg(n){return function Ni(n,e){return n[e]}(function Xw(){return B.lFrame.contextLView}(),20+n)}(1);st("for",i.inputId),yt(5),qt("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),st("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),yt(2),qt("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",O_(17,UL,i._noopAnimations?0:150)),yt(2),Hn("mat-radio-label-before","before"==i.labelPosition)}},directives:[jN],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n})(),JL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[HN,Di],Di]}),n})();const wf=new Jt(wa);class t1{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new n1(e,this.dueTime,this.scheduler))}}class n1 extends Fe{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(r1,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function r1(n){n.debouncedNext()}function Hs(n,e){return function(i){return i.lift(new s1(n,e))}}class s1{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o1(e,this.predicate,this.thisArg))}}class o1 extends Fe{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let a1=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new ff(""),this.onEnter$=new Ne,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(function e1(n,e=wf){return t=>t.lift(new t1(n,e))}(100)).subscribe(()=>{var t;this.shouldValueChange(this.formControl.value)&&(null===(t=this.onEnter)||void 0===t||t.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(Hs(t=>(this.valueCanBeChanged=this.shouldValueChange(t),this.valueCanBeChanged))).subscribe(t=>{this.updateOnBlur||this.triggerValueChange(t)})}triggerValueChange(t){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(t)})}onEnterKeydown(t){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(t){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(t){return t}shouldValueChange(t){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),l1=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),c1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({providers:[l1]}),n})(),p1=0;const g1=new F("MatError");let m1=(()=>{class n{constructor(t,i){this.id="mat-error-"+p1++,t||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(t){return new(t||n)(zr("aria-live"),g(U))},n.\u0275dir=D({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,i){2&t&&st("id",i.id)},inputs:{id:"id"},features:[le([{provide:g1,useExisting:n}])]}),n})(),_1=0;const y1=new F("MatHint");let v1=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+_1++}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=D({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,i){2&t&&(st("id",i.id)("align",null),Hn("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[le([{provide:y1,useExisting:n}])]}),n})(),b1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=D({type:n,selectors:[["mat-label"]]}),n})(),BC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[sv,Di,c1],Di]}),n})();function jC(n){for(let e in n){let t=n[e]||"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":t=t||"row",n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const Ef="inline",ol=["row","column","row-reverse","column-reverse"];function HC(n){let[e,t,i]=function GC(n){var e;n=null!==(e=null==n?void 0:n.toLowerCase())&&void 0!==e?e:"";let[t,i,r]=n.split(" ");return ol.find(s=>s===t)||(t=ol[0]),i===Ef&&(i=r!==Ef?r:"",r=Ef),[t,C1(i),!!r]}(n);return function D1(n,e=null,t=!1){return{display:t?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":e||null}}(e,t,i)}function C1(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Yn(){}class E1{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new x1(e,this.nextOrObserver,this.error,this.complete))}}class x1 extends Fe{constructor(e,t,i,r){super(e),this._tapNext=Yn,this._tapError=Yn,this._tapComplete=Yn,this._tapError=i||Yn,this._tapComplete=r||Yn,Rr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Yn,this._tapError=t.error||Yn,this._tapComplete=t.complete||Yn)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const M1={provide:py,useFactory:function A1(n,e){return()=>{if(gi(e)){const t=Array.from(n.querySelectorAll(`[class*=${$C}]`)),i=/\bflex-layout-.+?\b/g;t.forEach(r=>{r.classList.contains(`${$C}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[X,Yt],multi:!0},$C="flex-layout-";let xf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({providers:[M1]}),n})();class xi{constructor(e=!1,t="all",i="",r="",s=0){this.matches=e,this.mediaQuery=t,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new xi(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let S1=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(t,i,r){const s=this.stylesheet.get(t);s?s.set(i,r):this.stylesheet.set(t,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,i){const r=this.stylesheet.get(t);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Af={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},tn=new F("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Af}),Mr=new F("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Mf=new F("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function UC(n,e){return n=n?n.clone():new xi,e&&(n.mqAlias=e.alias,n.mediaQuery=e.mediaQuery,n.suffix=e.suffix,n.priority=e.priority),n}class Me{constructor(){this.shouldCache=!0}sideEffect(e,t,i){}}let fe=(()=>{class n{constructor(t,i,r,s){this._serverStylesheet=t,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(t,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:jC(i),this._applyMultiValueStyleToElement(s,t)}applyStyleToElements(t,i=[]){const r=this.layoutConfig.disableVendorPrefixes?t:jC(t);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(t){const i="flex-direction";let r=this.lookupStyle(t,i);return[r||"row",this.lookupInlineStyle(t,i)||br(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,i){var r;return null!==(r=t.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(t,i){return gi(this._platformId)?t.style.getPropertyValue(i):function I1(n,e){var t;return null!==(t=zC(n)[e])&&void 0!==t?t:""}(t,i)}lookupStyle(t,i,r=!1){let s="";return t&&((s=this.lookupInlineStyle(t,i))||(gi(this._platformId)?r||(s=getComputedStyle(t).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(t,i)))),s?s.trim():""}_applyMultiValueStyleToElement(t,i){Object.keys(t).sort().forEach(r=>{const s=t[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",gi(this._platformId)||!this._serverModuleLoaded?gi(this._platformId)?i.style.setProperty(r,a):F1(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return n.\u0275fac=function(t){return new(t||n)(v(S1),v(Mr),v(Yt),v(tn))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function F1(n,e,t){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=zC(n);i[e]=null!=t?t:"",function T1(n,e){let t="";for(const i in e)e[i]&&(t+=`${i}:${e[i]};`);n.setAttribute("style",t)}(n,i)}function zC(n){const e={},t=n.getAttribute("style");if(t){const i=t.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);e[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return e}function $s(n,e){return(e&&e.priority||0)-(n&&n.priority||0)}function R1(n,e){return(n.priority||0)-(e.priority||0)}let Sf=(()=>{class n{constructor(t,i,r){this._zone=t,this._platformId=i,this._document=r,this.source=new Mv(new xi(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((i,r)=>{i.matches&&t.push(r)}),t}isActive(t){var i;const r=this.registry.get(t);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(t).some(s=>s.matches)}observe(t,i=!1){if(t&&t.length){const r=this._observable$.pipe(Hs(o=>!i||t.indexOf(o.mediaQuery)>-1));return Pr(new _e(o=>{const a=this.registerQuery(t);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(t){const i=Array.isArray(t)?t:[t],r=[];return function O1(n,e){const t=n.filter(i=>!WC[i]);if(t.length>0){const i=t.join(", ");try{const r=e.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),e.head.appendChild(r),t.forEach(s=>WC[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new xi(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new xi(!0,s))}),r}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function k1(n,e){return e&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,gi(this._platformId))}}return n.\u0275fac=function(t){return new(t||n)(v(ne),v(Yt),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WC={},P1=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],qC="(orientation: portrait) and (max-width: 599.98px)",KC="(orientation: landscape) and (max-width: 959.98px)",QC="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",YC="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ZC="(orientation: portrait) and (min-width: 840px)",XC="(orientation: landscape) and (min-width: 1280px)",Tn={HANDSET:`${qC}, ${KC}`,TABLET:`${QC} , ${YC}`,WEB:`${ZC}, ${XC} `,HANDSET_PORTRAIT:`${qC}`,TABLET_PORTRAIT:`${QC} `,WEB_PORTRAIT:`${ZC}`,HANDSET_LANDSCAPE:`${KC}`,TABLET_LANDSCAPE:`${YC}`,WEB_LANDSCAPE:`${XC}`},N1=[{alias:"handset",priority:2e3,mediaQuery:Tn.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Tn.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Tn.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Tn.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Tn.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Tn.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Tn.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Tn.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Tn.WEB_PORTRAIT,overlapping:!0}],L1=/(\.|-|_)/g;function V1(n){let e=n.length>0?n.charAt(0):"",t=n.length>1?n.slice(1):"";return e.toUpperCase()+t}const G1=new F("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Zr(Mf),e=Zr(tn),t=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function H1(n,e=[]){const t={};return n.forEach(i=>{t[i.alias]=i}),e.forEach(i=>{t[i.alias]?function Fn(n,...e){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let t of e)if(null!=t)for(let i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}(t[i.alias],i):t[i.alias]=i}),function j1(n){return n.forEach(e=>{e.suffix||(e.suffix=function B1(n){return n.replace(L1,"|").split("|").map(V1).join("")}(e.alias),e.overlapping=!!e.overlapping)}),n}(Object.keys(t).map(i=>t[i]))}((e.disableDefaultBps?[]:P1).concat(e.addOrientationBps?N1:[]),t)}});let If=(()=>{class n{constructor(t){this.findByMap=new Map,this.items=[...t].sort(R1)}findByAlias(t){return t?this.findWithPredicate(t,i=>i.alias===t):null}findByQuery(t){return this.findWithPredicate(t,i=>i.mediaQuery===t)}get overlappings(){return this.items.filter(t=>t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>{var i;return null!==(i=null==t?void 0:t.suffix)&&void 0!==i?i:""})}findWithPredicate(t,i){var r;let s=this.findByMap.get(t);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(t,s)),null!=s?s:null}}return n.\u0275fac=function(t){return new(t||n)(v(G1))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Sr="print",$1={alias:Sr,mediaQuery:Sr,priority:1e3};let U1=(()=>{class n{constructor(t,i,r){this.breakpoints=t,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new z1,this.deactivations=[]}withPrintQuery(t){return[...t,Sr]}isPrintEvent(t){return t.mediaQuery.startsWith(Sr)}get printAlias(){var t;return[...null!==(t=this.layoutConfig.printWithBreakpoints)&&void 0!==t?t:[]]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const i=this.breakpoints.findByQuery(t);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort($s)}updateEvent(t){var i;let r=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(r=this.getEventBreakpoints(t)[0],t.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),UC(t,r)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new xi(!0,Sr))),t.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(t){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(i)),t.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(t),t.updateStyles()):this.collectActivations(t,i)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,i){this.isPrinting=!0,this.formerActivations=t.activatedBreakpoints,t.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(t,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&t.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort($s))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return n.\u0275fac=function(t){return new(t||n)(v(If),v(tn),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class z1{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push($1),e.sort($s),e.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function W1(n){var e;return null!==(e=null==n?void 0:n.mediaQuery.startsWith(Sr))&&void 0!==e&&e}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}let ge=(()=>{class n{constructor(t,i,r){this.matchMedia=t,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Ne,this.observeActivations()}get activatedAlias(){var t,i;return null!==(i=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==i?i:""}set activatedBreakpoints(t){this._activatedBreakpoints=[...t]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(t){this._useFallbacks=t}onMediaChange(t){const i=this.findByQuery(t.mediaQuery);if(i){t=UC(t,i);const r=this.activatedBreakpoints.indexOf(i);t.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort($s),this.updateStyles()):!t.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort($s),this.updateStyles())}}init(t,i,r,s,o=[]){JC(this.updateMap,t,i,r),JC(this.clearMap,t,i,s),this.buildElementKeyMap(t,i),this.watchExtraTriggers(t,i,o)}getValue(t,i,r){const s=this.elementMap.get(t);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(t,i){const r=this.elementMap.get(t);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(t,i,r,s){var o;let a=this.elementMap.get(t);if(a){const c=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,c),this.elementMap.set(t,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(t,a);const l=this.getValue(t,i);void 0!==l&&this.updateElement(t,i,l)}trackValue(t,i){return this.subject.asObservable().pipe(Hs(r=>r.element===t&&r.key===i))}updateStyles(){this.elementMap.forEach((t,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(t);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(t,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(t,i){const r=this.clearMap.get(t);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:t,key:i,value:""}))}}updateElement(t,i,r){const s=this.updateMap.get(t);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:t,key:i,value:r}))}}releaseElement(t){const i=this.watcherMap.get(t);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(t));const r=this.elementMap.get(t);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(t))}triggerUpdate(t,i){const r=this.elementMap.get(t);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(t,i,s.get(i)):s.forEach((o,a)=>this.updateElement(t,a,o)))}}buildElementKeyMap(t,i){let r=this.elementKeyMap.get(t);r||(r=new Set,this.elementKeyMap.set(t,r)),r.add(i)}watchExtraTriggers(t,i,r){if(r&&r.length){let s=this.watcherMap.get(t);if(s||(s=new Map,this.watcherMap.set(t,s)),!s.get(i)){const a=Pr(...r).subscribe(()=>{const l=this.getValue(t,i);this.updateElement(t,i,l)});s.set(i,a)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=t.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=t.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const t=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(function w1(n,e,t){return function(r){return r.lift(new E1(n,e,t))}}(this.hook.interceptEvents(this)),Hs(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(t){return new(t||n)(v(Sf),v(If),v(U1))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function JC(n,e,t,i){var r;if(void 0!==i){const s=null!==(r=n.get(e))&&void 0!==r?r:new Map;s.set(t,i),n.set(e,s)}}let Ce=(()=>{class n{constructor(t,i,r,s){this.elementRef=t,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Ne,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(t[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(t);(!o||!s)&&(o=r.buildStyles(t,i),s&&this.styleCache.set(t,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(t,o,i)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,i=!1){if(t){const[r,s]=this.styler.getFlowDirection(t);if(!s&&i){const o=HC(r);this.styler.applyStyleToElements(o,[t])}return r.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,i,r=this.nativeElement){this.styler.applyStyleToElement(r,t,i)}setValue(t,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,i)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(Me),g(fe),g(ge))},n.\u0275dir=D({type:n,features:[$t]}),n})();function al(n,e){if(void 0===e)return n;const t=i=>{const r=+i.slice(0,-"x".length);return n.endsWith("x")&&!isNaN(r)?`${r*e.value}${e.unit}`:n};return n.includes(" ")?n.split(" ").map(t).join(" "):t(n)}let Q1=(()=>{class n extends Me{buildStyles(t,{display:i}){const r=HC(t);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Y1=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let Z1=(()=>{class n extends Ce{constructor(t,i,r,s,o){super(t,r,i,s),this._config=o,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(t){var i;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=rD.get(s))&&void 0!==i?i:new Map,rD.set(s,this.styleCache),this.currentValue!==t&&(this.addStyles(t,{display:s}),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(fe),g(Q1),g(ge),g(tn))},n.\u0275dir=D({type:n,features:[E]}),n})(),iD=(()=>{class n extends Z1{constructor(){super(...arguments),this.inputs=Y1}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[E]}),n})();const rD=new Map,sD={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let X1=(()=>{class n extends Me{constructor(t,i){super(),this._styler=t,this._config=i}buildStyles(t,i){return t.endsWith(ll)?function oV(n,e){const[t,i]=n.split(" "),s=c=>`-${c}`;let o="0px",a=s(null!=i?i:t),l="0px";return"rtl"===e?l=s(t):o=s(t),{margin:`0px ${o} ${a} ${l}`}}(t=al(t=t.slice(0,t.indexOf(ll)),this._config.multiplier),i.directionality):{}}sideEffect(t,i,r){const s=r.items;if(t.endsWith(ll)){const o=function sV(n,e){const[t,i]=n.split(" ");let s="0px",a="0px";return"rtl"===e?a=t:s=t,{padding:`0px ${s} ${null!=i?i:t} ${a}`}}(t=al(t=t.slice(0,t.indexOf(ll)),this._config.multiplier),r.directionality);this._styler.applyStyleToElements(o,r.items)}else{t=al(t,this._config.multiplier),t=this.addFallbackUnit(t);const o=s.pop(),a=function aV(n,e){const t=aD(e.directionality,e.layout),i=Object.assign({},sD);return i[t]=n,i}(t,r);this._styler.applyStyleToElements(a,s),this._styler.applyStyleToElements(sD,[o])}}addFallbackUnit(t){return isNaN(+t)?t:`${t}${this._config.defaultUnit}`}}return n.\u0275fac=function(t){return new(t||n)(v(fe),v(tn))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const J1=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let eV=(()=>{class n extends Ce{constructor(t,i,r,s,o,a){super(t,o,s,a),this.zone=i,this.directionality=r,this.styleUtils=s,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new Ne;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(Un(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const t=this.nativeElement.children,i=[];for(let r=t.length;r--;)i[r]=t[r];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){const r=t.value.split(" ");this.layout=r[0],ol.find(s=>s===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){const i=this.childrenNodes.filter(r=>1===r.nodeType&&this.willDisplay(r)).sort((r,s)=>{const o=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(s,"order");return isNaN(o)||isNaN(a)||o===a?0:o>a?1:-1});if(i.length>0){const r=this.directionality.value,s=this.layout;"row"===s&&"rtl"===r?this.styleCache=tV:"row"===s&&"rtl"!==r?this.styleCache=iV:"column"===s&&"rtl"===r?this.styleCache=nV:"column"===s&&"rtl"!==r&&(this.styleCache=rV),this.addStyles(t,{directionality:r,items:i,layout:s})}}clearStyles(){const t=Object.keys(this.mru).length>0,i=t?"padding":aD(this.directionality.value,this.layout);t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(t){const i=this.marshal.getValue(t,"show-hide");return!0===i||void 0===i&&"none"!==this.styleUtils.lookupStyle(t,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(t=>{t.some(r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(ne),g(_d),g(fe),g(X1),g(ge))},n.\u0275dir=D({type:n,features:[E]}),n})(),oD=(()=>{class n extends eV{constructor(){super(...arguments),this.inputs=J1}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[E]}),n})();const tV=new Map,nV=new Map,iV=new Map,rV=new Map,ll=" grid";function aD(n,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===n?"margin-left":"margin-right";case"row-reverse":return"rtl"===n?"margin-right":"margin-left"}}let lD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[xf,yd]]}),n})();function YV(n,e){if(1&n&&(ot(0,"mat-label",6),fr(1),at()),2&n){const t=zo();yt(1),au(t.label)}}function ZV(n,e){if(1&n&&(ot(0,"mat-radio-button",7),fr(1),at()),2&n){const t=e.$implicit;qt("value",t.value),yt(1),hr(" ",t.label," ")}}function XV(n,e){if(1&n&&(ot(0,"mat-error",8),fr(1),at()),2&n){const t=zo();yt(1),hr(" ",t.error," ")}}function JV(n,e){if(1&n&&(ot(0,"mat-hint",6),fr(1),at()),2&n){const t=zo();yt(1),hr(" ",t.helpText," ")}}let eB=(()=>{class n extends a1{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275cmp=no({type:n,selectors:[["drayman-radio-group-internal"]],inputs:{options:"options",direction:"direction",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[E],decls:8,vars:6,consts:[[3,"formControl"],[1,"section"],["class","radio-label",4,"ngIf"],["fxLayoutGap","10px",1,"options",3,"fxLayout"],[3,"value",4,"ngFor","ngForOf"],["class","radio-error",4,"ngIf"],[1,"radio-label"],[3,"value"],[1,"radio-error"]],template:function(t,i){1&t&&(ot(0,"mat-radio-group",0)(1,"div",1),fs(2,YV,2,1,"mat-label",2),at(),ot(3,"div",3),fs(4,ZV,2,2,"mat-radio-button",4),at(),ot(5,"div",1),fs(6,XV,2,1,"mat-error",5),fs(7,JV,2,1,"mat-hint",2),at()()),2&t&&(qt("formControl",i.formControl),yt(2),qt("ngIf",i.label),yt(1),qt("fxLayout",i.direction||"column"),yt(1),qt("ngForOf",i.options),yt(2),qt("ngIf",i.error),yt(1),qt("ngIf",!i.error&&i.helpText))},directives:[LC,eC,mf,Yy,b1,oD,iD,Ky,VC,m1,v1],styles:[".radio-label[_ngcontent-%COMP%], .radio-error[_ngcontent-%COMP%]{color:#0009;padding:0 12px;font-size:12px;display:block}.radio-error[_ngcontent-%COMP%]{color:#f44336}.section[_ngcontent-%COMP%]{height:14px}.options[_ngcontent-%COMP%]{padding:12px}"]}),n})(),cD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({}),n})(),tB=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({providers:[ON],imports:[[cD,BC,Di],cD,BC]}),n})(),gD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[xf]]}),n})(),wD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[xf]]}),n})(),Hj=(()=>{class n{constructor(t,i){br(i)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,i=[]){return{ngModule:n,providers:t.serverLoaded?[{provide:tn,useValue:Object.assign(Object.assign({},Af),t)},{provide:Mf,useValue:i,multi:!0},{provide:Mr,useValue:!0}]:[{provide:tn,useValue:Object.assign(Object.assign({},Af),t)},{provide:Mf,useValue:i,multi:!0}]}}}return n.\u0275fac=function(t){return new(t||n)(v(Mr),v(Yt))},n.\u0275mod=ye({type:n}),n.\u0275inj=he({imports:[[lD,gD,wD],lD,gD,wD]}),n})();new class Wj extends Jt{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class zj extends wa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let Kj=1;const Qj=Promise.resolve(),cl={};function AD(n){return n in cl&&(delete cl[n],!0)}const MD={setImmediate(n){const e=Kj++;return cl[e]=!0,Qj.then(()=>AD(e)&&n()),e},clearImmediate(n){AD(n)}};new class Zj extends Jt{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class Yj extends wa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=MD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(MD.clearImmediate(t),e.scheduled=void 0)}});Object.create(Error.prototype);let Of=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Cd()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Cd()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(v(X),v(Sn))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),OH=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),kH=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function $O(n,e){const t=function NO(n,e){return e.get(ui).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new jO(n,e.injector),r=function PO(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function FO(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends GO{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(eB,{injector:this.injector});customElements.define("drayman-radio-group",t)}}return n.\u0275fac=function(t){return new(t||n)(v(qe))},n.\u0275mod=ye({type:n}),n.\u0275inj=he({providers:[{provide:Of,useClass:OH}],imports:[[_v,MN,HL,jL,JL,tB,Hj]]}),n})();(function CF(){wy=!1})(),rO().bootstrapModule(kH).catch(n=>console.error(n))})();
1
+ (()=>{"use strict";function Rr(n){return"function"==typeof n}let ul=!1;const Lt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ul&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ul=n},get useDeprecatedSynchronousErrorHandling(){return ul}};function Ii(n){setTimeout(()=>{throw n},0)}const Us={closed:!0,next(n){},error(n){if(Lt.useDeprecatedSynchronousErrorHandling)throw n;Ii(n)},complete(){}},Or=Array.isArray||(n=>n&&"number"==typeof n.length);function dl(n){return null!==n&&"object"==typeof n}const zs=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class de{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof de)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Rr(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof zs?Pf(o.errors):[o]}}if(Or(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(dl(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof zs?e=e.concat(Pf(c.errors)):e.push(c)}}}if(e)throw new zs(e)}add(e){let t=e;if(!e)return de.EMPTY;switch(typeof e){case"function":t=new de(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof de)){const s=t;t=new de,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof de){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Pf(n){return n.reduce((e,t)=>e.concat(t instanceof zs?t.errors:t),[])}de.EMPTY=((n=new de).closed=!0,n);const Ws="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Fe extends de{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Us;break;case 1:if(!e){this.destination=Us;break}if("object"==typeof e){e instanceof Fe?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Nf(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Nf(this,e,t,i)}}[Ws](){return this}static create(e,t,i){const r=new Fe(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Nf extends Fe{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Rr(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==Us&&(o=Object.create(t),Rr(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(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Lt.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=Lt;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ii(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Ii(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Lt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),Lt.useDeprecatedSynchronousErrorHandling)throw i;Ii(i)}}__tryOrSetError(e,t,i){if(!Lt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Lt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Ii(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Lf(n){return n}let _e=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function GD(n,e,t){if(n){if(n instanceof Fe)return n;if(n[Ws])return n[Ws]()}return n||e||t?new Fe(n,e,t):new Fe(Us)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Lt.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Lt.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Lt.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function HD(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof Fe?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Bf(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[kr](){return this}pipe(...t){return 0===t.length?this:function Vf(n){return 0===n.length?Lf:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Bf(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Bf(n){if(n||(n=Lt.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Jn=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class jf extends de{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Hf extends Fe{constructor(e){super(e),this.destination=e}}let Ne=(()=>{class n extends _e{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ws](){return new Hf(this)}lift(t){const i=new Gf(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Jn;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Jn;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Jn;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Jn;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Jn;return this.hasError?(t.error(this.thrownError),de.EMPTY):this.isStopped?(t.complete(),de.EMPTY):(this.observers.push(t),new jf(this,t))}asObservable(){const t=new _e;return t.source=this,t}}return n.create=(e,t)=>new Gf(e,t),n})();class Gf extends Ne{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):de.EMPTY}}function qs(n){return n&&"function"==typeof n.schedule}function Fi(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new $D(n,e))}}class $D{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new UD(e,this.project,this.thisArg))}}class UD extends Fe{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const $f=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},Ks=function WD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Uf=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function zf(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Wf=n=>{if(n&&"function"==typeof n[kr])return(n=>e=>{const t=n[kr]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Uf(n))return $f(n);if(zf(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Ii),e))(n);if(n&&"function"==typeof n[Ks])return(n=>e=>{const t=n[Ks]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${dl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function fl(n,e){return new _e(t=>{const i=new de;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Qs(n,e){return e?function ew(n,e){if(null!=n){if(function XD(n){return n&&"function"==typeof n[kr]}(n))return function QD(n,e){return new _e(t=>{const i=new de;return i.add(e.schedule(()=>{const r=n[kr]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(zf(n))return function YD(n,e){return new _e(t=>{const i=new de;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(Uf(n))return fl(n,e);if(function JD(n){return n&&"function"==typeof n[Ks]}(n)||"string"==typeof n)return function ZD(n,e){if(!n)throw new Error("Iterable cannot be null");return new _e(t=>{const i=new de;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[Ks](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof _e?n:new _e(Wf(n))}class Ys extends Fe{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Zs extends Fe{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Xs(n,e){if(!e.closed)return n instanceof _e?n.subscribe(e):Wf(n)(e)}function qf(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(qf((r,s)=>Qs(n(r,s)).pipe(Fi((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new tw(n,t)))}class tw{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new nw(e,this.project,this.concurrent))}}class nw extends Zs{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Ys(this),i=this.destination;i.add(t);const r=Xs(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function iw(n=Number.POSITIVE_INFINITY){return qf(Lf,n)}function Kf(n,e){return e?fl(n,e):new _e($f(n))}function Pr(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return qs(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof _e?n[0]:iw(e)(Kf(n,t))}function Qf(){return function(e){return e.lift(new rw(e))}}class rw{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new sw(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class sw extends Fe{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class ow extends _e{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new de,e.add(this.source.subscribe(new lw(this.getSubject(),this))),e.closed&&(this._connection=null,e=de.EMPTY)),e}refCount(){return Qf()(this)}}const aw=(()=>{const n=ow.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 lw extends Hf{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class dw{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function fw(){return new Ne}function ie(n){for(let e in n)if(n[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function hl(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ee(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ee).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function pl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const pw=ie({__forward_ref__:ie});function re(n){return n.__forward_ref__=re,n.toString=function(){return ee(this())},n}function $(n){return Yf(n)?n():n}function Yf(n){return"function"==typeof n&&n.hasOwnProperty(pw)&&n.__forward_ref__===re}class I extends Error{constructor(e,t){super(function gl(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function V(n){return"string"==typeof n?n:null==n?"":String(n)}function $e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():V(n)}function Js(n,e){const t=e?` in ${e}`:"";throw new I(-201,`No provider for ${$e(n)} found${t}`)}function dt(n,e){null==n&&function te(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function w(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function fe(n){return{providers:n.providers||[],imports:n.imports||[]}}function ml(n){return Zf(n,eo)||Zf(n,Jf)}function Zf(n,e){return n.hasOwnProperty(e)?n[e]:null}function Xf(n){return n&&(n.hasOwnProperty(yl)||n.hasOwnProperty(Cw))?n[yl]:null}const eo=ie({\u0275prov:ie}),yl=ie({\u0275inj:ie}),Jf=ie({ngInjectableDef:ie}),Cw=ie({ngInjectorDef:ie});var H=(()=>((H=H||{})[H.Default=0]="Default",H[H.Host=1]="Host",H[H.Self=2]="Self",H[H.SkipSelf=4]="SkipSelf",H[H.Optional=8]="Optional",H))();let _l;function On(n){const e=_l;return _l=n,e}function eh(n,e,t){const i=ml(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&H.Optional?null:void 0!==e?e:void Js(ee(n),"Injector")}function kn(n){return{toString:n}.toString()}var Vt=(()=>((Vt=Vt||{})[Vt.OnPush=0]="OnPush",Vt[Vt.Default=1]="Default",Vt))(),Bt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Bt||(Bt={})),Bt))();const ww="undefined"!=typeof globalThis&&globalThis,Ew="undefined"!=typeof window&&window,xw="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ne=ww||"undefined"!=typeof global&&global||Ew||xw,Ti={},se=[],to=ie({\u0275cmp:ie}),vl=ie({\u0275dir:ie}),bl=ie({\u0275pipe:ie}),th=ie({\u0275mod:ie}),vn=ie({\u0275fac:ie}),Nr=ie({__NG_ELEMENT_ID__:ie});let Aw=0;function no(n){return kn(()=>{const t={},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:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Vt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||se,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Bt.Emulated,id:"c",styles:n.styles||se,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=Aw++,i.inputs=sh(n.inputs,t),i.outputs=sh(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(nh):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ih):null,i})}function nh(n){return Ue(n)||function Pn(n){return n[vl]||null}(n)}function ih(n){return function ei(n){return n[bl]||null}(n)}const rh={};function pe(n){return kn(()=>{const e={type:n.type,bootstrap:n.bootstrap||se,declarations:n.declarations||se,imports:n.imports||se,exports:n.exports||se,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(rh[n.id]=n.type),e})}function sh(n,e){if(null==n)return Ti;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const D=no;function Ue(n){return n[to]||null}function Mt(n,e){const t=n[th]||null;if(!t&&!0===e)throw new Error(`Type ${ee(n)} does not have '\u0275mod' property.`);return t}const G=11;function rn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Ht(n){return Array.isArray(n)&&!0===n[1]}function wl(n){return 0!=(8&n.flags)}function oo(n){return 2==(2&n.flags)}function ao(n){return 1==(1&n.flags)}function Gt(n){return null!==n.template}function Rw(n){return 0!=(512&n[2])}function ri(n,e){return n.hasOwnProperty(vn)?n[vn]:null}class ah{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function $t(){return lh}function lh(n){return n.type.prototype.ngOnChanges&&(n.setInput=Nw),Pw}function Pw(){const n=uh(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Ti)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function Nw(n,e,t,i){const r=uh(n)||function Lw(n,e){return n[ch]=e}(n,{previous:Ti,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new ah(l&&l.currentValue,e,o===Ti),n[i]=e}$t.ngInherit=!0;const ch="__ngSimpleChanges__";function uh(n){return n[ch]||null}let Sl;function xe(n){return!!n.listen}const dh={createRenderer:(n,e)=>function Il(){return void 0!==Sl?Sl:"undefined"!=typeof document?document:void 0}()};function Te(n){for(;Array.isArray(n);)n=n[0];return n}function lo(n,e){return Te(e[n])}function ht(n,e){return Te(e[n.index])}function Fl(n,e){return n.data[e]}function pt(n,e){const t=e[n];return rn(t)?t:t[0]}function fh(n){return 4==(4&n[2])}function Tl(n){return 128==(128&n[2])}function Nn(n,e){return null==e?null:n[e]}function hh(n){n[18]=0}function Rl(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const B={lFrame:Dh(null),bindingsEnabled:!0};function gh(){return B.bindingsEnabled}function C(){return B.lFrame.lView}function Y(){return B.lFrame.tView}function Le(){let n=mh();for(;null!==n&&64===n.type;)n=n.parent;return n}function mh(){return B.lFrame.currentTNode}function sn(n,e){const t=B.lFrame;t.currentTNode=n,t.isParent=e}function Ol(){return B.lFrame.isParent}function kl(){B.lFrame.isParent=!1}function Li(){return B.lFrame.bindingIndex++}function tE(n,e){const t=B.lFrame;t.bindingIndex=t.bindingRootIndex=n,Pl(e)}function Pl(n){B.lFrame.currentDirectiveIndex=n}function vh(){return B.lFrame.currentQueryIndex}function Ll(n){B.lFrame.currentQueryIndex=n}function iE(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function bh(n,e,t){if(t&H.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&H.Host||(r=iE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=B.lFrame=Ch();return i.currentTNode=e,i.lView=n,!0}function uo(n){const e=Ch(),t=n[1];B.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Ch(){const n=B.lFrame,e=null===n?null:n.child;return null===e?Dh(n):e}function Dh(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function wh(){const n=B.lFrame;return B.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Eh=wh;function fo(){const n=wh();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 Ze(){return B.lFrame.selectedIndex}function Ln(n){B.lFrame.selectedIndex=n}function ve(){const n=B.lFrame;return Fl(n.tView,n.selectedIndex)}function ho(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function po(n,e,t){xh(n,e,3,t)}function go(n,e,t,i){(3&n[2])===t&&xh(n,e,t,i)}function Vl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function xh(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(fE(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function fE(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Hr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function mo(n,e,t){const i=xe(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];jl(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Ah(n){return 3===n||4===n||6===n}function jl(n){return 64===n.charCodeAt(0)}function yo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Mh(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Mh(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Sh(n){return-1!==n}function Vi(n){return 32767&n}function Bi(n,e){let t=function yE(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Hl=!0;function _o(n){const e=Hl;return Hl=n,e}let _E=0;function $r(n,e){const t=$l(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Gl(i.data,n),Gl(e,null),Gl(i.blueprint,null));const r=vo(n,e),s=n.injectorIndex;if(Sh(r)){const o=Vi(r),a=Bi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Gl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function $l(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function vo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;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(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function bo(n,e,t){!function vE(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Nr)&&(i=t[Nr]),null==i&&(i=t[Nr]=_E++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Th(n,e,t){if(t&H.Optional)return n;Js(e,"NodeInjector")}function Rh(n,e,t,i){if(t&H.Optional&&void 0===i&&(i=null),0==(t&(H.Self|H.Host))){const r=n[9],s=On(void 0);try{return r?r.get(e,i,t&H.Optional):eh(e,i,t&H.Optional)}finally{On(s)}}return Th(i,e,t)}function Oh(n,e,t,i=H.Default,r){if(null!==n){const s=function wE(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Nr)?n[Nr]:void 0;return"number"==typeof e?e>=0?255&e:CE:e}(t);if("function"==typeof s){if(!bh(e,n,i))return i&H.Host?Th(r,t,i):Rh(e,t,i,r);try{const o=s(i);if(null!=o||i&H.Optional)return o;Js(t)}finally{Eh()}}else if("number"==typeof s){let o=null,a=$l(n,e),l=-1,c=i&H.Host?e[16][6]:null;for((-1===a||i&H.SkipSelf)&&(l=-1===a?vo(n,e):e[a+8],-1!==l&&Nh(i,!1)?(o=e[1],a=Vi(l),e=Bi(l,e)):a=-1);-1!==a;){const u=e[1];if(Ph(s,a,u.data)){const d=DE(a,e,t,o,i,c);if(d!==kh)return d}l=e[a+8],-1!==l&&Nh(i,e[1].data[a+8]===c)&&Ph(s,a,e)?(o=u,a=Vi(l),e=Bi(l,e)):a=-1}}}return Rh(e,t,i,r)}const kh={};function CE(){return new ji(Le(),C())}function DE(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Co(a,o,t,null==i?oo(a)&&Hl:i!=o&&0!=(3&a.type),r&H.Host&&s===a);return null!==u?Ur(e,o,u,a):kh}function Co(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,f=r?a+u:n.directiveEnd;for(let h=i?a:a+u;h<f;h++){const p=o[h];if(h<l&&t===p||h>=l&&p.type===t)return h}if(r){const h=o[l];if(h&&Gt(h)&&h.type===t)return l}return null}function Ur(n,e,t,i){let r=n[t];const s=e.data;if(function hE(n){return n instanceof Hr}(r)){const o=r;o.resolving&&function gw(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new I(-200,`Circular dependency in DI detected for ${n}${t}`)}($e(s[t]));const a=_o(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?On(o.injectImpl):null;bh(n,i,H.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function dE(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=lh(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&On(l),_o(a),o.resolving=!1,Eh()}}return r}function Ph(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Nh(n,e){return!(n&H.Self||n&H.Host&&e)}class ji{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Oh(this._tNode,this._lView,e,i,t)}}function O(n){return kn(()=>{const e=n.prototype.constructor,t=e[vn]||Ul(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[vn]||Ul(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ul(n){return Yf(n)?()=>{const e=Ul($(n));return e&&e()}:ri(n)}function zr(n){return function bE(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Ah(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Le(),n)}const Gi="__parameters__";function Ui(n,e,t){return kn(()=>{const i=function zl(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);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(Gi)?l[Gi]:Object.defineProperty(l,Gi,{value:[]})[Gi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class F{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=w({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ft(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Ft(i,e)):e!==n&&e.push(i)}return e}function on(n,e){n.forEach(t=>Array.isArray(t)?on(t,e):e(t))}function Vh(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Do(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Kr(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function gt(n,e,t){let i=zi(n,e);return i>=0?n[1|i]=t:(i=~i,function ME(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function ql(n,e){const t=zi(n,e);if(t>=0)return n[1|t]}function zi(n,e){return function Hh(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const Qr={},Ql="__NG_DI_FLAG__",Eo="ngTempTokenPath",kE=/\n/gm,$h="__source",NE=ie({provide:String,useValue:ie});let Yr;function Uh(n){const e=Yr;return Yr=n,e}function LE(n,e=H.Default){if(void 0===Yr)throw new I(203,"");return null===Yr?eh(n,void 0,e):Yr.get(n,e&H.Optional?null:void 0,e)}function v(n,e=H.Default){return(function Dw(){return _l}()||LE)($(n),e)}const Zr=v;function Yl(n){const e=[];for(let t=0;t<n.length;t++){const i=$(n[t]);if(Array.isArray(i)){if(0===i.length)throw new I(900,"");let r,s=H.Default;for(let o=0;o<i.length;o++){const a=i[o],l=VE(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(v(r,s))}else e.push(v(i))}return e}function Xr(n,e){return n[Ql]=e,n.prototype[Ql]=e,n}function VE(n){return n[Ql]}const xo=Xr(Ui("Optional"),8),Ao=Xr(Ui("SkipSelf"),4);var mt=(()=>((mt=mt||{})[mt.Important=1]="Important",mt[mt.DashCase=2]="DashCase",mt))();const Xh="__ngContext__";function We(n,e){n[Xh]=e}function ec(n){const e=function es(n){return n[Xh]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function nc(n,e){return undefined(n,e)}function ts(n){const e=n[3];return Ht(e)?e[3]:e}function ic(n){return sp(n[13])}function rc(n){return sp(n[4])}function sp(n){for(;null!==n&&!Ht(n);)n=n[4];return n}function qi(n,e,t,i,r){if(null!=i){let s,o=!1;Ht(i)?s=i:rn(i)&&(o=!0,i=i[0]);const a=Te(i);0===n&&null!==t?null==r?dp(e,t,a):si(e,t,a,r||null,!0):1===n&&null!==t?si(e,t,a,r||null,!0):2===n?function dc(n,e,t){const i=So(n,e);i&&function gx(n,e,t,i){xe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function _x(n,e,t,i,r){const s=t[7];s!==Te(t)&&qi(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];ns(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function oc(n,e,t){if(xe(n))return n.createElement(e,t);{const i=null!==t?function Hw(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function ap(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Rl(r,-1)),t.splice(i,1)}function ac(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&ap(r,i),e>0&&(n[t-1][4]=i[4]);const s=Do(n,10+e);!function ax(n,e){ns(n,e,e[G],2,null,null),e[0]=null,e[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 lp(n,e){if(!(256&e[2])){const t=e[G];xe(t)&&t.destroyNode&&ns(n,e,t,3,null,null),function ux(n){let e=n[13];if(!e)return lc(n[1],n);for(;e;){let t=null;if(rn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)rn(e)&&lc(e[1],e),e=e[3];null===e&&(e=n),rn(e)&&lc(e[1],e),t=e&&e[4]}e=t}}(e)}}function lc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function px(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Hr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function hx(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Te(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&xe(e[G])&&e[G].destroy();const t=e[17];if(null!==t&&Ht(e[3])){t!==e[3]&&ap(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function cp(n,e,t){return function up(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Bt.None||r===Bt.Emulated)return null}return ht(i,t)}(n,e.parent,t)}function si(n,e,t,i,r){xe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function dp(n,e,t){xe(n)?n.appendChild(e,t):e.appendChild(t)}function fp(n,e,t,i,r){null!==i?si(n,e,t,i,r):dp(n,e,t)}function So(n,e){return xe(n)?n.parentNode(e):e.parentNode}function hp(n,e,t){return gp(n,e,t)}let gp=function pp(n,e,t){return 40&n.type?ht(n,t):null};function Io(n,e,t,i){const r=cp(n,i,e),s=e[G],a=hp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)fp(s,r,t[l],a,!1);else fp(s,r,t,a,!1)}function Fo(n,e){if(null!==e){const t=e.type;if(3&t)return ht(e,n);if(4&t)return uc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Fo(n,i);{const r=n[e.index];return Ht(r)?uc(-1,r):Te(r)}}if(32&t)return nc(e,n)()||Te(n[e.index]);{const i=yp(n,e);return null!==i?Array.isArray(i)?i[0]:Fo(ts(n[16]),i):Fo(n,e.next)}}return null}function yp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function uc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Fo(i,r)}return e[7]}function fc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&We(Te(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)fc(n,e,t.child,i,r,s,!1),qi(e,n,r,a,s);else if(32&l){const c=nc(t,i);let u;for(;u=c();)qi(e,n,r,u,s);qi(e,n,r,a,s)}else 16&l?_p(n,e,i,t,r,s):qi(e,n,r,a,s);t=o?t.projectionNext:t.next}}function ns(n,e,t,i,r,s){fc(t,i,n.firstChild,e,r,s,!1)}function _p(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)qi(e,n,r,l[c],s);else fc(n,e,l,o[3],r,s,!0)}function vp(n,e,t){xe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function hc(n,e,t){xe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Cc(n){return n.ngOriginalError}function Jx(n,...e){n.error(...e)}class os{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function Xx(n){return n&&n.ngErrorLogger||Jx}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Cc(e);for(;t&&Cc(t);)t=Cc(t);return t||null}}const oA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ne))();function cn(n){return n instanceof Function?n():n}function Pp(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const Np="ng-template";function uA(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Pp(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Lp(n){return 4===n.type&&n.value!==Np}function dA(n,e,t){return e===(4!==n.type||t?n.value:Np)}function fA(n,e,t){let i=4;const r=n.attrs||[],s=function gA(n){for(let e=0;e<n.length;e++)if(Ah(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!dA(n,l,t)||""===l&&1===e.length){if(Ut(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!uA(n.attrs,c,t)){if(Ut(i))return!1;o=!0}continue}const d=hA(8&i?"class":l,r,Lp(n),t);if(-1===d){if(Ut(i))return!1;o=!0;continue}if(""!==c){let f;f=d>s?"":r[d+1].toLowerCase();const h=8&i?f:null;if(h&&-1!==Pp(h,c,0)||2&i&&c!==f){if(Ut(i))return!1;o=!0}}}}else{if(!o&&!Ut(i)&&!Ut(l))return!1;if(o&&Ut(l))continue;o=!1,i=l|1&i}}return Ut(i)||o}function Ut(n){return 0==(1&n)}function hA(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function mA(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Vp(n,e,t=!1){for(let i=0;i<e.length;i++)if(fA(n,e[i],t))return!0;return!1}function yA(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Bp(n,e){return n?":not("+e.trim()+")":e}function _A(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Ut(o)&&(e+=Bp(s,r),r=""),i=o,s=s||!Ut(i);t++}return""!==r&&(e+=Bp(s,r)),e}const j={};function _t(n){jp(Y(),C(),Ze()+n,!1)}function jp(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&po(e,s,t)}else{const s=n.preOrderHooks;null!==s&&go(e,s,0,t)}Ln(t)}function ko(n,e){return n<<17|e<<2}function zt(n){return n>>17&32767}function Dc(n){return 2|n}function Dn(n){return(131068&n)>>2}function wc(n,e){return-131069&n|e<<2}function Ec(n){return 1|n}function Zp(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Ll(r),o.contentQueries(2,e[s],s)}}}function as(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,hh(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[G]=a||n&&n[G],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function Qi(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Oc(n,e,t,i,r){const s=mh(),o=Ol(),l=n.data[e]=function NA(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function eE(){return B.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function jr(){const n=B.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return sn(s,!0),s}function Yi(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function ls(n,e,t){uo(e);try{const i=n.viewQuery;null!==i&&Gc(1,i,t);const r=n.template;null!==r&&Xp(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Zp(n,e),n.staticViewQueries&&Gc(2,n.viewQuery,t);const s=n.components;null!==s&&function OA(n,e){for(let t=0;t<e.length;t++)eM(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,fo()}}function Zi(n,e,t,i){const r=e[2];if(256!=(256&r)){uo(e);try{hh(e),function yh(n){return B.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Xp(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&po(e,c,null)}else{const c=n.preOrderHooks;null!==c&&go(e,c,0,null),Vl(e,0)}if(function XA(n){for(let e=ic(n);null!==e;e=rc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&Rl(s,1),r[2]|=1024}}}(e),function ZA(n){for(let e=ic(n);null!==e;e=rc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Tl(i)&&Zi(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&Zp(n,e),o){const c=n.contentCheckHooks;null!==c&&po(e,c)}else{const c=n.contentHooks;null!==c&&go(e,c,1),Vl(e,1)}!function TA(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Ln(~r);else{const s=r,o=t[++i],a=t[++i];tE(o,s),a(2,e[s])}}}finally{Ln(-1)}}(n,e);const a=n.components;null!==a&&function RA(n,e){for(let t=0;t<e.length;t++)JA(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&Gc(2,l,i),o){const c=n.viewCheckHooks;null!==c&&po(e,c)}else{const c=n.viewHooks;null!==c&&go(e,c,2),Vl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,Rl(e[3],-1))}finally{fo()}}}function kA(n,e,t,i){const r=e[10],o=fh(e);try{!o&&r.begin&&r.begin(),o&&ls(n,e,i),Zi(n,e,t,i)}finally{!o&&r.end&&r.end()}}function Xp(n,e,t,i,r){const s=Ze(),o=2&i;try{Ln(-1),o&&e.length>20&&jp(n,e,20,!1),t(i,r)}finally{Ln(s)}}function kc(n,e,t){!gh()||(function $A(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||$r(t,e),We(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Gt(l);c&&KA(e,t,l);const u=Ur(e,n,a,t);We(u,e),null!==o&&QA(0,a-r,u,l,0,o),c&&(pt(t.index,e)[8]=u)}}(n,e,t,ht(t,e)),128==(128&t.flags)&&function UA(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function nE(){return B.lFrame.currentDirectiveIndex}();try{Ln(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Pl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&ag(c,u)}}finally{Ln(-1),Pl(a)}}(n,e,t))}function Pc(n,e,t=ht){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function eg(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Lo(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Lo(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,f=function PA(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:j);return t}(u,d),h="function"==typeof c?c():c;return f[1]={type:n,blueprint:f,template:t,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function ig(n,e,t,i){const r=hg(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&pg(n).push(i,r.length-1))}function rg(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Nc(n,e,t,i){let r=!1;if(gh()){const s=function zA(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Vp(t,o.selectors,!1)&&(r||(r=[]),bo($r(t,e),n,o.type),Gt(o)?(lg(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,cg(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Yi(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=yo(t.mergedAttrs,d.hostAttrs),ug(n,t,e,c,d),qA(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function LA(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,f=null===s||Lp(e)?null:YA(d,s);o.push(f),a=rg(d,c,a),l=rg(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function WA(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new I(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=yo(t.mergedAttrs,t.attrs),r}function og(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function GA(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function ag(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function lg(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function qA(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Gt(e)&&(t[""]=n)}}function cg(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function ug(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=ri(r.type)),o=new Hr(s,Gt(r),null);n.blueprint[i]=o,t[i]=o,og(n,e,0,i,Yi(n,t,r.hostVars,j),r)}function KA(n,e,t){const i=ht(e,n),r=eg(t),s=n[10],o=Vo(n,as(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function un(n,e,t,i,r,s){const o=ht(n,e);!function Lc(n,e,t,i,r,s,o){if(null==s)xe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?V(s):o(s,i||"",r);xe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[G],o,s,n.value,t,i,r)}function QA(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function YA(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function dg(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function JA(n,e){const t=pt(e,n);if(Tl(t)){const i=t[1];80&t[2]?Zi(i,t,i.template,t[8]):t[5]>0&&Vc(t)}}function Vc(n){for(let i=ic(n);null!==i;i=rc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Zi(o,s,o.template,s[8])}else s[5]>0&&Vc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=pt(t[i],n);Tl(r)&&r[5]>0&&Vc(r)}}function eM(n,e){const t=pt(e,n),i=t[1];(function tM(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),ls(i,t,t[8])}function Vo(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Bc(n){for(;n;){n[2]|=64;const e=ts(n);if(Rw(n)&&!e)return n;n=e}return null}function fg(n){!function jc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=ec(t),r=i[1];kA(r,i,r.template,t)}}(n[8])}function Gc(n,e,t){Ll(0),e(n,t)}const iM=(()=>Promise.resolve(null))();function hg(n){return n[7]||(n[7]=[])}function pg(n){return n.cleanup||(n.cleanup=[])}function mg(n,e){const t=n[9],i=t?t.get(os,null):null;i&&i.handleError(e)}function yg(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function wn(n,e,t){const i=lo(e,n);!function op(n,e,t){xe(n)?n.setValue(e,t):e.textContent=t}(n[G],i,t)}function Bo(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=pl(r,a):2==s&&(i=pl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const $c=new F("INJECTOR",-1);class _g{get(e,t=Qr){if(t===Qr){const i=new Error(`NullInjectorError: No provider for ${ee(e)}!`);throw i.name="NullInjectorError",i}return t}}const Uc=new F("Set Injector scope."),cs={},oM={};let zc;function vg(){return void 0===zc&&(zc=new _g),zc}function bg(n,e=null,t=null,i){const r=Cg(n,e,t,i);return r._resolveInjectorDefTypes(),r}function Cg(n,e=null,t=null,i){return new aM(n,t,e||vg(),i)}class aM{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&on(t,a=>this.processProvider(a,e,t)),on([e],a=>this.processInjectorType(a,[],s)),this.records.set($c,Xi(void 0,this));const o=this.records.get(Uc);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ee(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Qr,i=H.Default){this.assertNotDestroyed();const r=Uh(this),s=On(void 0);try{if(!(i&H.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function gM(n){return"function"==typeof n||"object"==typeof n&&n instanceof F}(e)&&ml(e);a=l&&this.injectableDefInScope(l)?Xi(Wc(e),cs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&H.Self?vg():this.parent).get(e,t=i&H.Optional&&t===Qr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Eo]=o[Eo]||[]).unshift(ee(e)),r)throw o;return function BE(n,e,t,i){const r=n[Eo];throw e[$h]&&r.unshift(e[$h]),n.message=function jE(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ee(e);if(Array.isArray(e))r=e.map(ee).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ee(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(kE,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Eo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{On(s),Uh(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ee(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processInjectorType(e,t,i){if(!(e=$(e)))return!1;let r=Xf(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Xf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{on(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:f,providers:h}=u[d];on(h,p=>this.processProvider(p,f,h||se))}}this.injectorDefTypes.add(o);const l=ri(o)||(()=>new o);this.records.set(o,Xi(l,cs));const c=r.providers;if(null!=c&&!a){const u=e;on(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=Ji(e=$(e))?e:$(e&&e.provide);const s=function cM(n,e,t){return wg(n)?Xi(void 0,n.useValue):Xi(Dg(n),cs)}(e);if(Ji(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Xi(void 0,cs,!0),o.factory=()=>Yl(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===cs&&(t.value=oM,t.value=t.factory()),"object"==typeof t.value&&t.value&&function pM(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=$(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Wc(n){const e=ml(n),t=null!==e?e.factory:ri(n);if(null!==t)return t;if(n instanceof F)throw new I(204,!1);if(n instanceof Function)return function lM(n){const e=n.length;if(e>0)throw Kr(e,"?"),new I(204,!1);const t=function vw(n){const e=n&&(n[eo]||n[Jf]);if(e){const t=function bw(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new I(204,!1)}function Dg(n,e,t){let i;if(Ji(n)){const r=$(n);return ri(r)||Wc(r)}if(wg(n))i=()=>$(n.useValue);else if(function dM(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Yl(n.deps||[]));else if(function uM(n){return!(!n||!n.useExisting)}(n))i=()=>v($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function hM(n){return!!n.deps}(n))return ri(r)||Wc(r);i=()=>new r(...Yl(n.deps))}return i}function Xi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function wg(n){return null!==n&&"object"==typeof n&&NE in n}function Ji(n){return"function"==typeof n}let Je=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return bg({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return bg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Qr,n.NULL=new _g,n.\u0275prov=w({token:n,providedIn:"any",factory:()=>v($c)}),n.__NG_ELEMENT_ID__=-1,n})();function wM(n,e){ho(ec(n)[1],Le())}function E(n){let e=function Pg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Gt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new I(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Qc(n.inputs),o.declaredInputs=Qc(n.declaredInputs),o.outputs=Qc(n.outputs);const a=r.hostBindings;a&&MM(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&xM(n,l),c&&AM(n,c),hl(n.inputs,r.inputs),hl(n.declaredInputs,r.declaredInputs),hl(n.outputs,r.outputs),Gt(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<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===E&&(t=!1)}}e=Object.getPrototypeOf(e)}!function EM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=yo(r.hostAttrs,t=yo(t,r.hostAttrs))}}(i)}function Qc(n){return n===Ti?{}:n===se?[]:n}function xM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function AM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function MM(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let jo=null;function er(){if(!jo){const n=ne.Symbol;if(n&&n.iterator)jo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(jo=i)}}}return jo}function us(n){return!!function Yc(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&er()in n)}function qe(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function st(n,e,t,i){const r=C();return qe(r,Li(),e)&&(Y(),un(ve(),r,n,e,t,i)),st}function fs(n,e,t,i,r,s,o,a){const l=C(),c=Y(),u=n+20,d=c.firstCreatePass?function kM(n,e,t,i,r,s,o,a,l){const c=e.consts,u=Qi(e,n,4,o||null,Nn(c,a));Nc(e,t,u,Nn(c,l)),ho(e,u);const d=u.tViews=Lo(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];sn(d,!1);const f=l[G].createComment("");Io(c,l,f,d),We(f,l),Vo(l,l[u]=dg(f,l,f,d)),ao(d)&&kc(c,l,d),null!=o&&Pc(l,d,a)}function g(n,e=H.Default){const t=C();return null===t?v(n,e):Oh(Le(),t,$(n),e)}function qt(n,e,t){const i=C();return qe(i,Li(),e)&&function vt(n,e,t,i,r,s,o,a){const l=ht(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(yg(n,t,u,i,r),oo(e)&&function BA(n,e){const t=pt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function VA(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,xe(s)?s.setProperty(l,i,r):jl(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(Y(),ve(),i,n,e,i[G],t,!1),qt}function tu(n,e,t,i,r){const o=r?"class":"style";yg(n,t,e.inputs[o],o,i)}function ot(n,e,t,i){const r=C(),s=Y(),o=20+n,a=r[G],l=r[o]=oc(a,e,function uE(){return B.lFrame.currentNamespace}()),c=s.firstCreatePass?function tS(n,e,t,i,r,s,o){const a=e.consts,c=Qi(e,n,2,r,Nn(a,s));return Nc(e,t,c,Nn(a,o)),null!==c.attrs&&Bo(c,c.attrs,!1),null!==c.mergedAttrs&&Bo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];sn(c,!0);const u=c.mergedAttrs;null!==u&&mo(a,l,u);const d=c.classes;null!==d&&hc(a,l,d);const f=c.styles;return null!==f&&vp(a,l,f),64!=(64&c.flags)&&Io(s,r,l,c),0===function qw(){return B.lFrame.elementDepthCount}()&&We(l,r),function Kw(){B.lFrame.elementDepthCount++}(),ao(c)&&(kc(s,r,c),function Jp(n,e,t){if(wl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}(s,c,r)),null!==i&&Pc(r,c),ot}function at(){let n=Le();Ol()?kl():(n=n.parent,sn(n,!1));const e=n;!function Qw(){B.lFrame.elementDepthCount--}();const t=Y();return t.firstCreatePass&&(ho(t,n),wl(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function gE(n){return 0!=(16&n.flags)}(e)&&tu(t,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function mE(n){return 0!=(32&n.flags)}(e)&&tu(t,e,C(),e.stylesWithoutHost,!1),at}function $o(n,e,t,i){return ot(n,e,t,i),at(),$o}function Uo(n){return!!n&&"function"==typeof n.then}const sm=function rm(n){return!!n&&"function"==typeof n.subscribe};function bt(n,e,t,i){const r=C(),s=Y(),o=Le();return function am(n,e,t,i,r,s,o,a){const l=ao(i),u=n.firstCreatePass&&pg(n),d=e[8],f=hg(e);let h=!0;if(3&i.type||a){const _=ht(i,e),b=a?a(_):_,y=f.length,x=a?R=>a(Te(R[i.index])):i.index;if(xe(t)){let R=null;if(!a&&l&&(R=function rS(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==R)(R.__ngLastListenerFn__||R).__ngNextListenerFn__=s,R.__ngLastListenerFn__=s,h=!1;else{s=ru(i,e,d,s,!1);const W=t.listen(b,r,s);f.push(s,W),u&&u.push(r,x,y,y+1)}}else s=ru(i,e,d,s,!0),b.addEventListener(r,s,o),f.push(s),u&&u.push(r,x,y,o)}else s=ru(i,e,d,s,!1);const p=i.outputs;let m;if(h&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let b=0;b<_;b+=2){const ye=e[m[b]][m[b+1]].subscribe(s),De=f.length;f.push(s,ye),u&&u.push(r,i.index,De,-(De+1))}}}(s,r,r[G],o,n,e,!!t,i),bt}function lm(n,e,t,i){try{return!1!==t(i)}catch(r){return mg(n,r),!1}}function ru(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?pt(n.index,e):e;0==(32&e[2])&&Bc(a);let l=lm(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=lm(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function zo(n=1){return function rE(n){return(B.lFrame.contextLView=function sE(n,e){for(;n>0;)e=e[15],n--;return e}(n,B.lFrame.contextLView))[8]}(n)}function sS(n,e){let t=null;const i=function pA(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Vp(n,s,!0):yA(i,s))return r}else t=r}return t}function bm(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?zt(s):Dn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];lS(n[a],e)&&(l=!0,n[a+1]=i?Ec(u):Dc(u)),a=i?zt(u):Dn(u)}l&&(n[t+1]=i?Dc(s):Ec(s))}function lS(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&zi(n,e)>=0}function Hn(n,e){return function Kt(n,e,t,i){const r=C(),s=Y(),o=function Cn(n){const e=B.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);s.firstUpdatePass&&function Im(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Ze()],o=function Sm(n,e){return e>=n.expandoStartIndex}(n,t);(function Om(n,e){return 0!=(n.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function yS(n,e,t,i){const r=function Nl(n){const e=B.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=hs(t=ou(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=ou(r,n,e,t,i),null===s){let l=function _S(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==Dn(i))return n[zt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=ou(null,n,e,l[1],i),l=hs(l,e.attrs,i),function vS(n,e,t,i){n[zt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function bS(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=hs(i,n[s].hostAttrs,t);return hs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function oS(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=zt(o),l=Dn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||zi(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const f=zt(n[a+1]);n[i+1]=ko(f,a),0!==f&&(n[f+1]=wc(n[f+1],i)),n[a+1]=function CA(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=ko(a,0),0!==a&&(n[a+1]=wc(n[a+1],i)),a=i;else n[i+1]=ko(l,0),0===a?a=i:n[l+1]=wc(n[l+1],i),l=i;c&&(n[i+1]=Dc(n[i+1])),bm(n,u,i,!0),bm(n,u,i,!1),function aS(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&zi(s,e)>=0&&(t[i+1]=Ec(t[i+1]))}(e,u,n,i,s),o=ko(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}(s,n,o,i),e!==j&&qe(r,o,e)&&function Tm(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Wo(function $p(n){return 1==(1&n)}(c)?Rm(l,e,t,r,Dn(c),o):void 0)||(Wo(s)||function Gp(n){return 2==(2&n)}(c)&&(s=Rm(l,null,t,r,a,o)),function vx(n,e,t,i,r){const s=xe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:mt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=mt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,lo(Ze(),t),r,s))}(s,s.data[Ze()],r,r[G],n,r[o+1]=function wS(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ee(function yt(n){return n instanceof class ai{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?n.changingThisBreaksApplicationSecurity:n}(n)))),n}(e,t),i,o)}(n,e,null,!0),Hn}function ou(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=hs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function hs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),gt(n,o,!!t||e[++s]))}return void 0===n?null:n}function Rm(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[r+1];f===j&&(f=d?se:void 0);let h=d?ql(f,i):u===i?f:void 0;if(c&&!Wo(h)&&(h=ql(l,i)),Wo(h)&&(a=h,o))return a;const p=n[r+1];r=o?zt(p):Dn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ql(l,i))}return a}function Wo(n){return void 0!==n}function fr(n,e=""){const t=C(),i=Y(),r=n+20,s=i.firstCreatePass?Qi(i,r,1,e,null):i.data[r],o=t[r]=function sc(n,e){return xe(n)?n.createText(e):n.createTextNode(e)}(t[G],e);Io(i,t,o,s),sn(s,!1)}function au(n){return hr("",n,""),au}function hr(n,e,t){const i=C(),r=function nr(n,e,t,i){return qe(n,Li(),t)?e+V(t)+i:j}(i,n,e,t);return r!==j&&wn(i,Ze(),r),hr}const qo="en-US";let ty=qo;function uu(n,e,t,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)uu(n[s],e,t,i,r);else{const s=Y(),o=C();let a=Ji(n)?n:$(n.provide),l=Dg(n);const c=Le(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(Ji(n)||!n.multi){const h=new Hr(l,r,g),p=fu(a,e,r?u:u+f,d);-1===p?(bo($r(c,o),s,a),du(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(h),o.push(h)):(t[p]=h,o[p]=h)}else{const h=fu(a,e,u+f,d),p=fu(a,e,u,u+f),m=h>=0&&t[h],_=p>=0&&t[p];if(r&&!_||!r&&!m){bo($r(c,o),s,a);const b=function $0(n,e,t,i,r){const s=new Hr(n,t,g);return s.multi=[],s.index=e,s.componentProviders=0,xy(s,r,i&&!t),s}(r?G0:H0,t.length,r,i,l);!r&&_&&(t[p].providerFactory=b),du(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(b),o.push(b)}else du(s,n,h>-1?h:p,xy(t[r?p:h],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function du(n,e,t,i){const r=Ji(e),s=function fM(n){return!!n.useClass}(e);if(r||s){const l=(s?$(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function xy(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function fu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function H0(n,e,t,i){return hu(this.multi,[])}function G0(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Ur(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),hu(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],hu(r,s);return s}function hu(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function ae(n,e=[]){return t=>{t.providersResolver=(i,r)=>function j0(n,e,t){const i=Y();if(i.firstCreatePass){const r=Gt(n);uu(t,i.data,i.blueprint,r,!0),uu(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class Ay{}class W0{resolveComponentFactory(e){throw function z0(n){const e=Error(`No component factory found for ${ee(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let ui=(()=>{class n{}return n.NULL=new W0,n})();function q0(){return mr(Le(),C())}function mr(n,e){return new U(ht(n,e))}let U=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=q0,n})();function K0(n){return n instanceof U?n.nativeElement:n}class _s{}let En=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Y0(){const n=C(),t=pt(Le().index,n);return function Q0(n){return n[G]}(rn(t)?t:n)}(),n})(),Z0=(()=>{class n{}return n.\u0275prov=w({token:n,providedIn:"root",factory:()=>null}),n})();class Gn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const X0=new Gn("13.4.0"),pu={};function Xo(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Te(s)),Ht(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Xo(l[1],l,c,i)}const o=t.type;if(8&o)Xo(n,e,t.child,i);else if(32&o){const a=nc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=yp(e,t);if(Array.isArray(a))i.push(...a);else{const l=ts(e[16]);Xo(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class vs{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Xo(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Ht(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(ac(e,i),Do(t,i))}this._attachedToViewContainer=!1}lp(this._lView[1],this._lView)}onDestroy(e){ig(this._lView[1],this._lView,null,e)}markForCheck(){Bc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Hc(n,e,t){const i=e[10];i.begin&&i.begin();try{Zi(n,e,n.template,t)}catch(r){throw mg(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function cx(n,e){ns(n,e,e[G],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,"");this._appRef=e}}class J0 extends vs{constructor(e){super(e),this._view=e}detectChanges(){fg(this._view)}checkNoChanges(){}get context(){return null}}class Sy extends ui{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ue(e);return new gu(t,this.ngModule)}}function Iy(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class gu extends Ay{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function vA(n){return n.map(_A).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Iy(this.componentDef.inputs)}get outputs(){return Iy(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function tI(n,e){return{get:(t,i,r)=>{const s=n.get(t,pu,r);return s!==pu||i===pu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(_s,dh),a=s.get(Z0,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function ng(n,e,t){if(xe(n))return n.selectRootElement(e,t===Bt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):oc(o.createRenderer(null,this.componentDef),c,function eI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,f=function kg(n,e){return{components:[],scheduler:n||oA,clean:iM,playerHandler:e||null,flags:0}}(),h=Lo(0,null,null,1,0,null,null,null,null,null),p=as(null,h,f,d,null,null,o,l,a,s);let m,_;uo(p);try{const b=function Rg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=Qi(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Bo(l,c,!0),null!==n&&(mo(r,n,c),null!==l.classes&&hc(r,n,l.classes),null!==l.styles&&vp(r,n,l.styles)));const u=i.createRenderer(n,e),d=as(t,eg(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(bo($r(l,t),o,e.type),lg(o,l),cg(l,t.length,1)),Vo(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)mo(l,u,["ng-version",X0.full]);else{const{attrs:y,classes:x}=function bA(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Ut(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);y&&mo(l,u,y),x&&x.length>0&&hc(l,u,x.join(" "))}if(_=Fl(h,20),void 0!==t){const y=_.projection=[];for(let x=0;x<this.ngContentSelectors.length;x++){const R=t[x];y.push(null!=R?Array.from(R):null)}}m=function Og(n,e,t,i,r){const s=t[1],o=function HA(n,e,t){const i=Le();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),ug(n,i,e,Yi(n,e,1,null),t));const r=Ur(e,n,i.directiveStart,i);We(r,e);const s=ht(i,e);return s&&We(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Le();e.contentQueries(1,o,l.directiveStart)}const a=Le();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ln(a.index),og(t[1],a,0,a.directiveStart,a.directiveEnd,e),ag(e,o)),o}(b,this.componentDef,p,f,[wM]),ls(h,p,null)}finally{fo()}return new iI(this.componentType,m,mr(_,p),p,_)}}class iI extends class U0{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new J0(r),this.componentType=e}get injector(){return new ji(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class yr{}const _r=new Map;class Ry extends yr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Sy(this);const i=Mt(e);this._bootstrapComponents=cn(i.bootstrap),this._r3Injector=Cg(e,t,[{provide:yr,useValue:this},{provide:ui,useValue:this.componentFactoryResolver}],ee(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Je.THROW_IF_NOT_FOUND,i=H.Default){return e===Je||e===yr||e===$c?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class mu extends class sI{}{constructor(e){super(),this.moduleType=e,null!==Mt(e)&&function oI(n){const e=new Set;!function t(i){const r=Mt(i,!0),s=r.id;null!==s&&(function Fy(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ee(e)} vs ${ee(e.name)}`)}(s,_r.get(s),i),_r.set(s,i));const o=cn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new Ry(this.moduleType,e)}}function Oy(n,e,t,i){return function ky(n,e,t,i,r,s){const o=e+t;return qe(n,o,r)?function dn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function bs(n,e){const t=n[e];return t===j?void 0:t}(n,o+1)}(C(),function Ye(){const n=B.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),n,e,t,i)}function yu(n){return e=>{setTimeout(n,void 0,e)}}const Re=class wI extends Ne{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;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=yu(l),a&&(a=yu(a)),c&&(c=yu(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof de&&e.add(u),u}};function EI(){return this._results[er()]()}class _u{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=er(),i=_u.prototype;i[t]||(i[t]=EI)}get changes(){return this._changes||(this._changes=new Re)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ft(e);(this._changesDetected=!function xE(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let xn=(()=>{class n{}return n.__NG_ELEMENT_ID__=MI,n})();const xI=xn,AI=class extends xI{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=as(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),ls(t,i,e),new vs(i)}};function MI(){return Jo(Le(),C())}function Jo(n,e){return 4&n.type?new AI(e,n,mr(n,e)):null}let pn=(()=>{class n{}return n.__NG_ELEMENT_ID__=SI,n})();function SI(){return Hy(Le(),C())}const II=pn,By=class extends II{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return mr(this._hostTNode,this._hostLView)}get injector(){return new ji(this._hostTNode,this._hostLView)}get parentInjector(){const e=vo(this._hostTNode,this._hostLView);if(Sh(e)){const t=Bi(e,this._hostLView),i=Vi(e);return new ji(t[1].data[i+8],t)}return new ji(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=jy(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function qr(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new gu(Ue(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const f=(o?c:this.parentInjector).get(yr,null);f&&(s=f)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function Ww(n){return Ht(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],f=new By(d,d[6],d[3]);f.detach(f.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function dx(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],Vh(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function fx(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=uc(s,o),l=i[G],c=So(l,o[7]);return null!==c&&function lx(n,e,t,i,r,s){i[0]=r,i[6]=e,ns(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Vh(vu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=jy(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=ac(this._lContainer,t);i&&(Do(vu(this._lContainer),t),lp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=ac(this._lContainer,t);return i&&null!=Do(vu(this._lContainer),t)?new vs(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function jy(n){return n[8]}function vu(n){return n[8]||(n[8]=[])}function Hy(n,e){let t;const i=e[n.index];if(Ht(i))t=i;else{let r;if(8&n.type)r=Te(i);else{const s=e[G];r=s.createComment("");const o=ht(n,e);si(s,So(s,o),r,function mx(n,e){return xe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=dg(i,e,r,n),Vo(e,t)}return new By(t,n,e)}class bu{constructor(e){this.queryList=e,this.matches=null}clone(){return new bu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Cu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Ky(e,t).matches&&this.queries[t].setDirty()}}class Gy{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Du{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Du(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class wu{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new wu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,RI(t,s)),this.matchTNodeWithReadOption(e,t,Co(t,e,s,!1,!1))}else i===xn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Co(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===U||r===pn||r===xn&&4&t.type)this.addMatch(t.index,-2);else{const s=Co(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function RI(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function kI(n,e,t,i){return-1===t?function OI(n,e){return 11&n.type?mr(n,e):4&n.type?Jo(n,e):null}(e,n):-2===t?function PI(n,e,t){return t===U?mr(e,n):t===xn?Jo(e,n):t===pn?Hy(e,n):void 0}(n,e,i):Ur(n,n[1],t,e)}function $y(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:kI(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Eu(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=$y(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Eu(f[1],f,c,i)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const h=d[f];Eu(h[1],h,c,i)}}}}}return i}function xu(n){const e=C(),t=Y(),i=vh();Ll(i+1);const r=Ky(t,i);if(n.dirty&&fh(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Eu(t,e,i,[]):$y(t,e,r,i);n.reset(s,K0),n.notifyOnChanges()}return!0}return!1}function Au(){return function NI(n,e){return n[19].queries[e].queryList}(C(),vh())}function Wy(n,e,t){const i=new _u(4==(4&t));ig(n,e,i,i.destroy),null===e[19]&&(e[19]=new Cu),e[19].queries.push(new bu(i))}function qy(n,e,t){null===n.queries&&(n.queries=new Du),n.queries.track(new wu(e,t))}function Ky(n,e){return n.queries.getByIndex(e)}function na(...n){}const d_=new F("Application Initializer");let Ru=(()=>{class n{constructor(t){this.appInits=t,this.resolve=na,this.reject=na,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Uo(s))t.push(s);else if(sm(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(v(d_,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ws=new F("AppId",{providedIn:"root",factory:function f_(){return`${Ou()}${Ou()}${Ou()}`}});function Ou(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const h_=new F("Platform Initializer"),Yt=new F("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),p_=new F("appBootstrapListener"),An=new F("LocaleId",{providedIn:"root",factory:()=>Zr(An,H.Optional|H.SkipSelf)||function tF(){return"undefined"!=typeof $localize&&$localize.locale||qo}()}),sF=(()=>Promise.resolve(0))();function ku(n){"undefined"==typeof Zone?sF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class le{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Re(!1),this.onMicrotaskEmpty=new Re(!1),this.onStable=new Re(!1),this.onError=new Re(!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)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function oF(){let n=ne.requestAnimationFrame,e=ne.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function cF(n){const e=()=>{!function lF(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ne,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Nu(n),n.isCheckStableRunning=!0,Pu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Nu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return g_(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),m_(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return g_(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),m_(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Nu(n),Pu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!le.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(le.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,aF,na,na);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const aF={};function Pu(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 Nu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function g_(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function m_(n){n._nesting--,Pu(n)}class uF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Re,this.onMicrotaskEmpty=new Re,this.onStable=new Re,this.onError=new Re}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Lu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{le.assertNotInAngularZone(),ku(()=>{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())ku(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(v(le))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),dF=(()=>{class n{constructor(){this._applications=new Map,Vu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Vu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class fF{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Vu=new fF,di=null;const y_=new F("AllowMultipleToken"),__=new F("PlatformOnDestroy");function v_(n,e,t=[]){const i=`Platform: ${e}`,r=new F(i);return(s=[])=>{let o=Bu();if(!o||o.injector.get(y_,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function mF(n){if(di&&!di.get(y_,!1))throw new I(400,"");di=n;const e=n.get(b_),t=n.get(h_,null);t&&t.forEach(i=>i())}(function _F(n=[],e){return Je.create({name:e,providers:[{provide:Uc,useValue:"platform"},{provide:__,useValue:()=>di=null},...n]})}(a,i))}return function yF(n){const e=Bu();if(!e)throw new I(401,"");return e}()}}function Bu(){var n;return null!==(n=null==di?void 0:di.get(b_))&&void 0!==n?n:null}let b_=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function vF(n,e){let t;return t="noop"===n?new uF:("zone.js"===n?void 0:n)||new le({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:le,useValue:a}];return a.run(()=>{const c=Je.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(os,null);if(!d)throw new I(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});u.onDestroy(()=>{ju(this._modules,u),f.unsubscribe()})}),function bF(n,e,t){try{const i=t();return Uo(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const f=u.injector.get(Ru);return f.runInitializers(),f.donePromise.then(()=>(function KS(n){dt(n,"Expected localeId to be defined"),"string"==typeof n&&(ty=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(An,qo)||qo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=C_({},i);return function pF(n,e,t){const i=new mu(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(ia);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new I(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(__,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(v(Je))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function C_(n,e){return Array.isArray(e)?e.reduce(C_,n):Object.assign(Object.assign({},n),e)}let ia=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,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 o=new _e(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new _e(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{le.assertNotInAngularZone(),ku(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{le.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Pr(o,a.pipe(function hw(){return n=>Qf()(function uw(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new dw(r,e));const s=Object.create(i,aw);return s.source=i,s.subjectFactory=r,s}}(fw)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new I(405,"");let r;r=t instanceof Ay?t:this._injector.get(ui).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function gF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(yr),a=r.create(Je.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Lu,null),u=c&&a.injector.get(dF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),ju(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new I(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;ju(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(p_,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(v(le),v(Je),v(os),v(Ru))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ju(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let w_=!0,Es=(()=>{class n{}return n.__NG_ELEMENT_ID__=wF,n})();function wF(n){return function EF(n,e,t){if(oo(n)&&!t){const i=pt(n.index,e);return new vs(i,i)}return 47&n.type?new vs(e[16],e):null}(Le(),C(),16==(16&n))}class S_{constructor(){}supports(e){return us(e)}create(e){return new FF(e)}}const IF=(n,e)=>e;class FF{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||IF}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<F_(i,r,s)?t:i,a=F_(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let f=0;f<c;f++){const h=f<s.length?s[f]:s[f]=0,p=h+f;u<=p&&p<c&&(s[f]=h+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!us(e))throw new I(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function OM(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[er()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new TF(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new I_),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new I_),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class TF{constructor(e,t){this.item=e,this.trackById=t,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 RF{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class I_{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new RF,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function F_(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}function R_(){return new xs([new S_])}let xs=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||R_()),deps:[[n,new Ao,new xo]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new I(901,"")}}return n.\u0275prov=w({token:n,providedIn:"root",factory:R_}),n})();const LF=v_(null,"core",[]);let VF=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(v(ia))},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({}),n})(),oa=null;function gn(){return oa}const X=new F("DocumentToken");class OT{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,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 K_=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new OT(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Q_(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Q_(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(pn),g(xn),g(xs))},n.\u0275dir=D({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Q_(n,e){n.context.$implicit=e.item}let Y_=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new kT,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Z_("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Z_("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(g(pn),g(xn))},n.\u0275dir=D({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class kT{constructor(){this.$implicit=null,this.ngIf=null}}function Z_(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ee(e)}'.`)}const X_="browser";function gi(n){return n===X_}function br(n){return"server"===n}let sv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({}),n})();class cd extends class LR extends class HF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function jF(n){oa||(oa=n)}(new cd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function VR(){return Fs=Fs||document.querySelector("base"),Fs?Fs.getAttribute("href"):null}();return null==t?null:function BR(n){_a=_a||document.createElement("a"),_a.setAttribute("href",n);const e=_a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Fs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function TT(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let _a,Fs=null;const av=new F("TRANSITION_ID"),HR=[{provide:d_,useFactory:function jR(n,e,t){return()=>{t.get(Ru).donePromise.then(()=>{const i=gn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[av,X,Je],multi:!0}];class ud{static init(){!function hF(n){Vu=n}(new ud)}addToWindow(e){ne.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ne.getAllAngularTestabilities=()=>e.getAllTestabilities(),ne.getAllAngularRootElements=()=>e.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(i=>{const r=ne.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(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?gn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let GR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const va=new F("EventManagerPlugins");let ba=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(v(va),v(le))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class lv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=gn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let cv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),Ts=(()=>{class n extends cv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(uv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(uv))}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();function uv(n){gn().remove(n)}const dd={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/",math:"http://www.w3.org/1998/MathML/"},fd=/%COMP%/g;function Ca(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Ca(n,r,t):(r=r.replace(fd,n),t.push(r))}return t}function hv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Da=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new hd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Bt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new KR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Bt.ShadowDom:return new QR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ca(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(v(ba),v(Ts),v(ws))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class hd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(dd[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=dd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=dd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(mt.DashCase|mt.Important)?e.style.setProperty(t,i,r&mt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&mt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,hv(i)):this.eventManager.addEventListener(e,t,hv(i))}}class KR extends hd{constructor(e,t,i,r){super(e),this.component=i;const s=Ca(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function zR(n){return"_ngcontent-%COMP%".replace(fd,n)}(r+"-"+i.id),this.hostAttr=function WR(n){return"_nghost-%COMP%".replace(fd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class QR extends hd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ca(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let YR=(()=>{class n extends lv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const gv=["alt","control","meta","shift"],XR={"\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"},mv={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"},JR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let eO=(()=>{class n extends lv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(gv.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(t){let i="",r=function tO(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&mv.hasOwnProperty(e)&&(e=mv[e]))}return XR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),gv.forEach(s=>{s!=r&&JR[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const sO=v_(LF,"browser",[{provide:Yt,useValue:X_},{provide:h_,useValue:function nO(){cd.makeCurrent(),ud.init()},multi:!0},{provide:X,useFactory:function rO(){return function Gw(n){Sl=n}(document),document},deps:[]}]),oO=[{provide:Uc,useValue:"root"},{provide:os,useFactory:function iO(){return new os},deps:[]},{provide:va,useClass:YR,multi:!0,deps:[X,le,Yt]},{provide:va,useClass:eO,multi:!0,deps:[X]},{provide:Da,useClass:Da,deps:[ba,Ts,ws]},{provide:_s,useExisting:Da},{provide:cv,useExisting:Ts},{provide:Ts,useClass:Ts,deps:[X]},{provide:Lu,useClass:Lu,deps:[le]},{provide:ba,useClass:ba,deps:[va,le]},{provide:class PR{},useClass:GR,deps:[]}];let yv=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:ws,useValue:t.appId},{provide:av,useExisting:ws},HR]}}}return n.\u0275fac=function(t){return new(t||n)(v(n,12))},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({providers:oO,imports:[sv,VF]}),n})();"undefined"!=typeof window&&window;class yO extends de{constructor(e,t){super()}schedule(e,t=0){return this}}class wa extends yO{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Dv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Jt extends Dv{constructor(e,t=Dv.now){super(e,()=>Jt.delegate&&Jt.delegate!==this?Jt.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return Jt.delegate&&Jt.delegate!==this?Jt.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const bO=new class vO extends Jt{}(class _O extends wa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),CO=new _e(n=>n.complete());function gd(...n){let e=n[n.length-1];return qs(e)?(n.pop(),fl(n,e)):Kf(n)}function EO({error:n,subscriber:e}){e.error(n)}class kt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return gd(this.value);case"E":return function wO(n,e){return new _e(e?t=>e.schedule(EO,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return function wv(n){return n?function DO(n){return new _e(e=>n.schedule(()=>e.complete()))}(n):CO}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new kt("N",e):kt.undefinedValueNotification}static createError(e){return new kt("E",void 0,e)}static createComplete(){return kt.completeNotification}}kt.completeNotification=new kt("C"),kt.undefinedValueNotification=new kt("N",void 0);class Ea extends Fe{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ea.dispatch,this.delay,new AO(e,this.destination)))}_next(e){this.scheduleMessage(kt.createNext(e))}_error(e){this.scheduleMessage(kt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(kt.createComplete()),this.unsubscribe()}}class AO{constructor(e,t){this.notification=e,this.destination=t}}class MO extends Ne{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new SO(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Jn;if(this.isStopped||this.hasError?o=de.EMPTY:(this.observers.push(e),o=new jf(this,e)),r&&e.add(e=new Ea(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||bO).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class SO{constructor(e,t){this.time=e,this.value=t}}function Ev(n,e){return"function"==typeof e?t=>t.pipe(Ev((i,r)=>Qs(n(i,r)).pipe(Fi((s,o)=>e(i,s,r,o))))):t=>t.lift(new IO(n))}class IO{constructor(e){this.project=e}call(e,t){return t.subscribe(new FO(e,this.project))}}class FO extends Zs{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Ys(this),r=this.destination;r.add(i),this.innerSubscription=Xs(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const xa={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return xa.schedule(n,0);if(void 0===window.requestAnimationFrame)return xa.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let md;function BO(n,e,t){let i=t;return function RO(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function kO(n,e){if(!md){const t=Element.prototype;md=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&md.call(n,e)}(n,r)||(i=s,0))),i}class HO{constructor(e,t){this.componentFactory=t.get(ui).resolveComponentFactory(e)}create(e){return new GO(this.componentFactory,e)}}class GO{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new MO(1),this.events=this.eventEmitters.pipe(Ev(i=>Pr(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(le),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=xa.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function PO(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=Je.create({providers:[],parent:this.injector}),i=function VO(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=BO(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Es),this.implementsOnChanges=function OO(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(ia).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(Fi(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=xa.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new ah(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class $O extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}const zO=new F("cdk-dir-doc",{providedIn:"root",factory:function WO(){return Zr(X)}}),qO=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vd,yd=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new Re,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function KO(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?qO.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(v(zO,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_d=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({}),n})();try{vd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){vd=!1}let Rs,bd,Sn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?gi(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&&!vd)&&"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(t){return new(t||n)(v(Yt))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Av=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({}),n})();function Aa(n){return function QO(){if(null==Rs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Rs=!0}))}finally{Rs=Rs||!1}return Rs}()?n:!!n.capture}function yi(n){return n.composedPath?n.composedPath()[0]:n.target}function Cd(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}class Sv extends Ne{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Jn;return this._value}next(e){super.next(this._value=e)}}class sk{constructor(e){this.total=e}call(e,t){return t.subscribe(new ok(e,this.total))}}class ok extends Fe{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class lk{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new ck(e,this.compare,this.keySelector))}}class ck extends Fe{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}function Un(n){return e=>e.lift(new uk(n))}class uk{constructor(e){this.notifier=e}call(e,t){const i=new dk(e),r=Xs(this.notifier,new Ys(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class dk extends Zs{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ct(n){return null!=n&&"false"!=`${n}`}function Iv(n,e=0){return function fk(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function Dr(n){return n instanceof U?n.nativeElement:n}function kv(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Pv(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const bk=new F("cdk-input-modality-detector-options"),Ck={ignoreKeys:[18,17,224,91,16]},wr=Aa({passive:!0,capture:!0});let Dk=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new Sv(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=yi(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(kv(o)?"keyboard":"mouse"),this._mostRecentTarget=yi(o))},this._onTouchstart=o=>{Pv(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=yi(o))},this._options=Object.assign(Object.assign({},Ck),s),this.modalityDetected=this._modality.pipe(function rk(n){return e=>e.lift(new sk(n))}(1)),this.modalityChanged=this.modalityDetected.pipe(function ak(n,e){return t=>t.lift(new lk(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,wr),r.addEventListener("mousedown",this._onMousedown,wr),r.addEventListener("touchstart",this._onTouchstart,wr)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,wr),document.removeEventListener("mousedown",this._onMousedown,wr),document.removeEventListener("touchstart",this._onTouchstart,wr))}}return n.\u0275fac=function(t){return new(t||n)(v(Sn),v(le),v(X),v(bk,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ek=new F("cdk-focus-monitor-default-options"),Sa=Aa({passive:!0,capture:!0});let xk=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ne,this._rootNodeFocusAndBlurListener=a=>{const l=yi(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(t,i=!1){const r=Dr(t);if(!this._platform.isBrowser||1!==r.nodeType)return gd(null);const s=function XO(n){if(function ZO(){if(null==bd){const n="undefined"!=typeof document?document.head:null;bd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return bd}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}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 Ne,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=Dr(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=Dr(t);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((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=yi(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Sa),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Sa)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Un(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.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,Sa),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sa),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(v(le),v(Sn),v(Dk),v(X,8),v(Ek,8))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Lv="cdk-high-contrast-black-on-white",Vv="cdk-high-contrast-white-on-black",Dd="cdk-high-contrast-active";let Ak=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),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 t=this._document.body.classList;t.remove(Dd),t.remove(Lv),t.remove(Vv),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Dd),t.add(Lv)):2===i&&(t.add(Dd),t.add(Vv))}}}return n.\u0275fac=function(t){return new(t||n)(v(Sn),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Bv{}const In="*";function jv(n,e=null){return{type:2,steps:n,options:e}}function Ia(n){return{type:6,styles:n,offset:null}}function Hv(n){Promise.resolve(null).then(n)}class Os{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Hv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Gv{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?Hv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const Q=!1;function $v(n){return new I(3e3,Q)}function dP(){return"undefined"!=typeof window&&void 0!==window.document}function Ed(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function zn(n){switch(n.length){case 0:return new Os;case 1:return n[0];default:return new Gv(n)}}function Uv(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,f=d==l,h=f&&c||{};Object.keys(u).forEach(p=>{let m=p,_=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case In:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}h[m]=_}),f||a.push(h),c=h,l=d}),o.length)throw function eP(n){return new I(3502,Q)}();return a}function xd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ad(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ad(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ad(t,"destroy",n)))}}function Ad(n,e,t){const i=t.totalTime,s=Md(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Md(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Ct(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function zv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Sd=(n,e)=>!1,Wv=(n,e,t)=>[],qv=null;function Id(n){const e=n.parentNode||n.host;return e===qv?null:e}(Ed()||"undefined"!=typeof Element)&&(dP()?(qv=(()=>document.documentElement)(),Sd=(n,e)=>{for(;e;){if(e===n)return!0;e=Id(e)}return!1}):Sd=(n,e)=>n.contains(e),Wv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let _i=null,Kv=!1;function Qv(n){_i||(_i=function hP(){return"undefined"!=typeof document?document.body:null}()||{},Kv=!!_i.style&&"WebkitAppearance"in _i.style);let e=!0;return _i.style&&!function fP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in _i.style,!e&&Kv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in _i.style)),e}const Yv=Sd,Zv=Wv;let Xv=(()=>{class n{validateStyleProperty(t){return Qv(t)}matchesElement(t,i){return!1}containsElement(t,i){return Yv(t,i)}getParentElement(t){return Id(t)}query(t,i,r){return Zv(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Os(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),Fd=(()=>{class n{}return n.NOOP=new Xv,n})();const Td="ng-enter",Ta="ng-leave",Ra="ng-trigger",Oa=".ng-trigger",eb="ng-animating",Rd=".ng-animating";function vi(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Od(parseFloat(e[1]),e[2])}function Od(n,e){return"s"===e?1e3*n:n}function ka(n,e,t){return n.hasOwnProperty("duration")?n:function mP(n,e,t){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 e.push($v()),{duration:0,delay:0,easing:""};r=Od(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Od(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function Rk(){return new I(3100,Q)}()),a=!0),s<0&&(e.push(function Ok(){return new I(3101,Q)}()),a=!0),a&&e.splice(l,0,$v())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Er(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Wn(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Er(n,t);return t}function nb(n,e,t){return t?e+":"+t+";":""}function ib(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=nb(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=nb(0,vP(t),n.style[t]));n.setAttribute("style",e)}function mn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Pd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Ed()&&ib(n))}function bi(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Pd(t);n.style[i]=""}),Ed()&&ib(n))}function ks(n){return Array.isArray(n)?1==n.length?n[0]:jv(n):n}const kd=new RegExp("{{\\s*(.+?)\\s*}}","g");function rb(n){let e=[];if("string"==typeof n){let t;for(;t=kd.exec(n);)e.push(t[1]);kd.lastIndex=0}return e}function Pa(n,e,t){const i=n.toString(),r=i.replace(kd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function Pk(n){return new I(3003,Q)}()),a=""),a.toString()});return r==i?n:r}function Na(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const _P=/-+([a-z0-9])/g;function Pd(n){return n.replace(_P,(...e)=>e[1].toUpperCase())}function vP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Dt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function Nk(n){return new I(3004,Q)}()}}function sb(n,e){return window.getComputedStyle(n)[e]}function xP(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function AP(n,e,t){if(":"==n[0]){const l=function MP(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function Yk(n){return new I(3016,Q)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function Qk(n){return new I(3015,Q)}()),e;const r=i[1],s=i[2],o=i[3];e.push(ob(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(ob(o,r))}(i,t,e)):t.push(n),t}const ja=new Set(["true","1"]),Ha=new Set(["false","0"]);function ob(n,e){const t=ja.has(n)||Ha.has(n),i=ja.has(e)||Ha.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?ja.has(n):Ha.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?ja.has(e):Ha.has(e)),o&&a}}const SP=new RegExp("s*:selfs*,?","g");function Nd(n,e,t,i){return new IP(n).build(e,t,i)}class IP{constructor(e){this._driver=e}build(e,t,i){const r=new RP(t);this._resetContextStyleTimingState(r);const s=Dt(this,ks(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function Vk(){return new I(3006,Q)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function Bk(){return new I(3007,Q)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Ga(a)){const l=a;Object.keys(l).forEach(c=>{rb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(Na(s.values()),t.errors.push(function jk(n,e){return new I(3008,Q)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Dt(this,ks(e.animation),t);return{type:1,matchers:xP(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ci(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Dt(this,i,t)),options:Ci(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Dt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Ci(e.options)}}visitAnimate(e,t){const i=function kP(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ld(ka(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Ld(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=ka(t,e);return Ld(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Ia({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Ia(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==In?i.push(o):t.errors.push(function Hk(n){return new I(3002,Q)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Ga(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:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function Gk(n,e,t,i,r){return new I(3010,Q)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function yP(n,e,t){const i=e.params||{},r=rb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function kk(n){return new I(3001,Q)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function $k(){return new I(3011,Q)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const y=this._makeStyleAst(b,t);let x=null!=y.offset?y.offset:function OP(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Ga(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Ga(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(y.styles),R=0;return null!=x&&(s++,R=y.offset=x),l=l||R<0||R>1,a=a||R<c,c=R,o.push(R),y});l&&t.errors.push(function Uk(){return new I(3012,Q)}()),a&&t.errors.push(function zk(){return new I(3200,Q)}());const d=e.steps.length;let f=0;s>0&&s<d?t.errors.push(function Wk(){return new I(3202,Q)}()):0==s&&(f=1/(d-1));const h=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((b,y)=>{const x=f>0?y==h?1:f*y:o[y],R=x*_;t.currentTime=p+m.delay+R,m.duration=R,this._validateStyleAst(b,t),b.offset=x,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:Dt(this,ks(e.animation),t),options:Ci(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ci(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ci(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function FP(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(SP,"")),n=n.replace(/@\*/g,Oa).replace(/@\w+/g,t=>Oa+"-"+t.substr(1)).replace(/:animating/g,Rd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Ct(t.collectedStyles,t.currentQuerySelector,{});const a=Dt(this,ks(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ci(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function qk(){return new I(3013,Q)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:ka(e.timings,t.errors,!0);return{type:12,animation:Dt(this,ks(e.animation),t),timings:i,options:null}}}class RP{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function Ga(n){return!Array.isArray(n)&&"object"==typeof n}function Ci(n){return n?(n=Er(n)).params&&(n.params=function TP(n){return n?Er(n):null}(n.params)):n={},n}function Ld(n,e,t){return{duration:n,delay:e,easing:t}}function Vd(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class $a{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const LP=new RegExp(":enter","g"),BP=new RegExp(":leave","g");function Bd(n,e,t,i,r,s={},o={},a,l,c=[]){return(new jP).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class jP{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new $a;const d=new jd(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Dt(this,i,d);const f=d.timelines.filter(h=>h.containsAnimation());if(Object.keys(a).length){let h;for(let p=f.length-1;p>=0;p--){const m=f[p];if(m.element===t){h=m;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[Vd(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?vi(i.duration):null,a=null!=i.delay?vi(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Dt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ua);const o=vi(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Dt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?vi(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Dt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return ka(t.params?Pa(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?vi(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ua);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Dt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Dt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Ua={};class jd{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ua,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new za(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=vi(i.duration)),null!=i.delay&&(r.delay=vi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Pa(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new jd(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(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Ua,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new HP(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(LP,"."+this._enterClassName)).replace(BP,"."+this._leaveClassName);let c=this._driver.query(this.element,e,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(function Kk(n){return new I(3014,Q)}()),a}}class za{constructor(e,t,i,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new za(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||In,this._currentKeyframe[t]=In}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function GP(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=In})):Wn(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Pa(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:In),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Wn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==In&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?Na(e.values()):[],o=t.size?Na(t.values()):[];if(i){const a=r[0],l=Er(a);a.offset=0,l.offset=1,r=[a,l]}return Vd(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class HP extends za{constructor(e,t,i,r,s,o,a=!1){super(e,t,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 e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=Wn(e[0],!1);l.offset=0,s.push(l);const c=Wn(e[0],!1);c.offset=cb(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let f=Wn(e[d],!1);f.offset=cb((t+f.offset*i)/o),s.push(f)}i=o,t=0,r="",e=s}return Vd(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function cb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Hd{}class $P extends Hd{normalizePropertyName(e,t){return Pd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(UP[t]&&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(function Lk(n,e){return new I(3005,Q)}())}return o+s}}const UP=(()=>function zP(n){const e={};return n.forEach(t=>e[t]=!0),e}("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 ub(n,e,t,i,r,s,o,a,l,c,u,d,f){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const Gd={};class db{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function WP(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||Gd,p=this.buildStyles(i,a&&a.params||Gd,d),m=l&&l.params||Gd,_=this.buildStyles(r,m,d),b=new Set,y=new Map,x=new Map,R="void"===r,W={params:Object.assign(Object.assign({},f),m)},ye=u?[]:Bd(e,t,this.ast.animation,s,o,p,_,W,c,d);let De=0;if(ye.forEach(Et=>{De=Math.max(Et.duration+Et.delay,De)}),d.length)return ub(t,this._triggerName,i,r,R,p,_,[],[],y,x,De,d);ye.forEach(Et=>{const xt=Et.element,Ir=Ct(y,xt,{});Et.preStyleProps.forEach(nn=>Ir[nn]=!0);const Rn=Ct(x,xt,{});Et.postStyleProps.forEach(nn=>Rn[nn]=!0),xt!==t&&b.add(xt)});const wt=Na(b.values());return ub(t,this._triggerName,i,r,R,p,_,ye,wt,y,x,De)}}class qP{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Er(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[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=Pa(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class QP{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new qP(r.style,r.options&&r.options.params||{},i)}),fb(this.states,"true","1"),fb(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new db(e,r,this.states))}),this.fallbackTransition=function YP(n,e,t){return new db(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function fb(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const ZP=new $a;class XP{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=Nd(this._driver,t,i,[]);if(i.length)throw function tP(n){return new I(3503,Q)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Uv(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Bd(this._driver,t,s,Td,Ta,{},{},i,ZP,r),o.forEach(u=>{const d=Ct(a,u.element,{});u.postStyleProps.forEach(f=>d[f]=null)})):(r.push(function nP(){return new I(3300,Q)}()),o=[]),r.length)throw function iP(n){return new I(3504,Q)}();a.forEach((u,d)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(d,f,In)})});const c=zn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function rP(n){return new I(3301,Q)}();return t}listen(e,t,i,r){const s=Md(t,"","","");return xd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);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(e)}}}const hb="ng-animate-queued",$d="ng-animate-disabled",iN=[],pb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pt="__ng_removed";class Ud{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function lN(n){return null!=n?n:null}(i?e.value:e),i){const s=Er(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Ps="void",zd=new Ud(Ps);class sN{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Nt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function sP(n,e){return new I(3302,Q)}();if(null==i||0==i.length)throw function oP(n){return new I(3303,Q)}();if(!function cN(n){return"start"==n||"done"==n}(i))throw function aP(n,e){return new I(3400,Q)}();const s=Ct(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Ct(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Nt(e,Ra),Nt(e,Ra+"-"+t),a[t]=zd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function lP(n){return new I(3401,Q)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Wd(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Nt(e,Ra),Nt(e,Ra+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Ud(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=zd),c.value!==Ps&&l.value===c.value){if(!function fN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{bi(e,_),mn(e,b)})}return}const f=Ct(this._engine.playersByElement,e,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!h){if(!r)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Nt(e,hb),o.onStart(()=>{xr(e,hb)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let b=_.indexOf(o);b>=0&&_.splice(b,1)}}),this.players.push(o),f.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Oa,!0);i.forEach(r=>{if(r[Pt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,Ps,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&zn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||zd,u=new Ud(Ps),d=new Wd(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Pt];(!s||s===pb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Nt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];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=Md(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,xd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.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(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class oN{constructor(e,t,i){this.bodyNode=e,this.driver=t,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(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new sN(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(Wa(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Wa(t))return;const s=t[Pt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Nt(e,$d)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xr(e,$d))}removeNode(e,t,i,r){if(Wa(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Pt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Wa(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Oa,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Rd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return zn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Pt];if(i&&i.setForRemoval){if(e[Pt]=pb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains($d))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];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;i<this.collectedEnterElements.length;i++)Nt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?zn(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function cP(n){return new I(3402,Q)}()}_flushAnimations(e,t){const i=new $a,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const k=this.driver.query(T,".ng-animate-queued",!0);for(let L=0;L<k.length;L++)u.add(k[L])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=yb(f,this.collectedEnterElements),p=new Map;let m=0;h.forEach((T,k)=>{const L=Td+m++;p.set(k,L),T.forEach(J=>Nt(J,L))});const _=[],b=new Set,y=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const k=this.collectedLeaveElements[T],L=k[Pt];L&&L.setForRemoval&&(_.push(k),b.add(k),L.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach(J=>b.add(J)):y.add(k))}const x=new Map,R=yb(f,Array.from(b));R.forEach((T,k)=>{const L=Ta+m++;x.set(k,L),T.forEach(J=>Nt(J,L))}),e.push(()=>{h.forEach((T,k)=>{const L=p.get(k);T.forEach(J=>xr(J,L))}),R.forEach((T,k)=>{const L=x.get(k);T.forEach(J=>xr(J,L))}),_.forEach(T=>{this.processLeaveNode(T)})});const W=[],ye=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(L=>{const J=L.player,Ge=L.element;if(W.push(J),this.collectedEnterElements.length){const it=Ge[Pt];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(L.triggerName)){const Mi=it.previousTriggersValues.get(L.triggerName),Xn=this.statesByElement.get(L.element);Xn&&Xn[L.triggerName]&&(Xn[L.triggerName].value=Mi)}return void J.destroy()}}const yn=!d||!this.driver.containsElement(d,Ge),At=x.get(Ge),Zn=p.get(Ge),we=this._buildInstruction(L,i,Zn,At,yn);if(we.errors&&we.errors.length)return void ye.push(we);if(yn)return J.onStart(()=>bi(Ge,we.fromStyles)),J.onDestroy(()=>mn(Ge,we.toStyles)),void r.push(J);if(L.isFallbackTransition)return J.onStart(()=>bi(Ge,we.fromStyles)),J.onDestroy(()=>mn(Ge,we.toStyles)),void r.push(J);const jD=[];we.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||jD.push(it)}),we.timelines=jD,i.append(Ge,we.timelines),o.push({instruction:we,player:J,element:Ge}),we.queriedElements.forEach(it=>Ct(a,it,[]).push(J)),we.preStyleProps.forEach((it,Mi)=>{const Xn=Object.keys(it);if(Xn.length){let Si=l.get(Mi);Si||l.set(Mi,Si=new Set),Xn.forEach(kf=>Si.add(kf))}}),we.postStyleProps.forEach((it,Mi)=>{const Xn=Object.keys(it);let Si=c.get(Mi);Si||c.set(Mi,Si=new Set),Xn.forEach(kf=>Si.add(kf))})});if(ye.length){const T=[];ye.forEach(k=>{T.push(function uP(n,e){return new I(3505,Q)}())}),W.forEach(k=>k.destroy()),this.reportError(T)}const De=new Map,wt=new Map;o.forEach(T=>{const k=T.element;i.has(k)&&(wt.set(k,k),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,De))}),r.forEach(T=>{const k=T.element;this._getPreviousPlayers(k,!1,T.namespaceId,T.triggerName,null).forEach(J=>{Ct(De,k,[]).push(J),J.destroy()})});const Et=_.filter(T=>vb(T,l,c)),xt=new Map;mb(xt,this.driver,y,c,In).forEach(T=>{vb(T,l,c)&&Et.push(T)});const Rn=new Map;h.forEach((T,k)=>{mb(Rn,this.driver,new Set(T),l,"!")}),Et.forEach(T=>{const k=xt.get(T),L=Rn.get(T);xt.set(T,Object.assign(Object.assign({},k),L))});const nn=[],Fr=[],Tr={};o.forEach(T=>{const{element:k,player:L,instruction:J}=T;if(i.has(k)){if(u.has(k))return L.onDestroy(()=>mn(k,J.toStyles)),L.disabled=!0,L.overrideTotalTime(J.totalTime),void r.push(L);let Ge=Tr;if(wt.size>1){let At=k;const Zn=[];for(;At=At.parentNode;){const we=wt.get(At);if(we){Ge=we;break}Zn.push(At)}Zn.forEach(we=>wt.set(we,Ge))}const yn=this._buildAnimation(L.namespaceId,J,De,s,Rn,xt);if(L.setRealPlayer(yn),Ge===Tr)nn.push(L);else{const At=this.playersByElement.get(Ge);At&&At.length&&(L.parentPlayer=zn(At)),r.push(L)}}else bi(k,J.fromStyles),L.onDestroy(()=>mn(k,J.toStyles)),Fr.push(L),u.has(k)&&r.push(L)}),Fr.forEach(T=>{const k=s.get(T.element);if(k&&k.length){const L=zn(k);T.setRealPlayer(L)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<_.length;T++){const k=_[T],L=k[Pt];if(xr(k,Ta),L&&L.hasAnimation)continue;let J=[];if(a.size){let yn=a.get(k);yn&&yn.length&&J.push(...yn);let At=this.driver.query(k,Rd,!0);for(let Zn=0;Zn<At.length;Zn++){let we=a.get(At[Zn]);we&&we.length&&J.push(...we)}}const Ge=J.filter(yn=>!yn.destroyed);Ge.length?uN(this,k,Ge):this.processLeaveNode(k)}return _.length=0,nn.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const k=this.players.indexOf(T);this.players.splice(k,1)}),T.play()}),nn}elementContainsData(e,t){let i=!1;const r=t[Pt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==Ps;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(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Ct(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}bi(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[Pt];if(_&&_.removedBeforeQueried)return new Os(p.duration,p.delay);const b=m!==l,y=function dN(n){const e=[];return _b(n,e),e}((i.get(m)||iN).map(De=>De.getRealPlayer())).filter(De=>!!De.element&&De.element===m),x=s.get(m),R=o.get(m),W=Uv(0,this._normalizer,0,p.keyframes,x,R),ye=this._buildPlayer(p,W,y);if(p.subTimeline&&r&&d.add(m),b){const De=new Wd(e,a,m);De.setRealPlayer(ye),c.push(De)}return ye});c.forEach(p=>{Ct(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function aN(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Nt(p,eb));const h=zn(f);return h.onDestroy(()=>{u.forEach(p=>xr(p,eb)),mn(l,t.toStyles)}),d.forEach(p=>{Ct(r,p,[]).push(h)}),h}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Os(e.duration,e.delay)}}class Wd{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Os,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>xd(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Ct(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Wa(n){return n&&1===n.nodeType}function gb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function mb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(gb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const f=u[d]=e.computeStyle(c,d,r);(!f||0==f.length)&&(c[Pt]=rN,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>gb(l,s[a++])),o}function yb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),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=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Nt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function xr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function uN(n,e,t){zn(t).onDone(()=>n.processLeaveNode(e))}function _b(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Gv?_b(i.players,e):e.push(i)}}function vb(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class qa{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new oN(e,t,i),this._timelineEngine=new XP(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Nd(this._driver,s,l,[]);if(l.length)throw function Jk(n,e){return new I(3404,Q)}();a=function KP(n,e,t){return new QP(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=zv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=zv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let pN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&mn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mn(this._element,this._initialStyles),this._endStyles&&(mn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(bi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bi(this._element,this._endStyles),this._endStyles=null),mn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function qd(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];gN(r)&&(e=e||{},e[r]=n[r])}return e}function gN(n){return"display"===n||"position"===n}class bb{constructor(e,t,i,r){this.element=e,this.keyframes=t,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:sb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class mN{validateStyleProperty(e){return Qv(e)}matchesElement(e,t){return!1}containsElement(e,t){return Yv(e,t)}getParentElement(e){return Id(e)}query(e,t,i){return Zv(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(f=>f instanceof bb);(function bP(n,e){return 0===n||0===e})(i,r)&&u.forEach(f=>{let h=f.currentSnapshot;Object.keys(h).forEach(p=>c[p]=h[p])}),t=function CP(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=sb(n,l)})}}return e}(e,t=t.map(f=>Wn(f,!1)),c);const d=function hN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=qd(e[0]),e.length>1&&(i=qd(e[e.length-1]))):e&&(t=qd(e)),t||i?new pN(n,t,i):null}(e,t);return new bb(e,t,l,d)}}let yN=(()=>{class n extends Bv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Bt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?jv(t):t;return Cb(this._renderer,null,i,"register",[r]),new _N(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(v(_s),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class _N extends class Mk{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new vN(this._id,e,t||{},this._renderer)}}class vN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Cb(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Cb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Db="@.disabled";let bN=(()=>{class n{constructor(t,i,r){this.delegate=t,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)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new wb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new CN(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(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(t){return new(t||n)(v(_s),v(qa),v(le))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();class wb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==Db?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class CN extends wb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Db?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function DN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function wN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let EN=(()=>{class n extends qa{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(v(X),v(Fd),v(Hd))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})();const Qa=new F("AnimationModuleType"),Eb=[{provide:Bv,useClass:yN},{provide:Hd,useFactory:function xN(){return new $P}},{provide:qa,useClass:EN},{provide:_s,useFactory:function AN(n,e,t){return new bN(n,e,t)},deps:[Da,qa,le]}],xb=[{provide:Fd,useFactory:()=>new mN},{provide:Qa,useValue:"BrowserAnimations"},...Eb],MN=[{provide:Fd,useClass:Xv},{provide:Qa,useValue:"NoopAnimations"},...Eb];let SN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?MN:xb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({providers:xb,imports:[yv]}),n})();const FN=new F("mat-sanity-checks",{providedIn:"root",factory:function IN(){return!0}});let Di=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Cd()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(v(Ak),v(FN,8),v(X))},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[_d],_d]}),n})();function TN(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ct(e)}}}function RN(n,e=0){return class extends n{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Iv(t):this.defaultTabIndex}}}let kN=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class PN{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mb={enterDuration:225,exitDuration:150},Kd=Aa({passive:!0}),Sb=["mousedown","touchstart"],Ib=["mouseup","mouseleave","touchend","touchcancel"];class LN{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Dr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Mb),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function BN(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-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 VN(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new PN(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const f=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!f||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},Mb),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Dr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Sb))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ib),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=kv(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Pv(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Kd)})})}_removeTriggerEvents(){this._triggerElement&&(Sb.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kd)}),this._pointerUpEventsRegistered&&Ib.forEach(e=>{this._triggerElement.removeEventListener(e,this,Kd)}))}}const jN=new F("mat-ripple-global-options");let HN=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new LN(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(le),g(Sn),g(jN,8),g(Qa,8))},n.\u0275dir=D({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Hn("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),GN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[Di,Av],Di]}),n})();function Ya(n,e){return new _e(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Qs(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,f)=>(u[d]=r[f],u),{}):r),t.complete())}}))}})}let Fb=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(g(En),g(U))},n.\u0275dir=D({type:n}),n})(),wi=(()=>{class n extends Fb{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,features:[E]}),n})();const en=new F("NgValueAccessor"),zN={provide:en,useExisting:re(()=>Qd),multi:!0},qN=new F("CompositionEventMode");let Qd=(()=>{class n extends Fb{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function WN(){const n=gn()?gn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(g(En),g(U),g(qN,8))},n.\u0275dir=D({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(t,i){1&t&&bt("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:[ae([zN]),E]}),n})();const Ke=new F("NgValidators"),Kn=new F("NgAsyncValidators");function Hb(n){return null!=n}function Gb(n){const e=Uo(n)?Qs(n):n;return sm(e),e}function $b(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Ub(n,e){return e.map(t=>t(n))}function zb(n){return n.map(e=>function QN(n){return!n.validate}(e)?e:t=>e.validate(t))}function Yd(n){return null!=n?function Wb(n){if(!n)return null;const e=n.filter(Hb);return 0==e.length?null:function(t){return $b(Ub(t,e))}}(zb(n)):null}function Zd(n){return null!=n?function qb(n){if(!n)return null;const e=n.filter(Hb);return 0==e.length?null:function(t){return function $N(...n){if(1===n.length){const e=n[0];if(Or(e))return Ya(e,null);if(dl(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Ya(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Ya(n=1===n.length&&Or(n[0])?n[0]:n,null).pipe(Fi(t=>e(...t)))}return Ya(n,null)}(Ub(t,e).map(Gb)).pipe(Fi($b))}}(zb(n)):null}function Kb(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Qb(n){return n._rawValidators}function Yb(n){return n._rawAsyncValidators}function Xd(n){return n?Array.isArray(n)?n:[n]:[]}function Xa(n,e){return Array.isArray(n)?n.includes(e):n===e}function Zb(n,e){const t=Xd(e);return Xd(n).forEach(r=>{Xa(t,r)||t.push(r)}),t}function Xb(n,e){return Xd(e).filter(t=>!Xa(n,t))}class Qn extends class Jb{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=Yd(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Zd(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,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let tC=(()=>{class n extends class eC{constructor(e){this._cd=e}is(e){var t,i,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[e])}}{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(g(Qn,2))},n.\u0275dir=D({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Hn("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:[E]}),n})();function Ls(n,e){(function tf(n,e){const t=Qb(n);null!==e.validator?n.setValidators(Kb(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=Yb(n);null!==e.asyncValidator?n.setAsyncValidators(Kb(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();nl(e._rawValidators,r),nl(e._rawAsyncValidators,r)})(n,e),e.valueAccessor.writeValue(n.value),function rL(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&iC(n,e)})}(n,e),function oL(n,e){const t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function sL(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&iC(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function iL(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function tl(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),function il(n,e){let t=!1;if(null!==n){if(null!==e.validator){const r=Qb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.validator);s.length!==r.length&&(t=!0,n.setValidators(s))}}if(null!==e.asyncValidator){const r=Yb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(t=!0,n.setAsyncValidators(s))}}}const i=()=>{};return nl(e._rawValidators,i),nl(e._rawAsyncValidators,i),t}(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function nl(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function iC(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function sf(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Vs="VALID",rl="INVALID",Ar="PENDING",Bs="DISABLED";function lf(n){return(sl(n)?n.validators:n)||null}function aC(n){return Array.isArray(n)?Yd(n):n||null}function cf(n,e){return(sl(e)?e.asyncValidators:n)||null}function lC(n){return Array.isArray(n)?Zd(n):n||null}function sl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const uf=n=>n instanceof hf;function uC(n){return(n=>n instanceof ff)(n)?n.value:n.getRawValue()}function dC(n,e){const t=uf(n),i=n.controls;if(!(t?Object.keys(i):i).length)throw new I(1e3,"");if(!i[e])throw new I(1001,"")}function fC(n,e){uf(n),n._forEachChild((i,r)=>{if(void 0===e[r])throw new I(1002,"")})}class df{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=aC(this._rawValidators),this._composedAsyncValidatorFn=lC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Vs}get invalid(){return this.status===rl}get pending(){return this.status==Ar}get disabled(){return this.status===Bs}get enabled(){return this.status!==Bs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=aC(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=lC(e)}addValidators(e){this.setValidators(Zb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Zb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Xb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Xb(e,this._rawAsyncValidators))}hasValidator(e){return Xa(this._rawValidators,e)}hasAsyncValidator(e){return Xa(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ar,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Bs,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Vs,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Vs||this.status===Ar)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Bs:Vs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ar,this._hasOwnPendingAsyncValidator=!0;const t=Gb(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function uL(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=uf(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof fL)(i)&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?Bs:this.errors?rl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ar)?Ar:this._anyControlsHaveStatus(rl)?rl:Vs}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){sl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ff extends df{constructor(e=null,t,i){super(lf(t),cf(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sl(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sf(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sf(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class hf extends df{constructor(e,t,i){super(lf(t),cf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){fC(this,e),Object.keys(e).forEach(i=>{dC(this,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=uC(t),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class fL extends df{constructor(e,t,i){super(lf(t),cf(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){fC(this,e),e.forEach((i,r)=>{dC(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>uC(e))}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}let _C=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({}),n})();const gf=new F("NgModelWithFormControlWarning"),CL={provide:Qn,useExisting:re(()=>mf)};let mf=(()=>{class n extends Qn{constructor(t,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new Re,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=function rf(n,e){if(!e)return null;let t,i,r;return Array.isArray(e),e.forEach(s=>{s.constructor===Qd?t=s:function cL(n){return Object.getPrototypeOf(n.constructor)===wi}(s)?i=s:r=s}),r||i||t||null}(0,r)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const i=t.form.previousValue;i&&tl(i,this,!1),Ls(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function nf(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(g(Ke,10),g(Kn,10),g(en,10),g(gf,8))},n.\u0275dir=D({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ae([CL]),E,$t]}),n})(),kC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[_C]]}),n})(),HL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[kC]}),n})(),GL=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:gf,useValue:t.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[kC]}),n})(),$L=(()=>{class n{constructor(){this._listeners=[]}notify(t,i){for(let r of this._listeners)r(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const UL=["input"],zL=function(n){return{enterDuration:n}},WL=["*"],qL=new F("mat-radio-default-options",{providedIn:"root",factory:function KL(){return{color:"accent"}}});let PC=0;const QL={provide:en,useExisting:re(()=>VC),multi:!0};class NC{constructor(e,t){this.source=e,this.value=t}}const LC=new F("MatRadioGroup");let YL=(()=>{class n{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+PC++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Re}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=ct(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=ct(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new NC(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(g(Es))},n.\u0275dir=D({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),VC=(()=>{class n extends YL{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["mat-radio-group"]],contentQueries:function(t,i,r){if(1&t&&function zy(n,e,t,i){const r=Y();if(r.firstCreatePass){const s=Le();qy(r,new Gy(e,t,i),s.index),function LI(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}Wy(r,C(),t)}(r,BC,5),2&t){let s;xu(s=Au())&&(i._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[ae([QL,{provide:LC,useExisting:n}]),E]}),n})();class ZL{constructor(e){this._elementRef=e}}const XL=TN(RN(ZL));let JL=(()=>{class n extends XL{constructor(t,i,r,s,o,a,l,c){super(i),this._changeDetector=r,this._focusMonitor=s,this._radioDispatcher=o,this._providerOverride=l,this._uniqueId="mat-radio-"+ ++PC,this.id=this._uniqueId,this.change=new Re,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,c&&(this.tabIndex=Iv(c,0)),this._removeUniqueSelectionListener=o.listen((u,d)=>{u!==this.id&&d===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const i=ct(t);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(ct(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=ct(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,i){i?this._focusMonitor.focusVia(this._inputElement,i,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new NC(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputInteraction(t){if(t.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return n.\u0275fac=function(t){!function nm(){throw new Error("invalid")}()},n.\u0275dir=D({type:n,viewQuery:function(t,i){if(1&t&&function Uy(n,e,t){const i=Y();i.firstCreatePass&&(qy(i,new Gy(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),Wy(i,C(),e)}(UL,5),2&t){let r;xu(r=Au())&&(i._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[E]}),n})(),BC=(()=>{class n extends JL{constructor(t,i,r,s,o,a,l,c){super(t,i,r,s,o,a,l,c)}}return n.\u0275fac=function(t){return new(t||n)(g(LC,8),g(U),g(Es),g(xk),g($L),g(Qa,8),g(qL,8),zr("tabindex"))},n.\u0275cmp=no({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,i){1&t&&bt("focus",function(){return i._inputElement.nativeElement.focus()}),2&t&&(st("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Hn("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[E],ngContentSelectors:WL,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,i){if(1&t&&(function cm(n){const e=C()[16][6];if(!e.projection){const i=e.projection=Kr(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?sS(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}(),ot(0,"label",0,1)(2,"span",2),$o(3,"span",3)(4,"span",4),ot(5,"input",5,6),bt("change",function(s){return i._onInputInteraction(s)})("click",function(s){return i._onInputClick(s)}),at(),ot(7,"span",7),$o(8,"span",8),at()(),ot(9,"span",9)(10,"span",10),fr(11,"\xa0"),at(),function um(n,e=0,t){const i=C(),r=Y(),s=Qi(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),kl(),64!=(64&s.flags)&&function yx(n,e,t){_p(e[G],0,e,t,cp(n,t,e),hp(t.parent||e[6],t,e))}(r,i,s)}(12),at()()),2&t){const r=function zg(n){return function Ni(n,e){return n[e]}(function Jw(){return B.lFrame.contextLView}(),20+n)}(1);st("for",i.inputId),_t(5),qt("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex)("required",i.required),st("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),_t(2),qt("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Oy(18,zL,i._noopAnimations?0:150)),_t(2),Hn("mat-radio-label-before","before"==i.labelPosition)}},directives:[HN],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n})(),e1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[GN,Di],Di]}),n})();const wf=new Jt(wa);class n1{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new r1(e,this.dueTime,this.scheduler))}}class r1 extends Fe{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(s1,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function s1(n){n.debouncedNext()}function Hs(n,e){return function(i){return i.lift(new o1(n,e))}}class o1{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new a1(e,this.predicate,this.thisArg))}}class a1 extends Fe{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let l1=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new ff(""),this.onEnter$=new Ne,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(function t1(n,e=wf){return t=>t.lift(new n1(n,e))}(100)).subscribe(()=>{var t;this.shouldValueChange(this.formControl.value)&&(null===(t=this.onEnter)||void 0===t||t.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(Hs(t=>(this.valueCanBeChanged=this.shouldValueChange(t),this.valueCanBeChanged))).subscribe(t=>{this.updateOnBlur||this.triggerValueChange(t)})}triggerValueChange(t){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(t)})}onEnterKeydown(t){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(t){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(t){return t}shouldValueChange(t){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),c1=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),u1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({providers:[c1]}),n})(),g1=0;const m1=new F("MatError");let y1=(()=>{class n{constructor(t,i){this.id="mat-error-"+g1++,t||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(t){return new(t||n)(zr("aria-live"),g(U))},n.\u0275dir=D({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,i){2&t&&st("id",i.id)},inputs:{id:"id"},features:[ae([{provide:m1,useExisting:n}])]}),n})(),_1=0;const v1=new F("MatHint");let b1=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+_1++}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=D({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,i){2&t&&(st("id",i.id)("align",null),Hn("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[ae([{provide:v1,useExisting:n}])]}),n})(),C1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=D({type:n,selectors:[["mat-label"]]}),n})(),jC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[sv,Di,u1],Di]}),n})();function HC(n){for(let e in n){let t=n[e]||"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":t=t||"row",n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const Ef="inline",ol=["row","column","row-reverse","column-reverse"];function GC(n){let[e,t,i]=function $C(n){var e;n=null!==(e=null==n?void 0:n.toLowerCase())&&void 0!==e?e:"";let[t,i,r]=n.split(" ");return ol.find(s=>s===t)||(t=ol[0]),i===Ef&&(i=r!==Ef?r:"",r=Ef),[t,D1(i),!!r]}(n);return function w1(n,e=null,t=!1){return{display:t?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":e||null}}(e,t,i)}function D1(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Yn(){}class x1{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new A1(e,this.nextOrObserver,this.error,this.complete))}}class A1 extends Fe{constructor(e,t,i,r){super(e),this._tapNext=Yn,this._tapError=Yn,this._tapComplete=Yn,this._tapError=i||Yn,this._tapComplete=r||Yn,Rr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Yn,this._tapError=t.error||Yn,this._tapComplete=t.complete||Yn)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const S1={provide:p_,useFactory:function M1(n,e){return()=>{if(gi(e)){const t=Array.from(n.querySelectorAll(`[class*=${UC}]`)),i=/\bflex-layout-.+?\b/g;t.forEach(r=>{r.classList.contains(`${UC}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[X,Yt],multi:!0},UC="flex-layout-";let xf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({providers:[S1]}),n})();class xi{constructor(e=!1,t="all",i="",r="",s=0){this.matches=e,this.mediaQuery=t,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new xi(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let I1=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(t,i,r){const s=this.stylesheet.get(t);s?s.set(i,r):this.stylesheet.set(t,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,i){const r=this.stylesheet.get(t);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Af={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},tn=new F("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Af}),Mr=new F("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Mf=new F("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function zC(n,e){return n=n?n.clone():new xi,e&&(n.mqAlias=e.alias,n.mediaQuery=e.mediaQuery,n.suffix=e.suffix,n.priority=e.priority),n}class Me{constructor(){this.shouldCache=!0}sideEffect(e,t,i){}}let he=(()=>{class n{constructor(t,i,r,s){this._serverStylesheet=t,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(t,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:HC(i),this._applyMultiValueStyleToElement(s,t)}applyStyleToElements(t,i=[]){const r=this.layoutConfig.disableVendorPrefixes?t:HC(t);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(t){const i="flex-direction";let r=this.lookupStyle(t,i);return[r||"row",this.lookupInlineStyle(t,i)||br(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,i){var r;return null!==(r=t.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(t,i){return gi(this._platformId)?t.style.getPropertyValue(i):function F1(n,e){var t;return null!==(t=WC(n)[e])&&void 0!==t?t:""}(t,i)}lookupStyle(t,i,r=!1){let s="";return t&&((s=this.lookupInlineStyle(t,i))||(gi(this._platformId)?r||(s=getComputedStyle(t).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(t,i)))),s?s.trim():""}_applyMultiValueStyleToElement(t,i){Object.keys(t).sort().forEach(r=>{const s=t[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",gi(this._platformId)||!this._serverModuleLoaded?gi(this._platformId)?i.style.setProperty(r,a):T1(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return n.\u0275fac=function(t){return new(t||n)(v(I1),v(Mr),v(Yt),v(tn))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function T1(n,e,t){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=WC(n);i[e]=null!=t?t:"",function R1(n,e){let t="";for(const i in e)e[i]&&(t+=`${i}:${e[i]};`);n.setAttribute("style",t)}(n,i)}function WC(n){const e={},t=n.getAttribute("style");if(t){const i=t.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);e[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return e}function $s(n,e){return(e&&e.priority||0)-(n&&n.priority||0)}function O1(n,e){return(n.priority||0)-(e.priority||0)}let Sf=(()=>{class n{constructor(t,i,r){this._zone=t,this._platformId=i,this._document=r,this.source=new Sv(new xi(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((i,r)=>{i.matches&&t.push(r)}),t}isActive(t){var i;const r=this.registry.get(t);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(t).some(s=>s.matches)}observe(t,i=!1){if(t&&t.length){const r=this._observable$.pipe(Hs(o=>!i||t.indexOf(o.mediaQuery)>-1));return Pr(new _e(o=>{const a=this.registerQuery(t);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(t){const i=Array.isArray(t)?t:[t],r=[];return function k1(n,e){const t=n.filter(i=>!qC[i]);if(t.length>0){const i=t.join(", ");try{const r=e.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),e.head.appendChild(r),t.forEach(s=>qC[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new xi(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new xi(!0,s))}),r}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function P1(n,e){return e&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,gi(this._platformId))}}return n.\u0275fac=function(t){return new(t||n)(v(le),v(Yt),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qC={},N1=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],KC="(orientation: portrait) and (max-width: 599.98px)",QC="(orientation: landscape) and (max-width: 959.98px)",YC="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",ZC="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",XC="(orientation: portrait) and (min-width: 840px)",JC="(orientation: landscape) and (min-width: 1280px)",Tn={HANDSET:`${KC}, ${QC}`,TABLET:`${YC} , ${ZC}`,WEB:`${XC}, ${JC} `,HANDSET_PORTRAIT:`${KC}`,TABLET_PORTRAIT:`${YC} `,WEB_PORTRAIT:`${XC}`,HANDSET_LANDSCAPE:`${QC}`,TABLET_LANDSCAPE:`${ZC}`,WEB_LANDSCAPE:`${JC}`},L1=[{alias:"handset",priority:2e3,mediaQuery:Tn.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Tn.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Tn.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Tn.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Tn.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Tn.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Tn.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Tn.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Tn.WEB_PORTRAIT,overlapping:!0}],V1=/(\.|-|_)/g;function B1(n){let e=n.length>0?n.charAt(0):"",t=n.length>1?n.slice(1):"";return e.toUpperCase()+t}const $1=new F("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Zr(Mf),e=Zr(tn),t=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function G1(n,e=[]){const t={};return n.forEach(i=>{t[i.alias]=i}),e.forEach(i=>{t[i.alias]?function Fn(n,...e){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let t of e)if(null!=t)for(let i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}(t[i.alias],i):t[i.alias]=i}),function H1(n){return n.forEach(e=>{e.suffix||(e.suffix=function j1(n){return n.replace(V1,"|").split("|").map(B1).join("")}(e.alias),e.overlapping=!!e.overlapping)}),n}(Object.keys(t).map(i=>t[i]))}((e.disableDefaultBps?[]:N1).concat(e.addOrientationBps?L1:[]),t)}});let If=(()=>{class n{constructor(t){this.findByMap=new Map,this.items=[...t].sort(O1)}findByAlias(t){return t?this.findWithPredicate(t,i=>i.alias===t):null}findByQuery(t){return this.findWithPredicate(t,i=>i.mediaQuery===t)}get overlappings(){return this.items.filter(t=>t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>{var i;return null!==(i=null==t?void 0:t.suffix)&&void 0!==i?i:""})}findWithPredicate(t,i){var r;let s=this.findByMap.get(t);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(t,s)),null!=s?s:null}}return n.\u0275fac=function(t){return new(t||n)(v($1))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Sr="print",U1={alias:Sr,mediaQuery:Sr,priority:1e3};let z1=(()=>{class n{constructor(t,i,r){this.breakpoints=t,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new W1,this.deactivations=[]}withPrintQuery(t){return[...t,Sr]}isPrintEvent(t){return t.mediaQuery.startsWith(Sr)}get printAlias(){var t;return[...null!==(t=this.layoutConfig.printWithBreakpoints)&&void 0!==t?t:[]]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const i=this.breakpoints.findByQuery(t);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort($s)}updateEvent(t){var i;let r=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(r=this.getEventBreakpoints(t)[0],t.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),zC(t,r)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new xi(!0,Sr))),t.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(t){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(i)),t.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(t),t.updateStyles()):this.collectActivations(t,i)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,i){this.isPrinting=!0,this.formerActivations=t.activatedBreakpoints,t.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(t,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&t.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort($s))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return n.\u0275fac=function(t){return new(t||n)(v(If),v(tn),v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class W1{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(U1),e.sort($s),e.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function q1(n){var e;return null!==(e=null==n?void 0:n.mediaQuery.startsWith(Sr))&&void 0!==e&&e}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}let me=(()=>{class n{constructor(t,i,r){this.matchMedia=t,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Ne,this.observeActivations()}get activatedAlias(){var t,i;return null!==(i=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==i?i:""}set activatedBreakpoints(t){this._activatedBreakpoints=[...t]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(t){this._useFallbacks=t}onMediaChange(t){const i=this.findByQuery(t.mediaQuery);if(i){t=zC(t,i);const r=this.activatedBreakpoints.indexOf(i);t.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort($s),this.updateStyles()):!t.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort($s),this.updateStyles())}}init(t,i,r,s,o=[]){eD(this.updateMap,t,i,r),eD(this.clearMap,t,i,s),this.buildElementKeyMap(t,i),this.watchExtraTriggers(t,i,o)}getValue(t,i,r){const s=this.elementMap.get(t);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(t,i){const r=this.elementMap.get(t);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(t,i,r,s){var o;let a=this.elementMap.get(t);if(a){const c=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,c),this.elementMap.set(t,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(t,a);const l=this.getValue(t,i);void 0!==l&&this.updateElement(t,i,l)}trackValue(t,i){return this.subject.asObservable().pipe(Hs(r=>r.element===t&&r.key===i))}updateStyles(){this.elementMap.forEach((t,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(t);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(t,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(t,i){const r=this.clearMap.get(t);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:t,key:i,value:""}))}}updateElement(t,i,r){const s=this.updateMap.get(t);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:t,key:i,value:r}))}}releaseElement(t){const i=this.watcherMap.get(t);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(t));const r=this.elementMap.get(t);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(t))}triggerUpdate(t,i){const r=this.elementMap.get(t);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(t,i,s.get(i)):s.forEach((o,a)=>this.updateElement(t,a,o)))}}buildElementKeyMap(t,i){let r=this.elementKeyMap.get(t);r||(r=new Set,this.elementKeyMap.set(t,r)),r.add(i)}watchExtraTriggers(t,i,r){if(r&&r.length){let s=this.watcherMap.get(t);if(s||(s=new Map,this.watcherMap.set(t,s)),!s.get(i)){const a=Pr(...r).subscribe(()=>{const l=this.getValue(t,i);this.updateElement(t,i,l)});s.set(i,a)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=t.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=t.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const t=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(function E1(n,e,t){return function(r){return r.lift(new x1(n,e,t))}}(this.hook.interceptEvents(this)),Hs(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(t){return new(t||n)(v(Sf),v(If),v(z1))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function eD(n,e,t,i){var r;if(void 0!==i){const s=null!==(r=n.get(e))&&void 0!==r?r:new Map;s.set(t,i),n.set(e,s)}}let Ce=(()=>{class n{constructor(t,i,r,s){this.elementRef=t,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Ne,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(t[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(t);(!o||!s)&&(o=r.buildStyles(t,i),s&&this.styleCache.set(t,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(t,o,i)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,i=!1){if(t){const[r,s]=this.styler.getFlowDirection(t);if(!s&&i){const o=GC(r);this.styler.applyStyleToElements(o,[t])}return r.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,i,r=this.nativeElement){this.styler.applyStyleToElement(r,t,i)}setValue(t,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,i)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(Me),g(he),g(me))},n.\u0275dir=D({type:n,features:[$t]}),n})();function al(n,e){if(void 0===e)return n;const t=i=>{const r=+i.slice(0,-"x".length);return n.endsWith("x")&&!isNaN(r)?`${r*e.value}${e.unit}`:n};return n.includes(" ")?n.split(" ").map(t).join(" "):t(n)}let Y1=(()=>{class n extends Me{buildStyles(t,{display:i}){const r=GC(t);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Z1=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let X1=(()=>{class n extends Ce{constructor(t,i,r,s,o){super(t,r,i,s),this._config=o,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(t){var i;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=sD.get(s))&&void 0!==i?i:new Map,sD.set(s,this.styleCache),this.currentValue!==t&&(this.addStyles(t,{display:s}),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(he),g(Y1),g(me),g(tn))},n.\u0275dir=D({type:n,features:[E]}),n})(),rD=(()=>{class n extends X1{constructor(){super(...arguments),this.inputs=Z1}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[E]}),n})();const sD=new Map,oD={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let J1=(()=>{class n extends Me{constructor(t,i){super(),this._styler=t,this._config=i}buildStyles(t,i){return t.endsWith(ll)?function aV(n,e){const[t,i]=n.split(" "),s=c=>`-${c}`;let o="0px",a=s(null!=i?i:t),l="0px";return"rtl"===e?l=s(t):o=s(t),{margin:`0px ${o} ${a} ${l}`}}(t=al(t=t.slice(0,t.indexOf(ll)),this._config.multiplier),i.directionality):{}}sideEffect(t,i,r){const s=r.items;if(t.endsWith(ll)){const o=function oV(n,e){const[t,i]=n.split(" ");let s="0px",a="0px";return"rtl"===e?a=t:s=t,{padding:`0px ${s} ${null!=i?i:t} ${a}`}}(t=al(t=t.slice(0,t.indexOf(ll)),this._config.multiplier),r.directionality);this._styler.applyStyleToElements(o,r.items)}else{t=al(t,this._config.multiplier),t=this.addFallbackUnit(t);const o=s.pop(),a=function lV(n,e){const t=lD(e.directionality,e.layout),i=Object.assign({},oD);return i[t]=n,i}(t,r);this._styler.applyStyleToElements(a,s),this._styler.applyStyleToElements(oD,[o])}}addFallbackUnit(t){return isNaN(+t)?t:`${t}${this._config.defaultUnit}`}}return n.\u0275fac=function(t){return new(t||n)(v(he),v(tn))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const eV=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let tV=(()=>{class n extends Ce{constructor(t,i,r,s,o,a){super(t,o,s,a),this.zone=i,this.directionality=r,this.styleUtils=s,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new Ne;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(Un(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const t=this.nativeElement.children,i=[];for(let r=t.length;r--;)i[r]=t[r];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){const r=t.value.split(" ");this.layout=r[0],ol.find(s=>s===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){const i=this.childrenNodes.filter(r=>1===r.nodeType&&this.willDisplay(r)).sort((r,s)=>{const o=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(s,"order");return isNaN(o)||isNaN(a)||o===a?0:o>a?1:-1});if(i.length>0){const r=this.directionality.value,s=this.layout;"row"===s&&"rtl"===r?this.styleCache=nV:"row"===s&&"rtl"!==r?this.styleCache=rV:"column"===s&&"rtl"===r?this.styleCache=iV:"column"===s&&"rtl"!==r&&(this.styleCache=sV),this.addStyles(t,{directionality:r,items:i,layout:s})}}clearStyles(){const t=Object.keys(this.mru).length>0,i=t?"padding":lD(this.directionality.value,this.layout);t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(t){const i=this.marshal.getValue(t,"show-hide");return!0===i||void 0===i&&"none"!==this.styleUtils.lookupStyle(t,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(t=>{t.some(r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return n.\u0275fac=function(t){return new(t||n)(g(U),g(le),g(yd),g(he),g(J1),g(me))},n.\u0275dir=D({type:n,features:[E]}),n})(),aD=(()=>{class n extends tV{constructor(){super(...arguments),this.inputs=eV}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[E]}),n})();const nV=new Map,iV=new Map,rV=new Map,sV=new Map,ll=" grid";function lD(n,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===n?"margin-left":"margin-right";case"row-reverse":return"rtl"===n?"margin-right":"margin-left"}}let cD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[xf,_d]]}),n})();function ZV(n,e){if(1&n&&(ot(0,"mat-label",6),fr(1),at()),2&n){const t=zo();_t(1),au(t.label)}}function XV(n,e){if(1&n&&(ot(0,"mat-radio-button",7),fr(1),at()),2&n){const t=e.$implicit;qt("value",t.value),_t(1),hr(" ",t.label," ")}}function JV(n,e){if(1&n&&(ot(0,"mat-error",8),fr(1),at()),2&n){const t=zo();_t(1),hr(" ",t.error," ")}}function eB(n,e){if(1&n&&(ot(0,"mat-hint",6),fr(1),at()),2&n){const t=zo();_t(1),hr(" ",t.helpText," ")}}let tB=(()=>{class n extends l1{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=O(n)))(i||n)}}(),n.\u0275cmp=no({type:n,selectors:[["drayman-radio-group-internal"]],inputs:{options:"options",direction:"direction",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[E],decls:8,vars:6,consts:[[3,"formControl"],[1,"section"],["class","radio-label",4,"ngIf"],["fxLayoutGap","10px",1,"options",3,"fxLayout"],[3,"value",4,"ngFor","ngForOf"],["class","radio-error",4,"ngIf"],[1,"radio-label"],[3,"value"],[1,"radio-error"]],template:function(t,i){1&t&&(ot(0,"mat-radio-group",0)(1,"div",1),fs(2,ZV,2,1,"mat-label",2),at(),ot(3,"div",3),fs(4,XV,2,2,"mat-radio-button",4),at(),ot(5,"div",1),fs(6,JV,2,1,"mat-error",5),fs(7,eB,2,1,"mat-hint",2),at()()),2&t&&(qt("formControl",i.formControl),_t(2),qt("ngIf",i.label),_t(1),qt("fxLayout",i.direction||"column"),_t(1),qt("ngForOf",i.options),_t(2),qt("ngIf",i.error),_t(1),qt("ngIf",!i.error&&i.helpText))},directives:[VC,tC,mf,Y_,C1,aD,rD,K_,BC,y1,b1],styles:[".radio-label[_ngcontent-%COMP%], .radio-error[_ngcontent-%COMP%]{color:#0009;padding:0 12px;font-size:12px;display:block}.radio-error[_ngcontent-%COMP%]{color:#f44336}.section[_ngcontent-%COMP%]{height:14px}.options[_ngcontent-%COMP%]{padding:12px}"]}),n})(),uD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[Av]]}),n})(),nB=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({providers:[kN],imports:[[uD,jC,Di],uD,jC]}),n})(),mD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[xf]]}),n})(),ED=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[xf]]}),n})(),Gj=(()=>{class n{constructor(t,i){br(i)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,i=[]){return{ngModule:n,providers:t.serverLoaded?[{provide:tn,useValue:Object.assign(Object.assign({},Af),t)},{provide:Mf,useValue:i,multi:!0},{provide:Mr,useValue:!0}]:[{provide:tn,useValue:Object.assign(Object.assign({},Af),t)},{provide:Mf,useValue:i,multi:!0}]}}}return n.\u0275fac=function(t){return new(t||n)(v(Mr),v(Yt))},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({imports:[[cD,mD,ED],cD,mD,ED]}),n})();new class qj extends Jt{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class Wj extends wa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let Qj=1;const Yj=Promise.resolve(),cl={};function MD(n){return n in cl&&(delete cl[n],!0)}const SD={setImmediate(n){const e=Qj++;return cl[e]=!0,Yj.then(()=>MD(e)&&n()),e},clearImmediate(n){MD(n)}};new class Xj extends Jt{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class Zj extends wa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=SD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(SD.clearImmediate(t),e.scheduled=void 0)}});Object.create(Error.prototype);let Of=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Cd()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Cd()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(v(X),v(Sn))},n.\u0275prov=w({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kH=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(v(X))},n.\u0275prov=w({token:n,factory:n.\u0275fac}),n})(),PH=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function UO(n,e){const t=function LO(n,e){return e.get(ui).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new HO(n,e.injector),r=function NO(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function TO(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends $O{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(tB,{injector:this.injector});customElements.define("drayman-radio-group",t)}}return n.\u0275fac=function(t){return new(t||n)(v(Je))},n.\u0275mod=pe({type:n}),n.\u0275inj=fe({providers:[{provide:Of,useClass:kH}],imports:[[yv,SN,GL,HL,e1,nB,Gj]]}),n})();(function DF(){w_=!1})(),sO().bootstrapModule(PH).catch(n=>console.error(n))})();