-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.fdb3af7195534601.js
1 lines (1 loc) · 263 KB
/
main.fdb3af7195534601.js
1
"use strict";(self.webpackChunktodo_app=self.webpackChunktodo_app||[]).push([[179],{874:()=>{function he(e){return"function"==typeof e}function Ai(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Ni=Ai(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function ho(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Lt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(he(r))try{r()}catch(i){t=i instanceof Ni?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{xf(i)}catch(s){t=t??[],s instanceof Ni?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ni(t)}}add(t){var n;if(t&&t!==this)if(this.closed)xf(t);else{if(t instanceof Lt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ho(n,t)}remove(t){const{_finalizers:n}=this;n&&ho(n,t),t instanceof Lt&&t._removeParent(this)}}Lt.EMPTY=(()=>{const e=new Lt;return e.closed=!0,e})();const Pf=Lt.EMPTY;function Ff(e){return e instanceof Lt||e&&"closed"in e&&he(e.remove)&&he(e.add)&&he(e.unsubscribe)}function xf(e){he(e)?e():e.unsubscribe()}const Gn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Oi={setTimeout(e,t,...n){const{delegate:r}=Oi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Oi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Rf(e){Oi.setTimeout(()=>{const{onUnhandledError:t}=Gn;if(!t)throw e;t(e)})}function kf(){}const bw=sl("C",void 0,void 0);function sl(e,t,n){return{kind:e,value:t,error:n}}let qn=null;function Pi(e){if(Gn.useDeprecatedSynchronousErrorHandling){const t=!qn;if(t&&(qn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=qn;if(qn=null,n)throw r}}else e()}class al extends Lt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ff(t)&&t.add(this)):this.destination=Ow}static create(t,n,r){return new po(t,n,r)}next(t){this.isStopped?ul(function Sw(e){return sl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ul(function Mw(e){return sl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ul(bw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Tw=Function.prototype.bind;function ll(e,t){return Tw.call(e,t)}class Aw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Fi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Fi(r)}else Fi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Fi(n)}}}class po extends al{constructor(t,n,r){let o;if(super(),he(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Gn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ll(t.next,i),error:t.error&&ll(t.error,i),complete:t.complete&&ll(t.complete,i)}):o=t}this.destination=new Aw(o)}}function Fi(e){Gn.useDeprecatedSynchronousErrorHandling?function Iw(e){Gn.useDeprecatedSynchronousErrorHandling&&qn&&(qn.errorThrown=!0,qn.error=e)}(e):Rf(e)}function ul(e,t){const{onStoppedNotification:n}=Gn;n&&Oi.setTimeout(()=>n(e,t))}const Ow={closed:!0,next:kf,error:function Nw(e){throw e},complete:kf},cl="function"==typeof Symbol&&Symbol.observable||"@@observable";function dl(e){return e}let je=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Fw(e){return e&&e instanceof al||function Pw(e){return e&&he(e.next)&&he(e.error)&&he(e.complete)}(e)&&Ff(e)}(n)?n:new po(n,r,o);return Pi(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Vf(r))((o,i)=>{const s=new po({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[cl](){return this}pipe(...n){return function Lf(e){return 0===e.length?dl:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Vf(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Vf(e){var t;return null!==(t=e??Gn.Promise)&&void 0!==t?t:Promise}const xw=Ai(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let xi=(()=>{class e extends je{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Bf(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new xw}next(n){Pi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Pi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Pi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Pf:(this.currentObservers=null,i.push(n),new Lt(()=>{this.currentObservers=null,ho(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new je;return n.source=this,n}}return e.create=(t,n)=>new Bf(t,n),e})();class Bf extends xi{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Pf}}function Wn(e){return t=>{if(function Rw(e){return he(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function En(e,t,n,r,o){return new kw(e,t,n,r,o)}class kw extends al{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function fl(e,t){return Wn((n,r)=>{let o=0;n.subscribe(En(r,i=>{r.next(e.call(t,i,o++))}))})}function bn(e){return this instanceof bn?(this.v=e,this):new bn(e)}function Uf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function ml(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const zf=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Gf(e){return he(e?.then)}function qf(e){return he(e[cl])}function Wf(e){return Symbol.asyncIterator&&he(e?.[Symbol.asyncIterator])}function Qf(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Zf=function oE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Kf(e){return he(e?.[Zf])}function Yf(e){return function $f(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof bn?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield bn(n.read());if(o)return yield bn(void 0);yield yield bn(r)}}finally{n.releaseLock()}})}function Xf(e){return he(e?.getReader)}function Vt(e){if(e instanceof je)return e;if(null!=e){if(qf(e))return function iE(e){return new je(t=>{const n=e[cl]();if(he(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(zf(e))return function sE(e){return new je(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(Gf(e))return function aE(e){return new je(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Rf)})}(e);if(Wf(e))return Jf(e);if(Kf(e))return function lE(e){return new je(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Xf(e))return function uE(e){return Jf(Yf(e))}(e)}throw Qf(e)}function Jf(e){return new je(t=>{(function cE(e,t){var n,r,o,i;return function jf(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Uf(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Mn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function eh(e,t,n=1/0){return he(t)?eh((r,o)=>fl((i,s)=>t(r,i,o,s))(Vt(e(r,o))),n):("number"==typeof t&&(n=t),Wn((r,o)=>function dE(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=g=>u<r?p(g):l.push(g),p=g=>{i&&t.next(g),u++;let y=!1;Vt(n(g,c++)).subscribe(En(t,D=>{o?.(D),i?h(D):t.next(D)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&u<r;){const D=l.shift();s?Mn(t,s,()=>p(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(En(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const th=new je(e=>e.complete());function yl(e){return e[e.length-1]}function nh(e){return function pE(e){return e&&he(e.schedule)}(yl(e))?e.pop():void 0}function rh(e,t=0){return Wn((n,r)=>{n.subscribe(En(r,o=>Mn(r,e,()=>r.next(o),t),()=>Mn(r,e,()=>r.complete(),t),o=>Mn(r,e,()=>r.error(o),t)))})}function oh(e,t=0){return Wn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ih(e,t){if(!e)throw new Error("Iterable cannot be null");return new je(n=>{Mn(n,t,()=>{const r=e[Symbol.asyncIterator]();Mn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _l(e,t){return t?function wE(e,t){if(null!=e){if(qf(e))return function yE(e,t){return Vt(e).pipe(oh(t),rh(t))}(e,t);if(zf(e))return function vE(e,t){return new je(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Gf(e))return function _E(e,t){return Vt(e).pipe(oh(t),rh(t))}(e,t);if(Wf(e))return ih(e,t);if(Kf(e))return function DE(e,t){return new je(n=>{let r;return Mn(n,t,()=>{r=e[Zf](),Mn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>he(r?.return)&&r.return()})}(e,t);if(Xf(e))return function CE(e,t){return ih(Yf(e),t)}(e,t)}throw Qf(e)}(e,t):Vt(e)}function EE(...e){const t=nh(e),n=function mE(e,t){return"number"==typeof yl(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Vt(r[0]):function fE(e=1/0){return eh(dl,e)}(n)(_l(r,t)):th}class bE extends xi{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function sh(e={}){const{connector:t=(()=>new xi),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Wn((g,y)=>{u++,!d&&!c&&f();const D=l=l??t();y.add(()=>{u--,0===u&&!d&&!c&&(a=vl(p,o))}),D.subscribe(y),!s&&u>0&&(s=new po({next:m=>D.next(m),error:m=>{d=!0,f(),a=vl(h,n,m),D.error(m)},complete:()=>{c=!0,f(),a=vl(h,r),D.complete()}}),Vt(g).subscribe(s))})(i)}}function vl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new po({next:()=>{r.unsubscribe(),e()}});return Vt(t(...n)).subscribe(r)}function TE(e,t){return e===t}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function Ri(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function be(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(be).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Dl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const AE=X({__forward_ref__:X});function re(e){return e.__forward_ref__=re,e.toString=function(){return be(this())},e}function O(e){return Cl(e)?e():e}function Cl(e){return"function"==typeof e&&e.hasOwnProperty(AE)&&e.__forward_ref__===re}function wl(e){return e&&!!e.\u0275providers}class _ extends Error{constructor(t,n){super(function ki(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function El(e,t){throw new _(-201,!1)}function gt(e,t){null==e&&function A(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Bt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Li(e){return lh(e,Bi)||lh(e,uh)}function lh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Vi(e){return e&&(e.hasOwnProperty(bl)||e.hasOwnProperty(kE))?e[bl]:null}const Bi=X({\u0275prov:X}),bl=X({\u0275inj:X}),uh=X({ngInjectableDef:X}),kE=X({ngInjectorDef:X});var j=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(j||{});let Ml;function Ke(e){const t=Ml;return Ml=e,t}function dh(e,t,n){const r=Li(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&j.Optional?null:void 0!==t?t:void El(be(e))}const oe=globalThis,go={},Nl="__NG_DI_FLAG__",ji="ngTempTokenPath",BE=/\n/gm,hh="__source";let gr;function Sn(e){const t=gr;return gr=e,t}function $E(e,t=j.Default){if(void 0===gr)throw new _(-203,!1);return null===gr?dh(e,void 0,t):gr.get(e,t&j.Optional?null:void 0,t)}function k(e,t=j.Default){return(function ch(){return Ml}()||$E)(O(e),t)}function te(e,t=j.Default){return k(e,Hi(t))}function Hi(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ol(e){const t=[];for(let n=0;n<e.length;n++){const r=O(e[n]);if(Array.isArray(r)){if(0===r.length)throw new _(900,!1);let o,i=j.Default;for(let s=0;s<r.length;s++){const a=r[s],l=UE(a);"number"==typeof l?-1===l?o=a.token:i|=l:o=a}t.push(k(o,i))}else t.push(k(r))}return t}function mo(e,t){return e[Nl]=t,e.prototype[Nl]=t,e}function UE(e){return e[Nl]}function nn(e){return{toString:e}.toString()}var $i=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}($i||{}),mt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(mt||{});const jt={},W=[],Ui=X({\u0275cmp:X}),Pl=X({\u0275dir:X}),Fl=X({\u0275pipe:X}),gh=X({\u0275mod:X}),rn=X({\u0275fac:X}),yo=X({__NG_ELEMENT_ID__:X}),mh=X({__NG_ENV_ID__:X});function yh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function xl(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];vh(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function _h(e){return 3===e||4===e||6===e}function vh(e){return 64===e.charCodeAt(0)}function _o(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Dh(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Dh(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const Ch="ng-template";function qE(e,t,n){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(n&&"class"===i&&-1!==yh(s.toLowerCase(),t,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function wh(e){return 4===e.type&&e.value!==Ch}function WE(e,t,n){return t===(4!==e.type||n?e.value:Ch)}function QE(e,t,n){let r=4;const o=e.attrs||[],i=function YE(e){for(let t=0;t<e.length;t++)if(_h(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!WE(e,l,n)||""===l&&1===t.length){if(Mt(r))return!1;s=!0}}else{const u=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!qE(e.attrs,u,n)){if(Mt(r))return!1;s=!0}continue}const d=ZE(8&r?"class":l,o,wh(e),n);if(-1===d){if(Mt(r))return!1;s=!0;continue}if(""!==u){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==yh(h,u,0)||2&r&&u!==f){if(Mt(r))return!1;s=!0}}}}else{if(!s&&!Mt(r)&&!Mt(l))return!1;if(s&&Mt(l))continue;s=!1,r=l|1&r}}return Mt(r)||s}function Mt(e){return 0==(1&e)}function ZE(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function XE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Eh(e,t,n=!1){for(let r=0;r<t.length;r++)if(QE(e,t[r],n))return!0;return!1}function bh(e,t){return e?":not("+t.trim()+")":t}function e0(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Mt(s)&&(t+=bh(i,o),o=""),r=s,i=i||!Mt(r);n++}return""!==o&&(t+=bh(i,o)),t}function zi(e){return nn(()=>{const t=Sh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$i.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||mt.Emulated,styles:e.styles||W,_:null,schemas:e.schemas||null,tView:null,id:""};Ih(n);const r=e.dependencies;return n.directiveDefs=Gi(r,!1),n.pipeDefs=Gi(r,!0),n.id=function u0(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function o0(e){return H(e)||Te(e)}function s0(e){return null!==e}function on(e){return nn(()=>({type:e.type,bootstrap:e.bootstrap||W,declarations:e.declarations||W,imports:e.imports||W,exports:e.exports||W,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Mh(e,t){if(null==e)return jt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function x(e){return nn(()=>{const t=Sh(e);return Ih(t),t})}function Ye(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function H(e){return e[Ui]||null}function Te(e){return e[Pl]||null}function He(e){return e[Fl]||null}function Sh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||jt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||W,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Mh(e.inputs,t),outputs:Mh(e.outputs)}}function Ih(e){e.features?.forEach(t=>t(e))}function Gi(e,t){if(!e)return null;const n=t?He:o0;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(s0)}const me=0,w=1,L=2,ce=3,St=4,Do=5,Fe=6,mr=7,ve=8,In=9,yr=10,F=11,Co=12,Th=13,_r=14,De=15,wo=16,vr=17,Ht=18,Eo=19,Ah=20,Tn=21,sn=22,bo=23,Mo=24,B=25,Rl=1,Nh=2,$t=7,Dr=9,Ae=11;function Xe(e){return Array.isArray(e)&&"object"==typeof e[Rl]}function $e(e){return Array.isArray(e)&&!0===e[Rl]}function kl(e){return 0!=(4&e.flags)}function Zn(e){return e.componentOffset>-1}function Wi(e){return 1==(1&e.flags)}function It(e){return!!e.template}function Ll(e){return 0!=(512&e[L])}function Kn(e,t){return e.hasOwnProperty(rn)?e[rn]:null}let Ne=null,Qi=!1;function yt(e){const t=Ne;return Ne=e,t}const Fh={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Rh(e){if(!Io(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Vh(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Lh(e){e.dirty=!0,function kh(e){if(void 0===e.liveConsumerNode)return;const t=Qi;Qi=!0;try{for(const n of e.liveConsumerNode)n.dirty||Lh(n)}finally{Qi=t}}(e),e.consumerMarkedDirty?.(e)}function Bl(e){return e&&(e.nextProducerIndex=0),yt(e)}function jl(e,t){if(yt(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Io(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Zi(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Vh(e){Cr(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Rh(n),r!==n.version))return!0}return!1}function Bh(e){if(Cr(e),Io(e))for(let t=0;t<e.producerNode.length;t++)Zi(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Zi(e,t){if(function Hh(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Cr(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)Zi(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Cr(o),o.producerIndexOfThis[r]=t}}function Io(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Cr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let $h=null;const qh=()=>{},w0=(()=>({...Fh,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:qh}))();class E0{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ut(){return Wh}function Wh(e){return e.type.prototype.ngOnChanges&&(e.setInput=M0),b0}function b0(){const e=Zh(this),t=e?.current;if(t){const n=e.previous;if(n===jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function M0(e,t,n,r){const o=this.declaredInputs[n],i=Zh(e)||function S0(e,t){return e[Qh]=t}(e,{previous:jt,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new E0(l&&l.currentValue,t,a===jt),e[r]=t}Ut.ngInherit=!0;const Qh="__ngSimpleChanges__";function Zh(e){return e[Qh]||null}const zt=function(e,t,n){},Kh="svg";function ie(e){for(;Array.isArray(e);)e=e[me];return e}function Ki(e,t){return ie(t[e])}function Je(e,t){return ie(t[e.index])}function Xh(e,t){return e.data[t]}function at(e,t){const n=t[e];return Xe(n)?n:n[me]}function Nn(e,t){return null==t?null:e[t]}function Jh(e){e[vr]=0}function P0(e){1024&e[L]||(e[L]|=1024,tp(e,1))}function ep(e){1024&e[L]&&(e[L]&=-1025,tp(e,-1))}function tp(e,t){let n=e[ce];if(null===n)return;n[Do]+=t;let r=n;for(n=n[ce];null!==n&&(1===t&&1===r[Do]||-1===t&&0===r[Do]);)n[Do]+=t,r=n,n=n[ce]}const N={lFrame:fp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function op(){return N.bindingsEnabled}function v(){return N.lFrame.lView}function $(){return N.lFrame.tView}function On(e){return N.lFrame.contextLView=e,e[ve]}function Pn(e){return N.lFrame.contextLView=null,e}function Oe(){let e=ip();for(;null!==e&&64===e.type;)e=e.parent;return e}function ip(){return N.lFrame.currentTNode}function Gt(e,t){const n=N.lFrame;n.currentTNode=e,n.isParent=t}function Gl(){return N.lFrame.isParent}function Ue(){const e=N.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function br(){return N.lFrame.bindingIndex++}function z0(e,t){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Wl(t)}function Wl(e){N.lFrame.currentDirectiveIndex=e}function up(){return N.lFrame.currentQueryIndex}function Zl(e){N.lFrame.currentQueryIndex=e}function q0(e){const t=e[w];return 2===t.type?t.declTNode:1===t.type?e[Fe]:null}function cp(e,t,n){if(n&j.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&j.Host||(o=q0(i),null===o||(i=i[_r],10&o.type))););if(null===o)return!1;t=o,e=i}const r=N.lFrame=dp();return r.currentTNode=t,r.lView=e,!0}function Kl(e){const t=dp(),n=e[w];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function dp(){const e=N.lFrame,t=null===e?null:e.child;return null===t?fp(e):t}function fp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function hp(){const e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pp=hp;function Yl(){const e=hp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ze(){return N.lFrame.selectedIndex}function Yn(e){N.lFrame.selectedIndex=e}function pe(){const e=N.lFrame;return Xh(e.tView,e.selectedIndex)}function un(){N.lFrame.currentNamespace=Kh}function Yi(){!function K0(){N.lFrame.currentNamespace=null}()}let mp=!0;function Xi(){return mp}function Fn(e){mp=e}function Ji(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),null!=c&&(e.destroyHooks??=[]).push(n,c)}}function es(e,t,n){yp(e,t,3,n)}function ts(e,t,n,r){(3&e[L])===n&&yp(e,t,n,r)}function Xl(e,t){let n=e[L];(3&n)===t&&(n&=8191,n+=1,e[L]=n)}function yp(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&e[vr]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(e[vr]+=65536),(a<i||-1==i)&&(X0(e,n,t,l),e[vr]=(4294901760&e[vr])+l+2),l++}function _p(e,t){zt(4,e,t);const n=yt(null);try{t.call(e)}finally{yt(n),zt(5,e,t)}}function X0(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[L]>>13<e[vr]>>16&&(3&e[L])===t&&(e[L]+=8192,_p(a,i)):_p(a,i)}const Mr=-1;class Ao{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function eu(e){return e!==Mr}function No(e){return 32767&e}function Oo(e,t){let n=function nb(e){return e>>16}(e),r=t;for(;n>0;)r=r[_r],n--;return r}let tu=!0;function ns(e){const t=tu;return tu=e,t}const vp=255,Dp=5;let rb=0;const qt={};function rs(e,t){const n=Cp(e,t);if(-1!==n)return n;const r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,nu(r.data,e),nu(t,null),nu(r.blueprint,null));const o=os(e,t),i=e.injectorIndex;if(eu(o)){const s=No(o),a=Oo(o,t),l=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function nu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Cp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function os(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Tp(o),null===r)return Mr;if(n++,o=o[_r],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Mr}function ru(e,t,n){!function ob(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(yo)&&(r=n[yo]),null==r&&(r=n[yo]=rb++);const o=r&vp;t.data[e+(o>>Dp)]|=1<<o}(e,t,n)}function wp(e,t,n){if(n&j.Optional||void 0!==e)return e;El()}function Ep(e,t,n,r){if(n&j.Optional&&void 0===r&&(r=null),!(n&(j.Self|j.Host))){const o=e[In],i=Ke(void 0);try{return o?o.get(t,r,n&j.Optional):dh(t,r,n&j.Optional)}finally{Ke(i)}}return wp(r,0,n)}function bp(e,t,n,r=j.Default,o){if(null!==e){if(2048&t[L]&&!(r&j.Self)){const s=function cb(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[L]&&!(512&s[L]);){const a=Mp(i,s,n,r|j.Self,qt);if(a!==qt)return a;let l=i.parent;if(!l){const u=s[Ah];if(u){const c=u.get(n,qt,r);if(c!==qt)return c}l=Tp(s),s=s[_r]}i=l}return o}(e,t,n,r,qt);if(s!==qt)return s}const i=Mp(e,t,n,r,qt);if(i!==qt)return i}return Ep(t,n,r,o)}function Mp(e,t,n,r,o){const i=function ab(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(yo)?e[yo]:void 0;return"number"==typeof t?t>=0?t&vp:ub:t}(n);if("function"==typeof i){if(!cp(t,e,r))return r&j.Host?wp(o,0,r):Ep(t,n,r,o);try{let s;if(s=i(r),null!=s||r&j.Optional)return s;El()}finally{pp()}}else if("number"==typeof i){let s=null,a=Cp(e,t),l=Mr,u=r&j.Host?t[De][Fe]:null;for((-1===a||r&j.SkipSelf)&&(l=-1===a?os(e,t):t[a+8],l!==Mr&&Ip(r,!1)?(s=t[w],a=No(l),t=Oo(l,t)):a=-1);-1!==a;){const c=t[w];if(Sp(i,a,c.data)){const d=sb(a,t,n,s,r,u);if(d!==qt)return d}l=t[a+8],l!==Mr&&Ip(r,t[w].data[a+8]===u)&&Sp(i,a,t)?(s=c,a=No(l),t=Oo(l,t)):a=-1}}return o}function sb(e,t,n,r,o,i){const s=t[w],a=s.data[e+8],c=is(a,s,n,null==r?Zn(a)&&tu:r!=s&&0!=(3&a.type),o&j.Host&&i===a);return null!==c?Xn(t,s,c,a):qt}function is(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(o){const h=s[l];if(h&&It(h)&&h.type===n)return l}return null}function Xn(e,t,n,r){let o=e[n];const i=t.data;if(function J0(e){return e instanceof Ao}(o)){const s=o;s.resolving&&function NE(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new _(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Y(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}(i[n]));const a=ns(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Ke(s.injectImpl):null;cp(e,r,j.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Y0(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Wh(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==u&&Ke(u),ns(a),s.resolving=!1,pp()}}return o}function Sp(e,t,n){return!!(n[t+(e>>Dp)]&1<<e)}function Ip(e,t){return!(e&j.Self||e&j.Host&&t)}class Ge{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return bp(this._tNode,this._lView,t,Hi(r),n)}}function ub(){return new Ge(Oe(),v())}function xe(e){return nn(()=>{const t=e.prototype.constructor,n=t[rn]||ou(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[rn]||ou(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ou(e){return Cl(e)?()=>{const t=ou(O(e));return t&&t()}:Kn(e)}function Tp(e){const t=e[w],n=t.type;return 2===n?t.declTNode:1===n?e[Fe]:null}const Ir="__parameters__";function Ar(e,t,n){return nn(()=>{const r=function su(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Ir)?l[Ir]:Object.defineProperty(l,Ir,{value:[]})[Ir];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Or(e,t){e.forEach(n=>Array.isArray(n)?Or(n,t):t(n))}function Np(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ss(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function lt(e,t,n){let r=Pr(e,t);return r>=0?e[1|r]=n:(r=~r,function yb(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function au(e,t){const n=Pr(e,t);if(n>=0)return e[1|n]}function Pr(e,t){return function Op(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const uu=mo(Ar("Optional"),8),cu=mo(Ar("SkipSelf"),4);function fs(e){return 128==(128&e.flags)}var xn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(xn||{});const pu=new Map;let Hb=0;const mu="__ngContext__";function Re(e,t){Xe(t)?(e[mu]=t[Eo],function Ub(e){pu.set(e[Eo],e)}(t)):e[mu]=t}let yu;function _u(e,t){return yu(e,t)}function Lo(e){const t=e[ce];return $e(t)?t[ce]:t}function Yp(e){return Jp(e[Co])}function Xp(e){return Jp(e[St])}function Jp(e){for(;null!==e&&!$e(e);)e=e[St];return e}function Rr(e,t,n,r,o){if(null!=r){let i,s=!1;$e(r)?i=r:Xe(r)&&(s=!0,r=r[me]);const a=ie(r);0===e&&null!==n?null==o?rg(t,n,a):Jn(t,n,a,o||null,!0):1===e&&null!==n?Jn(t,n,a,o||null,!0):2===e?function vs(e,t,n){const r=ys(e,t);r&&function lM(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function dM(e,t,n,r,o){const i=n[$t];i!==ie(n)&&Rr(t,e,r,i,o);for(let a=Ae;a<n.length;a++){const l=n[a];Bo(l[w],l,e,t,r,i)}}(t,e,i,n,o)}}function gs(e,t,n){return e.createElement(t,n)}function tg(e,t){const n=e[Dr],r=n.indexOf(t);ep(t),n.splice(r,1)}function ms(e,t){if(e.length<=Ae)return;const n=Ae+t,r=e[n];if(r){const o=r[wo];null!==o&&o!==e&&tg(o,r),t>0&&(e[n-1][St]=r[St]);const i=ss(e,Ae+t);!function eM(e,t){Bo(e,t,t[F],2,null,null),t[me]=null,t[Fe]=null}(r[w],r);const s=i[Ht];null!==s&&s.detachView(i[w]),r[ce]=null,r[St]=null,r[L]&=-129}return r}function Du(e,t){if(!(256&t[L])){const n=t[F];t[bo]&&Bh(t[bo]),t[Mo]&&Bh(t[Mo]),n.destroyNode&&Bo(e,t,n,3,null,null),function rM(e){let t=e[Co];if(!t)return Cu(e[w],e);for(;t;){let n=null;if(Xe(t))n=t[Co];else{const r=t[Ae];r&&(n=r)}if(!n){for(;t&&!t[St]&&t!==e;)Xe(t)&&Cu(t[w],t),t=t[ce];null===t&&(t=e),Xe(t)&&Cu(t[w],t),n=t&&t[St]}t=n}}(t)}}function Cu(e,t){if(!(256&t[L])){t[L]&=-129,t[L]|=256,function aM(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Ao)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],l=i[s+1];zt(4,a,l);try{l.call(a)}finally{zt(5,a,l)}}else{zt(4,o,i);try{i.call(o)}finally{zt(5,o,i)}}}}}(e,t),function sM(e,t){const n=e.cleanup,r=t[mr];if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[mr]=null);const o=t[Tn];if(null!==o){t[Tn]=null;for(let i=0;i<o.length;i++)(0,o[i])()}}(e,t),1===t[w].type&&t[F].destroy();const n=t[wo];if(null!==n&&$e(t[ce])){n!==t[ce]&&tg(n,t);const r=t[Ht];null!==r&&r.detachView(e)}!function zb(e){pu.delete(e[Eo])}(t)}}function wu(e,t,n){return function ng(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[me];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===mt.None||i===mt.Emulated)return null}return Je(r,n)}}(e,t.parent,n)}function Jn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function rg(e,t,n){e.appendChild(t,n)}function og(e,t,n,r,o){null!==r?Jn(e,t,n,r,o):rg(e,t,n)}function ys(e,t){return e.parentNode(t)}let Eu,Iu,ag=function sg(e,t,n){return 40&e.type?Je(e,n):null};function _s(e,t,n,r){const o=wu(e,r,t),i=t[F],a=function ig(e,t,n){return ag(e,t,n)}(r.parent||t[Fe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;l<n.length;l++)og(i,o,n[l],a,!1);else og(i,o,n,a,!1);void 0!==Eu&&Eu(i,r,t,n,o)}function Vo(e,t){if(null!==t){const n=t.type;if(3&n)return Je(t,e);if(4&n)return bu(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Vo(e,r);{const o=e[t.index];return $e(o)?bu(-1,o):ie(o)}}if(32&n)return _u(t,e)()||ie(e[t.index]);{const r=ug(e,t);return null!==r?Array.isArray(r)?r[0]:Vo(Lo(e[De]),r):Vo(e,t.next)}}return null}function ug(e,t){return null!==t?e[De][Fe].projection[t.projection]:null}function bu(e,t){const n=Ae+e+1;if(n<t.length){const r=t[n],o=r[w].firstChild;if(null!==o)return Vo(r,o)}return t[$t]}function Mu(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===t&&(a&&Re(ie(a),r),n.flags|=2),32!=(32&n.flags))if(8&l)Mu(e,t,n.child,r,o,i,!1),Rr(t,e,o,a,i);else if(32&l){const u=_u(n,r);let c;for(;c=u();)Rr(t,e,o,c,i);Rr(t,e,o,a,i)}else 16&l?dg(e,t,r,n,o,i):Rr(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Bo(e,t,n,r,o,i){Mu(n,r,e.firstChild,t,o,i,!1)}function dg(e,t,n,r,o,i){const s=n[De],l=s[Fe].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)Rr(t,e,o,l[u],i);else{let u=l;const c=s[ce];fs(r)&&(u.flags|=128),Mu(e,t,u,c,o,i,!0)}}function fg(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function hg(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&xl(e,t,r),null!==o&&fg(e,t,o),null!==i&&function hM(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}class yg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class I{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=z({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Es=new I("ENVIRONMENT_INITIALIZER"),Sg=new I("INJECTOR",-1),Ig=new I("INJECTOR_DEF_TYPES");class Fu{get(t,n=go){if(n===go){const r=new Error(`NullInjectorError: No provider for ${be(t)}!`);throw r.name="NullInjectorError",r}return n}}function HM(...e){return{\u0275providers:Ag(0,e),\u0275fromNgModule:!0}}function Ag(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return Or(t,s=>{const a=s;bs(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&Ng(o,i),n}function Ng(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:o}=e[n];xu(o,i=>{t(i,r)})}}function bs(e,t,n,r){if(!(e=O(e)))return!1;let o=null,i=Vi(e);const s=!i&&H(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Vi(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)bs(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{Or(i.imports,c=>{bs(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&Ng(u,t)}if(!a){const u=Kn(o)||(()=>new o);t({provide:o,useFactory:u,deps:W},o),t({provide:Ig,useValue:o,multi:!0},o),t({provide:Es,useValue:()=>k(o),multi:!0},o)}const l=i.providers;if(null!=l&&!a){const u=e;xu(l,c=>{t(c,u)})}}}return o!==e&&void 0!==e.providers}function xu(e,t){for(let n of e)wl(n)&&(n=n.\u0275providers),Array.isArray(n)?xu(n,t):t(n)}const $M=X({provide:String,useValue:X});function Ru(e){return null!==e&&"object"==typeof e&&$M in e}function er(e){return"function"==typeof e}const ku=new I("Set Injector scope."),Ms={},zM={};let Lu;function Ss(){return void 0===Lu&&(Lu=new Fu),Lu}class dn{}class Is extends dn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bu(t,s=>this.processProvider(s)),this.records.set(Sg,Br(void 0,this)),o.has("environment")&&this.records.set(dn,Br(void 0,this));const i=this.records.get(ku);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ig.multi,W,j.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Sn(this),r=Ke(void 0);try{return t()}finally{Sn(n),Ke(r)}}get(t,n=go,r=j.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(mh))return t[mh](this);r=Hi(r);const i=Sn(this),s=Ke(void 0);try{if(!(r&j.SkipSelf)){let l=this.records.get(t);if(void 0===l){const u=function ZM(e){return"function"==typeof e||"object"==typeof e&&e instanceof I}(t)&&Li(t);l=u&&this.injectableDefInScope(u)?Br(Vu(t),Ms):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(r&j.Self?Ss():this.parent).get(t,n=r&j.Optional&&n===go?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ji]=a[ji]||[]).unshift(be(t)),i)throw a;return function zE(e,t,n,r){const o=e[ji];throw t[hh]&&o.unshift(t[hh]),e.message=function GE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=be(t);if(Array.isArray(t))o=t.map(be).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):be(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(BE,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ji]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Ke(s),Sn(i)}}resolveInjectorInitializers(){const t=Sn(this),n=Ke(void 0);try{const o=this.get(Es.multi,W,j.Self);for(const i of o)i()}finally{Sn(t),Ke(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(be(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(t){let n=er(t=O(t))?t:O(t&&t.provide);const r=function qM(e){return Ru(e)?Br(void 0,e.useValue):Br(Fg(e),Ms)}(t);if(er(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Br(void 0,Ms,!0),o.factory=()=>Ol(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ms&&(n.value=zM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function QM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=O(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Vu(e){const t=Li(e),n=null!==t?t.factory:Kn(e);if(null!==n)return n;if(e instanceof I)throw new _(204,!1);if(e instanceof Function)return function GM(e){const t=e.length;if(t>0)throw function xo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new _(204,!1);const n=function RE(e){return e&&(e[Bi]||e[uh])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new _(204,!1)}function Fg(e,t,n){let r;if(er(e)){const o=O(e);return Kn(o)||Vu(o)}if(Ru(e))r=()=>O(e.useValue);else if(function Pg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ol(e.deps||[]));else if(function Og(e){return!(!e||!e.useExisting)}(e))r=()=>k(O(e.useExisting));else{const o=O(e&&(e.useClass||e.provide));if(!function WM(e){return!!e.deps}(e))return Kn(o)||Vu(o);r=()=>new o(...Ol(e.deps))}return r}function Br(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Bu(e,t){for(const n of e)Array.isArray(n)?Bu(n,t):n&&wl(n)?Bu(n.\u0275providers,t):t(n)}const Ts=new I("AppId",{providedIn:"root",factory:()=>KM}),KM="ng",xg=new I("Platform Initializer"),jr=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rg=new I("AnimationModuleType"),kg=new I("CSP nonce",{providedIn:"root",factory:()=>function Lr(){if(void 0!==Iu)return Iu;if(typeof document<"u")return document;throw new _(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Lg=(e,t,n)=>null;function Wu(e,t,n=!1){return Lg(e,t,n)}class sS{}class jg{}class lS{resolveComponentFactory(t){throw function aS(e){const t=Error(`No component factory found for ${be(e)}.`);return t.ngComponent=e,t}(t)}}let xs=(()=>{class e{static#e=this.NULL=new lS}return e})();function uS(){return Ur(Oe(),v())}function Ur(e,t){return new Tt(Je(e,t))}let Tt=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=uS}return e})();function cS(e){return e instanceof Tt?e.nativeElement:e}class Go{}let tr=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function dS(){const e=v(),n=at(Oe().index,e);return(Xe(n)?n:e)[F]}()}return e})(),fS=(()=>{class e{static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:()=>null})}return e})();class Rs{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const hS=new Rs("16.2.7"),Ku={};function Gg(e,t=null,n=null,r){const o=qg(e,t,n,r);return o.resolveInjectorInitializers(),o}function qg(e,t=null,n=null,r,o=new Set){const i=[n||W,HM(e)];return r=r||("object"==typeof e?void 0:be(e)),new Is(i,t||Ss(),r||null,o)}let At=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=go;static#t=this.NULL=new Fu;static create(n,r){if(Array.isArray(n))return Gg({name:""},r,n,"");{const o=n.name??"";return Gg({name:o},n.parent,n.providers,o)}}static#n=this.\u0275prov=z({token:e,providedIn:"any",factory:()=>k(Sg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Xu(e){return e.ngOriginalError}class fn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Xu(t);for(;n&&Xu(n);)n=Xu(n);return n||null}}function ec(e){return t=>{setTimeout(e,void 0,t)}}const Pe=class DS extends xi{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=ec(i),o&&(o=ec(o)),s&&(s=ec(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Lt&&t.add(a),a}};function Qg(...e){}class de{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pe(!1),this.onMicrotaskEmpty=new Pe(!1),this.onStable=new Pe(!1),this.onError=new Pe(!1),typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function CS(){const e="function"==typeof oe.requestAnimationFrame;let t=oe[e?"requestAnimationFrame":"setTimeout"],n=oe[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function bS(e){const t=()=>{!function ES(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,nc(e),e.isCheckStableRunning=!0,tc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),nc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(function SS(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return n.invokeTask(o,i,s,a);try{return Zg(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Kg(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return Zg(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Kg(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,nc(e),tc(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!de.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(de.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,wS,Qg,Qg);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const wS={};function tc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function nc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Zg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Kg(e){e._nesting--,tc(e)}class MS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pe,this.onMicrotaskEmpty=new Pe,this.onStable=new Pe,this.onError=new Pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Yg=new I("",{providedIn:"root",factory:Xg});function Xg(){const e=te(de);let t=!0;return EE(new je(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new je(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{de.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(sh()))}let rc=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:()=>new e})}return e})();function qo(e){for(;e;){e[L]|=64;const t=Lo(e);if(Ll(e)&&!t)return e;e=t}return null}const rm=new I("",{providedIn:"root",factory:()=>!1});let Ls=null;function am(e,t){return e[t]??cm()}function lm(e,t){const n=cm();n.producerNode?.length&&(e[t]=Ls,n.lView=e,Ls=um())}const kS={...Fh,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{qo(e.lView)},lView:null};function um(){return Object.create(kS)}function cm(){return Ls??=um(),Ls}const R={};function J(e){dm($(),v(),ze()+e,!1)}function dm(e,t,n,r){if(!r)if(3==(3&t[L])){const i=e.preOrderCheckHooks;null!==i&&es(t,i,n)}else{const i=e.preOrderHooks;null!==i&&ts(t,i,0,n)}Yn(n)}function C(e,t=j.Default){const n=v();return null===n?k(e,t):bp(Oe(),n,O(e),t)}function Vs(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[me]=o,d[L]=140|r,(null!==u||e&&2048&e[L])&&(d[L]|=2048),Jh(d),d[ce]=d[_r]=e,d[ve]=n,d[yr]=s||e&&e[yr],d[F]=a||e&&e[F],d[In]=l||e&&e[In]||null,d[Fe]=i,d[Eo]=function $b(){return Hb++}(),d[sn]=c,d[Ah]=u,d[De]=2==t.type?e[De]:d,d}function qr(e,t,n,r,o){let i=e.data[t];if(null===i)i=function oc(e,t,n,r,o){const i=ip(),s=Gl(),l=e.data[t]=function GS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Er(){return null!==N.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function U0(){return N.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function To(){const e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Gt(i,!0),i}function Wo(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function fm(e,t,n,r,o){const i=am(t,bo),s=ze(),a=2&r;try{Yn(-1),a&&t.length>B&&dm(e,t,B,!1),zt(a?2:0,o);const u=a?i:null,c=Bl(u);try{null!==u&&(u.dirty=!1),n(r,o)}finally{jl(u,c)}}finally{a&&null===t[bo]&&lm(t,bo),Yn(s),zt(a?3:1,o)}}function ic(e,t,n){if(kl(t)){const r=yt(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{yt(r)}}}function sc(e,t,n){op()&&(function XS(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;Zn(n)&&function iI(e,t,n){const r=Je(t,e),o=hm(n);let s=16;n.signals?s=4096:n.onPush&&(s=64);const a=Bs(e,Vs(e,o,null,s,r,t,null,e[yr].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=a}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||rs(n,t),Re(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const l=e.data[a],u=Xn(t,e,a,n);Re(u,t),null!==s&&sI(0,a-o,u,l,0,s),It(l)&&(at(n.index,t)[ve]=Xn(t,e,a,n))}}(e,t,n,Je(n,t)),64==(64&n.flags)&&_m(e,t,n))}function ac(e,t,n=Je){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function hm(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=lc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function lc(e,t,n,r,o,i,s,a,l,u,c){const d=B+r,f=d+o,h=function BS(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:R);return n}(d,f),p="function"==typeof u?u():u;return h[w]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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 i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:c}}let pm=e=>null;function gm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?mm(n,t,o,i):r.hasOwnProperty(o)&&mm(n,t,r[o],i)}return n}function mm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function uc(e,t,n,r){if(op()){const o=null===r?null:{"":-1},i=function eI(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(Eh(t,s.selectors,!1))if(r||(r=[]),It(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),cc(e,t,a.length)}else r.unshift(s),cc(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&ym(e,t,n,s,o,a),o&&function tI(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new _(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=_o(n.mergedAttrs,n.attrs)}function ym(e,t,n,r,o,i){for(let u=0;u<r.length;u++)ru(rs(n,t),e,r[u].type);!function rI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let u=0;u<r.length;u++){const c=r[u];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,l=Wo(e,t,r.length,null);for(let u=0;u<r.length;u++){const c=r[u];n.mergedAttrs=_o(n.mergedAttrs,c.hostAttrs),oI(e,n,t,l,c),nI(l,c,o),null!==c.contentQueries&&(n.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}!function qS(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let l=null,u=null;for(let c=t.directiveStart;c<o;c++){const d=i[c],f=n?n.get(d):null,p=f?f.outputs:null;l=gm(d.inputs,c,l,f?f.inputs:null),u=gm(d.outputs,c,u,p);const g=null===l||null===s||wh(t)?null:aI(l,c,s);a.push(g)}null!==l&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=u}(e,n,i)}function _m(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function G0(){return N.lFrame.currentDirectiveIndex}();try{Yn(i);for(let a=r;a<o;a++){const l=e.data[a],u=t[a];Wl(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&JS(l,u)}}finally{Yn(-1),Wl(s)}}function JS(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function cc(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function nI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;It(t)&&(n[""]=e)}}function oI(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Kn(o.type)),s=new Ao(i,It(o),C);e.blueprint[r]=s,n[r]=s,function KS(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function YS(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Wo(e,n,o.hostVars,R),o)}function Wt(e,t,n,r,o,i){const s=Je(e,t);!function dc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?P(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[F],s,i,e.value,n,r,o)}function sI(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;)vm(r,n,s[a++],s[a++],s[a++])}function vm(e,t,n,r,o){const i=yt(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(r)&&(o=s[r].call(t,o)),null!==e.setInput?e.setInput(t,o,n,r):t[r]=o}finally{yt(i)}}function aI(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function Dm(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function Cm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=e.data[i];Zl(n[r]),s.contentQueries(2,t[i],i)}}}function Bs(e,t){return e[Co]?e[Th][St]=t:e[Co]=t,e[Th]=t,t}function fc(e,t,n){Zl(0);const r=yt(null);try{t(e,n)}finally{yt(r)}}function wm(e){return e[mr]||(e[mr]=[])}function Em(e){return e.cleanup||(e.cleanup=[])}function Mm(e,t){const n=e[In],r=n?n.get(fn,null):null;r&&r.handleError(t)}function hc(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++];vm(e.data[s],t[s],r,a,o)}}function lI(e,t){const n=at(t,e),r=n[w];!function uI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[me];null!==o&&null===n[sn]&&(n[sn]=Wu(o,n[In])),pc(r,n,n[ve])}function pc(e,t,n){Kl(t);try{const r=e.viewQuery;null!==r&&fc(1,r,n);const o=e.template;null!==o&&fm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Cm(e,t),e.staticViewQueries&&fc(2,e.viewQuery,n);const i=e.components;null!==i&&function cI(e,t){for(let n=0;n<t.length;n++)lI(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Yl()}}let Sm=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=function C0(e,t,n){const r=Object.create(w0);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const o=s=>{r.cleanupFn=s};return r.ref={notify:()=>Lh(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Vh(r))return;r.hasRun=!0;const s=Bl(r);try{r.cleanupFn(),r.cleanupFn=qh,r.fn(o)}finally{jl(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:()=>new e})}return e})();function js(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=Dl(o,a):2==i&&(r=Dl(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Qo(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];null!==i&&r.push(ie(i)),$e(i)&&Im(i,r);const s=n.type;if(8&s)Qo(e,t,n.child,r);else if(32&s){const a=_u(n,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=ug(t,n);if(Array.isArray(a))r.push(...a);else{const l=Lo(t[De]);Qo(l[w],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Im(e,t){for(let n=Ae;n<e.length;n++){const r=e[n],o=r[w].firstChild;null!==o&&Qo(r[w],r,o,t)}e[$t]!==e[me]&&t.push(e[$t])}function Hs(e,t,n,r=!0){const o=t[yr],i=o.rendererFactory,s=o.afterRenderEventManager;i.begin?.(),s?.begin();try{Tm(e,t,e.template,n)}catch(l){throw r&&Mm(t,l),l}finally{i.end?.(),o.effectManager?.flush(),s?.end()}}function Tm(e,t,n,r){const o=t[L];if(256!=(256&o)){t[yr].effectManager?.flush(),Kl(t);try{Jh(t),function ap(e){return N.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&fm(e,t,n,2,r);const s=3==(3&o);if(s){const u=e.preOrderCheckHooks;null!==u&&es(t,u,null)}else{const u=e.preOrderHooks;null!==u&&ts(t,u,0,null),Xl(t,0)}if(function hI(e){for(let t=Yp(e);null!==t;t=Xp(t)){if(!t[Nh])continue;const n=t[Dr];for(let r=0;r<n.length;r++){P0(n[r])}}}(t),Am(t,2),null!==e.contentQueries&&Cm(e,t),s){const u=e.contentCheckHooks;null!==u&&es(t,u)}else{const u=e.contentHooks;null!==u&&ts(t,u,1),Xl(t,1)}!function VS(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=am(t,Mo);try{for(let o=0;o<n.length;o++){const i=n[o];if(i<0)Yn(~i);else{const s=i,a=n[++o],l=n[++o];z0(a,s),r.dirty=!1;const u=Bl(r);try{l(2,t[s])}finally{jl(r,u)}}}}finally{null===t[Mo]&&lm(t,Mo),Yn(-1)}}(e,t);const a=e.components;null!==a&&Om(t,a,0);const l=e.viewQuery;if(null!==l&&fc(2,l,r),s){const u=e.viewCheckHooks;null!==u&&es(t,u)}else{const u=e.viewHooks;null!==u&&ts(t,u,2),Xl(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[L]&=-73,ep(t)}finally{Yl()}}}function Am(e,t){for(let n=Yp(e);null!==n;n=Xp(n))for(let r=Ae;r<n.length;r++)Nm(n[r],t)}function pI(e,t,n){Nm(at(t,e),n)}function Nm(e,t){if(!function N0(e){return 128==(128&e[L])}(e))return;const n=e[w],r=e[L];if(80&r&&0===t||1024&r||2===t)Tm(n,e,n.template,e[ve]);else if(e[Do]>0){Am(e,1);const o=n.components;null!==o&&Om(e,o,1)}}function Om(e,t,n){for(let r=0;r<t.length;r++)pI(e,t[r],n)}class Zo{get rootNodes(){const t=this._lView,n=t[w];return Qo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ve]}set context(t){this._lView[ve]=t}get destroyed(){return 256==(256&this._lView[L])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ce];if($e(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(ms(t,r),ss(n,r))}this._attachedToViewContainer=!1}Du(this._lView[w],this._lView)}onDestroy(t){!function np(e,t){if(256==(256&e[L]))throw new _(911,!1);null===e[Tn]&&(e[Tn]=[]),e[Tn].push(t)}(this._lView,t)}markForCheck(){qo(this._cdRefInjectingView||this._lView)}detach(){this._lView[L]&=-129}reattach(){this._lView[L]|=128}detectChanges(){Hs(this._lView[w],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function nM(e,t){Bo(e,t,t[F],2,null,null)}(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t}}class gI extends Zo{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Hs(t[w],t,t[ve],!1)}checkNoChanges(){}get context(){return null}}class Pm extends xs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=H(t);return new Ko(n,this.ngModule)}}function Fm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class yI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Hi(r);const o=this.injector.get(t,Ku,r);return o!==Ku||n===Ku?o:this.parentInjector.get(t,n,r)}}class Ko extends jg{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Fm(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Fm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function t0(e){return e.map(e0).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof dn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new yI(t,i):t,a=s.get(Go,null);if(null===a)throw new _(407,!1);const d={rendererFactory:a,sanitizer:s.get(fS,null),effectManager:s.get(Sm,null),afterRenderEventManager:s.get(rc,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function jS(e,t,n,r){const i=r.get(rm,!1)||n===mt.ShadowDom,s=e.selectRootElement(t,i);return function HS(e){pm(e)}(s),s}(f,r,this.componentDef.encapsulation,s):gs(f,h,function mI(e){const t=e.toLowerCase();return"svg"===t?Kh:"math"===t?"math":null}(h)),D=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let m=null;null!==p&&(m=Wu(p,s,!0));const E=lc(0,null,null,1,0,null,null,null,null,null,null),b=Vs(null,E,null,D,null,null,d,f,s,null,m);let V,le;Kl(b);try{const ue=this.componentDef;let Ve,ht=null;ue.findHostDirectiveDefs?(Ve=[],ht=new Map,ue.findHostDirectiveDefs(ue,Ve,ht),Ve.push(ue)):Ve=[ue];const kt=function vI(e,t){const n=e[w],r=B;return e[r]=t,qr(n,r,2,"#host",null)}(b,p),ol=function DI(e,t,n,r,o,i,s){const a=o[w];!function CI(e,t,n,r){for(const o of e)t.mergedAttrs=_o(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(js(t,t.mergedAttrs,!0),null!==n&&hg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=Wu(t,o[In]));const u=i.rendererFactory.createRenderer(t,n);let c=16;n.signals?c=4096:n.onPush&&(c=64);const d=Vs(o,hm(n),null,c,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&cc(a,e,r.length-1),Bs(o,d),o[e.index]=d}(kt,p,ue,Ve,b,d,f);le=Xh(E,B),p&&function EI(e,t,n,r){if(r)xl(e,n,["ng-version",hS.full]);else{const{attrs:o,classes:i}=function n0(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!Mt(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&xl(e,n,o),i&&i.length>0&&fg(e,n,i.join(" "))}}(f,ue,p,r),void 0!==n&&function bI(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(le,this.ngContentSelectors,n),V=function wI(e,t,n,r,o,i){const s=Oe(),a=o[w],l=Je(s,o);ym(a,o,s,n,null,r);for(let c=0;c<n.length;c++)Re(Xn(o,a,s.directiveStart+c,s),o);_m(a,o,s),l&&Re(l,o);const u=Xn(o,a,s.directiveStart+s.componentOffset,s);if(e[ve]=o[ve]=u,null!==i)for(const c of i)c(u,t);return ic(a,s,e),u}(ol,ue,Ve,ht,b,[MI]),pc(E,b,null)}finally{Yl()}return new _I(this.componentType,V,Ur(le,b),b,le)}}class _I extends sS{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new gI(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const i=this._rootLView;hc(i[w],i,o,t,n),this.previousInputValues.set(t,n),qo(at(this._tNode.index,i))}}get injector(){return new Ge(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function MI(){const e=Oe();Ji(v()[w],e)}function ee(e){let t=function xm(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(It(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=$s(e.inputs),s.inputTransforms=$s(e.inputTransforms),s.declaredInputs=$s(e.declaredInputs),s.outputs=$s(e.outputs);const a=o.hostBindings;a&&AI(e,a);const l=o.viewQuery,u=o.contentQueries;if(l&&II(e,l),u&&TI(e,u),Ri(e.inputs,o.inputs),Ri(e.declaredInputs,o.declaredInputs),Ri(e.outputs,o.outputs),null!==o.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Ri(s.inputTransforms,o.inputTransforms)),It(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===ee&&(n=!1)}}t=Object.getPrototypeOf(t)}!function SI(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=_o(o.hostAttrs,n=_o(n,o.hostAttrs))}}(r)}function $s(e){return e===jt?{}:e===W?[]:e}function II(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function TI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function AI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Us(e){return!!gc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function gc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Qt(e,t,n){return e[t]=n}function ke(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function nr(e,t,n,r){const o=ke(e,t,n);return ke(e,t+1,r)||o}function gn(e,t,n,r){const o=v();return ke(o,br(),t)&&($(),Wt(pe(),o,e,t,n,r)),gn}function Dt(e,t,n,r,o,i,s,a){const l=v(),u=$(),c=e+B,d=u.firstCreatePass?function t1(e,t,n,r,o,i,s,a,l){const u=t.consts,c=qr(t,e,4,s||null,Nn(u,a));uc(t,n,c,Nn(u,l)),Ji(t,c);const d=c.tView=lc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];Gt(d,!1);const f=Km(u,l,d,e);Xi()&&_s(u,l,f,d),Re(f,l),Bs(l,l[c]=Dm(f,l,f,d)),Wi(d)&&sc(u,l,d),null!=s&&ac(l,d,a)}let Km=function Ym(e,t,n,r){return Fn(!0),t[F].createComment("")};function Q(e,t,n){const r=v();return ke(r,br(),t)&&function ut(e,t,n,r,o,i,s,a){const l=Je(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(hc(e,n,c,r,o),Zn(t)&&function QS(e,t){const n=at(t,e);16&n[L]||(n[L]|=64)}(n,t.index)):3&t.type&&(r=function WS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}($(),pe(),r,e,t,r[F],n,!1),Q}function Cc(e,t,n,r,o){const s=o?"class":"style";hc(e,n,t.inputs[s],s,r)}function G(e,t,n,r){const o=v(),i=$(),s=B+e,a=o[F],l=i.firstCreatePass?function s1(e,t,n,r,o,i){const s=t.consts,l=qr(t,e,2,r,Nn(s,o));return uc(t,n,l,Nn(s,i)),null!==l.attrs&&js(l,l.attrs,!1),null!==l.mergedAttrs&&js(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=Xm(i,o,l,a,t,e);o[s]=u;const c=Wi(l);return Gt(l,!0),hg(a,u,l),32!=(32&l.flags)&&Xi()&&_s(i,o,u,l),0===function x0(){return N.lFrame.elementDepthCount}()&&Re(u,o),function R0(){N.lFrame.elementDepthCount++}(),c&&(sc(i,o,l),ic(i,l,o)),null!==r&&ac(o,l),G}function U(){let e=Oe();Gl()?function ql(){N.lFrame.isParent=!1}():(e=e.parent,Gt(e,!1));const t=e;(function L0(e){return N.skipHydrationRootTNode===e})(t)&&function H0(){N.skipHydrationRootTNode=null}(),function k0(){N.lFrame.elementDepthCount--}();const n=$();return n.firstCreatePass&&(Ji(n,e),kl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function eb(e){return 0!=(8&e.flags)}(t)&&Cc(n,t,v(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function tb(e){return 0!=(16&e.flags)}(t)&&Cc(n,t,v(),t.stylesWithoutHost,!1),U}function Nt(e,t,n,r){return G(e,t,n,r),U(),Nt}let Xm=(e,t,n,r,o,i)=>(Fn(!0),gs(r,o,function gp(){return N.lFrame.currentNamespace}()));function Qs(){return v()}function Zs(e){return!!e&&"function"==typeof e.then}function ty(e){return!!e&&"function"==typeof e.subscribe}function ye(e,t,n,r){const o=v(),i=$(),s=Oe();return function ry(e,t,n,r,o,i,s){const a=Wi(r),u=e.firstCreatePass&&Em(e),c=t[ve],d=wm(t);let f=!0;if(3&r.type||s){const g=Je(r,t),y=s?s(g):g,D=d.length,m=s?b=>s(ie(b[r.index])):r.index;let E=null;if(!s&&a&&(E=function f1(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[mr],l=o[i+2];return a.length>l?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=i,E.__ngLastListenerFn__=i,f=!1;else{i=iy(r,t,c,i,!1);const b=n.listen(y,o,i);d.push(i,b),u&&u.push(o,m,D,D+1)}}else i=iy(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let y=0;y<g;y+=2){const V=t[p[y]][p[y+1]].subscribe(i),le=d.length;d.push(i,V),u&&u.push(o,r.index,le,-(le+1))}}}(i,o,o[F],s,e,t,r),ye}function oy(e,t,n,r){try{return zt(6,t,n),!1!==n(r)}catch(o){return Mm(e,o),!1}finally{zt(7,t,n)}}function iy(e,t,n,r,o){return function i(s){if(s===Function)return r;qo(e.componentOffset>-1?at(e.index,t):t);let l=oy(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=oy(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function tt(e=1){return function W0(e){return(N.lFrame.contextLView=function Q0(e,t){for(;e>0;)t=t[_r],e--;return t}(e,N.lFrame.contextLView))[ve]}(e)}function Ks(e,t){return e<<17|t<<2}function kn(e){return e>>17&32767}function Mc(e){return 2|e}function rr(e){return(131068&e)>>2}function Sc(e,t){return-131069&e|t<<2}function Ic(e){return 1|e}function gy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?kn(i):rr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];C1(e[a],t)&&(l=!0,e[a+1]=r?Ic(c):Mc(c)),a=r?kn(c):rr(c)}l&&(e[n+1]=r?Mc(i):Ic(i))}function C1(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pr(e,t)>=0}function Ys(e,t){return function Ot(e,t,n,r){const o=v(),i=$(),s=function ln(e){const t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function by(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[ze()],s=function Ey(e,t){return t>=e.expandoStartIndex}(e,n);(function Ty(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function N1(e,t,n,r){const o=function Ql(e){const t=N.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=ti(n=Tc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Tc(o,e,t,n,r),null===i){let l=function O1(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==rr(r))return e[kn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Tc(null,e,t,l[1],r),l=ti(l,t.attrs,r),function P1(e,t,n,r){e[kn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function F1(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=ti(r,e[i].hostAttrs,n);return ti(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function v1(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=kn(s),l=rr(s);e[r]=n;let c,u=!1;if(Array.isArray(n)?(c=n[1],(null===c||Pr(n,c)>0)&&(u=!0)):c=n,o)if(0!==l){const f=kn(e[a+1]);e[r+1]=Ks(f,a),0!==f&&(e[f+1]=Sc(e[f+1],r)),e[a+1]=function y1(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ks(a,0),0!==a&&(e[a+1]=Sc(e[a+1],r)),a=r;else e[r+1]=Ks(l,0),0===a?a=r:e[l+1]=Sc(e[l+1],r),l=r;u&&(e[r+1]=Mc(e[r+1])),gy(e,c,r,!0),gy(e,c,r,!1),function D1(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Pr(i,t)>=0&&(n[r+1]=Ic(n[r+1]))}(t,c,e,r,i),s=Ks(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==R&&ke(o,s,t)&&function Sy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function _1(e){return 1==(1&e)}(u)?Iy(l,t,n,o,rr(u),s):void 0;Xs(c)||(Xs(i)||function m1(e){return 2==(2&e)}(u)&&(i=Iy(l,null,n,o,a,s)),function fM(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:xn.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=xn.Important),e.setStyle(n,r,o,i))}}(r,s,Ki(ze(),n),o,i))}(i,i.data[ze()],o,o[F],e,o[s+1]=function L1(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=be(function Rn(e){return e instanceof yg?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),Ys}function Tc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=ti(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function ti(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),lt(e,s,!!n||t[++i]))}return void 0===e?null:e}function Iy(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===R&&(f=d?W:void 0);let h=d?au(f,r):c===r?f:void 0;if(u&&!Xs(h)&&(h=au(l,r)),Xs(h)&&(a=h,s))return a;const p=e[o+1];o=s?kn(p):rr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=au(l,r))}return a}function Xs(e){return void 0!==e}function nt(e,t=""){const n=v(),r=$(),o=e+B,i=r.firstCreatePass?qr(r,o,1,t,null):r.data[o],s=Ay(r,n,i,t,e);n[o]=s,Xi()&&_s(r,n,s,i),Gt(i,!1)}let Ay=(e,t,n,r,o)=>(Fn(!0),function ps(e,t){return e.createText(t)}(t[F],r));function or(e){return Js("",e,""),or}function Js(e,t,n){const r=v(),o=function Qr(e,t,n,r){return ke(e,br(),n)?t+P(n)+r:R}(r,e,t,n);return o!==R&&function pn(e,t,n){const r=Ki(t,e);!function eg(e,t,n){e.setValue(t,n)}(e[F],r,n)}(r,ze(),o),Js}const ir=void 0;var iT=["en",[["a","p"],["AM","PM"],ir],[["AM","PM"],ir,ir],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ir,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ir,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ir,"{1} 'at' {0}",ir],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function oT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let ro={};function qe(e){const t=function sT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ky(t);if(n)return n;const r=t.split("-")[0];if(n=Ky(r),n)return n;if("en"===r)return iT;throw new _(701,!1)}function Ky(e){return e in ro||(ro[e]=oe.ng&&oe.ng.common&&oe.ng.common.locales&&oe.ng.common.locales[e]),ro[e]}var se=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(se||{});const oo="en-US";let Yy=oo;function Oc(e,t,n,r,o){if(e=O(e),Array.isArray(e))for(let i=0;i<e.length;i++)Oc(e[i],t,n,r,o);else{const i=$(),s=v(),a=Oe();let l=er(e)?e:O(e.provide);const u=Fg(e),c=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(er(e)||!e.multi){const h=new Ao(u,o,C),p=Fc(l,t,o?c:c+f,d);-1===p?(ru(rs(a,s),i,l),Pc(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Fc(l,t,c+f,d),p=Fc(l,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){ru(rs(a,s),i,l);const D=function oA(e,t,n,r,o){const i=new Ao(e,n,C);return i.multi=[],i.index=t,i.componentProviders=0,w_(i,o,r&&!n),i}(o?rA:nA,n.length,o,r,u);!o&&y&&(n[p].providerFactory=D),Pc(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else Pc(i,e,h>-1?h:p,w_(n[o?p:h],u,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function Pc(e,t,n,r){const o=er(t),i=function UM(e){return!!e.useClass}(t);if(o||i){const l=(i?O(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function w_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Fc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function nA(e,t,n,r){return xc(this.multi,[])}function rA(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Xn(n,n[w],this.providerFactory.index,r);i=a.slice(0,s),xc(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],xc(o,i);return i}function xc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function fe(e,t=[]){return n=>{n.providersResolver=(r,o)=>function tA(e,t,n){const r=$();if(r.firstCreatePass){const o=It(e);Oc(n,r.data,r.blueprint,o,!0),Oc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class sr{}class iA{}class Rc extends sr{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Pm(this);const o=function st(e,t){const n=e[gh]||null;if(!n&&!0===t)throw new Error(`Type ${be(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function hn(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=qg(t,n,[{provide:sr,useValue:this},{provide:xs,useValue:this.componentFactoryResolver},...r],be(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class kc extends iA{constructor(t){super(),this.moduleType=t}create(t){return new Rc(this.moduleType,t,[])}}function ai(e,t,n,r){return function O_(e,t,n,r,o,i){const s=t+n;return ke(e,s,o)?Qt(e,s+1,i?r.call(i,o):r(o)):li(e,s+1)}(v(),Ue(),e,t,n,r)}function N_(e,t,n,r,o,i){return function F_(e,t,n,r,o,i,s,a){const l=t+n;return function zs(e,t,n,r,o){const i=nr(e,t,n,r);return ke(e,t+2,o)||i}(e,l,o,i,s)?Qt(e,l+3,a?r.call(a,o,i,s):r(o,i,s)):li(e,l+3)}(v(),Ue(),e,t,n,r,o,i)}function li(e,t){const n=e[t];return n===R?void 0:n}function Vc(e,t){const n=$();let r;const o=e+B;n.firstCreatePass?(r=function IA(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Kn(r.type)),a=Ke(C);try{const l=ns(!1),u=i();return ns(l),function o1(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,v(),o,u),u}finally{Ke(a)}}function Bc(e,t,n,r){const o=e+B,i=v(),s=function wr(e,t){return e[t]}(i,o);return function ui(e,t){return e[w].data[t].pure}(i,o)?function P_(e,t,n,r,o,i,s){const a=t+n;return nr(e,a,o,i)?Qt(e,a+2,s?r.call(s,o,i):r(o,i)):li(e,a+2)}(i,Ue(),t,s.transform,n,r,s):s.transform(n,r)}function PA(){return this._results[Symbol.iterator]()}class jc{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Pe)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=jc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=PA)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function _t(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function gb(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function xA(e,t,n,r=!0){const o=t[w];if(function oM(e,t,n,r){const o=Ae+r,i=n.length;r>0&&(n[o-1][St]=t),r<i-Ae?(t[St]=n[o],Np(n,Ae+r,t)):(n.push(t),t[St]=null),t[ce]=n;const s=t[wo];null!==s&&n!==s&&function iM(e,t){const n=e[Dr];t[De]!==t[ce][ce][De]&&(e[Nh]=!0),null===n?e[Dr]=[t]:n.push(t)}(s,t);const a=t[Ht];null!==a&&a.insertView(e),t[L]|=128}(o,t,e,n),r){const i=bu(n,e),s=t[F],a=ys(s,e[$t]);null!==a&&function tM(e,t,n,r,o,i){r[me]=o,r[Fe]=t,Bo(e,r,n,1,o,i)}(o,e[Fe],s,t,a,i)}}let mn=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=LA}return e})();const RA=mn,kA=class extends RA{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=function FA(e,t,n,r){const o=t.tView,a=Vs(e,o,n,4096&e[L]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[wo]=e[t.index];const u=e[Ht];return null!==u&&(a[Ht]=u.createEmbeddedView(o)),pc(o,a,n),a}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new Zo(o)}};function LA(){return oa(Oe(),v())}function oa(e,t){return 4&e.type?new kA(t,e,Ur(e,t)):null}let Yt=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=UA}return e})();function UA(){return $_(Oe(),v())}const zA=Yt,j_=class extends zA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ur(this._hostTNode,this._hostLView)}get injector(){return new Ge(this._hostTNode,this._hostLView)}get parentInjector(){const t=os(this._hostTNode,this._hostLView);if(eu(t)){const n=Oo(t,this._hostLView),r=No(t);return new Ge(n[w].data[r+8],n)}return new Ge(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=H_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ae}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function Fo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}const l=s?t:new Ko(H(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const y=(s?u:this.parentInjector).get(dn,null);y&&(i=y)}H(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView;if(function O0(e){return $e(e[ce])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[ce],c=new j_(u,u[Fe],u[ce]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;return xA(a,o,s,!r),t.attachToViewContainerRef(),Np(Hc(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=H_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=ms(this._lContainer,n);r&&(ss(Hc(this._lContainer),n),Du(r[w],r))}detach(t){const n=this._adjustIndex(t,-1),r=ms(this._lContainer,n);return r&&null!=ss(Hc(this._lContainer),n)?new Zo(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function H_(e){return e[8]}function Hc(e){return e[8]||(e[8]=[])}function $_(e,t){let n;const r=t[e.index];return $e(r)?n=r:(n=Dm(r,t,null,e),t[e.index]=n,Bs(t,n)),U_(n,t,e,r),new j_(n,e,t)}let U_=function z_(e,t,n,r){if(e[$t])return;let o;o=8&n.type?ie(r):function GA(e,t){const n=e[F],r=n.createComment(""),o=Je(t,e);return Jn(n,ys(n,o),r,function uM(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[$t]=o};class $c{constructor(t){this.queryList=t,this.matches=null}clone(){return new $c(this.queryList)}setDirty(){this.queryList.setDirty()}}class Uc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new Uc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Z_(t,n).matches&&this.queries[n].setDirty()}}class G_{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class zc{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new zc(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Gc{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Gc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(t,n,QA(n,i)),this.matchTNodeWithReadOption(t,n,is(n,t,i,!1,!1))}else r===mn?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,is(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===Tt||o===Yt||o===mn&&4&n.type)this.addMatch(n.index,-2);else{const i=is(n,t,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function QA(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function KA(e,t,n,r){return-1===n?function ZA(e,t){return 11&e.type?Ur(e,t):4&e.type?oa(e,t):null}(t,e):-2===n?function YA(e,t,n){return n===Tt?Ur(t,e):n===mn?oa(t,e):n===Yt?$_(t,e):void 0}(e,t,r):Xn(e,e[w],n,t)}function q_(e,t,n,r){const o=t[Ht].queries[r];if(null===o.matches){const i=e.data,s=n.matches,a=[];for(let l=0;l<s.length;l+=2){const u=s[l];a.push(u<0?null:KA(t,i[u],s[l+1],n.metadata.read))}o.matches=a}return o.matches}function qc(e,t,n,r){const o=e.queries.getByIndex(n),i=o.matches;if(null!==i){const s=q_(e,t,o,n);for(let a=0;a<i.length;a+=2){const l=i[a];if(l>0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ae;d<c.length;d++){const f=c[d];f[wo]===f[ce]&&qc(f[w],f,u,r)}if(null!==c[Dr]){const d=c[Dr];for(let f=0;f<d.length;f++){const h=d[f];qc(h[w],h,u,r)}}}}}return r}function sa(e){const t=v(),n=$(),r=up();Zl(r+1);const o=Z_(n,r);if(e.dirty&&function A0(e){return 4==(4&e[L])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=o.crossesNgTemplate?qc(n,t,r,[]):q_(n,t,o,r);e.reset(i,cS),e.notifyOnChanges()}return!0}return!1}function aa(e,t,n){const r=$();r.firstCreatePass&&(function Q_(e,t,n){null===e.queries&&(e.queries=new zc),e.queries.track(new Gc(t,n))}(r,new G_(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),function W_(e,t,n){const r=new jc(4==(4&n));(function zS(e,t,n,r){const o=wm(t);o.push(n),e.firstCreatePass&&Em(e).push(r,o.length-1)})(e,t,r,r.destroy),null===t[Ht]&&(t[Ht]=new Uc),t[Ht].queries.push(new $c(r))}(r,v(),t)}function la(){return function JA(e,t){return e[Ht].queries[t].queryList}(v(),up())}function Z_(e,t){return e.queries.getByIndex(t)}const wN=new I("Application Initializer");let Yc=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=te(wN,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Zs(i))n.push(i);else if(ty(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const yn=new I("LocaleId",{providedIn:"root",factory:()=>te(yn,j.Optional|j.SkipSelf)||function bN(){return typeof $localize<"u"&&$localize.locale||oo}()});let IN=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new bE(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const mv=new I(""),da=new I("");let nd,ed=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,nd||(function QN(e){nd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(k(de),k(td),k(da))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})(),td=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return nd?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ln=null;const yv=new I("AllowMultipleToken"),rd=new I("PlatformDestroyListeners"),_v=new I("appBootstrapListener");function Cv(e,t,n=[]){const r=`Platform: ${t}`,o=new I(r);return(i=[])=>{let s=od();if(!s||s.injector.get(yv,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function YN(e){if(Ln&&!Ln.get(yv,!1))throw new _(400,!1);(function vv(){!function m0(e){$h=e}(()=>{throw new _(600,!1)})})(),Ln=e;const t=e.get(Ev);(function Dv(e){e.get(xg,null)?.forEach(n=>n())})(e)}(function wv(e=[],t){return At.create({name:t,providers:[{provide:ku,useValue:"platform"},{provide:rd,useValue:new Set([()=>Ln=null])},...e]})}(a,r))}return function JN(e){const t=od();if(!t)throw new _(401,!1);return t}()}}function od(){return Ln?.get(Ev)??null}let Ev=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function eO(e="zone.js",t){return"noop"===e?new MS:"zone.js"===e?new de(t):e}(r?.ngZone,function bv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function aA(e,t,n){return new Rc(e,t,n)}(n.moduleType,this.injector,function Av(e){return[{provide:de,useFactory:e},{provide:Es,multi:!0,useFactory:()=>{const t=te(nO,{optional:!0});return()=>t.initialize()}},{provide:Tv,useFactory:tO},{provide:Yg,useFactory:Xg}]}(()=>o)),s=i.injector.get(fn,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{fa(this._modules,i),a.unsubscribe()})}),function Mv(e,t,n){try{const r=n();return Zs(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Yc);return a.runInitializers(),a.donePromise.then(()=>(function Xy(e){gt(e,"Expected localeId to be defined"),"string"==typeof e&&(Yy=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(yn,oo)||oo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=Sv({},r);return function ZN(e,t,n){const r=new kc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(ao);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new _(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new _(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(rd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(k(At))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Sv(e,t){return Array.isArray(t)?t.reduce(Sv,e):{...e,...t}}let ao=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=te(Tv),this.zoneIsStable=te(Yg),this.componentTypes=[],this.components=[],this.isStable=te(IN).hasPendingTasks.pipe(function SE(e,t){return Wn((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(En(r,l=>{o?.unsubscribe();let u=0;const c=i++;Vt(e(l,c)).subscribe(o=En(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}(n=>n?function ME(...e){return _l(e,nh(e))}(!1):this.zoneIsStable),function IE(e,t=dl){return e=e??TE,Wn((n,r)=>{let o,i=!0;n.subscribe(En(r,s=>{const a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}(),sh()),this._injector=te(dn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof jg;if(!this._injector.get(Yc).done)throw!o&&function vo(e){const t=H(e)||Te(e)||He(e);return null!==t&&t.standalone}(n),new _(405,!1);let s;s=o?n:this._injector.get(xs).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function KN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(sr),u=s.create(At.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(mv,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),fa(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new _(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;fa(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(_v,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fa(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Tv=new I("",{providedIn:"root",factory:()=>te(fn).handleError.bind(void 0)});function tO(){const e=te(de),t=te(fn);return n=>e.runOutsideAngular(()=>t.handleError(n))}let nO=(()=>{class e{constructor(){this.zone=te(de),this.applicationRef=te(ao)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Ov=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=oO}return e})();function oO(e){return function iO(e,t,n){if(Zn(e)&&!n){const r=at(e.index,t);return new Zo(r,r)}return 47&e.type?new Zo(t[De],t):null}(Oe(),v(),16==(16&e))}class xv{constructor(){}supports(t){return Us(t)}create(t){return new dO(t)}}const cO=(e,t)=>t;class dO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||cO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<kv(r,o,i)?n:r,a=kv(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const u=a-o,c=l-o;if(u!=c){for(let f=0;f<u;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<u&&(i[f]=h+1)}i[s.previousIndex]=c-u}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Us(t))throw new _(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function LI(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new fO(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Rv),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Rv),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class fO{constructor(t,n){this.item=t,this.trackById=n,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 hO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Rv{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new hO,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kv(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class Lv{constructor(){}supports(t){return t instanceof Map||gc(t)}create(){return new pO}}class pO{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||gc(t)))throw new _(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new gO(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class gO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Vv(){return new ga([new xv])}let ga=(()=>{class e{static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:Vv});constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Vv()),deps:[[e,new cu,new uu]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new _(901,!1)}}return e})();function Bv(){return new fi([new Lv])}let fi=(()=>{class e{static#e=this.\u0275prov=z({token:e,providedIn:"root",factory:Bv});constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Bv()),deps:[[e,new cu,new uu]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new _(901,!1)}}return e})();const _O=Cv(null,"core",[]);let vO=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(k(ao))};static#t=this.\u0275mod=on({type:e});static#n=this.\u0275inj=Bt({})}return e})();let dd=null;function hi(){return dd}class PO{}const _n=new I("DocumentToken");var Qe=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Qe||{}),ne=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(ne||{}),ct=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(ct||{}),Ce=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(Ce||{});function _a(e,t){return wt(qe(e)[se.DateFormat],t)}function va(e,t){return wt(qe(e)[se.TimeFormat],t)}function Da(e,t){return wt(qe(e)[se.DateTimeFormat],t)}function Ct(e,t){const n=qe(e),r=n[se.NumberSymbols][t];if(typeof r>"u"){if(t===Ce.CurrencyDecimal)return n[se.NumberSymbols][Ce.Decimal];if(t===Ce.CurrencyGroup)return n[se.NumberSymbols][Ce.Group]}return r}function Zv(e){if(!e[se.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[se.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function wt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function hd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const QO=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pi={},ZO=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var vn=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(vn||{}),Z=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(Z||{}),K=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(K||{});function KO(e,t,n,r){let o=function iP(e){if(Xv(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return Ca(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(QO))return function sP(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!Xv(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Dn(n,t)||t;let a,s=[];for(;t;){if(a=ZO.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=Yv(r,l),o=function oP(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function rP(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(Yv(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function nP(e){if(gd[e])return gd[e];let t;switch(e){case"G":case"GG":case"GGG":t=ae(K.Eras,ne.Abbreviated);break;case"GGGG":t=ae(K.Eras,ne.Wide);break;case"GGGGG":t=ae(K.Eras,ne.Narrow);break;case"y":t=we(Z.FullYear,1,0,!1,!0);break;case"yy":t=we(Z.FullYear,2,0,!0,!0);break;case"yyy":t=we(Z.FullYear,3,0,!1,!0);break;case"yyyy":t=we(Z.FullYear,4,0,!1,!0);break;case"Y":t=Ma(1);break;case"YY":t=Ma(2,!0);break;case"YYY":t=Ma(3);break;case"YYYY":t=Ma(4);break;case"M":case"L":t=we(Z.Month,1,1);break;case"MM":case"LL":t=we(Z.Month,2,1);break;case"MMM":t=ae(K.Months,ne.Abbreviated);break;case"MMMM":t=ae(K.Months,ne.Wide);break;case"MMMMM":t=ae(K.Months,ne.Narrow);break;case"LLL":t=ae(K.Months,ne.Abbreviated,Qe.Standalone);break;case"LLLL":t=ae(K.Months,ne.Wide,Qe.Standalone);break;case"LLLLL":t=ae(K.Months,ne.Narrow,Qe.Standalone);break;case"w":t=pd(1);break;case"ww":t=pd(2);break;case"W":t=pd(1,!0);break;case"d":t=we(Z.Date,1);break;case"dd":t=we(Z.Date,2);break;case"c":case"cc":t=we(Z.Day,1);break;case"ccc":t=ae(K.Days,ne.Abbreviated,Qe.Standalone);break;case"cccc":t=ae(K.Days,ne.Wide,Qe.Standalone);break;case"ccccc":t=ae(K.Days,ne.Narrow,Qe.Standalone);break;case"cccccc":t=ae(K.Days,ne.Short,Qe.Standalone);break;case"E":case"EE":case"EEE":t=ae(K.Days,ne.Abbreviated);break;case"EEEE":t=ae(K.Days,ne.Wide);break;case"EEEEE":t=ae(K.Days,ne.Narrow);break;case"EEEEEE":t=ae(K.Days,ne.Short);break;case"a":case"aa":case"aaa":t=ae(K.DayPeriods,ne.Abbreviated);break;case"aaaa":t=ae(K.DayPeriods,ne.Wide);break;case"aaaaa":t=ae(K.DayPeriods,ne.Narrow);break;case"b":case"bb":case"bbb":t=ae(K.DayPeriods,ne.Abbreviated,Qe.Standalone,!0);break;case"bbbb":t=ae(K.DayPeriods,ne.Wide,Qe.Standalone,!0);break;case"bbbbb":t=ae(K.DayPeriods,ne.Narrow,Qe.Standalone,!0);break;case"B":case"BB":case"BBB":t=ae(K.DayPeriods,ne.Abbreviated,Qe.Format,!0);break;case"BBBB":t=ae(K.DayPeriods,ne.Wide,Qe.Format,!0);break;case"BBBBB":t=ae(K.DayPeriods,ne.Narrow,Qe.Format,!0);break;case"h":t=we(Z.Hours,1,-12);break;case"hh":t=we(Z.Hours,2,-12);break;case"H":t=we(Z.Hours,1);break;case"HH":t=we(Z.Hours,2);break;case"m":t=we(Z.Minutes,1);break;case"mm":t=we(Z.Minutes,2);break;case"s":t=we(Z.Seconds,1);break;case"ss":t=we(Z.Seconds,2);break;case"S":t=we(Z.FractionalSeconds,1);break;case"SS":t=we(Z.FractionalSeconds,2);break;case"SSS":t=we(Z.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ea(vn.Short);break;case"ZZZZZ":t=Ea(vn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ea(vn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ea(vn.Long);break;default:return null}return gd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Ca(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Dn(e,t){const n=function kO(e){return qe(e)[se.LocaleId]}(e);if(pi[n]=pi[n]||{},pi[n][t])return pi[n][t];let r="";switch(t){case"shortDate":r=_a(e,ct.Short);break;case"mediumDate":r=_a(e,ct.Medium);break;case"longDate":r=_a(e,ct.Long);break;case"fullDate":r=_a(e,ct.Full);break;case"shortTime":r=va(e,ct.Short);break;case"mediumTime":r=va(e,ct.Medium);break;case"longTime":r=va(e,ct.Long);break;case"fullTime":r=va(e,ct.Full);break;case"short":const o=Dn(e,"shortTime"),i=Dn(e,"shortDate");r=wa(Da(e,ct.Short),[o,i]);break;case"medium":const s=Dn(e,"mediumTime"),a=Dn(e,"mediumDate");r=wa(Da(e,ct.Medium),[s,a]);break;case"long":const l=Dn(e,"longTime"),u=Dn(e,"longDate");r=wa(Da(e,ct.Long),[l,u]);break;case"full":const c=Dn(e,"fullTime"),d=Dn(e,"fullDate");r=wa(Da(e,ct.Full),[c,d])}return r&&(pi[n][t]=r),r}function wa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Ft(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function we(e,t,n=0,r=!1,o=!1){return function(i,s){let a=function XO(e,t){switch(e){case Z.FullYear:return t.getFullYear();case Z.Month:return t.getMonth();case Z.Date:return t.getDate();case Z.Hours:return t.getHours();case Z.Minutes:return t.getMinutes();case Z.Seconds:return t.getSeconds();case Z.FractionalSeconds:return t.getMilliseconds();case Z.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((n>0||a>-n)&&(a+=n),e===Z.Hours)0===a&&-12===n&&(a=12);else if(e===Z.FractionalSeconds)return function YO(e,t){return Ft(e,3).substring(0,t)}(a,t);const l=Ct(s,Ce.MinusSign);return Ft(a,t,l,r,o)}}function ae(e,t,n=Qe.Format,r=!1){return function(o,i){return function JO(e,t,n,r,o,i){switch(n){case K.Months:return function BO(e,t,n){const r=qe(e),i=wt([r[se.MonthsFormat],r[se.MonthsStandalone]],t);return wt(i,n)}(t,o,r)[e.getMonth()];case K.Days:return function VO(e,t,n){const r=qe(e),i=wt([r[se.DaysFormat],r[se.DaysStandalone]],t);return wt(i,n)}(t,o,r)[e.getDay()];case K.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function UO(e){const t=qe(e);return Zv(t),(t[se.ExtraData][2]||[]).map(r=>"string"==typeof r?hd(r):[hd(r[0]),hd(r[1])])}(t),c=function zO(e,t,n){const r=qe(e);Zv(r);const i=wt([r[se.ExtraData][0],r[se.ExtraData][1]],t)||[];return wt(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,g=s>=h.hours&&a>=h.minutes,y=s<p.hours||s===p.hours&&a<p.minutes;if(h.hours<p.hours){if(g&&y)return!0}else if(g||y)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return c[d]}return function LO(e,t,n){const r=qe(e),i=wt([r[se.DayPeriodsFormat],r[se.DayPeriodsStandalone]],t);return wt(i,n)}(t,o,r)[s<12?0:1];case K.Eras:return function jO(e,t){return wt(qe(e)[se.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(o,i,e,t,n,r)}}function Ea(e){return function(t,n,r){const o=-1*r,i=Ct(n,Ce.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case vn.Short:return(o>=0?"+":"")+Ft(s,2,i)+Ft(Math.abs(o%60),2,i);case vn.ShortGMT:return"GMT"+(o>=0?"+":"")+Ft(s,1,i);case vn.Long:return"GMT"+(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);case vn.Extended:return 0===r?"Z":(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const eP=0,ba=4;function Kv(e){return Ca(e.getFullYear(),e.getMonth(),e.getDate()+(ba-e.getDay()))}function pd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=Kv(n),s=function tP(e){const t=Ca(e,eP,1).getDay();return Ca(e,0,1+(t<=ba?ba:ba+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ft(o,e,Ct(r,Ce.MinusSign))}}function Ma(e,t=!1){return function(n,r){return Ft(Kv(n).getFullYear(),e,Ct(r,Ce.MinusSign),t)}}const gd={};function Yv(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Xv(e){return e instanceof Date&&!isNaN(e.valueOf())}const Cd=/\s+/,nD=[];let Ia=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=nD,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(Cd):nD}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(Cd):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(Cd).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(r){return new(r||e)(C(ga),C(fi),C(Tt),C(tr))};static#t=this.\u0275dir=x({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class DP{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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 wd=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new DP(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),oD(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{oD(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(C(Yt),C(mn),C(ga))};static#t=this.\u0275dir=x({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function oD(e,t){e.context.$implicit=t.item}let Ed=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new CP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){iD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){iD("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(C(Yt),C(mn))};static#t=this.\u0275dir=x({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class CP{constructor(){this.$implicit=null,this.ngIf=null}}function iD(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${be(t)}'.`)}let aD=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){const n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){const[o,i]=n.split("."),s=-1===o.indexOf("-")?void 0:xn.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static#e=this.\u0275fac=function(r){return new(r||e)(C(Tt),C(fi),C(tr))};static#t=this.\u0275dir=x({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return e})();const RP=new I("DATE_PIPE_DEFAULT_TIMEZONE"),kP=new I("DATE_PIPE_DEFAULT_OPTIONS");let lD=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return KO(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function xt(e,t){return new _(2100,!1)}()}}static#e=this.\u0275fac=function(r){return new(r||e)(C(yn,16),C(RP,24),C(kP,24))};static#t=this.\u0275pipe=Ye({name:"date",type:e,pure:!0,standalone:!0})}return e})(),qP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=on({type:e});static#n=this.\u0275inj=Bt({})}return e})();function dD(e){return"server"===e}class DF extends PO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Nd extends DF{static makeCurrent(){!function OO(e){dd||(dd=e)}(new Nd)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function CF(){return yi=yi||document.querySelector("base"),yi?yi.getAttribute("href"):null}();return null==n?null:function wF(e){Na=Na||document.createElement("a"),Na.setAttribute("href",e);const t=Na.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){yi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function _P(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Na,yi=null,bF=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const Od=new I("EventManagerPlugins");let mD=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(n,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(Od),k(de))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();class yD{constructor(t){this._doc=t}}const Pd="ng-app-id";let _D=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=dD(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Pd}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Pd),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Pd,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(k(_n),k(Ts),k(kg,8),k(jr))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const Fd={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/"},xd=/%COMP%/g,TF=new I("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function DD(e,t){return t.map(n=>n.replace(xd,e))}let Rd=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=dD(a),this.defaultRenderer=new kd(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===mt.ShadowDom&&(r={...r,encapsulation:mt.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof wD?o.applyToHost(n):o instanceof Ld&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case mt.Emulated:i=new wD(l,u,r,this.appId,c,s,a,d);break;case mt.ShadowDom:return new PF(l,u,n,r,s,a,this.nonce,d);default:i=new Ld(l,u,r,c,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(k(mD),k(_D),k(Ts),k(TF),k(_n),k(jr),k(de),k(kg))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();class kd{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Fd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(CD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(CD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new _(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Fd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Fd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(xn.DashCase|xn.Important)?t.style.setProperty(n,r,o&xn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&xn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=hi().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&n.preventDefault()}}}function CD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class PF extends kd{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=DD(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ld extends kd{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=l?DD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class wD extends Ld{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function AF(e){return"_ngcontent-%COMP%".replace(xd,e)}(u),this.hostAttr=function NF(e){return"_nghost-%COMP%".replace(xd,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let FF=(()=>{class e extends yD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(k(_n))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const ED=["alt","control","meta","shift"],xF={"\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"},RF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let kF=(()=>{class e extends yD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hi().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),ED.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=xF[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),ED.forEach(s=>{s!==o&&(0,RF[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static#e=this.\u0275fac=function(r){return new(r||e)(k(_n))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();const jF=Cv(_O,"browser",[{provide:jr,useValue:"browser"},{provide:xg,useValue:function LF(){Nd.makeCurrent()},multi:!0},{provide:_n,useFactory:function BF(){return function yM(e){Iu=e}(document),document},deps:[]}]),HF=new I(""),SD=[{provide:da,useClass:class EF{addToWindow(t){oe.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new _(5103,!1);return i},oe.getAllAngularTestabilities=()=>t.getAllTestabilities(),oe.getAllAngularRootElements=()=>t.getAllRootElements(),oe.frameworkStabilizers||(oe.frameworkStabilizers=[]),oe.frameworkStabilizers.push(r=>{const o=oe.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?hi().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:mv,useClass:ed,deps:[de,td,da]},{provide:ed,useClass:ed,deps:[de,td,da]}],ID=[{provide:ku,useValue:"root"},{provide:fn,useFactory:function VF(){return new fn},deps:[]},{provide:Od,useClass:FF,multi:!0,deps:[_n,de,jr]},{provide:Od,useClass:kF,multi:!0,deps:[_n]},Rd,_D,mD,{provide:Go,useExisting:Rd},{provide:class YP{},useClass:bF,deps:[]},[]];let TD=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Ts,useValue:n.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(k(HF,12))};static#t=this.\u0275mod=on({type:e});static#n=this.\u0275inj=Bt({providers:[...ID,...SD],imports:[qP,vO]})}return e})();typeof window<"u"&&window;const{isArray:QF}=Array,{getPrototypeOf:ZF,prototype:KF,keys:YF}=Object;const{isArray:ex}=Array;function rx(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ox(...e){const t=function gE(e){return he(yl(e))?e.pop():void 0}(e),{args:n,keys:r}=function XF(e){if(1===e.length){const t=e[0];if(QF(t))return{args:t,keys:null};if(function JF(e){return e&&"object"==typeof e&&ZF(e)===KF}(t)){const n=YF(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e),o=new je(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c<s;c++){let d=!1;Vt(n[c]).subscribe(En(i,f=>{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?rx(r,a):a),i.complete())}))}});return t?o.pipe(function nx(e){return fl(t=>function tx(e,t){return ex(t)?e(...t):e(t)}(e,t))}(t)):o}let PD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static#e=this.\u0275fac=function(r){return new(r||e)(C(tr),C(Tt))};static#t=this.\u0275dir=x({type:e})}return e})(),lr=(()=>{class e extends PD{static#e=this.\u0275fac=function(){let n;return function(o){return(n||(n=xe(e)))(o||e)}}();static#t=this.\u0275dir=x({type:e,features:[ee]})}return e})();const Xt=new I("NgValueAccessor"),sx={provide:Xt,useExisting:re(()=>Oa),multi:!0},lx=new I("CompositionEventMode");let Oa=(()=>{class e extends PD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ax(){const e=hi()?hi().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static#e=this.\u0275fac=function(r){return new(r||e)(C(tr),C(Tt),C(lx,8))};static#t=this.\u0275dir=x({type:e,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(r,o){1&r&&ye("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[fe([sx]),ee]})}return e})();const Le=new I("NgValidators"),jn=new I("NgAsyncValidators");function Pa(e){return null}function UD(e){return null!=e}function zD(e){return Zs(e)?_l(e):e}function GD(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function qD(e,t){return t.map(n=>n(e))}function WD(e){return e.map(t=>function cx(e){return!e.validate}(t)?t:n=>t.validate(n))}function Bd(e){return null!=e?function QD(e){if(!e)return null;const t=e.filter(UD);return 0==t.length?null:function(n){return GD(qD(n,t))}}(WD(e)):null}function jd(e){return null!=e?function ZD(e){if(!e)return null;const t=e.filter(UD);return 0==t.length?null:function(n){return ox(qD(n,t).map(zD)).pipe(fl(GD))}}(WD(e)):null}function KD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Hd(e){return e?Array.isArray(e)?e:[e]:[]}function Fa(e,t){return Array.isArray(e)?e.includes(t):e===t}function JD(e,t){const n=Hd(t);return Hd(e).forEach(o=>{Fa(n,o)||n.push(o)}),n}function eC(e,t){return Hd(t).filter(n=>!Fa(e,n))}class tC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Bd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=jd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Ze extends tC{get formDirective(){return null}get path(){return null}}class Hn extends tC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class nC{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let rC=(()=>{class e extends nC{constructor(n){super(n)}static#e=this.\u0275fac=function(r){return new(r||e)(C(Hn,2))};static#t=this.\u0275dir=x({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Ys("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ee]})}return e})();const _i="VALID",Ra="INVALID",uo="PENDING",vi="DISABLED";function ka(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class aC{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===_i}get invalid(){return this.status===Ra}get pending(){return this.status==uo}get disabled(){return this.status===vi}get enabled(){return this.status!==vi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(JD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(JD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(eC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(eC(t,this._rawAsyncValidators))}hasValidator(t){return Fa(this._rawValidators,t)}hasAsyncValidator(t){return Fa(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=uo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=vi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=_i,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_i||this.status===uo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vi:_i}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=uo,this._hasOwnPendingAsyncValidator=!0;const n=zD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Pe,this.statusChanges=new Pe}_calculateStatus(){return this._allControlsDisabled()?vi:this.errors?Ra:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(uo)?uo:this._anyControlsHaveStatus(Ra)?Ra:_i}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ka(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function gx(e){return Array.isArray(e)?Bd(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function mx(e){return Array.isArray(e)?jd(e):e||null}(this._rawAsyncValidators)}}const co=new I("CallSetDisabledState",{providedIn:"root",factory:()=>La}),La="always";function Di(e,t,n=La){(function Wd(e,t){const n=function YD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(KD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function XD(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(KD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();ja(t._rawValidators,o),ja(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function vx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&lC(e,t)})}(e,t),function Cx(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function Dx(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&lC(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function _x(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function ja(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function lC(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function dC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function fC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const hC=class extends aC{constructor(t=null,n,r){super(function zd(e){return(ka(e)?e.validators:e)||null}(n),function Gd(e,t){return(ka(t)?t.asyncValidators:e)||null}(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ka(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=fC(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){dC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){dC(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){fC(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},Ax={provide:Hn,useExisting:re(()=>Xd)},mC=(()=>Promise.resolve())();let Xd=(()=>{class e extends Hn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new hC,this._registered=!1,this.name="",this.update=new Pe,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Kd(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Oa?n=i:function bx(e){return Object.getPrototypeOf(e.constructor)===lr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Zd(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Di(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){mC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&function cd(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);mC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Va(e,t){return[...t.path,e]}(n,this._parent):[n]}static#e=this.\u0275fac=function(r){return new(r||e)(C(Ze,9),C(Le,10),C(jn,10),C(Xt,10),C(Ov,8),C(co,8))};static#t=this.\u0275dir=x({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[fe([Ax]),ee,Ut]})}return e})(),_C=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=on({type:e});static#n=this.\u0275inj=Bt({})}return e})();let ur=(()=>{class e{constructor(){this._validator=Pa}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Pa,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=x({type:e,features:[Ut]})}return e})();const Xx={provide:Le,useExisting:re(()=>sf),multi:!0};let sf=(()=>{class e extends ur{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>function IC(e){return"number"==typeof e?e:parseInt(e,10)}(n),this.createValidator=n=>function HD(e){return t=>function xD(e){return null!=e&&"number"==typeof e.length}(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(n)}static#e=this.\u0275fac=function(){let n;return function(o){return(n||(n=xe(e)))(o||e)}}();static#t=this.\u0275dir=x({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){2&r&&gn("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[fe([Xx]),ee]})}return e})(),e2=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=on({type:e});static#n=this.\u0275inj=Bt({imports:[_C]})}return e})(),n2=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:co,useValue:n.callSetDisabledState??La}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=on({type:e});static#n=this.\u0275inj=Bt({imports:[e2]})}return e})();class RC{}class r2{}const Cn="*";function kC(e,t){return{type:7,name:e,definitions:t,options:{}}}function $a(e,t=null){return{type:4,styles:t,timings:e}}function LC(e,t=null){return{type:2,steps:e,options:t}}function Jt(e){return{type:6,styles:e,offset:null}}function Ua(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}class wi{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class VC{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,o=0;const i=this.players.length;0==i?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const n=t*this.totalTime;this.players.forEach(r=>{const o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){const t=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}var Ee=function(e){return e.Easy="\u043b\u0435\u0433\u043a\u043e",e.Medium="\u0441\u0440\u0435\u0434\u043d\u0435",e.Hard="\u0441\u043b\u043e\u0436\u043d\u043e",e}(Ee||{}),Ei=function(e){return e.Low="\u043d\u0435 \u0441\u0440\u043e\u0447\u043d\u043e",e.Medium="\u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f",e.High="\u0441\u0440\u043e\u0447\u043d\u043e",e}(Ei||{});const o2=[{id:1,name:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0430\u043c\u0435\u0442\u043a\u0443 \u0434\u043b\u044f \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438",description:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u0443\u044e \u0437\u0430\u043c\u0435\u0442\u043a\u0443 \u0434\u043b\u044f \u0437\u0430\u0432\u0442\u0440\u0430\u0448\u043d\u0435\u0439 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435.",completed:!1,difficulty:Ee.Medium,dueDate:new Date("2023-10-15"),priority:Ei.Medium},{id:2,name:"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0443",description:"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u0443 \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0442\u0435\u043c\u044b 3-5.",completed:!1,difficulty:Ee.Hard,dueDate:new Date("2023-09-30"),priority:Ei.High},{id:3,name:"\u0421\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u043f\u043e\u0440\u0442\u0437\u0430\u043b",description:"\u041f\u043e\u0439\u0442\u0438 \u0432 \u0441\u043f\u043e\u0440\u0442\u0437\u0430\u043b \u043d\u0430 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 17:00 \u0434\u043e 18:30.",completed:!1,difficulty:Ee.Easy},{id:4,name:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u0445",description:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043c\u0435\u0441\u044f\u0447\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u0445 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443.",completed:!1,difficulty:Ee.Medium,dueDate:new Date("2023-10-10"),priority:Ei.Medium},{id:5,name:"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0443\u0436\u0438\u043d",description:"\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0443\u0436\u0438\u043d \u0434\u043b\u044f \u0441\u0435\u043c\u044c\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0440\u0435\u0446\u0435\u043f\u0442\u0430 \u0438\u0437 \u043a\u0443\u043b\u0438\u043d\u0430\u0440\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438.",completed:!1,difficulty:Ee.Easy},{id:6,name:"\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0433\u043b\u0430\u0432\u0443 3 \u043a\u043d\u0438\u0433\u0438",description:"\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u044e \u0433\u043b\u0430\u0432\u0443 \u043d\u043e\u0432\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0434\u043d\u044f.",completed:!1,difficulty:Ee.Medium,dueDate:new Date("2023-10-05"),priority:Ei.Medium},{id:7,name:"\u0421\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u043e\u043c",description:"\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443 \u0438 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f \u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445.",completed:!1},{id:8,name:"\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u0431\u043e\u0440\u043a\u0443 \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435",description:"\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u0431\u043e\u0440\u043a\u0443 \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435 \u0438 \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.",completed:!1,difficulty:Ee.Easy},{id:9,name:"\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u043f\u0443\u0441\u043a",description:"\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u0442\u044b \u0438 \u043c\u0435\u0441\u0442\u043e \u043e\u0442\u043f\u0443\u0441\u043a\u0430 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043b\u0435\u0442\u043e.",completed:!1,dueDate:new Date("2023-10-20")},{id:10,name:"\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439",description:"\u0421\u044a\u0435\u0437\u0434\u0438\u0442\u044c \u0432 \u0433\u043e\u0441\u0442\u0438 \u043a \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c \u0432 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435.",completed:!1,difficulty:Ee.Medium},{id:11,name:"\u0421\u0445\u043e\u0434\u0438\u0442\u044c \u0432 Fix Price",completed:!1,difficulty:Ee.Easy}];let BC=(()=>{class e{addTodo(n){this.todos.unshift(n)}clearTodos(){return this.todos=[],this.todos}removeTodo(n){const r=this.todos.indexOf(n,0);this.todos.splice(r,1)}constructor(){this.todos=o2}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function i2(e,t){if(1&e){const n=Qs();G(0,"div",3),ye("click",function(){const i=On(n).index;return Pn(tt().setHardness(i))}),U()}if(2&e){const n=t.index;Q("ngClass",tt().getIndicatorClasses(n))}}const s2=function(e){return{"edit-mode":e}};let jC=(()=>{class e{constructor(){this.editMode=!1,this.circles=["","",""],this.onChanged=new Pe}ngAfterViewInit(){this.buferDifficulty=this.difficulty}ngOnChanges(){this.buferDifficulty=this.difficulty}getIndicatorClasses(n){switch(this.editMode?this.buferDifficulty:this.difficulty){case Ee.Easy:return 0==n?"easy":"";case Ee.Medium:return 1==n||0==n?"medium":"";case Ee.Hard:return"hard";default:return""}}setHardness(n){if(this.editMode)switch(n){case 0:this.buferDifficulty=Ee.Easy,this.change(Ee.Easy);break;case 1:this.buferDifficulty=Ee.Medium,this.change(Ee.Medium);break;case 2:this.buferDifficulty=Ee.Hard,this.change(Ee.Hard)}}change(n){this.onChanged.emit(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=zi({type:e,selectors:[["app-hardness-indicator"]],inputs:{difficulty:"difficulty",editMode:"editMode"},outputs:{onChanged:"onChanged"},features:[Ut],decls:5,vars:5,consts:[[1,"indicator",3,"ngClass"],[1,"circles"],["class","circle",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"circle",3,"ngClass","click"]],template:function(r,o){1&r&&(G(0,"div",0)(1,"p"),nt(2),U(),G(3,"div",1),Dt(4,i2,1,1,"div",2),U()()),2&r&&(Q("ngClass",ai(3,s2,o.editMode)),J(2),Js("",o.editMode?"\u0412\u044b\u0431\u0435\u0440\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c: ":"\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c: "," "),J(2),Q("ngForOf",o.circles))},dependencies:[Ia,wd],styles:[".indicator[_ngcontent-%COMP%]{display:flex;column-gap:.3em;margin-top:.5em;align-items:center}.circles[_ngcontent-%COMP%]{display:flex;column-gap:.3em}p[_ngcontent-%COMP%]{margin-right:.5em}.circle[_ngcontent-%COMP%]{width:.5em;height:.5em;border-radius:50%;background-color:#ffedd7}.edit-mode[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{cursor:pointer}.edit-mode[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6054ad}.easy[_ngcontent-%COMP%]{background-color:#81da4d}.medium[_ngcontent-%COMP%]{background-color:#eef360}.hard[_ngcontent-%COMP%]{background-color:#e85f81}"]})}return e})();const a2=["date"],l2=["name"],u2=["description"];function c2(e,t){if(1&e){const n=Qs();G(0,"app-hardness-indicator",18),ye("onChanged",function(o){return On(n),Pn(tt().onChanged(o))}),U()}if(2&e){const n=tt();Q("editMode",n.editMode)("difficulty",n.todo.difficulty)}}function d2(e,t){if(1&e&&(un(),Yi(),G(0,"p"),nt(1),Vc(2,"date"),U()),2&e){const n=tt(2);J(1),or(Bc(2,1,n.todo.dueDate,"dd.MM.yyyy"))}}function f2(e,t){1&e&&(un(),Yi(),Nt(0,"input",26,27),Vc(2,"date")),2&e&&Q("value",Bc(2,1,tt(2).todo.dueDate,"yyyy-MM-dd"))}function h2(e,t){if(1&e&&(G(0,"div",19),un(),G(1,"svg",20)(2,"g",21),Nt(3,"path",22)(4,"path",23),U()(),Dt(5,d2,3,4,"p",24),Dt(6,f2,3,4,"input",25),U()),2&e){const n=tt();J(5),Q("ngIf",!n.editMode),J(1),Q("ngIf",n.editMode)}}function p2(e,t){1&e&&(un(),G(0,"svg",20)(1,"g",21),Nt(2,"path",28),U()())}function g2(e,t){1&e&&(un(),G(0,"svg",29)(1,"g",30),Nt(2,"path",31),U()())}function m2(e,t){1&e&&(un(),G(0,"svg",29)(1,"g",21),Nt(2,"path",32),U()())}function y2(e,t){1&e&&(un(),G(0,"svg",20)(1,"g",30),Nt(2,"path",33),U()())}const _2=function(e,t,n){return{checked:e,unchecked:t,"edit-mode":n}},HC=function(e){return{"pointer-events":e}};let v2=(()=>{class e{onChanged(n){this.selectedDifficulty=n}constructor(n){this.tService=n,this.exit=!1,this.editMode=!1,this.todo={id:0,name:"",completed:!1}}yesClick(){this.editMode=!this.editMode,this.editMode||(this.tService.todos[this.todo.id-1].dueDate=this.date?.nativeElement.value,this.tService.todos[this.todo.id-1].name=this.name?.nativeElement.textContent,this.tService.todos[this.todo.id-1].description=this.description?.nativeElement.textContent,null!=this.selectedDifficulty&&(this.tService.todos[this.todo.id-1].difficulty=this.selectedDifficulty))}noClick(){if(this.editMode){this.editMode=!this.editMode,null!=this.date&&(this.date.nativeElement.value=this.tService.todos[this.todo.id-1].dueDate),null!=this.name&&(this.name.nativeElement.textContent=this.tService.todos[this.todo.id-1].name),null!=this.description&&(this.description.nativeElement.textContent=this.tService.todos[this.todo.id-1].description);let n=this.tService.todos[this.todo.id-1].difficulty;this.todo.difficulty=Ee.Easy,this.todo.difficulty=n}else this.tService.removeTodo(this.todo)}changeState(){this.todo.completed=!this.todo.completed,this.exit=!this.todo.completed}static#e=this.\u0275fac=function(r){return new(r||e)(C(BC))};static#t=this.\u0275cmp=zi({type:e,selectors:[["app-todo"]],viewQuery:function(r,o){if(1&r&&(aa(a2,5),aa(l2,5),aa(u2,5)),2&r){let i;sa(i=la())&&(o.date=i.first),sa(i=la())&&(o.name=i.first),sa(i=la())&&(o.description=i.first)}},inputs:{todo:"todo"},decls:22,vars:23,consts:[[1,"todo-item",3,"ngClass"],[1,"check-bubble",3,"click"],["xmlns","http://www.w3.org/2000/svg","version","1.0","viewBox","0 0 71 71","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,71.000000) scale(0.100000,-0.100000)","stroke","none"],["xmlns","http://www.w3.org/2000/svg","d","M624 612 c-12 -2 -58 -40 -102 -85 -44 -45 -116 -117 -160 -161 l-80 -78 -76 80 c-80 83 -116 105 -152 91 -27 -9 -54 -47 -54 -73 0 -20 255 -286 275 -286 20 0 435 425 435 446 0 44 -39 74 -86 66z"],[3,"ngStyle"],[3,"contentEditable"],["name",""],[1,"description","space",3,"contentEditable"],["description",""],[3,"editMode","difficulty","onChanged",4,"ngIf"],["class","info space",4,"ngIf"],[1,"buttons-panel",3,"ngStyle"],[1,"icon-button","edit",3,"disabled","click"],["xmlns","http://www.w3.org/2000/svg","version","1.0","viewBox","0 0 260 260","preserveAspectRatio","xMidYMid meet",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","version","1.0","viewBox","0 0 253 253","preserveAspectRatio","xMidYMid meet",4,"ngIf"],[1,"icon-button","remove",3,"disabled","click"],[1,"edit-mode-blur"],[3,"editMode","difficulty","onChanged"],[1,"info","space"],["xmlns","http://www.w3.org/2000/svg","version","1.0","viewBox","0 0 260 260","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,260.000000) scale(0.100000,-0.100000)","stroke","none"],["xmlns","http://www.w3.org/2000/svg","d","M1130 2560 c-191 -30 -407 -113 -543 -209 -32 -23 -60 -41 -63 -41 -6 0 -63 -52 -139 -125 -86 -83 -190 -226 -248 -341 -31 -60 -98 -269 -112 -349 -19 -103 -13 -372 10 -465 34 -142 78 -250 153 -379 64 -109 110 -168 214 -271 96 -95 178 -156 298 -218 110 -58 174 -81 325 -119 100 -26 126 -28 290 -28 141 0 195 4 250 19 312 80 471 168 671 371 114 116 173 200 240 341 143 304 163 623 61 944 -98 305 -341 591 -623 733 -211 106 -334 137 -564 142 -91 2 -190 0 -220 -5z m80 -300 c0 -126 11 -160 59 -180 35 -14 65 -8 101 19 24 19 25 25 28 145 l4 126 26 0 c158 -1 446 -117 574 -232 20 -18 49 -44 65 -58 74 -66 179 -204 226 -296 43 -85 96 -256 103 -331 l7 -73 -91 0 c-107 0 -135 -10 -157 -57 -20 -41 -14 -75 20 -109 22 -22 32 -24 125 -24 l100 0 0 -38 c0 -100 -65 -283 -150 -422 -61 -99 -217 -270 -277 -306 -18 -10 -33 -22 -33 -26 0 -4 -6 -8 -14 -8 -8 0 -16 -4 -18 -8 -11 -26 -221 -119 -328 -145 -109 -27 -161 -31 -171 -16 -5 8 -9 56 -9 107 0 90 -1 95 -29 123 -20 20 -39 29 -61 29 -75 0 -100 -45 -100 -180 0 -105 6 -101 -126 -74 -265 55 -505 208 -672 430 -51 67 -139 233 -161 305 -16 49 -41 211 -35 221 3 4 46 8 95 8 102 0 131 12 148 62 9 26 8 39 -9 74 -24 50 -36 54 -152 54 -77 0 -88 2 -88 18 0 30 28 175 44 227 24 77 105 228 165 308 58 76 220 231 271 258 16 9 35 21 42 27 19 15 156 83 176 87 9 1 45 12 79 24 63 21 144 38 196 40 l27 1 0 -110z"],["xmlns","http://www.w3.org/2000/svg","d","M1820 1942 c-8 -4 -51 -45 -95 -90 -44 -46 -161 -165 -260 -265 -253 -255 -275 -282 -275 -327 0 -54 44 -100 96 -100 33 0 45 8 112 78 41 42 179 184 306 315 127 130 237 250 245 266 17 36 10 68 -24 104 -26 27 -69 35 -105 19z"],[4,"ngIf"],["type","date","contenteditable","true",3,"value",4,"ngIf"],["type","date","contenteditable","true",3,"value"],["date",""],["xmlns","http://www.w3.org/2000/svg","d","M1893 2521 c-66 -17 -110 -54 -375 -311 -489 -476 -710 -692 -888 -866 -96 -95 -225 -221 -287 -281 -101 -98 -112 -113 -122 -158 -6 -27 -20 -81 -31 -120 -11 -38 -34 -119 -50 -180 -16 -60 -36 -135 -44 -165 -94 -342 -93 -340 -71 -356 10 -8 25 -14 33 -14 20 0 844 191 859 199 6 3 361 354 789 780 612 610 781 784 797 820 13 29 21 69 21 106 2 103 -28 148 -225 337 -93 90 -188 173 -212 185 -46 25 -143 37 -194 24z m115 -155 c15 -8 102 -90 195 -183 209 -212 209 -209 65 -351 l-74 -72 -219 220 c-121 121 -220 225 -220 230 0 14 135 151 159 160 32 13 64 12 94 -4z m-313 -354 c119 -115 355 -360 355 -369 0 -10 -121 -133 -131 -133 -4 0 -102 97 -218 216 l-212 216 63 68 c35 38 65 69 68 69 3 0 37 -30 75 -67z m-259 -234 c35 -35 64 -68 64 -74 0 -10 -853 -867 -881 -885 -32 -20 -56 -10 -67 29 -8 25 -25 46 -52 65 -22 16 -40 32 -40 36 0 9 284 292 654 652 116 112 217 212 225 221 9 9 20 17 25 17 5 1 37 -27 72 -61z m347 -351 c15 -17 27 -36 27 -43 0 -6 -203 -214 -451 -463 -503 -504 -462 -474 -541 -408 l-38 32 5 95 5 95 421 418 421 418 61 -57 c34 -31 74 -71 90 -87z m-1393 -622 c7 -8 18 -15 25 -15 17 0 25 -23 25 -70 0 -52 17 -60 124 -60 l86 0 0 -98 0 -98 50 -38 c28 -21 50 -42 50 -46 0 -4 -10 -10 -22 -13 -13 -2 -90 -21 -172 -40 l-150 -36 -55 52 c-103 96 -99 77 -56 235 70 263 68 259 95 227z"],["xmlns","http://www.w3.org/2000/svg","version","1.0","viewBox","0 0 253 253","preserveAspectRatio","xMidYMid meet"],["xmlns","http://www.w3.org/2000/svg","transform","translate(0.000000,260.000000) scale(0.100000,-0.100000)","stroke","none"],["d","M2258 1972 c-9 -4 -254 -241 -545 -527 -790 -778 -728 -720 -752 -703 -12 8 -19 18 -16 21 3 4 2 5 -2 2 -4 -3 -141 129 -305 292 -164 164 -307 302 -318 307 -47 21 -119 -46 -106 -99 3 -13 60 -76 127 -142 67 -65 228 -224 358 -354 236 -236 269 -262 309 -240 10 5 290 279 621 608 332 329 609 597 615 595 6 -2 8 -1 4 3 -3 4 11 22 31 41 21 18 48 53 61 77 21 39 22 48 11 74 -7 17 -24 35 -37 42 -28 12 -32 13 -56 3z"],["d","M1116 2545 c-79 -28 -143 -116 -153 -210 l-6 -53 -101 -4 c-138 -5 -197 -32 -260 -117 -30 -41 -49 -80 -57 -117 l-12 -55 -123 7 c-204 11 -218 -4 -212 -233 l3 -145 33 -29 c25 -23 42 -29 76 -29 l43 0 22 -187 c50 -425 132 -1092 142 -1155 6 -37 20 -82 32 -100 34 -50 108 -97 170 -108 35 -7 271 -10 634 -8 l578 3 54 30 c60 33 106 88 121 145 5 20 23 153 40 296 16 142 47 408 69 589 22 182 44 366 48 410 l8 80 54 5 c44 5 58 11 82 38 l29 32 0 151 c0 84 -5 159 -10 170 -23 43 -65 52 -198 45 -136 -7 -152 -3 -152 43 0 42 -44 123 -85 160 -66 57 -117 75 -236 79 l-106 4 -6 57 c-9 103 -66 181 -151 206 -66 20 -315 20 -370 0z m336 -149 c20 -15 38 -58 38 -92 l0 -24 -187 2 -188 3 1 39 c1 30 8 46 28 63 25 22 36 23 159 23 92 -1 137 -5 149 -14z m407 -285 c33 -23 59 -61 63 -89 l3 -23 -619 1 c-341 0 -622 2 -624 5 -9 9 35 80 61 99 26 19 46 21 265 26 130 3 370 4 532 2 262 -3 298 -5 319 -21z m429 -333 l-3 -73 -975 0 -975 0 -3 59 c-2 32 -1 65 2 72 5 12 167 14 981 14 l976 0 -3 -72z m-168 -225 c0 -19 -72 -622 -89 -753 -11 -80 -27 -208 -36 -285 -30 -270 -36 -305 -59 -330 -11 -14 -33 -27 -48 -31 -25 -5 -28 -3 -28 17 0 27 23 542 41 943 l13 269 -23 18 c-30 24 -83 24 -104 1 -19 -21 -21 -43 -37 -447 -13 -308 -28 -613 -36 -722 l-6 -83 -73 0 c-67 0 -73 2 -78 23 -3 12 -6 290 -7 617 -1 665 3 630 -71 630 -72 0 -69 30 -69 -657 l0 -613 -110 0 -110 0 0 615 c0 602 0 615 -20 635 -24 24 -91 27 -109 6 -9 -11 -13 -173 -15 -633 l-3 -618 -76 -3 -75 -3 -6 63 c-3 35 -10 200 -16 368 -15 449 -30 772 -36 798 -6 27 -54 51 -90 44 -14 -2 -32 -15 -41 -28 -14 -22 -14 -52 1 -317 22 -415 41 -916 34 -923 -10 -9 -46 14 -63 40 -15 23 -45 235 -99 701 -14 121 -37 308 -51 415 -14 107 -25 207 -25 223 l0 27 810 0 c446 0 810 -3 810 -7z"],["d","M583 1978 c-12 -6 -27 -24 -34 -41 -11 -26 -10 -35 11 -74 13 -24 40 -59 61 -77 20 -19 34 -38 31 -42 -4 -4 -2 -4 4 -1 5 3 119 -103 253 -237 l243 -243 -296 -288 c-177 -173 -299 -299 -305 -317 -13 -36 0 -71 33 -93 52 -34 70 -19 410 318 l270 268 85 -83 c46 -46 168 -166 270 -268 246 -245 277 -268 327 -235 33 22 46 57 33 93 -6 18 -128 144 -305 317 l-296 288 243 243 c134 134 248 240 253 237 6 -3 8 -3 4 1 -3 4 11 23 31 42 21 18 48 53 61 77 21 39 22 48 11 75 -15 37 -57 57 -92 44 -13 -6 -121 -107 -239 -227 -118 -119 -254 -253 -302 -297 l-87 -79 -301 298 c-166 164 -309 301 -318 305 -23 9 -33 8 -59 -4z"]],template:function(r,o){1&r&&(G(0,"div",0)(1,"div",1),ye("click",function(){return o.changeState()}),un(),G(2,"svg",2)(3,"g",3),Nt(4,"path",4),U()()(),Yi(),G(5,"div",5)(6,"h2",6,7),nt(8),U(),G(9,"p",8,9),nt(11),U(),Dt(12,c2,1,2,"app-hardness-indicator",10),Dt(13,h2,7,2,"div",11),U(),G(14,"div",12)(15,"button",13),ye("click",function(){return o.yesClick()}),Dt(16,p2,3,0,"svg",14),Dt(17,g2,3,0,"svg",15),U(),G(18,"button",16),ye("click",function(){return o.noClick()}),Dt(19,m2,3,0,"svg",15),Dt(20,y2,3,0,"svg",14),U()()(),Nt(21,"div",17)),2&r&&(Q("ngClass",N_(15,_2,o.todo.completed,o.exit,o.editMode)),J(5),Q("ngStyle",ai(19,HC,o.todo.completed?"none":"all")),J(1),Q("contentEditable",o.editMode),J(2),or(o.todo.name),J(1),Q("contentEditable",o.editMode),J(2),or(o.todo.description),J(1),Q("ngIf",o.todo.difficulty||o.editMode),J(1),Q("ngIf",o.todo.dueDate||o.editMode),J(1),Q("ngStyle",ai(21,HC,o.todo.completed?"none":"all")),J(1),Q("disabled",o.todo.completed),J(1),Q("ngIf",!o.editMode),J(1),Q("ngIf",o.editMode),J(1),Q("disabled",o.todo.completed),J(1),Q("ngIf",!o.editMode),J(1),Q("ngIf",o.editMode))},dependencies:[Ia,Ed,aD,jC,lD],styles:['@charset "UTF-8";@keyframes _ngcontent-%COMP%_unchecking{35%{opacity:.5;scale:.95}to{opacity:1;scale:1}}@keyframes _ngcontent-%COMP%_checking{35%{opacity:1;scale:1}to{opacity:.5;scale:.95}}[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{margin-left:-20px;cursor:pointer;background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 24 24"><path fill="%236054ad" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>\')}input[type=date][_ngcontent-%COMP%]{color:#6054ad;border-bottom:1px solid #6054ad;padding-bottom:.1em}*[_ngcontent-%COMP%]{color:#3b2f8a}.todo-item[_ngcontent-%COMP%]{background-color:#ffedd726;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:2em 3em;margin:1em 0;border-radius:.7em;display:grid;grid-template-columns:auto 1fr;position:relative;align-items:center;border:4px solid transparent;width:100%;min-width:100%;column-gap:2em;box-shadow:.1em .1em 1em #3a1b6f1a;transition:.3s ease-in-out,border 0s}.todo-item.edit-mode[_ngcontent-%COMP%]{scale:1.1;z-index:100;margin-bottom:2em;margin-top:2em}.todo-item.edit-mode[_ngcontent-%COMP%] + .edit-mode-blur[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;transition:.7s ease;z-index:99;top:0;left:0;content:"";-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.todo-item.checked[_ngcontent-%COMP%]{border:4px solid #ff8f4e;animation:.7s linear 0s forwards alternate _ngcontent-%COMP%_checking}.todo-item.unchecked[_ngcontent-%COMP%]{opacity:.5;scale:.95;animation:1s linear 0s forwards alternate _ngcontent-%COMP%_unchecking}.check-bubble[_ngcontent-%COMP%]{position:absolute;margin-left:-1.8em;width:3.5em;height:3.5em;border-radius:100%;cursor:pointer;background-color:#7a4f9f;align-items:center;justify-content:center;display:flex;transition:.3s ease-in-out,background-color .3s,background-image 0s}.edit-mode[_ngcontent-%COMP%] .check-bubble[_ngcontent-%COMP%]{background-color:#6054ad;opacity:.5;pointer-events:none}.checked[_ngcontent-%COMP%] .check-bubble[_ngcontent-%COMP%]{background-image:linear-gradient(to left,#fb3a5d,#ff8f4e)}.check-bubble[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{display:flex;fill:#ffedd7;width:1.5em;height:1.5em}.check-bubble[_ngcontent-%COMP%]:hover{background-color:#6d478e}h2[_ngcontent-%COMP%]{font-weight:600;font-size:1.2em;margin-bottom:1em;position:relative;width:-moz-fit-content;width:fit-content;color:#3a1b6f}.edit-mode[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#6054ad;padding-bottom:2px;border-bottom:2px solid #6054ad}.checked[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fb3a5d}.description[_ngcontent-%COMP%]{padding-bottom:.2em}.edit-mode[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:#6054ad;border-bottom:1px solid #6054ad}.space[_ngcontent-%COMP%]{margin-top:.5em}.buttons-panel[_ngcontent-%COMP%]{justify-self:end;display:flex;flex-direction:column;row-gap:1em}.buttons-panel[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding:0;outline:none}.buttons-panel[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{fill:#2f165a}.buttons-panel[_ngcontent-%COMP%] .icon-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:.3s ease-in-out;fill:#3b2f8a;width:1.2em;height:1.2em}.info[_ngcontent-%COMP%]{fill:#3b2f8a;display:flex;align-items:center;column-gap:.5em}.info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:.2em}.info[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:1.2em;height:1.2em}.edit-mode[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#6054ad}@media (max-width: 768px){h1[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{letter-spacing:2px}.todo-item[_ngcontent-%COMP%]{background-color:#ffedd740}[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{margin-left:-15px}.new-todo-constructor[_ngcontent-%COMP%]{padding:2.5em;font-size:1.1em;border-radius:.8em;background-color:#ffedd733}.new-todo-constructor[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{letter-spacing:0px}}']})}return e})();function D2(e,t){if(1&e){const n=Qs();G(0,"div",5)(1,"h3",6),nt(2,"\u041d\u043e\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430"),U(),G(3,"label"),nt(4,"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435:"),U(),G(5,"input",7),ye("ngModelChange",function(o){return On(n),Pn(tt().name=o)}),U(),G(6,"label"),nt(7,"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435"),U(),G(8,"input",8),ye("ngModelChange",function(o){return On(n),Pn(tt().description=o)}),U(),G(9,"div",9)(10,"label"),nt(11,"\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c:"),U(),G(12,"app-hardness-indicator",10),ye("onChanged",function(o){return On(n),Pn(tt().onChanged(o))}),U()(),G(13,"label",11),nt(14,"\u0414\u0435\u0434\u043b\u0430\u0439\u043d:"),U(),G(15,"input",12),ye("ngModelChange",function(o){return On(n),Pn(tt().date=o)}),U(),G(16,"button",13),ye("click",function(){return On(n),Pn(tt().addNewTodo())}),nt(17,"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"),U()()}if(2&e){const n=tt();Q("@new-todo",void 0),J(5),Q("ngModel",n.name),J(3),Q("ngModel",n.description),J(4),Q("editMode",!0),J(3),Q("ngModel",n.date)}}function C2(e,t){if(1&e&&Nt(0,"app-todo",14),2&e){const n=t.$implicit;Q("@todo",void 0)("todo",n)}}const w2=function(e){return{active:e}};let E2=(()=>{class e{constructor(n){this.tService=n,this.newTodoMode=!1,this.title="\u0412\u0440\u0435\u043c\u044f. \u0417\u0430\u0434\u0430\u0447\u0438. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b",this.todos=this.tService.todos,this.name="",this.description="",this.date=new Date(0),this.nullDate=this.date}onChanged(n){this.selectedDifficulty=n}addNewTodo(){let r={id:Math.max(...this.tService.todos.map(o=>o.id),0),name:this.name,description:this.description,completed:!1,difficulty:this.selectedDifficulty};this.date!=this.nullDate&&(r.dueDate=this.date),""!=this.name?(this.tService.addTodo(r),this.newTodoMode=!this.newTodoMode,this.date=this.nullDate,this.name="",this.description=""):alert("\u0417\u0430\u0434\u0430\u0447\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043c\u0435\u0442\u044c \u0438\u043c\u044f")}static#e=this.\u0275fac=function(r){return new(r||e)(C(BC))};static#t=this.\u0275cmp=zi({type:e,selectors:[["app-root"]],decls:9,vars:7,consts:[[1,"label"],[1,"main-cont"],["title","\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443",1,"add-new-todo",3,"ngClass","click"],["class","new-todo-constructor",4,"ngIf"],[3,"todo",4,"ngFor","ngForOf"],[1,"new-todo-constructor"],[1,"new-todo-header"],["maxlength","100","spellcheck","false","autocomplete","off","placeholder","\u041d\u0430\u043f\u0438\u0448\u0438 \u0437\u0434\u0435\u0441\u044c","name","name","type","text",3,"ngModel","ngModelChange"],["maxlength","1000","spellcheck","false","autocomplete","off","placeholder","\u041d\u0430\u043f\u0438\u0448\u0438 \u0437\u0434\u0435\u0441\u044c","name","name","type","text",3,"ngModel","ngModelChange"],[1,"new-todo-hardness"],[3,"editMode","onChanged"],["for","date"],["name","date","type","date",3,"ngModel","ngModelChange"],[3,"click"],[3,"todo"]],template:function(r,o){1&r&&(G(0,"h1"),nt(1),U(),G(2,"p",0),nt(3,"\u0422\u0432\u043e\u0439 \u043b\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u0432 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447"),U(),G(4,"div",1)(5,"button",2),ye("click",function(){return o.newTodoMode=!o.newTodoMode}),nt(6),U(),Dt(7,D2,18,5,"div",3),Dt(8,C2,1,2,"app-todo",4),U()),2&r&&(J(1),or(o.title),J(4),Q("ngClass",ai(5,w2,o.newTodoMode)),J(1),or(o.newTodoMode?"\u2212":"+"),J(1),Q("ngIf",o.newTodoMode),J(1),Q("ngForOf",o.todos))},dependencies:[Ia,wd,Ed,Oa,rC,sf,Xd,v2,jC],styles:['[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{margin-left:-20px;cursor:pointer;background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 24 24"><path fill="%236054ad" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>\')}input[type=date][_ngcontent-%COMP%]{color:#6054ad;border-bottom:1px solid #6054ad;padding-bottom:.1em}.label[_ngcontent-%COMP%]{text-align:center;letter-spacing:5px;color:#3b2f8a;opacity:.5;font-weight:300;width:80%;margin:0 auto 1.25em}.add-new-todo[_ngcontent-%COMP%]{position:fixed;top:5rem;right:6vw;color:#3b2f8a;-webkit-backdrop-filter:blur(4px) brightness(105%);backdrop-filter:blur(4px) brightness(105%);box-shadow:.1em .1em 1em #3a1b6f1a;border-radius:.5em;width:2em;height:2em;font-weight:700;background-color:#ffedd71a;transition:.3s ease-in-out}.add-new-todo[_ngcontent-%COMP%]:hover, .add-new-todo.active[_ngcontent-%COMP%]{box-shadow:.1em .1em 1em #3a1b6f33;scale:1.15;background-color:#ffedd726}[_nghost-%COMP%] .new-todo-constructor app-hardness-indicator *{font-size:1em}[_nghost-%COMP%] .new-todo-constructor app-hardness-indicator .indicator{flex-direction:column}[_nghost-%COMP%] .new-todo-constructor app-hardness-indicator p{display:none}input[type=text][_ngcontent-%COMP%]{border-bottom:1px solid #6054ad;padding:.1em 0;width:100%}input[type=text][_ngcontent-%COMP%]::placeholder{color:#6054ad;font-weight:300;letter-spacing:2px;opacity:.5}.new-todo-constructor[_ngcontent-%COMP%]{position:fixed;top:8rem;right:6vw;padding:2em;width:max-content;color:#6054ad;font-size:.8em;-webkit-backdrop-filter:blur(8px) brightness(105%);backdrop-filter:blur(8px) brightness(105%);box-shadow:.1em .1em 1em #3a1b6f1a;border-radius:.5em;z-index:98;font-weight:700;background-color:#ffedd733;transition:.3s ease-in-out}.new-todo-constructor[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-size:inherit}.new-todo-constructor[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-weight:300;color:#8076be}.new-todo-constructor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;margin:.5em auto 0;border-radius:.5em;padding:.4em .9em;text-align:center;border:2px solid #6054ad;font-size:1.1em;background-color:#ffedd71a;font-weight:600;transition:.3s ease-in-out}.new-todo-constructor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#ffedd74d}.new-todo-constructor[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .new-todo-constructor[_ngcontent-%COMP%] .new-todo-hardness[_ngcontent-%COMP%]{margin-bottom:.3em;display:block}.new-todo-constructor[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%] .new-todo-constructor app-hardness-indicator, .new-todo-constructor[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;margin-bottom:.8em}.new-todo-constructor[_ngcontent-%COMP%] .new-todo-header[_ngcontent-%COMP%]{font-size:1.25em;letter-spacing:1px;text-align:center;font-weight:600;margin-bottom:.8em}.new-todo-constructor[_ngcontent-%COMP%] .new-todo-hardness[_ngcontent-%COMP%]{display:flex;align-items:center;column-gap:.6em}h1[_ngcontent-%COMP%]{letter-spacing:7px;font-weight:600;font-size:1.75em;margin-bottom:.5em;text-align:center;color:#29134e}.main-cont[_ngcontent-%COMP%]{display:grid;justify-content:center;align-items:center}@media (max-width: 768px){h1[_ngcontent-%COMP%], .label[_ngcontent-%COMP%]{letter-spacing:2px}.todo-item[_ngcontent-%COMP%]{background-color:#ffedd740}[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{margin-left:-15px}.new-todo-constructor[_ngcontent-%COMP%]{padding:2.5em;font-size:1.1em;border-radius:.8em;background-color:#ffedd733}.new-todo-constructor[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{letter-spacing:0px}}'],data:{animation:[kC("todo",[Ua(":enter",[Jt({height:"0",opacity:0,"backdrop-filter":"blur(4px) opacity(0) "}),$a("800ms ease-out",Jt({height:"*",opacity:1,"backdrop-filter":"blur(4px) opacity(1)"}))]),Ua(":leave",[Jt({height:"*",opacity:1,"backdrop-filter":"blur(4px) opacity(1) "}),$a("800ms ease-in",Jt({height:"0",opacity:0,"backdrop-filter":"blur(4px) opacity(0) "}))])]),kC("new-todo",[Ua(":enter",[Jt({opacity:0,"backdrop-filter":"blur(4px) opacity(0) "}),$a("300ms ease-out",Jt({opacity:1,"backdrop-filter":"blur(4px) opacity(1)"}))]),Ua(":leave",[Jt({opacity:1,"backdrop-filter":"blur(4px) opacity(1) "}),$a("300ms ease-in",Jt({opacity:0,"backdrop-filter":"blur(4px) opacity(0) "}))])])]}})}return e})();function $C(e){return new _(3e3,!1)}function $n(e){switch(e.length){case 0:return new wi;case 1:return e[0];default:return new VC(e)}}function UC(e,t,n=new Map,r=new Map){const o=[],i=[];let s=-1,a=null;if(t.forEach(l=>{const u=l.get("offset"),c=u==s,d=c&&a||new Map;l.forEach((f,h)=>{let p=h,g=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,o),g){case"!":g=n.get(h);break;case Cn:g=r.get(h);break;default:g=e.normalizeStyleValue(h,p,g,o)}d.set(p,g)}),c||i.push(d),a=d,s=u}),o.length)throw function q2(e){return new _(3502,!1)}();return i}function lf(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&uf(n,"start",e)));break;case"done":e.onDone(()=>r(n&&uf(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&uf(n,"destroy",e)))}}function uf(e,t,n){const i=cf(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n.totalTime??e.totalTime,!!n.disabled),s=e._data;return null!=s&&(i._data=s),i}function cf(e,t,n,r,o="",i=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function dt(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function zC(e){const t=e.indexOf(":");return[e.substring(1,t),e.slice(t+1)]}const oR=(()=>typeof document>"u"?null:document.documentElement)();function df(e){const t=e.parentNode||e.host||null;return t===oR?null:t}let cr=null,GC=!1;function qC(e,t){for(;t;){if(t===e)return!0;t=df(t)}return!1}function WC(e,t,n){if(n)return Array.from(e.querySelectorAll(t));const r=e.querySelector(t);return r?[r]:[]}let QC=(()=>{class e{validateStyleProperty(n){return function sR(e){cr||(cr=function aR(){return typeof document<"u"?document.body:null}()||{},GC=!!cr.style&&"WebkitAppearance"in cr.style);let t=!0;return cr.style&&!function iR(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in cr.style,!t&&GC&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in cr.style)),t}(n)}matchesElement(n,r){return!1}containsElement(n,r){return qC(n,r)}getParentElement(n){return df(n)}query(n,r,o){return WC(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],l){return new wi(o,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})(),ff=(()=>{class e{static#e=this.NOOP=new QC}return e})();const lR=1e3,hf="ng-enter",za="ng-leave",Ga="ng-trigger",qa=".ng-trigger",KC="ng-animating",pf=".ng-animating";function wn(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:gf(parseFloat(t[1]),t[2])}function gf(e,t){return"s"===t?e*lR:e}function Wa(e,t,n){return e.hasOwnProperty("duration")?e:function cR(e,t,n){let o,i=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push($C()),{duration:0,delay:0,easing:""};o=gf(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(i=gf(parseFloat(l),a[4]));const u=a[5];u&&(s=u)}else o=e;if(!n){let a=!1,l=t.length;o<0&&(t.push(function b2(){return new _(3100,!1)}()),a=!0),i<0&&(t.push(function M2(){return new _(3101,!1)}()),a=!0),a&&t.splice(l,0,$C())}return{duration:o,delay:i,easing:s}}(e,t,n)}function bi(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function YC(e){const t=new Map;return Object.keys(e).forEach(n=>{t.set(n,e[n])}),t}function Un(e,t=new Map,n){if(n)for(let[r,o]of n)t.set(r,o);for(let[r,o]of e)t.set(r,o);return t}function en(e,t,n){t.forEach((r,o)=>{const i=yf(o);n&&!n.has(o)&&n.set(o,e.style[i]),e.style[i]=r})}function dr(e,t){t.forEach((n,r)=>{const o=yf(r);e.style[o]=""})}function Mi(e){return Array.isArray(e)?1==e.length?e[0]:LC(e):e}const mf=new RegExp("{{\\s*(.+?)\\s*}}","g");function JC(e){let t=[];if("string"==typeof e){let n;for(;n=mf.exec(e);)t.push(n[1]);mf.lastIndex=0}return t}function Si(e,t,n){const r=e.toString(),o=r.replace(mf,(i,s)=>{let a=t[s];return null==a&&(n.push(function I2(e){return new _(3003,!1)}()),a=""),a.toString()});return o==r?e:o}function Qa(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const hR=/-+([a-z0-9])/g;function yf(e){return e.replace(hR,(...t)=>t[1].toUpperCase())}function ft(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw function T2(e){return new _(3004,!1)}()}}function ew(e,t){return window.getComputedStyle(e)[t]}const Za="*";function mR(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function yR(e,t,n){if(":"==e[0]){const l=function _R(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return t.push(function $2(e){return new _(3016,!1)}()),"* => *"}}(e,n);if("function"==typeof l)return void t.push(l);e=l}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function H2(e){return new _(3015,!1)}()),t;const o=r[1],i=r[2],s=r[3];t.push(tw(o,s));"<"==i[0]&&!(o==Za&&s==Za)&&t.push(tw(s,o))}(r,n,t)):n.push(e),n}const Ka=new Set(["true","1"]),Ya=new Set(["false","0"]);function tw(e,t){const n=Ka.has(e)||Ya.has(e),r=Ka.has(t)||Ya.has(t);return(o,i)=>{let s=e==Za||e==o,a=t==Za||t==i;return!s&&n&&"boolean"==typeof o&&(s=o?Ka.has(e):Ya.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?Ka.has(t):Ya.has(t)),s&&a}}const vR=new RegExp("s*:selfs*,?","g");function _f(e,t,n,r){return new DR(e).build(t,n,r)}class DR{constructor(t){this._driver=t}build(t,n,r){const o=new ER(n);return this._resetContextStyleTimingState(o),ft(this,Mi(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,o=n.depCount=0;const i=[],s=[];return"@"==t.name.charAt(0)&&n.errors.push(function N2(){return new _(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,i.push(this.visitState(l,n))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,n);r+=l.queryCount,o+=l.depCount,s.push(l)}else n.errors.push(function O2(){return new _(3007,!1)}())}),{type:7,name:t.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}}visitState(t,n){const r=this.visitStyle(t.styles,n),o=t.options&&t.options.params||null;if(r.containsDynamicStyles){const i=new Set,s=o||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{JC(l).forEach(u=>{s.hasOwnProperty(u)||i.add(u)})})}),i.size&&(Qa(i.values()),n.errors.push(function P2(e,t){return new _(3008,!1)}()))}return{type:0,name:t.name,style:r,options:o?{params:o}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;const r=ft(this,Mi(t.animation),n);return{type:1,matchers:mR(t.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:fr(t.options)}}visitSequence(t,n){return{type:2,steps:t.steps.map(r=>ft(this,r,n)),options:fr(t.options)}}visitGroup(t,n){const r=n.currentTime;let o=0;const i=t.steps.map(s=>{n.currentTime=r;const a=ft(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:3,steps:i,options:fr(t.options)}}visitAnimate(t,n){const r=function MR(e,t){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return vf(Wa(e,t).duration,0,"");const n=e;if(n.split(/\s+/).some(i=>"{"==i.charAt(0)&&"{"==i.charAt(1))){const i=vf(0,0,"");return i.dynamic=!0,i.strValue=n,i}const o=Wa(n,t);return vf(o.duration,o.delay,o.easing)}(t.timings,n.errors);n.currentAnimateTimings=r;let o,i=t.styles?t.styles:Jt({});if(5==i.type)o=this.visitKeyframes(i,n);else{let s=t.styles,a=!1;if(!s){a=!0;const u={};r.easing&&(u.easing=r.easing),s=Jt(u)}n.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,n);l.isEmptyStep=a,o=l}return n.currentAnimateTimings=null,{type:4,timings:r,style:o,options:null}}visitStyle(t,n){const r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){const r=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)"string"==typeof a?a===Cn?r.push(a):n.errors.push(new _(3002,!1)):r.push(YC(a));let i=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!i))for(let l of a.values())if(l.toString().indexOf("{{")>=0){i=!0;break}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,n){const r=n.currentAnimateTimings;let o=n.currentTime,i=n.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const u=n.collectedStyles.get(n.currentQuerySelector),c=u.get(l);let d=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(n.errors.push(function x2(e,t,n,r,o){return new _(3010,!1)}()),d=!1),i=c.startTime),d&&u.set(l,{startTime:i,endTime:o}),n.options&&function fR(e,t,n){const r=t.params||{},o=JC(e);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(function S2(e){return new _(3001,!1)}())})}(a,n.options,n.errors)})})}visitKeyframes(t,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function R2(){return new _(3011,!1)}()),r;let i=0;const s=[];let a=!1,l=!1,u=0;const c=t.steps.map(D=>{const m=this._makeStyleAst(D,n);let E=null!=m.offset?m.offset:function bR(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){const r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}(m.styles),b=0;return null!=E&&(i++,b=m.offset=E),l=l||b<0||b>1,a=a||b<u,u=b,s.push(b),m});l&&n.errors.push(function k2(){return new _(3012,!1)}()),a&&n.errors.push(function L2(){return new _(3200,!1)}());const d=t.steps.length;let f=0;i>0&&i<d?n.errors.push(function V2(){return new _(3202,!1)}()):0==i&&(f=1/(d-1));const h=d-1,p=n.currentTime,g=n.currentAnimateTimings,y=g.duration;return c.forEach((D,m)=>{const E=f>0?m==h?1:f*m:s[m],b=E*y;n.currentTime=p+g.delay+b,g.duration=b,this._validateStyleAst(D,n),D.offset=E,r.styles.push(D)}),r}visitReference(t,n){return{type:8,animation:ft(this,Mi(t.animation),n),options:fr(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:9,options:fr(t.options)}}visitAnimateRef(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:fr(t.options)}}visitQuery(t,n){const r=n.currentQuerySelector,o=t.options||{};n.queryCount++,n.currentQuery=t;const[i,s]=function CR(e){const t=!!e.split(/\s*,\s*/).find(n=>":self"==n);return t&&(e=e.replace(vR,"")),e=e.replace(/@\*/g,qa).replace(/@\w+/g,n=>qa+"-"+n.slice(1)).replace(/:animating/g,pf),[e,t]}(t.selector);n.currentQuerySelector=r.length?r+" "+i:i,dt(n.collectedStyles,n.currentQuerySelector,new Map);const a=ft(this,Mi(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:fr(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(function B2(){return new _(3013,!1)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:Wa(t.timings,n.errors,!0);return{type:12,animation:ft(this,Mi(t.animation),n),timings:r,options:null}}}class ER{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function fr(e){return e?(e=bi(e)).params&&(e.params=function wR(e){return e?bi(e):null}(e.params)):e={},e}function vf(e,t,n){return{duration:e,delay:t,easing:n}}function Df(e,t,n,r,o,i,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}class Xa{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const TR=new RegExp(":enter","g"),NR=new RegExp(":leave","g");function Cf(e,t,n,r,o,i=new Map,s=new Map,a,l,u=[]){return(new OR).buildKeyframes(e,t,n,r,o,i,s,a,l,u)}class OR{buildKeyframes(t,n,r,o,i,s,a,l,u,c=[]){u=u||new Xa;const d=new wf(t,n,u,o,i,c,[]);d.options=l;const f=l.delay?wn(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),ft(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let g=h.length-1;g>=0;g--){const y=h[g];if(y.element===n){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Df(n,[],[],[],0,f,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){const r=n.subInstructions.get(n.element);if(r){const o=n.createSubContext(t.options),i=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,o,o.options);i!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){const r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){for(const o of t){const i=o?.delay;if(i){const s="number"==typeof i?i:wn(Si(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,n,r){let i=n.currentTimeline.currentTime;const s=null!=r.duration?wn(r.duration):null,a=null!=r.delay?wn(r.delay):null;return 0!==s&&t.forEach(l=>{const u=n.appendInstructionToTimeline(l,s,a);i=Math.max(i,u.duration+u.delay)}),i}visitReference(t,n){n.updateOptions(t.options,!0),ft(this,t.animation,n),n.previousNode=t}visitSequence(t,n){const r=n.subContextCount;let o=n;const i=t.options;if(i&&(i.params||i.delay)&&(o=n.createSubContext(i),o.transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ja);const s=wn(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>ft(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){const r=[];let o=n.currentTimeline.currentTime;const i=t.options&&t.options.delay?wn(t.options.delay):0;t.steps.forEach(s=>{const a=n.createSubContext(t.options);i&&a.delayNextStep(i),ft(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(o),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){const r=t.strValue;return Wa(n.params?Si(r,n.params,n.errors):r,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){const r=n.currentAnimateTimings=this._visitTiming(t.timings,n),o=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),o.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,n):(n.incrementTime(r.duration),this.visitStyle(i,n),o.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){const r=n.currentTimeline,o=n.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();const i=o&&o.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(i):r.setStyles(t.styles,i,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){const r=n.currentAnimateTimings,o=n.currentTimeline.duration,i=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*i),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(o+i),n.previousNode=t}visitQuery(t,n){const r=n.currentTimeline.currentTime,o=t.options||{},i=o.delay?wn(o.delay):0;i&&(6===n.previousNode.type||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ja);let s=r;const a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{n.currentQueryIndex=c;const d=n.createSubContext(t.options,u);i&&d.delayNextStep(i),u===n.element&&(l=d.currentTimeline),ft(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){const r=n.parentContext,o=n.currentTimeline,i=t.timings,s=Math.abs(i.duration),a=s*(n.currentQueryTotal-1);let l=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const c=n.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;ft(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}}const Ja={};class wf{constructor(t,n,r,o,i,s,a,l){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ja,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new el(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;const r=t;let o=this.options;null!=r.duration&&(o.duration=wn(r.duration)),null!=r.delay&&(o.delay=wn(r.delay));const i=r.params;if(i){let s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Si(i[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const n=this.options.params;if(n){const r=t.params={};Object.keys(n).forEach(o=>{r[o]=n[o]})}}return t}createSubContext(t=null,n,r){const o=n||this.element,i=new wf(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=Ja,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){const o={duration:n??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},i=new PR(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,o,i,s){let a=[];if(o&&a.push(this.element),t.length>0){t=(t=t.replace(TR,"."+this._enterClassName)).replace(NR,"."+this._leaveClassName);let u=this._driver.query(this.element,t,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!i&&0==a.length&&s.push(function j2(e){return new _(3014,!1)}()),a}}class el{constructor(t,n,r,o){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new el(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||Cn),this._currentKeyframe.set(n,Cn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,o){n&&this._previousKeyframe.set("easing",n);const i=o&&o.params||{},s=function FR(e,t){const n=new Map;let r;return e.forEach(o=>{if("*"===o){r=r||t.keys();for(let i of r)n.set(i,Cn)}else Un(o,n)}),n}(t,this._globalTimelineStyles);for(let[a,l]of s){const u=Si(l,i,r);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Cn),this._updateStyle(a,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{const o=this._styleSummary.get(r);(!o||n.time>o.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const u=Un(a,new Map,this._backFill);u.forEach((c,d)=>{"!"===c?t.add(d):c===Cn&&n.add(d)}),r||u.set("offset",l/this.duration),o.push(u)});const i=t.size?Qa(t.values()):[],s=n.size?Qa(n.values()):[];if(r){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return Df(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}}class PR extends el{constructor(t,n,r,o,i,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&n){const i=[],s=r+n,a=n/s,l=Un(t[0]);l.set("offset",0),i.push(l);const u=Un(t[0]);u.set("offset",ow(a)),i.push(u);const c=t.length-1;for(let d=1;d<=c;d++){let f=Un(t[d]);const h=f.get("offset");f.set("offset",ow((n+h*r)/s)),i.push(f)}r=s,n=0,o="",t=i}return Df(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)}}function ow(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Ef{}const xR=new Set(["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"]);class RR extends Ef{normalizePropertyName(t,n){return yf(t)}normalizeStyleValue(t,n,r,o){let i="";const s=r.toString().trim();if(xR.has(n)&&0!==r&&"0"!==r)if("number"==typeof r)i="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function A2(e,t){return new _(3005,!1)}())}return s+i}}function iw(e,t,n,r,o,i,s,a,l,u,c,d,f){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}const bf={};class sw{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,o){return function kR(e,t,n,r,o){return e.some(i=>i(t,n,r,o))}(this.ast.matchers,t,n,r,o)}buildStyles(t,n,r){let o=this._stateStyles.get("*");return void 0!==t&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(n,r):new Map}build(t,n,r,o,i,s,a,l,u,c){const d=[],f=this.ast.options&&this.ast.options.params||bf,p=this.buildStyles(r,a&&a.params||bf,d),g=l&&l.params||bf,y=this.buildStyles(o,g,d),D=new Set,m=new Map,E=new Map,b="void"===o,V={params:LR(g,f),delay:this.ast.options?.delay},le=c?[]:Cf(t,n,this.ast.animation,i,s,p,y,V,u,d);let ue=0;if(le.forEach(ht=>{ue=Math.max(ht.duration+ht.delay,ue)}),d.length)return iw(n,this._triggerName,r,o,b,p,y,[],[],m,E,ue,d);le.forEach(ht=>{const kt=ht.element,ol=dt(m,kt,new Set);ht.preStyleProps.forEach(hr=>ol.add(hr));const Ti=dt(E,kt,new Set);ht.postStyleProps.forEach(hr=>Ti.add(hr)),kt!==n&&D.add(kt)});const Ve=Qa(D.values());return iw(n,this._triggerName,r,o,b,p,y,le,Ve,m,E,ue)}}function LR(e,t){const n=bi(t);for(const r in e)e.hasOwnProperty(r)&&null!=e[r]&&(n[r]=e[r]);return n}class VR{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){const r=new Map,o=bi(this.defaultParams);return Object.keys(t).forEach(i=>{const s=t[i];null!==s&&(o[i]=s)}),this.styles.styles.forEach(i=>{"string"!=typeof i&&i.forEach((s,a)=>{s&&(s=Si(s,o,n));const l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}}class jR{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(o=>{this.states.set(o.name,new VR(o.style,o.options&&o.options.params||{},r))}),aw(this.states,"true","1"),aw(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new sw(t,o,this.states))}),this.fallbackTransition=function HR(e,t,n){return new sw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,o){return this.transitionFactories.find(s=>s.match(t,n,r,o))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}}function aw(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}const $R=new Xa;class UR{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){const r=[],i=_f(this._driver,n,r,[]);if(r.length)throw function W2(e){return new _(3503,!1)}();this._animations.set(t,i)}_buildPlayer(t,n,r){const o=t.element,i=UC(this._normalizer,t.keyframes,n,r);return this._driver.animate(o,i,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){const o=[],i=this._animations.get(t);let s;const a=new Map;if(i?(s=Cf(this._driver,n,i,hf,za,new Map,new Map,r,$R,o),s.forEach(c=>{const d=dt(a,c.element,new Map);c.postStyleProps.forEach(f=>d.set(f,null))})):(o.push(function Q2(){return new _(3300,!1)}()),s=[]),o.length)throw function Z2(e){return new _(3504,!1)}();a.forEach((c,d)=>{c.forEach((f,h)=>{c.set(h,this._driver.computeStyle(d,h,Cn))})});const u=$n(s.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,new Map,d)}));return this._playersById.set(t,u),u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){const n=this._playersById.get(t);if(!n)throw function K2(e){return new _(3301,!1)}();return n}listen(t,n,r,o){const i=cf(n,"","","");return lf(this._getPlayer(t),r,i,o),()=>{}}command(t,n,r,o){if("register"==r)return void this.register(t,o[0]);if("create"==r)return void this.create(t,n,o[0]||{});const i=this._getPlayer(t);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t)}}}const lw="ng-animate-queued",Mf="ng-animate-disabled",QR=[],uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Rt="__ng_removed";class Sf{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;const r=t&&t.hasOwnProperty("value");if(this.value=function JR(e){return e??null}(r?t.value:t),r){const i=bi(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const n=t.params;if(n){const r=this.options.params;Object.keys(n).forEach(o=>{null==r[o]&&(r[o]=n[o])})}}}const Ii="void",If=new Sf(Ii);class KR{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Et(n,this._hostClassName)}listen(t,n,r,o){if(!this._triggers.has(n))throw function Y2(e,t){return new _(3302,!1)}();if(null==r||0==r.length)throw function X2(e){return new _(3303,!1)}();if(!function ek(e){return"start"==e||"done"==e}(r))throw function J2(e,t){return new _(3400,!1)}();const i=dt(this._elementListeners,t,[]),s={name:n,phase:r,callback:o};i.push(s);const a=dt(this._engine.statesByElement,t,new Map);return a.has(n)||(Et(t,Ga),Et(t,Ga+"-"+n),a.set(n,If)),()=>{this._engine.afterFlush(()=>{const l=i.indexOf(s);l>=0&&i.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return!this._triggers.has(t)&&(this._triggers.set(t,n),!0)}_getTrigger(t){const n=this._triggers.get(t);if(!n)throw function eR(e){return new _(3401,!1)}();return n}trigger(t,n,r,o=!0){const i=this._getTrigger(n),s=new Tf(this.id,n,t);let a=this._engine.statesByElement.get(t);a||(Et(t,Ga),Et(t,Ga+"-"+n),this._engine.statesByElement.set(t,a=new Map));let l=a.get(n);const u=new Sf(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(n,u),l||(l=If),u.value!==Ii&&l.value===u.value){if(!function rk(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let o=0;o<n.length;o++){const i=n[o];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(l.params,u.params)){const g=[],y=i.matchStyles(l.value,l.params,g),D=i.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{dr(t,y),en(t,D)})}return}const f=dt(this._engine.playersByElement,t,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let h=i.matchTransition(l.value,u.value,t,u.params),p=!1;if(!h){if(!o)return;h=i.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:p}),p||(Et(t,lw),s.onStart(()=>{fo(t,lw)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(t);if(y){let D=y.indexOf(s);D>=0&&y.splice(D,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){const r=this._engine.driver.query(t,qa,!0);r.forEach(o=>{if(o[Rt])return;const i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(s=>s.triggerLeaveAnimation(o,n,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,n,r,o){const i=this._engine.statesByElement.get(t),s=new Map;if(i){const a=[];if(i.forEach((l,u)=>{if(s.set(u,l.value),this._triggers.has(u)){const c=this.trigger(t,u,Ii,o);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&$n(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){const o=new Set;n.forEach(i=>{const s=i.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,u=r.get(s)||If,c=new Sf(Ii),d=new Tf(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(t,n){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let o=!1;if(r.totalAnimations){const i=r.players.length?r.playersByQueriedElement.get(t):[];if(i&&i.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)r.markElementAsRemoved(this.id,t,!1,n);else{const i=t[Rt];(!i||i===uw)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){Et(t,this._hostClassName)}drainQueuedTransitions(t){const n=[];return this._queue.forEach(r=>{const o=r.player;if(o.destroyed)return;const i=r.element,s=this._elementListeners.get(i);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=cf(i,r.triggerName,r.fromState.value,r.toState.value);l._data=t,lf(r.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):n.push(r)}),this._queue=[],n.sort((r,o)=>{const i=r.transition.ast.depCount,s=o.transition.ast.depCount;return 0==i||0==s?i-s:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class YR{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r){this.bodyNode=t,this.driver=n,this._normalizer=r,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=(o,i)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){const r=new KR(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){const r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){const l=o.get(a);if(l){const u=r.indexOf(l);r.splice(u+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return o.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let o=this._namespaceLookup[t];o&&o.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);const o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const n=new Set,r=this.statesByElement.get(t);if(r)for(let o of r.values())if(o.namespaceId){const i=this._fetchNamespace(o.namespaceId);i&&n.add(i)}return n}trigger(t,n,r,o){if(tl(n)){const i=this._fetchNamespace(t);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(t,n,r,o){if(!tl(n))return;const i=n[Rt];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(n,r)}o&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Et(t,Mf)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),fo(t,Mf))}removeNode(t,n,r){if(tl(n)){const o=t?this._fetchNamespace(t):null;o?o.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);const i=this.namespacesByHostElement.get(n);i&&i.id!==t&&i.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,o,i){this.collectedLeaveElements.push(n),n[Rt]={namespaceId:t,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(t,n,r,o,i){return tl(n)?this._fetchNamespace(t).listen(n,r,o,i):()=>{}}_buildInstruction(t,n,r,o,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,o,t.fromState.options,t.toState.options,n,i)}destroyInnerAnimations(t){let n=this.driver.query(t,qa,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,pf,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return $n(this.players).onDone(()=>t());t()})}processLeaveNode(t){const n=t[Rt];if(n&&n.setForRemoval){if(t[Rt]=uw,n.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}t.classList?.contains(Mf)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Et(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{n=this._flushAnimations(r,t)}finally{for(let o=0;o<r.length;o++)r[o]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?$n(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(t){throw function tR(e){return new _(3402,!1)}()}_flushAnimations(t,n){const r=new Xa,o=[],i=new Map,s=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(M=>{c.add(M);const S=this.driver.query(M,".ng-animate-queued",!0);for(let T=0;T<S.length;T++)c.add(S[T])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=fw(f,this.collectedEnterElements),p=new Map;let g=0;h.forEach((M,S)=>{const T=hf+g++;p.set(S,T),M.forEach(q=>Et(q,T))});const y=[],D=new Set,m=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const S=this.collectedLeaveElements[M],T=S[Rt];T&&T.setForRemoval&&(y.push(S),D.add(S),T.hasAnimation?this.driver.query(S,".ng-star-inserted",!0).forEach(q=>D.add(q)):m.add(S))}const E=new Map,b=fw(f,Array.from(D));b.forEach((M,S)=>{const T=za+g++;E.set(S,T),M.forEach(q=>Et(q,T))}),t.push(()=>{h.forEach((M,S)=>{const T=p.get(S);M.forEach(q=>fo(q,T))}),b.forEach((M,S)=>{const T=E.get(S);M.forEach(q=>fo(q,T))}),y.forEach(M=>{this.processLeaveNode(M)})});const V=[],le=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(n).forEach(T=>{const q=T.player,Ie=T.element;if(V.push(q),this.collectedEnterElements.length){const Be=Ie[Rt];if(Be&&Be.setForMove){if(Be.previousTriggersValues&&Be.previousTriggersValues.has(T.triggerName)){const pr=Be.previousTriggersValues.get(T.triggerName),bt=this.statesByElement.get(T.element);if(bt&&bt.has(T.triggerName)){const il=bt.get(T.triggerName);il.value=pr,bt.set(T.triggerName,il)}}return void q.destroy()}}const tn=!d||!this.driver.containsElement(d,Ie),pt=E.get(Ie),zn=p.get(Ie),ge=this._buildInstruction(T,r,zn,pt,tn);if(ge.errors&&ge.errors.length)return void le.push(ge);if(tn)return q.onStart(()=>dr(Ie,ge.fromStyles)),q.onDestroy(()=>en(Ie,ge.toStyles)),void o.push(q);if(T.isFallbackTransition)return q.onStart(()=>dr(Ie,ge.fromStyles)),q.onDestroy(()=>en(Ie,ge.toStyles)),void o.push(q);const Ew=[];ge.timelines.forEach(Be=>{Be.stretchStartingKeyframe=!0,this.disabledNodes.has(Be.element)||Ew.push(Be)}),ge.timelines=Ew,r.append(Ie,ge.timelines),s.push({instruction:ge,player:q,element:Ie}),ge.queriedElements.forEach(Be=>dt(a,Be,[]).push(q)),ge.preStyleProps.forEach((Be,pr)=>{if(Be.size){let bt=l.get(pr);bt||l.set(pr,bt=new Set),Be.forEach((il,Of)=>bt.add(Of))}}),ge.postStyleProps.forEach((Be,pr)=>{let bt=u.get(pr);bt||u.set(pr,bt=new Set),Be.forEach((il,Of)=>bt.add(Of))})});if(le.length){const M=[];le.forEach(S=>{M.push(function nR(e,t){return new _(3505,!1)}())}),V.forEach(S=>S.destroy()),this.reportError(M)}const ue=new Map,Ve=new Map;s.forEach(M=>{const S=M.element;r.has(S)&&(Ve.set(S,S),this._beforeAnimationBuild(M.player.namespaceId,M.instruction,ue))}),o.forEach(M=>{const S=M.element;this._getPreviousPlayers(S,!1,M.namespaceId,M.triggerName,null).forEach(q=>{dt(ue,S,[]).push(q),q.destroy()})});const ht=y.filter(M=>pw(M,l,u)),kt=new Map;dw(kt,this.driver,m,u,Cn).forEach(M=>{pw(M,l,u)&&ht.push(M)});const Ti=new Map;h.forEach((M,S)=>{dw(Ti,this.driver,new Set(M),l,"!")}),ht.forEach(M=>{const S=kt.get(M),T=Ti.get(M);kt.set(M,new Map([...S?.entries()??[],...T?.entries()??[]]))});const hr=[],Cw=[],ww={};s.forEach(M=>{const{element:S,player:T,instruction:q}=M;if(r.has(S)){if(c.has(S))return T.onDestroy(()=>en(S,q.toStyles)),T.disabled=!0,T.overrideTotalTime(q.totalTime),void o.push(T);let Ie=ww;if(Ve.size>1){let pt=S;const zn=[];for(;pt=pt.parentNode;){const ge=Ve.get(pt);if(ge){Ie=ge;break}zn.push(pt)}zn.forEach(ge=>Ve.set(ge,Ie))}const tn=this._buildAnimation(T.namespaceId,q,ue,i,Ti,kt);if(T.setRealPlayer(tn),Ie===ww)hr.push(T);else{const pt=this.playersByElement.get(Ie);pt&&pt.length&&(T.parentPlayer=$n(pt)),o.push(T)}}else dr(S,q.fromStyles),T.onDestroy(()=>en(S,q.toStyles)),Cw.push(T),c.has(S)&&o.push(T)}),Cw.forEach(M=>{const S=i.get(M.element);if(S&&S.length){const T=$n(S);M.setRealPlayer(T)}}),o.forEach(M=>{M.parentPlayer?M.syncPlayerEvents(M.parentPlayer):M.destroy()});for(let M=0;M<y.length;M++){const S=y[M],T=S[Rt];if(fo(S,za),T&&T.hasAnimation)continue;let q=[];if(a.size){let tn=a.get(S);tn&&tn.length&&q.push(...tn);let pt=this.driver.query(S,pf,!0);for(let zn=0;zn<pt.length;zn++){let ge=a.get(pt[zn]);ge&&ge.length&&q.push(...ge)}}const Ie=q.filter(tn=>!tn.destroyed);Ie.length?tk(this,S,Ie):this.processLeaveNode(S)}return y.length=0,hr.forEach(M=>{this.players.push(M),M.onDone(()=>{M.destroy();const S=this.players.indexOf(M);this.players.splice(S,1)}),M.play()}),hr}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,o,i){let s=[];if(n){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!i||i==Ii;a.forEach(u=>{u.queued||!l&&u.triggerName!=o||s.push(u)})}}return(r||o)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){const i=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const u=l.element,c=u!==i,d=dt(r,u,[]);this._getPreviousPlayers(u,c,s,a,n.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}dr(i,n.fromStyles)}_buildAnimation(t,n,r,o,i,s){const a=n.triggerName,l=n.element,u=[],c=new Set,d=new Set,f=n.timelines.map(p=>{const g=p.element;c.add(g);const y=g[Rt];if(y&&y.removedBeforeQueried)return new wi(p.duration,p.delay);const D=g!==l,m=function nk(e){const t=[];return hw(e,t),t}((r.get(g)||QR).map(ue=>ue.getRealPlayer())).filter(ue=>!!ue.element&&ue.element===g),E=i.get(g),b=s.get(g),V=UC(this._normalizer,p.keyframes,E,b),le=this._buildPlayer(p,V,m);if(p.subTimeline&&o&&d.add(g),D){const ue=new Tf(t,a,g);ue.setRealPlayer(le),u.push(ue)}return le});u.forEach(p=>{dt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function XR(e,t,n){let r=e.get(t);if(r){if(r.length){const o=r.indexOf(n);r.splice(o,1)}0==r.length&&e.delete(t)}return r}(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>Et(p,KC));const h=$n(f);return h.onDestroy(()=>{c.forEach(p=>fo(p,KC)),en(l,n.toStyles)}),d.forEach(p=>{dt(o,p,[]).push(h)}),h}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new wi(t.duration,t.delay)}}class Tf{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new wi,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>lf(t,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){dt(this._queuedCallbacks,t,[]).push(n)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const n=this._player;n.triggerCallback&&n.triggerCallback(t)}}function tl(e){return e&&1===e.nodeType}function cw(e,t){const n=e.style.display;return e.style.display=t??"none",n}function dw(e,t,n,r,o){const i=[];n.forEach(l=>i.push(cw(l)));const s=[];r.forEach((l,u)=>{const c=new Map;l.forEach(d=>{const f=t.computeStyle(u,d,o);c.set(d,f),(!f||0==f.length)&&(u[Rt]=ZR,s.push(u))}),e.set(u,c)});let a=0;return n.forEach(l=>cw(l,i[a++])),s}function fw(e,t){const n=new Map;if(e.forEach(a=>n.set(a,[])),0==t.length)return n;const o=new Set(t),i=new Map;function s(a){if(!a)return 1;let l=i.get(a);if(l)return l;const u=a.parentNode;return l=n.has(u)?u:o.has(u)?1:s(u),i.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&n.get(l).push(a)}),n}function Et(e,t){e.classList?.add(t)}function fo(e,t){e.classList?.remove(t)}function tk(e,t,n){$n(n).onDone(()=>e.processLeaveNode(t))}function hw(e,t){for(let n=0;n<e.length;n++){const r=e[n];r instanceof VC?hw(r.players,t):t.push(r)}}function pw(e,t,n){const r=n.get(e);if(!r)return!1;let o=t.get(e);return o?r.forEach(i=>o.add(i)):t.set(e,r),n.delete(e),!0}class nl{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,i)=>{},this._transitionEngine=new YR(t,n,r),this._timelineEngine=new UR(t,n,r),this._transitionEngine.onRemovalComplete=(o,i)=>this.onRemovalComplete(o,i)}registerTrigger(t,n,r,o,i){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],c=_f(this._driver,i,l,[]);if(l.length)throw function G2(e,t){return new _(3404,!1)}();a=function BR(e,t,n){return new jR(e,t,n)}(o,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,o,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,o){this._transitionEngine.insertNode(t,n,r,o)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,o){if("@"==r.charAt(0)){const[i,s]=zC(r);this._timelineEngine.command(i,n,s,o)}else this._transitionEngine.trigger(t,n,r,o)}listen(t,n,r,o,i){if("@"==r.charAt(0)){const[s,a]=zC(r);return this._timelineEngine.listen(s,n,a,i)}return this._transitionEngine.listen(t,n,r,o,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}let ik=(()=>{class e{static#e=this.initialStylesByElement=new WeakMap;constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o,this._state=0;let i=e.initialStylesByElement.get(n);i||e.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&en(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(en(this._element,this._initialStyles),this._endStyles&&(en(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(dr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(dr(this._element,this._endStyles),this._endStyles=null),en(this._element,this._initialStyles),this._state=3)}}return e})();function Af(e){let t=null;return e.forEach((n,r)=>{(function sk(e){return"display"===e||"position"===e})(r)&&(t=t||new Map,t.set(r,n))}),t}class gw{constructor(t,n,r,o){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{"offset"!==o&&t.set(o,this._finished?r:ew(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){const n="start"===t?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class ak{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return qC(t,n)}getParentElement(t){return df(t)}query(t,n,r){return WC(t,n,r)}computeStyle(t,n,r){return window.getComputedStyle(t)[n]}animate(t,n,r,o,i,s=[]){const l={duration:r,delay:o,fill:0==o?"both":"forwards"};i&&(l.easing=i);const u=new Map,c=s.filter(h=>h instanceof gw);(function pR(e,t){return 0===e||0===t})(r,o)&&c.forEach(h=>{h.currentSnapshot.forEach((p,g)=>u.set(g,p))});let d=function dR(e){return e.length?e[0]instanceof Map?e:e.map(t=>YC(t)):[]}(n).map(h=>Un(h));d=function gR(e,t,n){if(n.size&&t.length){let r=t[0],o=[];if(n.forEach((i,s)=>{r.has(s)||o.push(s),r.set(s,i)}),o.length)for(let i=1;i<t.length;i++){let s=t[i];o.forEach(a=>s.set(a,ew(e,a)))}}return t}(t,d,u);const f=function ok(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Af(t[0]),t.length>1&&(r=Af(t[t.length-1]))):t instanceof Map&&(n=Af(t)),n||r?new ik(e,n,r):null}(t,d);return new gw(t,d,l,f)}}let lk=(()=>{class e extends RC{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:mt.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(n)?LC(n):n;return mw(this._renderer,null,r,"register",[o]),new uk(r,this._renderer)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Go),k(_n))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();class uk extends r2{constructor(t,n){super(),this._id=t,this._renderer=n}create(t,n){return new ck(this._id,t,n||{},this._renderer)}}class ck{constructor(t,n,r,o){this.id=t,this.element=n,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(t,n){return this._renderer.listen(this.element,`@@${this.id}:${t}`,n)}_command(t,...n){return mw(this._renderer,this.element,this.id,t,n)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function mw(e,t,n,r,o){return e.setProperty(t,`@@${n}:${r}`,o)}const yw="@.disabled";let dk=(()=>{class e{constructor(n,r,o){this.delegate=n,this.engine=r,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(i,s)=>{const a=s?.parentNode(i);a&&s.removeChild(a,i)}}createRenderer(n,r){const i=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let c=this._rendererCache.get(i);return c||(c=new _w("",i,this.engine,()=>this._rendererCache.delete(i)),this._rendererCache.set(i,c)),c}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(s,a,n,c.name,c)};return r.data.animation.forEach(l),new fk(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,o){n>=0&&n<this._microtaskId?this._zone.run(()=>r(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(i=>{const[s,a]=i;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,o]))}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()}static#e=this.\u0275fac=function(r){return new(r||e)(k(Go),k(nl),k(de))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})();class _w{constructor(t,n,r,o){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,o=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,o)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,o){this.delegate.setAttribute(t,n,r,o)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,o){this.delegate.setStyle(t,n,r,o)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){"@"==n.charAt(0)&&n==yw?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}}class fk extends _w{constructor(t,n,r,o,i){super(n,r,o,i),this.factory=t,this.namespaceId=n}setProperty(t,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==yw?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if("@"==n.charAt(0)){const o=function hk(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(t);let i=n.slice(1),s="";return"@"!=i.charAt(0)&&([i,s]=function pk(e){const t=e.indexOf(".");return[e.substring(0,t),e.slice(t+1)]}(i)),this.engine.listen(this.namespaceId,o,i,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,n,r)}}const vw=[{provide:RC,useClass:lk},{provide:Ef,useFactory:function mk(){return new RR}},{provide:nl,useClass:(()=>{class e extends nl{constructor(n,r,o,i){super(n.body,r,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(k(_n),k(ff),k(Ef),k(ao))};static#t=this.\u0275prov=z({token:e,factory:e.\u0275fac})}return e})()},{provide:Go,useFactory:function yk(e,t,n){return new dk(e,t,n)},deps:[Rd,nl,de]}],Nf=[{provide:ff,useFactory:()=>new ak},{provide:Rg,useValue:"BrowserAnimations"},...vw],Dw=[{provide:ff,useClass:QC},{provide:Rg,useValue:"NoopAnimations"},...vw];let _k=(()=>{class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?Dw:Nf}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=on({type:e});static#n=this.\u0275inj=Bt({providers:Nf,imports:[TD]})}return e})(),vk=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=on({type:e,bootstrap:[E2]});static#n=this.\u0275inj=Bt({imports:[TD,n2,_k]})}return e})();jF().bootstrapModule(vk).catch(e=>console.error(e))}},he=>{he(he.s=874)}]);