diff --git a/main.js b/main.js index c4f9bd25..1c7c2ac8 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebui=self.webpackChunkwebui||[]).push([[179],{361:()=>{function ui(t){return"function"==typeof t}let Lo=!1;const $t={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Lo&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Lo=t},get useDeprecatedSynchronousErrorHandling(){return Lo}};function hi(t){setTimeout(()=>{throw t},0)}const Ta={closed:!0,next(t){},error(t){if($t.useDeprecatedSynchronousErrorHandling)throw t;hi(t)},complete(){}},br=Array.isArray||(t=>t&&"number"==typeof t.length);function Bd(t){return null!==t&&"object"==typeof t}const Aa=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,n)=>`${n+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class me{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof me)i.remove(this);else if(null!==i)for(let s=0;se.concat(i instanceof Aa?i.errors:i),[])}me.EMPTY=((t=new me).closed=!0,t);const Ra="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ge extends me{constructor(e,i,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ta;break;case 1:if(!e){this.destination=Ta;break}if("object"==typeof e){e instanceof ge?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Qm(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Qm(this,e,i,n)}}[Ra](){return this}static create(e,i,n){const r=new ge(e,i,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Qm extends ge{constructor(e,i,n,r){super(),this._parentSubscriber=e;let o,s=this;ui(i)?o=i:i&&(o=i.next,n=i.error,r=i.complete,i!==Ta&&(s=Object.create(i),ui(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;$t.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:n}=$t;if(this._error)n&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(i.syncErrorThrowable)n?(i.syncErrorValue=e,i.syncErrorThrown=!0):hi(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;hi(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const i=()=>this._complete.call(this._context);$t.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,i){try{e.call(this._context,i)}catch(n){if(this.unsubscribe(),$t.useDeprecatedSynchronousErrorHandling)throw n;hi(n)}}__tryOrSetError(e,i,n){if(!$t.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,n)}catch(r){return $t.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(hi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Vo="function"==typeof Symbol&&Symbol.observable||"@@observable";function ka(t){return t}function Km(t){return 0===t.length?ka:1===t.length?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}let we=(()=>{class t{constructor(i){this._isScalar=!1,i&&(this._subscribe=i)}lift(i){const n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){const{operator:o}=this,s=function tI(t,e,i){if(t){if(t instanceof ge)return t;if(t[Ra])return t[Ra]()}return t||e||i?new ge(t,e,i):new ge(Ta)}(i,n,r);if(s.add(o?o.call(s,this.source):this.source||$t.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),$t.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(i){try{return this._subscribe(i)}catch(n){$t.useDeprecatedSynchronousErrorHandling&&(i.syncErrorThrown=!0,i.syncErrorValue=n),function eI(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof ge?i:null}return!0}(i)?i.error(n):console.warn(n)}}forEach(i,n){return new(n=Jm(n))((r,o)=>{let s;s=this.subscribe(a=>{try{i(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(i){const{source:n}=this;return n&&n.subscribe(i)}[Vo](){return this}pipe(...i){return 0===i.length?this:Km(i)(this)}toPromise(i){return new(i=Jm(i))((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Jm(t){if(t||(t=$t.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const wr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class iI extends me{constructor(e,i){super(),this.subject=e,this.subscriber=i,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,i=e.observers;if(this.subject=null,!i||0===i.length||e.isStopped||e.closed)return;const n=i.indexOf(this.subscriber);-1!==n&&i.splice(n,1)}}class eg extends ge{constructor(e){super(e),this.destination=e}}let de=(()=>{class t extends we{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ra](){return new eg(this)}lift(i){const n=new tg(this,this);return n.operator=i,n}next(i){if(this.closed)throw new wr;if(!this.isStopped){const{observers:n}=this,r=n.length,o=n.slice();for(let s=0;snew tg(e,i),t})();class tg extends de{constructor(e,i){super(),this.destination=e,this.source=i}next(e){const{destination:i}=this;i&&i.next&&i.next(e)}error(e){const{destination:i}=this;i&&i.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:i}=this;return i?this.source.subscribe(e):me.EMPTY}}class At extends de{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const i=super._subscribe(e);return i&&!i.closed&&e.next(this._value),i}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new wr;return this._value}next(e){super.next(this._value=e)}}function Cr(t){return t&&"function"==typeof t.schedule}function Y(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new rI(t,e))}}class rI{constructor(e,i){this.project=e,this.thisArg=i}call(e,i){return i.subscribe(new oI(e,this.project,this.thisArg))}}class oI extends ge{constructor(e,i,n){super(e),this.project=i,this.count=0,this.thisArg=n||this}_next(e){let i;try{i=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(i)}}const ng=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function rg(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const jd=t=>{if(t&&"function"==typeof t[Vo])return(t=>e=>{const i=t[Vo]();if("function"!=typeof i.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return i.subscribe(e)})(t);if(ig(t))return ng(t);if(rg(t))return(t=>e=>(t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,hi),e))(t);if(t&&"function"==typeof t[Oa])return(t=>e=>{const i=t[Oa]();for(;;){let n;try{n=i.next()}catch(r){return e.error(r),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof i.return&&e.add(()=>{i.return&&i.return()}),e})(t);{const i=`You provided ${Bd(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(i)}};function Hd(t,e){return new we(i=>{const n=new me;let r=0;return n.add(e.schedule(function(){r!==t.length?(i.next(t[r++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function Ze(t,e){return e?function mI(t,e){if(null!=t){if(function fI(t){return t&&"function"==typeof t[Vo]}(t))return function dI(t,e){return new we(i=>{const n=new me;return n.add(e.schedule(()=>{const r=t[Vo]();n.add(r.subscribe({next(o){n.add(e.schedule(()=>i.next(o)))},error(o){n.add(e.schedule(()=>i.error(o)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(rg(t))return function uI(t,e){return new we(i=>{const n=new me;return n.add(e.schedule(()=>t.then(r=>{n.add(e.schedule(()=>{i.next(r),n.add(e.schedule(()=>i.complete()))}))},r=>{n.add(e.schedule(()=>i.error(r)))}))),n})}(t,e);if(ig(t))return Hd(t,e);if(function pI(t){return t&&"function"==typeof t[Oa]}(t)||"string"==typeof t)return function hI(t,e){if(!t)throw new Error("Iterable cannot be null");return new we(i=>{const n=new me;let r;return n.add(()=>{r&&"function"==typeof r.return&&r.return()}),n.add(e.schedule(()=>{r=t[Oa](),n.add(e.schedule(function(){if(i.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void i.error(a)}s?i.complete():(i.next(o),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof we?t:new we(jd(t))}class Bo extends ge{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class jo extends ge{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Ho(t,e){if(e.closed)return;if(t instanceof we)return t.subscribe(e);let i;try{i=jd(t)(e)}catch(n){e.error(n)}return i}function tt(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(tt((r,o)=>Ze(t(r,o)).pipe(Y((s,a)=>e(r,s,o,a))),i)):("number"==typeof e&&(i=e),n=>n.lift(new gI(t,i)))}class gI{constructor(e,i=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=i}call(e,i){return i.subscribe(new _I(e,this.project,this.concurrent))}}class _I extends jo{constructor(e,i,n=Number.POSITIVE_INFINITY){super(e),this.project=i,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function xr(t=Number.POSITIVE_INFINITY){return tt(ka,t)}function Ud(t,e){return e?Hd(t,e):new we(ng(t))}function Uo(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return Cr(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof we?t[0]:xr(e)(Ud(t,i))}function O(...t){let e=t[t.length-1];return Cr(e)?(t.pop(),Hd(t,e)):Ud(t)}function Pa(){return function(e){return e.lift(new vI(e))}}class vI{constructor(e){this.connectable=e}call(e,i){const{connectable:n}=this;n._refCount++;const r=new yI(e,n),o=i.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class yI extends ge{constructor(e,i){super(e),this.connectable=i}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const i=e._refCount;if(i<=0)return void(this.connection=null);if(e._refCount=i-1,i>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}class $d extends we{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new me,e.add(this.source.subscribe(new wI(this.getSubject(),this))),e.closed&&(this._connection=null,e=me.EMPTY)),e}refCount(){return Pa()(this)}}const bI=(()=>{const t=$d.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class wI extends eg{constructor(e,i){super(e),this.connectable=i}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const i=e._connection;e._refCount=0,e._subject=null,e._connection=null,i&&i.unsubscribe()}}}class DI{constructor(e,i){this.subjectFactory=e,this.selector=i}call(e,i){const{selector:n}=this,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(i.subscribe(r)),o}}function EI(){return new de}function zd(){return t=>Pa()(function xI(t,e){return function(n){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new DI(r,e));const o=Object.create(n,bI);return o.source=n,o.subjectFactory=r,o}}(EI)(t))}function zt(t,e){return"function"==typeof e?i=>i.pipe(zt((n,r)=>Ze(t(n,r)).pipe(Y((o,s)=>e(n,o,r,s))))):i=>i.lift(new SI(t))}class SI{constructor(e){this.project=e}call(e,i){return i.subscribe(new II(e,this.project))}}class II extends jo{constructor(e,i){super(e),this.project=i,this.index=0}_next(e){let i;const n=this.index++;try{i=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(i)}_innerSub(e){const i=this.innerSubscription;i&&i.unsubscribe();const n=new Bo(this),r=this.destination;r.add(n),this.innerSubscription=Ho(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}function og(t,e){return i=>i.lift(new MI(t,e))}class MI{constructor(e,i){this.compare=e,this.keySelector=i}call(e,i){return i.subscribe(new TI(e,this.compare,this.keySelector))}}class TI extends ge{constructor(e,i,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof i&&(this.compare=i)}compare(e,i){return e===i}_next(e){let i;try{const{keySelector:r}=this;i=r?r(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:r}=this;n=r(this.key,i)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=i,this.destination.next(e))}}function ue(t){for(let e in t)if(t[e]===ue)return e;throw Error("Could not find renamed property on target object.")}function Na(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function Ue(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ue).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function Gd(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const AI=ue({__forward_ref__:ue});function _e(t){return t.__forward_ref__=_e,t.toString=function(){return Ue(this())},t}function j(t){return qd(t)?t():t}function qd(t){return"function"==typeof t&&t.hasOwnProperty(AI)&&t.__forward_ref__===_e}function Wd(t){return t&&!!t.\u0275providers}const sg="https://g.co/ng/security#xss";class v extends Error{constructor(e,i){super(function Fa(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,i)),this.code=e}}function H(t){return"string"==typeof t?t:null==t?"":String(t)}function Yd(t,e){throw new v(-201,!1)}function Gt(t,e){null==t&&function L(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${i} ${n} ${e} <=Actual]`))}(e,t,null,"!=")}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ee(t){return{providers:t.providers||[],imports:t.imports||[]}}function La(t){return ag(t,Ba)||ag(t,lg)}function ag(t,e){return t.hasOwnProperty(e)?t[e]:null}function Va(t){return t&&(t.hasOwnProperty(Zd)||t.hasOwnProperty(VI))?t[Zd]:null}const Ba=ue({\u0275prov:ue}),Zd=ue({\u0275inj:ue}),lg=ue({ngInjectableDef:ue}),VI=ue({ngInjectorDef:ue});var Z=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Z||{});let Xd;function bt(t){const e=Xd;return Xd=t,e}function dg(t,e,i){const n=La(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Z.Optional?null:void 0!==e?e:void Yd(Ue(t))}const ve=globalThis,$o={},tu="__NG_DI_FLAG__",ja="ngTempTokenPath",HI=/\n/gm,hg="__source";let Dr;function fi(t){const e=Dr;return Dr=t,e}function zI(t,e=Z.Default){if(void 0===Dr)throw new v(-203,!1);return null===Dr?dg(t,void 0,e):Dr.get(t,e&Z.Optional?null:void 0,e)}function b(t,e=Z.Default){return(function cg(){return Xd}()||zI)(j(t),e)}function E(t,e=Z.Default){return b(t,Ha(e))}function Ha(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function nu(t){const e=[];for(let i=0;ie){s=o-1;break}}}for(;oo?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==gg(f,c,0)||2&n&&c!==h){if(cn(n))return!1;s=!0}}}}else{if(!s&&!cn(n)&&!cn(l))return!1;if(s&&cn(l))continue;s=!1,n=l|1&n}}return cn(n)||s}function cn(t){return 0==(1&t)}function QI(t,e,i,n){if(null===e)return-1;let r=0;if(n||!i){let o=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!cn(s)&&(e+=xg(o,r),r=""),n=s,o=o||!cn(n);i++}return""!==r&&(e+=xg(o,r)),e}function Wt(t){return Un(()=>{const e=Eg(t),i={...e,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ua.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||qt.Emulated,styles:t.styles||ie,_:null,schemas:t.schemas||null,tView:null,id:""};Sg(i);const n=t.dependencies;return i.directiveDefs=za(n,!1),i.pipeDefs=za(n,!0),i.id=function dM(t){let e=0;const i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}(i),i})}function sM(t){return J(t)||Xe(t)}function aM(t){return null!==t}function Se(t){return Un(()=>({type:t.type,bootstrap:t.bootstrap||ie,declarations:t.declarations||ie,imports:t.imports||ie,exports:t.exports||ie,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Dg(t,e){if(null==t)return Cn;const i={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,e&&(e[r]=o)}return i}function A(t){return Un(()=>{const e=Eg(t);return Sg(e),e})}function wt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function J(t){return t[$a]||null}function Xe(t){return t[iu]||null}function ct(t){return t[ru]||null}function kt(t,e){const i=t[pg]||null;if(!i&&!0===e)throw new Error(`Type ${Ue(t)} does not have '\u0275mod' property.`);return i}function Eg(t){const e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Cn,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||ie,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Dg(t.inputs,e),outputs:Dg(t.outputs)}}function Sg(t){t.features?.forEach(e=>e(t))}function za(t,e){if(!t)return null;const i=e?ct:sM;return()=>("function"==typeof t?t():t).map(n=>i(n)).filter(aM)}const Pe=0,S=1,z=2,Ie=3,dn=4,Wo=5,nt=6,Sr=7,Ne=8,pi=9,Ir=10,U=11,Yo=12,Ig=13,Mr=14,Fe=15,Zo=16,Tr=17,xn=18,Xo=19,Mg=20,mi=21,zn=22,Ga=23,qa=24,K=25,su=1,Tg=2,Dn=7,Ar=9,Qe=11;function Ct(t){return Array.isArray(t)&&"object"==typeof t[su]}function xt(t){return Array.isArray(t)&&!0===t[su]}function au(t){return 0!=(4&t.flags)}function Li(t){return t.componentOffset>-1}function Ya(t){return 1==(1&t.flags)}function un(t){return!!t.template}function lu(t){return 0!=(512&t[z])}function Vi(t,e){return t.hasOwnProperty($n)?t[$n]:null}let gM=ve.WeakRef??class mM{constructor(e){this.ref=e}deref(){return this.ref}},vM=0,En=null,Za=!1;function We(t){const e=En;return En=t,e}class Pg{constructor(){this.id=vM++,this.ref=function _M(t){return new gM(t)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[e,i]of this.producers){const n=i.producerNode.deref();if(null!=n&&i.atTrackingVersion===this.trackingVersion){if(n.producerPollStatus(i.seenValueVersion))return!0}else this.producers.delete(e),n?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const e=Za;Za=!0;try{for(const[i,n]of this.consumers){const r=n.consumerNode.deref();null!=r&&r.trackingVersion===n.atTrackingVersion?r.onConsumerDependencyMayHaveChanged():(this.consumers.delete(i),r?.producers.delete(this.id))}}finally{Za=e}}producerAccessed(){if(Za)throw new Error("");if(null===En)return;let e=En.producers.get(this.id);void 0===e?(e={consumerNode:En.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:En.trackingVersion},En.producers.set(this.id,e),this.consumers.set(En.id,e)):(e.seenValueVersion=this.valueVersion,e.atTrackingVersion=En.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==En?.consumerAllowSignalWrites}producerPollStatus(e){return this.valueVersion!==e||(this.onProducerUpdateValueVersion(),this.valueVersion!==e)}}let Ng=null;const Lg=()=>{};class CM extends Pg{constructor(e,i,n){super(),this.watch=e,this.schedule=i,this.dirty=!1,this.cleanupFn=Lg,this.registerOnCleanup=r=>{this.cleanupFn=r},this.consumerAllowSignalWrites=n}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const e=We(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Lg,this.watch(this.registerOnCleanup)}finally{We(e)}}cleanup(){this.cleanupFn()}}class xM{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ot(){return Vg}function Vg(t){return t.type.prototype.ngOnChanges&&(t.setInput=EM),DM}function DM(){const t=jg(this),e=t?.current;if(e){const i=t.previous;if(i===Cn)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function EM(t,e,i,n){const r=this.declaredInputs[i],o=jg(t)||function SM(t,e){return t[Bg]=e}(t,{previous:Cn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new xM(l&&l.currentValue,e,a===Cn),t[n]=e}Ot.ngInherit=!0;const Bg="__ngSimpleChanges__";function jg(t){return t[Bg]||null}const Sn=function(t,e,i){},Hg="svg";function Ce(t){for(;Array.isArray(t);)t=t[Pe];return t}function Ka(t,e){return Ce(e[t])}function Dt(t,e){return Ce(e[t.index])}function $g(t,e){return t.data[e]}function Pt(t,e){const i=e[t];return Ct(i)?i:i[Pe]}function gi(t,e){return null==e?null:t[e]}function zg(t){t[Tr]=0}function OM(t){1024&t[z]||(t[z]|=1024,qg(t,1))}function Gg(t){1024&t[z]&&(t[z]&=-1025,qg(t,-1))}function qg(t,e){let i=t[Ie];if(null===i)return;i[Wo]+=e;let n=i;for(i=i[Ie];null!==i&&(1===e&&1===n[Wo]||-1===e&&0===n[Wo]);)i[Wo]+=e,n=i,i=i[Ie]}const V={lFrame:o_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Zg(){return V.bindingsEnabled}function kr(){return null!==V.skipHydrationRootTNode}function w(){return V.lFrame.lView}function ee(){return V.lFrame.tView}function Ke(){let t=Kg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Kg(){return V.lFrame.currentTNode}function In(t,e){const i=V.lFrame;i.currentTNode=t,i.isParent=e}function pu(){return V.lFrame.isParent}function mu(){V.lFrame.isParent=!1}function Or(){return V.lFrame.bindingIndex++}function GM(t,e){const i=V.lFrame;i.bindingIndex=i.bindingRootIndex=t,gu(e)}function gu(t){V.lFrame.currentDirectiveIndex=t}function n_(){return V.lFrame.currentQueryIndex}function vu(t){V.lFrame.currentQueryIndex=t}function WM(t){const e=t[S];return 2===e.type?e.declTNode:1===e.type?t[nt]:null}function i_(t,e,i){if(i&Z.SkipSelf){let r=e,o=t;for(;!(r=r.parent,null!==r||i&Z.Host||(r=WM(o),null===r||(o=o[Mr],10&r.type))););if(null===r)return!1;e=r,t=o}const n=V.lFrame=r_();return n.currentTNode=e,n.lView=t,!0}function yu(t){const e=r_(),i=t[S];V.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function r_(){const t=V.lFrame,e=null===t?null:t.child;return null===e?o_(t):e}function o_(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function s_(){const t=V.lFrame;return V.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const a_=s_;function bu(){const t=s_();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ut(){return V.lFrame.selectedIndex}function Bi(t){V.lFrame.selectedIndex=t}function Me(){const t=V.lFrame;return $g(t.tView,t.selectedIndex)}let d_=!0;function Ja(){return d_}function _i(t){d_=t}function el(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[l]<0&&(t[Tr]+=65536),(a>13>16&&(3&t[z])===e&&(t[z]+=8192,h_(a,o)):h_(a,o)}const Pr=-1;class Jo{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function xu(t){return t!==Pr}function es(t){return 32767&t}function ts(t,e){let i=function rT(t){return t>>16}(t),n=e;for(;i>0;)n=n[Mr],i--;return n}let Du=!0;function il(t){const e=Du;return Du=t,e}const f_=255,p_=5;let oT=0;const Mn={};function rl(t,e){const i=m_(t,e);if(-1!==i)return i;const n=e[S];n.firstCreatePass&&(t.injectorIndex=e.length,Eu(n.data,t),Eu(e,null),Eu(n.blueprint,null));const r=ol(t,e),o=t.injectorIndex;if(xu(r)){const s=es(r),a=ts(r,e),l=a[S].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function Eu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function m_(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ol(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;null!==r;){if(n=C_(r),null===n)return Pr;if(i++,r=r[Mr],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Pr}function Su(t,e,i){!function sT(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Go)&&(n=i[Go]),null==n&&(n=i[Go]=oT++);const r=n&f_;e.data[t+(r>>p_)]|=1<=0?e&f_:uT:e}(i);if("function"==typeof o){if(!i_(e,t,n))return n&Z.Host?g_(r,0,n):__(e,i,n,r);try{let s;if(s=o(n),null!=s||n&Z.Optional)return s;Yd()}finally{a_()}}else if("number"==typeof o){let s=null,a=m_(t,e),l=Pr,c=n&Z.Host?e[Fe][nt]:null;for((-1===a||n&Z.SkipSelf)&&(l=-1===a?ol(t,e):e[a+8],l!==Pr&&w_(n,!1)?(s=e[S],a=es(l),e=ts(l,e)):a=-1);-1!==a;){const d=e[S];if(b_(o,a,d.data)){const u=lT(a,e,i,s,n,c);if(u!==Mn)return u}l=e[a+8],l!==Pr&&w_(n,e[S].data[a+8]===c)&&b_(o,a,e)?(s=d,a=es(l),e=ts(l,e)):a=-1}}return r}function lT(t,e,i,n,r,o){const s=e[S],a=s.data[t+8],d=sl(a,s,i,null==n?Li(a)&&Du:n!=s&&0!=(3&a.type),r&Z.Host&&o===a);return null!==d?ji(e,s,d,a):Mn}function sl(t,e,i,n,r){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,d=o>>20,h=r?a+d:t.directiveEnd;for(let f=n?a:a+d;f=l&&p.type===i)return f}if(r){const f=s[l];if(f&&un(f)&&f.type===i)return l}return null}function ji(t,e,i,n){let r=t[i];const o=e.data;if(function tT(t){return t instanceof Jo}(r)){const s=r;s.resolving&&function RI(t,e){const i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new v(-200,`Circular dependency in DI detected for ${t}${i}`)}(function ce(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():H(t)}(o[i]));const a=il(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?bt(s.injectImpl):null;i_(t,n,Z.Default);try{r=t[i]=s.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function JM(t,e,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){const s=Vg(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}(i,o[i],e)}finally{null!==c&&bt(c),il(a),s.resolving=!1,a_()}}return r}function b_(t,e,i){return!!(i[e+(t>>p_)]&1<{const e=t.prototype.constructor,i=e[$n]||Iu(e),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[$n]||Iu(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Iu(t){return qd(t)?()=>{const e=Iu(j(t));return e&&e()}:Vi(t)}function C_(t){const e=t[S],i=e.type;return 2===i?e.declTNode:1===i?t[nt]:null}function Hi(t){return function aT(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const n=i.length;let r=0;for(;r{const n=function Mu(t){return function(...i){if(t){const n=t(...i);for(const r in n)this[r]=n[r]}}}(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(Fr)?l[Fr]:Object.defineProperty(l,Fr,{value:[]})[Fr];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function jr(t,e){t.forEach(i=>Array.isArray(i)?jr(i,e):e(i))}function D_(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function al(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rs(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function yT(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function Tu(t,e){const i=Hr(t,e);if(i>=0)return t[1|i]}function Hr(t,e){return function E_(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){const o=n+(r-n>>1),s=t[o<e?r=o:n=o+1}return~(r<|^->||--!>|)/,UT="\u200b$1\u200b";const Pu=new Map;let $T=0;const Fu="__ngContext__";function it(t,e){Ct(e)?(t[Fu]=e[Xo],function GT(t){Pu.set(t[Xo],t)}(e)):t[Fu]=e}let Lu;function Vu(t,e){return Lu(t,e)}function ls(t){const e=t[Ie];return xt(e)?e[Ie]:e}function G_(t){return W_(t[Yo])}function q_(t){return W_(t[dn])}function W_(t){for(;null!==t&&!xt(t);)t=t[dn];return t}function zr(t,e,i,n,r){if(null!=n){let o,s=!1;xt(n)?o=n:Ct(n)&&(s=!0,n=n[Pe]);const a=Ce(n);0===t&&null!==i?null==r?Q_(e,i,a):$i(e,i,a,r||null,!0):1===t&&null!==i?$i(e,i,a,r||null,!0):2===t?function bl(t,e,i){const n=vl(t,e);n&&function dA(t,e,i,n){t.removeChild(e,i,n)}(t,n,e,i)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function fA(t,e,i,n,r){const o=i[Dn];o!==Ce(i)&&zr(e,t,n,o,r);for(let a=Qe;ae.replace(HT,UT))}(e))}function gl(t,e,i){return t.createElement(e,i)}function Z_(t,e){const i=t[Ar],n=i.indexOf(e);Gg(e),i.splice(n,1)}function _l(t,e){if(t.length<=Qe)return;const i=Qe+e,n=t[i];if(n){const r=n[Zo];null!==r&&r!==t&&Z_(r,n),e>0&&(t[i-1][dn]=n[dn]);const o=al(t,Qe+e);!function nA(t,e){ds(t,e,e[U],2,null,null),e[Pe]=null,e[nt]=null}(n[S],n);const s=o[xn];null!==s&&s.detachView(o[S]),n[Ie]=null,n[dn]=null,n[z]&=-129}return n}function ju(t,e){if(!(256&e[z])){const i=e[U];e[Ga]?.destroy(),e[qa]?.destroy(),i.destroyNode&&ds(t,e,i,3,null,null),function oA(t){let e=t[Yo];if(!e)return Hu(t[S],t);for(;e;){let i=null;if(Ct(e))i=e[Yo];else{const n=e[Qe];n&&(i=n)}if(!i){for(;e&&!e[dn]&&e!==t;)Ct(e)&&Hu(e[S],e),e=e[Ie];null===e&&(e=t),Ct(e)&&Hu(e[S],e),i=e&&e[dn]}e=i}}(e)}}function Hu(t,e){if(!(256&e[z])){e[z]&=-129,e[z]|=256,function cA(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s]():n[-s].unsubscribe(),o+=2}else i[o].call(n[i[o+1]]);null!==n&&(e[Sr]=null);const r=e[mi];if(null!==r){e[mi]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===qt.None||o===qt.Emulated)return null}return Dt(n,i)}}(t,e.parent,i)}function $i(t,e,i,n,r){t.insertBefore(e,i,n,r)}function Q_(t,e,i){t.appendChild(e,i)}function K_(t,e,i,n,r){null!==n?$i(t,e,i,n,r):Q_(t,e,i)}function vl(t,e){return t.parentNode(e)}function J_(t,e,i){return tv(t,e,i)}let $u,wl,Wu,tv=function ev(t,e,i){return 40&t.type?Dt(t,i):null};function yl(t,e,i,n){const r=Uu(t,n,e),o=e[U],a=J_(n.parent||e[nt],n,e);if(null!=r)if(Array.isArray(i))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return wl}()?.createHTML(t)||t}class zi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${sg})`}}class bA extends zi{getTypeName(){return"HTML"}}class wA extends zi{getTypeName(){return"Style"}}class CA extends zi{getTypeName(){return"Script"}}class xA extends zi{getTypeName(){return"URL"}}class DA extends zi{getTypeName(){return"ResourceURL"}}function Ft(t){return t instanceof zi?t.changingThisBreaksApplicationSecurity:t}function Tn(t,e){const i=function EA(t){return t instanceof zi&&t.getTypeName()||null}(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${sg})`)}return i===e}class RA{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const i=(new window.DOMParser).parseFromString(Gr(e),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}}class kA{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const i=this.inertDocument.createElement("template");return i.innerHTML=Gr(e),i}}const PA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function xl(t){return(t=String(t)).match(PA)?t:"unsafe:"+t}function Wn(t){const e={};for(const i of t.split(","))e[i]=!0;return e}function us(...t){const e={};for(const i of t)for(const n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}const hv=Wn("area,br,col,hr,img,wbr"),fv=Wn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pv=Wn("rp,rt"),Zu=us(hv,us(fv,Wn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),us(pv,Wn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),us(pv,fv)),Xu=Wn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mv=us(Xu,Wn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Wn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),NA=Wn("script,style,template");class FA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(e){const i=e.nodeName.toLowerCase();if(!Zu.hasOwnProperty(i))return this.sanitizedSomething=!0,!NA.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const i=e.nodeName.toLowerCase();Zu.hasOwnProperty(i)&&!hv.hasOwnProperty(i)&&(this.buf.push(""))}chars(e){this.buf.push(gv(e))}checkClobberedElement(e,i){if(i&&(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return i}}const LA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VA=/([^\#-~ |!])/g;function gv(t){return t.replace(/&/g,"&").replace(LA,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(VA,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Dl;function _v(t,e){let i=null;try{Dl=Dl||function uv(t){const e=new kA(t);return function OA(){try{return!!(new window.DOMParser).parseFromString(Gr(""),"text/html")}catch{return!1}}()?new RA(e):e}(t);let n=e?String(e):"";i=Dl.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Dl.getInertBodyElement(n)}while(n!==o);return Gr((new FA).sanitizeChildren(Qu(i)||i))}finally{if(i){const n=Qu(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Qu(t){return"content"in t&&function BA(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Je=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Je||{});function Wr(t){const e=function hs(){const t=w();return t&&t[Ir].sanitizer}();return e?e.sanitize(Je.URL,t)||"":Tn(t,"URL")?Ft(t):xl(H(t))}class C{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=D({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const fs=new C("ENVIRONMENT_INITIALIZER"),bv=new C("INJECTOR",-1),wv=new C("INJECTOR_DEF_TYPES");class Ku{get(e,i=$o){if(i===$o){const n=new Error(`NullInjectorError: No provider for ${Ue(e)}!`);throw n.name="NullInjectorError",n}return i}}function qA(...t){return{\u0275providers:xv(0,t),\u0275fromNgModule:!0}}function xv(t,...e){const i=[],n=new Set;let r;const o=s=>{i.push(s)};return jr(e,s=>{const a=s;El(a,o,[],n)&&(r||=[],r.push(a))}),void 0!==r&&Dv(r,o),i}function Dv(t,e){for(let i=0;i{e(o,n)})}}function El(t,e,i,n){if(!(t=j(t)))return!1;let r=null,o=Va(t);const s=!o&&J(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=Va(l),!o)return!1;r=l}const a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)El(c,e,i,n)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;n.add(r);try{jr(o.imports,d=>{El(d,e,i,n)&&(c||=[],c.push(d))})}finally{}void 0!==c&&Dv(c,e)}if(!a){const c=Vi(r)||(()=>new r);e({provide:r,useFactory:c,deps:ie},r),e({provide:wv,useValue:r,multi:!0},r),e({provide:fs,useValue:()=>b(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=t;Ju(l,d=>{e(d,c)})}}}return r!==t&&void 0!==t.providers}function Ju(t,e){for(let i of t)Wd(i)&&(i=i.\u0275providers),Array.isArray(i)?Ju(i,e):e(i)}const WA=ue({provide:String,useValue:ue});function eh(t){return null!==t&&"object"==typeof t&&WA in t}function Gi(t){return"function"==typeof t}const th=new C("Set Injector scope."),Sl={},ZA={};let nh;function Il(){return void 0===nh&&(nh=new Ku),nh}class Zt{}class Ml extends Zt{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,rh(e,s=>this.processProvider(s)),this.records.set(bv,Yr(void 0,this)),r.has("environment")&&this.records.set(Zt,Yr(void 0,this));const o=this.records.get(th);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(wv.multi,ie,Z.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const i=fi(this),n=bt(void 0);try{return e()}finally{fi(i),bt(n)}}get(e,i=$o,n=Z.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(mg))return e[mg](this);n=Ha(n);const o=fi(this),s=bt(void 0);try{if(!(n&Z.SkipSelf)){let l=this.records.get(e);if(void 0===l){const c=function e1(t){return"function"==typeof t||"object"==typeof t&&t instanceof C}(e)&&La(e);l=c&&this.injectableDefInScope(c)?Yr(ih(e),Sl):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(n&Z.Self?Il():this.parent).get(e,i=n&Z.Optional&&i===$o?null:i)}catch(a){if("NullInjectorError"===a.name){if((a[ja]=a[ja]||[]).unshift(Ue(e)),o)throw a;return function qI(t,e,i,n){const r=t[ja];throw e[hg]&&r.unshift(e[hg]),t.message=function WI(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=Ue(e);if(Array.isArray(e))r=e.map(Ue).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ue(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(HI,"\n ")}`}("\n"+t.message,r,i,n),t.ngTokenPath=r,t[ja]=null,t}(a,e,"R3InjectorError",this.source)}throw a}finally{bt(s),fi(o)}}resolveInjectorInitializers(){const e=fi(this),i=bt(void 0);try{const r=this.get(fs.multi,ie,Z.Self);for(const o of r)o()}finally{fi(e),bt(i)}}toString(){const e=[],i=this.records;for(const n of i.keys())e.push(Ue(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(e){let i=Gi(e=j(e))?e:j(e&&e.provide);const n=function QA(t){return eh(t)?Yr(void 0,t.useValue):Yr(Iv(t),Sl)}(e);if(Gi(e)||!0!==e.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=Yr(void 0,Sl,!0),r.factory=()=>nu(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){return i.value===Sl&&(i.value=ZA,i.value=i.factory()),"object"==typeof i.value&&i.value&&function JA(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(e){if(!e.providedIn)return!1;const i=j(e.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){const i=this._onDestroyHooks.indexOf(e);-1!==i&&this._onDestroyHooks.splice(i,1)}}function ih(t){const e=La(t),i=null!==e?e.factory:Vi(t);if(null!==i)return i;if(t instanceof C)throw new v(204,!1);if(t instanceof Function)return function XA(t){const e=t.length;if(e>0)throw rs(e,"?"),new v(204,!1);const i=function LI(t){return t&&(t[Ba]||t[lg])||null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new v(204,!1)}function Iv(t,e,i){let n;if(Gi(t)){const r=j(t);return Vi(r)||ih(r)}if(eh(t))n=()=>j(t.useValue);else if(function Sv(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...nu(t.deps||[]));else if(function Ev(t){return!(!t||!t.useExisting)}(t))n=()=>b(j(t.useExisting));else{const r=j(t&&(t.useClass||t.provide));if(!function KA(t){return!!t.deps}(t))return Vi(r)||ih(r);n=()=>new r(...nu(t.deps))}return n}function Yr(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function rh(t,e){for(const i of t)Array.isArray(i)?rh(i,e):i&&Wd(i)?rh(i.\u0275providers,e):e(i)}const ps=new C("AppId",{providedIn:"root",factory:()=>t1}),t1="ng",Mv=new C("Platform Initializer"),qi=new C("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Yn=new C("AnimationModuleType"),oh=new C("CSP nonce",{providedIn:"root",factory:()=>function qr(){if(void 0!==Wu)return Wu;if(typeof document<"u")return document;throw new v(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Av=(t,e,i)=>null;function hh(t,e,i=!1){return Av(t,e,i)}class h1{}class Ov{}class p1{resolveComponentFactory(e){throw function f1(t){const e=Error(`No component factory found for ${Ue(t)}.`);return e.ngComponent=t,e}(e)}}let vs=(()=>{class e{}return e.NULL=new p1,e})();function m1(){return Xr(Ke(),w())}function Xr(t,e){return new he(Dt(t,e))}let he=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=m1,e})();function g1(t){return t instanceof he?t.nativeElement:t}class ys{}let Zn=(()=>{class e{constructor(){this.destroyNode=null}}return e.__NG_ELEMENT_ID__=()=>function _1(){const t=w(),i=Pt(Ke().index,t);return(Ct(i)?i:t)[U]}(),e})(),v1=(()=>{var t;class e{}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>null}),e})();class Wi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const y1=new Wi("16.2.0"),mh={};function Vv(t,e=null,i=null,n){const r=Bv(t,e,i,n);return r.resolveInjectorInitializers(),r}function Bv(t,e=null,i=null,n,r=new Set){const o=[i||ie,qA(t)];return n=n||("object"==typeof t?void 0:Ue(t)),new Ml(o,e||Il(),n||null,r)}let rt=(()=>{var t;class e{static create(n,r){if(Array.isArray(n))return Vv({name:""},r,n,"");{const o=n.name??"";return Vv({name:o},n.parent,n.providers,o)}}}return(t=e).THROW_IF_NOT_FOUND=$o,t.NULL=new Ku,t.\u0275prov=D({token:t,providedIn:"any",factory:()=>b(bv)}),t.__NG_ELEMENT_ID__=-1,e})();function Xn(t){return t instanceof Function?t():t}let vh=(()=>{var t;class e{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new v(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const n of this.callbacks)n.invoke()}finally{this.runningCallbacks=!1;for(const n of this.deferredCallbacks)this.callbacks.add(n);this.deferredCallbacks.clear()}}register(n){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(n)}unregister(n){this.callbacks.delete(n),this.deferredCallbacks.delete(n)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>new t}),e})();function bs(t){for(;t;){t[z]|=64;const e=ls(t);if(lu(t)&&!e)return t;t=e}return null}function yh(t){return t.ngOriginalError}class An{constructor(){this._console=console}handleError(e){const i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&yh(e);for(;i&&yh(i);)i=yh(i);return i||null}}const zv=new C("",{providedIn:"root",factory:()=>!1});class Yv extends Pg{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(e){this._lView=e}onConsumerDependencyMayHaveChanged(){bs(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(e,i,n){const r=We(this);this.trackingVersion++;try{e(i,n)}finally{We(r)}}destroy(){this.trackingVersion++}}let Nl=null;function Zv(){return Nl??=new Yv,Nl}function Xv(t,e){return t[e]??Zv()}function Qv(t,e){const i=Zv();i.hasReadASignal&&(t[e]=Nl,i.lView=t,Nl=new Yv)}const G={};function R(t){Kv(ee(),w(),ut()+t,!1)}function Kv(t,e,i,n){if(!n)if(3==(3&e[z])){const o=t.preOrderCheckHooks;null!==o&&tl(e,o,i)}else{const o=t.preOrderHooks;null!==o&&nl(e,o,0,i)}Bi(i)}function g(t,e=Z.Default){const i=w();return null===i?b(t,e):v_(Ke(),i,j(t),e)}function bh(){throw new Error("invalid")}function Fl(t,e,i,n,r,o,s,a,l,c,d){const u=e.blueprint.slice();return u[Pe]=r,u[z]=140|n,(null!==c||t&&2048&t[z])&&(u[z]|=2048),zg(u),u[Ie]=u[Mr]=t,u[Ne]=i,u[Ir]=s||t&&t[Ir],u[U]=a||t&&t[U],u[pi]=l||t&&t[pi]||null,u[nt]=o,u[Xo]=function zT(){return $T++}(),u[zn]=d,u[Mg]=c,u[Fe]=2==e.type?t[Fe]:u,u}function Jr(t,e,i,n,r){let o=t.data[e];if(null===o)o=function wh(t,e,i,n,r){const o=Kg(),s=pu(),l=t.data[e]=function U1(t,e,i,n,r,o){let s=e?e.injectorIndex:-1,a=0;return kr()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,i,e,n,r);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(t,e,i,n,r),function zM(){return V.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=i,o.value=n,o.attrs=r;const s=function Ko(){const t=V.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return In(o,!0),o}function ws(t,e,i,n){if(0===i)return-1;const r=e.length;for(let o=0;oK&&Kv(t,e,K,!1),Sn(a?2:0,r),a)o.runInContext(i,n,r);else{const c=We(null);try{i(n,r)}finally{We(c)}}}finally{a&&null===e[Ga]&&Qv(e,Ga),Bi(s),Sn(a?3:1,r)}}function Ch(t,e,i){if(au(e)){const n=We(null);try{const o=e.directiveEnd;for(let s=e.directiveStart;snull;function ny(t,e,i,n){for(let r in t)if(t.hasOwnProperty(r)){i=null===i?{}:i;const o=t[r];null===n?iy(i,e,r,o):n.hasOwnProperty(r)&&iy(i,e,n[r],o)}return i}function iy(t,e,i,n){t.hasOwnProperty(i)?t[i].push(e,n):t[i]=[e,n]}function Lt(t,e,i,n,r,o,s,a){const l=Dt(e,i);let d,c=e.inputs;!a&&null!=c&&(d=c[n])?(Ah(t,i,d,n,r),Li(e)&&function G1(t,e){const i=Pt(e,t);16&i[z]||(i[z]|=64)}(i,e.index)):3&e.type&&(n=function z1(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),r=null!=s?s(r,e.value||"",n):r,o.setProperty(l,n,r))}function Sh(t,e,i,n){if(Zg()){const r=null===n?null:{"":-1},o=function Q1(t,e){const i=t.directiveRegistry;let n=null,r=null;if(i)for(let o=0;o0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(s)!=a&&s.push(a),s.push(i,n,o)}}(t,e,n,ws(t,i,r.hostVars,G),r)}function Rn(t,e,i,n,r,o){const s=Dt(t,e);!function Mh(t,e,i,n,r,o,s){if(null==o)t.removeAttribute(e,r,i);else{const a=null==s?H(o):s(o,n||"",r);t.setAttribute(e,r,a,i)}}(e[U],s,o,t.value,i,n,r)}function iR(t,e,i,n,r,o){const s=o[e];if(null!==s)for(let a=0;a{var t;class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const s=typeof Zone>"u"?null:Zone.current,a=new CM(n,d=>{this.all.has(d)&&this.queue.set(d,s)},o);let l;this.all.add(a),a.notify();const c=()=>{a.cleanup(),l?.(),this.all.delete(a),this.queue.delete(a)};return l=r?.onDestroy(c),{destroy:c}}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}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>new t}),e})();function Vl(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(null!==e)for(let s=0;s0){my(t,1);const r=t[S].components;null!==r&&_y(t,r,1)}}function _y(t,e,i){for(let n=0;n-1&&(_l(e,n),al(i,n))}this._attachedToViewContainer=!1}ju(this._lView[S],this._lView)}onDestroy(e){!function Wg(t,e){if(256==(256&t[z]))throw new v(911,!1);null===t[mi]&&(t[mi]=[]),t[mi].push(e)}(this._lView,e)}markForCheck(){bs(this._cdRefInjectingView||this._lView)}detach(){this._lView[z]&=-129}reattach(){this._lView[z]|=128}detectChanges(){Bl(this._lView[S],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rA(t,e){ds(t,e,e[U],2,null,null)}(this._lView[S],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e}}class hR extends xs{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Bl(e[S],e,e[Ne],!1)}checkNoChanges(){}get context(){return null}}class vy extends vs{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const i=J(e);return new Ds(i,this.ngModule)}}function yy(t){const e=[];for(let i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}class pR{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=Ha(n);const r=this.injector.get(e,mh,n);return r!==mh||i===mh?r:this.parentInjector.get(e,i,n)}}class Ds extends Ov{get inputs(){const e=this.componentDef,i=e.inputTransforms,n=yy(e.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return yy(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=function iM(t){return t.map(nM).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){let o=(r=r||this.ngModule)instanceof Zt?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new pR(e,o):e,a=s.get(ys,null);if(null===a)throw new v(407,!1);const u={rendererFactory:a,sanitizer:s.get(v1,null),effectManager:s.get(fy,null),afterRenderEventManager:s.get(vh,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=n?function L1(t,e,i,n){const o=n.get(zv,!1)||i===qt.ShadowDom,s=t.selectRootElement(e,o);return function V1(t){ty(t)}(s),s}(h,n,this.componentDef.encapsulation,s):gl(h,f,function fR(t){const e=t.toLowerCase();return"svg"===e?Hg:"math"===e?"math":null}(f)),x=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let _=null;null!==p&&(_=hh(p,s,!0));const I=Eh(0,null,null,1,0,null,null,null,null,null,null),M=Fl(null,I,null,x,null,null,u,h,s,null,_);let $,be;yu(M);try{const pe=this.componentDef;let et,Tt=null;pe.findHostDirectiveDefs?(et=[],Tt=new Map,pe.findHostDirectiveDefs(pe,et,Tt),et.push(pe)):et=[pe];const wn=function gR(t,e){const i=t[S],n=K;return t[n]=e,Jr(i,n,2,"#host",null)}(M,p),Ld=function _R(t,e,i,n,r,o,s){const a=r[S];!function vR(t,e,i,n){for(const r of t)e.mergedAttrs=qo(e.mergedAttrs,r.hostAttrs);null!==e.mergedAttrs&&(Vl(e,e.mergedAttrs,!0),null!==i&&av(n,i,e))}(n,t,e,s);let l=null;null!==e&&(l=hh(e,r[pi]));const c=o.rendererFactory.createRenderer(e,i);let d=16;i.signals?d=4096:i.onPush&&(d=64);const u=Fl(r,ey(i),null,d,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&Ih(a,t,n.length-1),Ll(r,u),r[t.index]=u}(wn,p,pe,et,M,u,h);be=$g(I,K),p&&function bR(t,e,i,n){if(n)ou(t,i,["ng-version",y1.full]);else{const{attrs:r,classes:o}=function rM(t){const e=[],i=[];let n=1,r=2;for(;n0&&sv(t,i,o.join(" "))}}(h,pe,p,n),void 0!==i&&function wR(t,e,i){const n=t.projection=[];for(let r=0;r=0;n--){const r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=qo(r.hostAttrs,i=qo(i,r.hostAttrs))}}(n)}function jl(t){return t===Cn?{}:t===ie?[]:t}function DR(t,e){const i=t.viewQuery;t.viewQuery=i?(n,r)=>{e(n,r),i(n,r)}:e}function ER(t,e){const i=t.contentQueries;t.contentQueries=i?(n,r,o)=>{e(n,r,o),i(n,r,o)}:e}function SR(t,e){const i=t.hostBindings;t.hostBindings=i?(n,r)=>{e(n,r),i(n,r)}:e}function Hl(t){return!!kh(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function kh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ot(t,e,i){return!Object.is(t[e],i)&&(t[e]=i,!0)}function Re(t,e,i,n){const r=w();return ot(r,Or(),e)&&(ee(),Rn(Me(),r,t,e,i,n)),Re}function to(t,e,i,n){return ot(t,Or(),i)?e+H(i)+n:G}function te(t,e,i,n,r,o,s,a){const l=w(),c=ee(),d=t+K,u=c.firstCreatePass?function QR(t,e,i,n,r,o,s,a,l){const c=e.consts,d=Jr(e,t,4,s||null,gi(c,a));Sh(e,i,d,gi(c,l)),el(e,d);const u=d.tView=Eh(2,d,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return null!==e.queries&&(e.queries.template(e,d),u.queries=e.queries.embeddedTView(d)),d}(d,c,l,e,i,n,r,o,s):c.data[d];In(u,!1);const h=Ly(c,l,u,t);Ja()&&yl(c,l,h,u),it(h,l),Ll(l,l[d]=ay(h,l,h,u)),Ya(u)&&xh(c,l,u),null!=s&&Dh(l,u,a)}let Ly=function Vy(t,e,i,n){return _i(!0),e[U].createComment("")};function B(t,e,i){const n=w();return ot(n,Or(),e)&&Lt(ee(),Me(),n,t,e,n[U],i,!1),B}function Vh(t,e,i,n,r){const s=r?"class":"style";Ah(t,i,e.inputs[s],s,n)}function k(t,e,i,n){const r=w(),o=ee(),s=K+t,a=r[U],l=o.firstCreatePass?function tk(t,e,i,n,r,o){const s=e.consts,l=Jr(e,t,2,n,gi(s,r));return Sh(e,i,l,gi(s,o)),null!==l.attrs&&Vl(l,l.attrs,!1),null!==l.mergedAttrs&&Vl(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(s,o,r,e,i,n):o.data[s],c=jy(o,r,l,a,e,t);r[s]=c;const d=Ya(l);return In(l,!0),av(a,c,l),32!=(32&l.flags)&&Ja()&&yl(o,r,c,l),0===function NM(){return V.lFrame.elementDepthCount}()&&it(c,r),function FM(){V.lFrame.elementDepthCount++}(),d&&(xh(o,r,l),Ch(o,l,r)),null!==n&&Dh(r,l),k}function N(){let t=Ke();pu()?mu():(t=t.parent,In(t,!1));const e=t;(function VM(t){return V.skipHydrationRootTNode===t})(e)&&function UM(){V.skipHydrationRootTNode=null}(),function LM(){V.lFrame.elementDepthCount--}();const i=ee();return i.firstCreatePass&&(el(i,t),au(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function nT(t){return 0!=(8&t.flags)}(e)&&Vh(i,e,w(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function iT(t){return 0!=(16&t.flags)}(e)&&Vh(i,e,w(),e.stylesWithoutHost,!1),N}function Qt(t,e,i,n){return k(t,e,i,n),N(),Qt}let jy=(t,e,i,n,r,o)=>(_i(!0),gl(n,r,function c_(){return V.lFrame.currentNamespace}()));function Kn(t,e,i){const n=w(),r=ee(),o=t+K,s=r.firstCreatePass?function rk(t,e,i,n,r){const o=e.consts,s=gi(o,n),a=Jr(e,t,8,"ng-container",s);return null!==s&&Vl(a,s,!0),Sh(e,i,a,gi(o,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(o,r,n,e,i):r.data[o];In(s,!0);const a=Uy(r,n,s,t);return n[o]=a,Ja()&&yl(r,n,a,s),it(a,n),Ya(s)&&(xh(r,n,s),Ch(r,s,n)),null!=i&&Dh(n,s),Kn}function Jn(){let t=Ke();const e=ee();return pu()?mu():(t=t.parent,In(t,!1)),e.firstCreatePass&&(el(e,t),au(t)&&e.queries.elementEnd(t)),Jn}let Uy=(t,e,i,n)=>(_i(!0),Bu(e[U],""));function Ts(t){return!!t&&"function"==typeof t.then}function zy(t){return!!t&&"function"==typeof t.subscribe}function Te(t,e,i,n){const r=w(),o=ee(),s=Ke();return function qy(t,e,i,n,r,o,s){const a=Ya(n),c=t.firstCreatePass&&dy(t),d=e[Ne],u=cy(e);let h=!0;if(3&n.type||s){const m=Dt(n,e),y=s?s(m):m,x=u.length,_=s?M=>s(Ce(M[n.index])):n.index;let I=null;if(!s&&a&&(I=function ak(t,e,i,n){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,e,r,n.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,h=!1;else{o=Yy(n,e,d,o,!1);const M=i.listen(y,r,o);u.push(o,M),c&&c.push(r,_,x,x+1)}}else o=Yy(n,e,d,o,!1);const f=n.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let y=0;y-1?Pt(t.index,e):e);let l=Wy(e,i,n,s),c=o.__ngNextListenerFn__;for(;c;)l=Wy(e,i,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&s.preventDefault(),l}}function ke(t=1){return function YM(t){return(V.lFrame.contextLView=function ZM(t,e){for(;t>0;)e=e[Mr],t--;return e}(t,V.lFrame.contextLView))[Ne]}(t)}function lk(t,e){let i=null;const n=function KI(t){const e=t.attrs;if(null!=e){const i=e.indexOf(5);if(!(1&i))return e[i+1]}return null}(t);for(let r=0;r>17&32767}function Hh(t){return 2|t}function Zi(t){return(131068&t)>>2}function Uh(t,e){return-131069&t|e<<2}function $h(t){return 1|t}function ib(t,e,i,n,r){const o=t[i+1],s=null===e;let a=n?bi(o):Zi(o),l=!1;for(;0!==a&&(!1===l||s);){const d=t[a+1];pk(t[a],e)&&(l=!0,t[a+1]=n?$h(d):Hh(d)),a=n?bi(d):Zi(d)}l&&(t[i+1]=n?Hh(o):$h(o))}function pk(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Hr(t,e)>=0}function st(t,e,i){return hn(t,e,i,!1),st}function St(t,e){return hn(t,e,null,!0),St}function hn(t,e,i,n){const r=w(),o=ee(),s=function qn(t){const e=V.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}(2);o.firstUpdatePass&&function ub(t,e,i,n){const r=t.data;if(null===r[i+1]){const o=r[ut()],s=function db(t,e){return e>=t.expandoStartIndex}(t,i);(function mb(t,e){return 0!=(t.flags&(e?8:16))})(o,n)&&null===e&&!s&&(e=!1),e=function xk(t,e,i,n){const r=function _u(t){const e=V.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=As(i=zh(null,t,e,i,n),e.attrs,n),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(i=zh(r,t,e,i,n),null===o){let l=function Dk(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==Zi(n))return t[bi(n)]}(t,e,n);void 0!==l&&Array.isArray(l)&&(l=zh(null,t,e,l[1],n),l=As(l,e.attrs,n),function Ek(t,e,i,n){t[bi(i?e.classBindings:e.styleBindings)]=n}(t,e,n,l))}else o=function Sk(t,e,i){let n;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)):d=i,r)if(0!==l){const h=bi(t[a+1]);t[n+1]=ql(h,a),0!==h&&(t[h+1]=Uh(t[h+1],n)),t[a+1]=function dk(t,e){return 131071&t|e<<17}(t[a+1],n)}else t[n+1]=ql(a,0),0!==a&&(t[a+1]=Uh(t[a+1],n)),a=n;else t[n+1]=ql(l,0),0===a?a=n:t[l+1]=Uh(t[l+1],n),l=n;c&&(t[n+1]=Hh(t[n+1])),ib(t,d,n,!0),ib(t,d,n,!1),function fk(t,e,i,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Hr(o,e)>=0&&(i[n+1]=$h(i[n+1]))}(e,d,t,n,o),s=ql(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,i,s,n)}}(o,t,s,n),e!==G&&ot(r,s,e)&&function fb(t,e,i,n,r,o,s,a){if(!(3&e.type))return;const l=t.data,c=l[a+1],d=function uk(t){return 1==(1&t)}(c)?pb(l,e,i,r,Zi(c),s):void 0;Wl(d)||(Wl(o)||function ck(t){return 2==(2&t)}(c)&&(o=pb(l,null,i,r,a,s)),function pA(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let o=-1===n.indexOf("-")?void 0:vi.DashCase;null==r?t.removeStyle(i,n,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=vi.Important),t.setStyle(i,n,r,o))}}(n,s,Ka(ut(),i),r,o))}(o,o.data[ut()],r,r[U],t,r[s+1]=function Ak(t,e){return null==t||""===t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Ue(Ft(t)))),t}(e,i),n,s)}function zh(t,e,i,n,r){let o=null;const s=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=i[r+1];h===G&&(h=u?ie:void 0);let f=u?Tu(h,n):d===n?h:void 0;if(c&&!Wl(f)&&(f=Tu(l,n)),Wl(f)&&(a=f,s))return a;const p=t[r+1];r=s?bi(p):Zi(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=Tu(l,n))}return a}function Wl(t){return void 0!==t}function oe(t,e=""){const i=w(),n=ee(),r=t+K,o=n.firstCreatePass?Jr(n,r,1,e,null):n.data[r],s=gb(n,i,o,e,t);i[r]=s,Ja()&&yl(n,i,s,o),In(o,!1)}let gb=(t,e,i,n,r)=>(_i(!0),function ml(t,e){return t.createText(e)}(e[U],n));function uo(t){return Kt("",t,""),uo}function Kt(t,e,i){const n=w(),r=to(n,t,e,i);return r!==G&&function Qn(t,e,i){const n=Ka(e,t);!function Y_(t,e,i){t.setValue(e,i)}(t[U],n,i)}(n,ut(),r),Kt}function wi(t,e,i){const n=w();return ot(n,Or(),e)&&Lt(ee(),Me(),n,t,e,n[U],i,!0),wi}const fo="en-US";let Lb=fo;function Wh(t,e,i,n,r){if(t=j(t),Array.isArray(t))for(let o=0;o>20;if(Gi(t)||!t.multi){const f=new Jo(c,r,g),p=Zh(l,e,r?d:d+h,u);-1===p?(Su(rl(a,s),o,l),Yh(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(f),s.push(f)):(i[p]=f,s[p]=f)}else{const f=Zh(l,e,d+h,u),p=Zh(l,e,d,d+h),y=p>=0&&i[p];if(r&&!y||!r&&!(f>=0&&i[f])){Su(rl(a,s),o,l);const x=function QO(t,e,i,n,r){const o=new Jo(t,i,g);return o.multi=[],o.index=e,o.componentProviders=0,lw(o,r,n&&!i),o}(r?XO:ZO,i.length,r,n,c);!r&&y&&(i[p].providerFactory=x),Yh(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(x),s.push(x)}else Yh(o,t,f>-1?f:p,lw(i[r?p:f],c,!r&&n));!r&&n&&y&&i[p].componentProviders++}}}function Yh(t,e,i,n){const r=Gi(e),o=function YA(t){return!!t.useClass}(e);if(r||o){const l=(o?j(e.useClass):e).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const d=c.indexOf(i);-1===d?c.push(i,[n,l]):c[d+1].push(n,l)}else c.push(i,l)}}}function lw(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Zh(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>function YO(t,e,i){const n=ee();if(n.firstCreatePass){const r=un(t);Wh(i,n.data,n.blueprint,r,!0),Wh(e,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,e)}}class Qi{}class cw{}class Qh extends Qi{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new vy(this);const r=kt(e);this._bootstrapComponents=Xn(r.bootstrap),this._r3Injector=Bv(e,i,[{provide:Qi,useValue:this},{provide:vs,useValue:this.componentFactoryResolver},...n],Ue(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Kh extends cw{constructor(e){super(),this.moduleType=e}create(e){return new Qh(this.moduleType,e,[])}}class dw extends Qi{constructor(e){super(),this.componentFactoryResolver=new vy(this),this.instance=null;const i=new Ml([...e.providers,{provide:Qi,useValue:this},{provide:vs,useValue:this.componentFactoryResolver}],e.parent||Il(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function Jh(t,e,i=null){return new dw({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}let eP=(()=>{var t;class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=xv(0,n.type),o=r.length>0?Jh([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(t=e).\u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(b(Zt))}),e})();function uw(t){t.getStandaloneInjector=e=>e.get(eP).getOrCreateStandaloneInjector(t)}function vw(t,e,i,n,r,o){const s=e+i;return ot(t,s,r)?function kn(t,e,i){return t[e]=i}(t,s+1,o?n.call(o,r):n(r)):function Fs(t,e){const i=t[e];return i===G?void 0:i}(t,s+1)}function Dw(t,e,i){const n=t+K,r=w(),o=function Rr(t,e){return t[e]}(r,n);return function Ls(t,e){return t[S].data[e].pure}(r,n)?vw(r,function dt(){const t=V.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,o.transform,i,o):o.transform(i)}function tf(t){return e=>{setTimeout(t,void 0,e)}}const se=class DP extends de{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,i,n){let r=e,o=i||(()=>null),s=n;if(e&&"object"==typeof e){const l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=tf(o),r&&(r=tf(r)),s&&(s=tf(s)));const a=super.subscribe({next:r,error:o,complete:s});return e instanceof me&&e.add(a),a}};function EP(){return this._results[Symbol.iterator]()}class po{get changes(){return this._changes||(this._changes=new se)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=po.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=EP)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){const n=this;n.dirty=!1;const r=function Yt(t){return t.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function _T(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0&&(i[r-1][dn]=e),n{class e{}return e.__NG_ELEMENT_ID__=AP,e})();const MP=ei,TP=class extends MP{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){const r=function SP(t,e,i,n){const r=e.tView,a=Fl(t,r,i,4096&t[z]?4096:16,null,e,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[Zo]=t[e.index];const c=t[xn];return null!==c&&(a[xn]=c.createEmbeddedView(r)),Rh(r,a,i),a}(this._declarationLView,this._declarationTContainer,e,{injector:i,hydrationInfo:n});return new xs(r)}};function AP(){return Kl(Ke(),w())}function Kl(t,e){return 4&t.type?new TP(e,t,Xr(t,e)):null}let Jt=(()=>{class e{}return e.__NG_ELEMENT_ID__=FP,e})();function FP(){return Rw(Ke(),w())}const LP=Jt,Tw=class extends LP{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return Xr(this._hostTNode,this._hostLView)}get injector(){return new ht(this._hostTNode,this._hostLView)}get parentInjector(){const e=ol(this._hostTNode,this._hostLView);if(xu(e)){const i=ts(e,this._hostLView),n=es(e);return new ht(i[S].data[n+8],i)}return new ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const i=Aw(this._lContainer);return null!==i&&i[e]||null}get length(){return this._lContainer.length-Qe}createEmbeddedView(e,i,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=e.createEmbeddedViewImpl(i||{},o,null);return this.insertImpl(a,r,false),a}createComponent(e,i,n,r,o){const s=e&&!function is(t){return"function"==typeof t}(e);let a;if(s)a=i;else{const m=i||{};a=m.index,n=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}const l=s?e:new Ds(J(e)),c=n||this.parentInjector;if(!o&&null==l.ngModule){const y=(s?c:this.parentInjector).get(Zt,null);y&&(o=y)}J(l.componentType??{});const f=l.create(c,r,null,o);return this.insertImpl(f.hostView,a,false),f}insert(e,i){return this.insertImpl(e,i,!1)}insertImpl(e,i,n){const r=e._lView;if(function kM(t){return xt(t[Ie])}(r)){const l=this.indexOf(e);if(-1!==l)this.detach(l);else{const c=r[Ie],d=new Tw(c,c[nt],c[Ie]);d.detach(d.indexOf(e))}}const s=this._adjustIndex(i),a=this._lContainer;return IP(a,r,s,!n),e.attachToViewContainerRef(),D_(nf(a),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){const i=Aw(this._lContainer);return null!==i?i.indexOf(e):-1}remove(e){const i=this._adjustIndex(e,-1),n=_l(this._lContainer,i);n&&(al(nf(this._lContainer),i),ju(n[S],n))}detach(e){const i=this._adjustIndex(e,-1),n=_l(this._lContainer,i);return n&&null!=al(nf(this._lContainer),i)?new xs(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function Aw(t){return t[8]}function nf(t){return t[8]||(t[8]=[])}function Rw(t,e){let i;const n=e[t.index];return xt(n)?i=n:(i=ay(n,e,null,t),e[t.index]=i,Ll(e,i)),kw(i,e,t,n),new Tw(i,t,e)}let kw=function Ow(t,e,i,n){if(t[Dn])return;let r;r=8&i.type?Ce(n):function VP(t,e){const i=t[U],n=i.createComment(""),r=Dt(e,t);return $i(i,vl(i,r),n,function uA(t,e){return t.nextSibling(e)}(i,r),!1),n}(e,i),t[Dn]=r};class rf{constructor(e){this.queryList=e,this.matches=null}clone(){return new rf(this.queryList)}setDirty(){this.queryList.setDirty()}}class sf{constructor(e=[]){this.queries=e}createEmbeddedView(e){const i=e.queries;if(null!==i){const n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[];for(let o=0;o0)n.push(s[a/2]);else{const c=o[a+1],d=e[-l];for(let u=Qe;u{var t;class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=E(mf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const s=o();if(Ts(s))n.push(s);else if(zy(s)){const a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),nC=(()=>{var t;class e{log(n){console.log(n)}warn(n){console.warn(n)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})();const Nn=new C("LocaleId",{providedIn:"root",factory:()=>E(Nn,Z.Optional|Z.SkipSelf)||function fN(){return typeof $localize<"u"&&$localize.locale||fo}()});let iC=(()=>{var t;class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new At(!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)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class gN{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}}let rC=(()=>{var t;class e{compileModuleSync(n){return new Kh(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=Xn(kt(n).declarations).reduce((a,l)=>{const c=J(l);return c&&a.push(new Ds(c)),a},[]);return new gN(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function lC(...t){}class X{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function FN(){const t="function"==typeof ve.requestAnimationFrame;let e=ve[t?"requestAnimationFrame":"setTimeout"],i=ve[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function BN(t){const e=()=>{!function VN(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(ve,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,bf(t),t.isCheckStableRunning=!0,yf(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),bf(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{try{return cC(t),i.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),dC(t)}},onInvoke:(i,n,r,o,s,a,l)=>{try{return cC(t),i.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),dC(t)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,bf(t),yf(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!X.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(X.isInAngularZone())throw new v(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,LN,lC,lC);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}}const LN={};function yf(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function bf(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function cC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dC(t){t._nesting--,yf(t)}class jN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}}const uC=new C("",{providedIn:"root",factory:hC});function hC(){const t=E(X);let e=!0;return Uo(new we(r=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(e),r.complete()})}),new we(r=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,r.next(!0))})})});const s=t.onUnstable.subscribe(()=>{X.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(zd()))}const fC=new C(""),ic=new C("");let xf,wf=(()=>{var t;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,xf||(function HN(t){xf=t}(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:()=>{X.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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,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[]}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X),b(Cf),b(ic))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})(),Cf=(()=>{var t;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 xf?.findTestabilityInTree(this,n,r)??null}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})(),Ci=null;const pC=new C("AllowMultipleToken"),Df=new C("PlatformDestroyListeners"),Ef=new C("appBootstrapListener");class gC{constructor(e,i){this.name=e,this.token=i}}function vC(t,e,i=[]){const n=`Platform: ${e}`,r=new C(n);return(o=[])=>{let s=Sf();if(!s||s.injector.get(pC,!1)){const a=[...i,...o,{provide:r,useValue:!0}];t?t(a):function zN(t){if(Ci&&!Ci.get(pC,!1))throw new v(400,!1);(function mC(){!function bM(t){Ng=t}(()=>{throw new v(600,!1)})})(),Ci=t;const e=t.get(bC);(function _C(t){t.get(Mv,null)?.forEach(i=>i())})(t)}(function yC(t=[],e){return rt.create({name:e,providers:[{provide:th,useValue:"platform"},{provide:Df,useValue:new Set([()=>Ci=null])},...t]})}(a,n))}return function qN(t){const e=Sf();if(!e)throw new v(401,!1);return e}()}}function Sf(){return Ci?.get(bC)??null}let bC=(()=>{var t;class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function WN(t="zone.js",e){return"noop"===t?new jN:"zone.js"===t?new X(e):t}(r?.ngZone,function wC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const s=function JO(t,e,i){return new Qh(t,e,i)}(n.moduleType,this.injector,function SC(t){return[{provide:X,useFactory:t},{provide:fs,multi:!0,useFactory:()=>{const e=E(ZN,{optional:!0});return()=>e.initialize()}},{provide:EC,useFactory:YN},{provide:uC,useFactory:hC}]}(()=>o)),a=s.injector.get(An,null);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{rc(this._modules,s),l.unsubscribe()})}),function CC(t,e,i){try{const n=i();return Ts(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(a,o,()=>{const l=s.injector.get(gf);return l.runInitializers(),l.donePromise.then(()=>(function Vb(t){Gt(t,"Expected localeId to be defined"),"string"==typeof t&&(Lb=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Nn,fo)||fo),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const o=xC({},r);return function UN(t,e,i){const n=new Kh(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const r=n.injector.get(xi);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new v(-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 v(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Df,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(t=e).\u0275fac=function(n){return new(n||t)(b(rt))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})();function xC(t,e){return Array.isArray(e)?e.reduce(xC,t):{...t,...e}}let xi=(()=>{var t;class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=E(EC),this.zoneIsStable=E(uC),this.componentTypes=[],this.components=[],this.isStable=E(iC).hasPendingTasks.pipe(zt(n=>n?O(!1):this.zoneIsStable),og(),zd()),this._injector=E(Zt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Ov;if(!this._injector.get(gf).done)throw!o&&function Er(t){const e=J(t)||Xe(t)||ct(t);return null!==e&&e.standalone}(n),new v(405,!1);let a;a=o?n:this._injector.get(vs).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const l=function $N(t){return t.isBoundToModule}(a)?void 0:this._injector.get(Qi),d=a.create(rt.NULL,[],r||a.selector,l),u=d.location.nativeElement,h=d.injector.get(fC,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),rc(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new v(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;rc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Ef,[]);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),()=>rc(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function rc(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const EC=new C("",{providedIn:"root",factory:()=>E(An).handleError.bind(void 0)});function YN(){const t=E(X),e=E(An);return i=>t.runOutsideAngular(()=>e.handleError(i))}let ZN=(()=>{var t;class e{constructor(){this.zone=E(X),this.applicationRef=E(xi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();let Fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=QN,e})();function QN(t){return function KN(t,e,i){if(Li(t)&&!i){const n=Pt(t.index,e);return new xs(n,n)}return 47&t.type?new xs(e[Fe],e):null}(Ke(),w(),16==(16&t))}class AC{constructor(){}supports(e){return Hl(e)}create(e){return new rF(e)}}const iF=(t,e)=>e;class rF{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||iF}forEachItem(e){let i;for(i=this._itHead;null!==i;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){const s=!n||i&&i.currentIndex{s=this._trackByFn(r,a),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)):(i=this._mismatch(i,a,s,r),n=!0),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,o,r)):e=this._addAfter(new oF(i,n),o,r),e}_verifyReinsertion(e,i,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const i=e._next;this._addToRemovals(this._unlink(e)),e=i}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){const r=null===i?this._itHead:i._next;return e._next=r,e._prev=i,null===r?this._itTail=e:r._prev=e,null===i?this._itHead=e:i._next=e,null===this._linkedRecords&&(this._linkedRecords=new RC),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const i=e._prev,n=e._next;return null===i?this._itHead=n:i._next=n,null===n?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new RC),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class oF{constructor(e,i){this.item=e,this.trackById=i,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 sF{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===i||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const i=e._prevDup,n=e._nextDup;return null===i?this._head=n:i._nextDup=n,null===n?this._tail=i:n._prevDup=i,null===this._head}}class RC{constructor(){this.map=new Map}put(e){const i=e.trackById;let n=this.map.get(i);n||(n=new sF,this.map.set(i,n)),n.add(e)}get(e,i){const r=this.map.get(e);return r?r.get(e,i):null}remove(e){const i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kC(t,e,i){const n=t.previousIndex;if(null===n)return n;let r=0;return i&&n{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{const o=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,o)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){const n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,i);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const n=new lF(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}}class lF{constructor(e){this.key=e,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 PC(){return new ac([new AC])}let ac=(()=>{var t;class e{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||PC()),deps:[[e,new os,new Ui]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new v(901,!1)}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:PC}),e})();function NC(){return new js([new OC])}let js=(()=>{var t;class e{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||NC()),deps:[[e,new os,new Ui]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new v(901,!1)}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:NC}),e})();const uF=vC(null,"core",[]);let hF=(()=>{var t;class e{constructor(n){}}return(t=e).\u0275fac=function(n){return new(n||t)(b(xi))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})(),kf=null;function Di(){return kf}class SF{}const Q=new C("DocumentToken");let Of=(()=>{var t;class e{historyGo(n){throw new Error("Not implemented")}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(MF)},providedIn:"platform"}),e})();const IF=new C("Location Initialized");let MF=(()=>{var t;class e extends Of{constructor(){super(),this._doc=E(Q),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Di().getBaseHref(this._doc)}onPopState(n){const r=Di().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Di().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return new t},providedIn:"platform"}),e})();function Pf(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function $C(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function ti(t){return t&&"?"!==t[0]?"?"+t:t}let Ji=(()=>{var t;class e{historyGo(n){throw new Error("Not implemented")}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(GC)},providedIn:"root"}),e})();const zC=new C("appBaseHref");let GC=(()=>{var t;class e extends Ji{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??E(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Pf(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+ti(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){const a=this.prepareExternalUrl(o+ti(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){const a=this.prepareExternalUrl(o+ti(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Of),b(zC,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),TF=(()=>{var t;class e extends Ji{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Pf(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+ti(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+ti(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Of),b(zC,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})(),cc=(()=>{var t;class e{constructor(n){this._subject=new se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function kF(t){if(new RegExp("^(https?:)?//").test(t)){const[,i]=t.split(/\/\/[^\/]+/);return i}return t}($C(qC(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+ti(r))}normalize(n){return e.stripTrailingSlash(function RF(t,e){if(!t||!e.startsWith(t))return e;const i=e.substring(t.length);return""===i||["/",";","?","#"].includes(i[0])?i:e}(this._basePath,qC(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ti(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ti(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return(t=e).normalizeQueryParams=ti,t.joinWithSlash=Pf,t.stripTrailingSlash=$C,t.\u0275fac=function(n){return new(n||t)(b(Ji))},t.\u0275prov=D({token:t,factory:function(){return function AF(){return new cc(b(Ji))}()},providedIn:"root"}),e})();function qC(t){return t.replace(/\/index.html$/,"")}const zf=/\s+/,tx=[];let nx=(()=>{var t;class e{constructor(n,r,o,s){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=s,this.initialClasses=tx,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(zf):tx}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(zf):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(zf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return(t=e).\u0275fac=function(n){return new(n||t)(g(ac),g(js),g(he),g(Zn))},t.\u0275dir=A({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class vL{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let rx=(()=>{var t;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,s,a)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new vL(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===s?void 0:s);else if(null!==s){const l=r.get(s);r.move(l,a),ox(l,o)}});for(let o=0,s=r.length;o{ox(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Jt),g(ei),g(ac))},t.\u0275dir=A({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function ox(t,e){t.context.$implicit=e.item}let $s=(()=>{var t;class e{constructor(n,r){this._viewContainer=n,this._context=new yL,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){sx("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){sx("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}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Jt),g(ei))},t.\u0275dir=A({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class yL{constructor(){this.$implicit=null,this.ngIf=null}}function sx(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ue(e)}'.`)}let cx=(()=>{var t;class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=dx}transform(n,r=dx){if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());const o=this.differ.diff(n),s=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function VL(t,e){return{key:t,value:e}}(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}}return(t=e).\u0275fac=function(n){return new(n||t)(g(js,16))},t.\u0275pipe=wt({name:"keyvalue",type:t,pure:!1,standalone:!0}),e})();function dx(t,e){const i=t.key,n=e.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();const ux="browser";function hx(t){return"server"===t}let qL=(()=>{var t;class e{}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>new WL(b(Q),window)}),e})();class WL{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const i=function YL(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.supportsScrolling()&&(this.window.history.scrollRestoration=e)}scrollToElement(e){const i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class y2 extends SF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Xf extends y2{static makeCurrent(){!function EF(t){kf||(kf=t)}(new Xf)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return(i=i||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return"window"===i?window:"document"===i?e:"body"===i?e.body:null}getBaseHref(e){const i=function b2(){return qs=qs||document.querySelector("base"),qs?qs.getAttribute("href"):null}();return null==i?null:function w2(t){xc=xc||document.createElement("a"),xc.setAttribute("href",t);const e=xc.pathname;return"/"===e.charAt(0)?e:`/${e}`}(i)}resetBaseElement(){qs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function gL(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const n=i.indexOf("="),[r,o]=-1==n?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let xc,qs=null,x2=(()=>{var t;class e{build(){return new XMLHttpRequest}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const Qf=new C("EventManagerPlugins");let _x=(()=>{var t;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(s=>s.supports(n)),!r)throw new v(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Qf),b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class vx{constructor(e){this._doc=e}}const Kf="ng-app-id";let yx=(()=>{var t;class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=hx(s),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[${Kf}="${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 s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(Kf),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Kf,this.appId),a}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q),b(ps),b(oh,8),b(qi))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const Jf={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/"},ep=/%COMP%/g,I2=new C("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function wx(t,e){return e.map(i=>i.replace(ep,t))}let tp=(()=>{var t;class e{constructor(n,r,o,s,a,l,c,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=hx(l),this.defaultRenderer=new np(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===qt.ShadowDom&&(r={...r,encapsulation:qt.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof xx?o.applyToHost(n):o instanceof ip&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let s=o.get(r.id);if(!s){const a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case qt.Emulated:s=new xx(c,d,r,this.appId,u,a,l,h);break;case qt.ShadowDom:return new R2(c,d,n,r,a,l,this.nonce,h);default:s=new ip(c,d,r,u,a,l,h)}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(_x),b(yx),b(ps),b(I2),b(Q),b(qi),b(X),b(oh))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class np{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Jf[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Cx(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Cx(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n="string"==typeof e?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;const o=Jf[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){const r=Jf[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(vi.DashCase|vi.Important)?e.style.setProperty(i,n,r&vi.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&vi.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e[i]=n}setValue(e,i){e.nodeValue=i}listen(e,i,n){if("string"==typeof e&&!(e=Di().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if("__ngUnwrap__"===i)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))&&i.preventDefault()}}}function Cx(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class R2 extends np{constructor(e,i,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=wx(r.id,r.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ip extends np{constructor(e,i,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?wx(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class xx extends ip{constructor(e,i,n,r,o,s,a,l){const c=r+"-"+n.id;super(e,i,n,o,s,a,l,c),this.contentAttr=function M2(t){return"_ngcontent-%COMP%".replace(ep,t)}(c),this.hostAttr=function T2(t){return"_nghost-%COMP%".replace(ep,t)}(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){const n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}}let k2=(()=>{var t;class e extends vx{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)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const Dx=["alt","control","meta","shift"],O2={"\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"},P2={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let N2=(()=>{var t;class e extends vx{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Di().onAndCancel(n,s.domEventName,a))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(r.pop());let a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),Dx.forEach(d=>{const u=r.indexOf(d);u>-1&&(r.splice(u,1),a+=d+".")}),a+=s,0!=r.length||0===s.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let o=O2[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Dx.forEach(a=>{a!==o&&(0,P2[a])(n)&&(s+=a+".")}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const Sx=[{provide:qi,useValue:ux},{provide:Mv,useValue:function F2(){Xf.makeCurrent()},multi:!0},{provide:Q,useFactory:function V2(){return function yA(t){Wu=t}(document),document},deps:[]}],B2=vC(uF,"browser",Sx),j2=new C(""),Ix=[{provide:ic,useClass:class C2{addToWindow(e){ve.getAngularTestability=(n,r=!0)=>{const o=e.findTestabilityInTree(n,r);if(null==o)throw new v(5103,!1);return o},ve.getAllAngularTestabilities=()=>e.getAllTestabilities(),ve.getAllAngularRootElements=()=>e.getAllRootElements(),ve.frameworkStabilizers||(ve.frameworkStabilizers=[]),ve.frameworkStabilizers.push(n=>{const r=ve.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&n(s)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(e,i,n){return null==i?null:e.getTestability(i)??(n?Di().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},deps:[]},{provide:fC,useClass:wf,deps:[X,Cf,ic]},{provide:wf,useClass:wf,deps:[X,Cf,ic]}],Mx=[{provide:th,useValue:"root"},{provide:An,useFactory:function L2(){return new An},deps:[]},{provide:Qf,useClass:k2,multi:!0,deps:[Q,X,qi]},{provide:Qf,useClass:N2,multi:!0,deps:[Q]},tp,yx,_x,{provide:ys,useExisting:tp},{provide:class ZL{},useClass:x2,deps:[]},[]];let Tx=(()=>{var t;class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ps,useValue:n.appId}]}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(j2,12))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[...Mx,...Ix],imports:[zs,hF]}),e})(),Ax=(()=>{var t;class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q))},t.\u0275prov=D({token:t,factory:function(n){let r=null;return r=n?new n:function U2(){return new Ax(b(Q))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;let op=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(n){let r=null;return r=n?new(n||t):b(Ox),r},providedIn:"root"}),e})(),Ox=(()=>{var t;class e extends op{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case Je.NONE:return r;case Je.HTML:return Tn(r,"HTML")?Ft(r):_v(this._doc,String(r)).toString();case Je.STYLE:return Tn(r,"Style")?Ft(r):r;case Je.SCRIPT:if(Tn(r,"Script"))return Ft(r);throw new v(5200,!1);case Je.URL:return Tn(r,"URL")?Ft(r):xl(String(r));case Je.RESOURCE_URL:if(Tn(r,"ResourceURL"))return Ft(r);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(n){return function SA(t){return new bA(t)}(n)}bypassSecurityTrustStyle(n){return function IA(t){return new wA(t)}(n)}bypassSecurityTrustScript(n){return function MA(t){return new CA(t)}(n)}bypassSecurityTrustUrl(n){return function TA(t){return new xA(t)}(n)}bypassSecurityTrustResourceUrl(n){return function AA(t){return new DA(t)}(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q))},t.\u0275prov=D({token:t,factory:function(n){let r=null;return r=n?new n:function q2(t){return new Ox(t.get(Q))}(b(rt)),r},providedIn:"root"}),e})();class Y2 extends ge{notifyNext(e,i,n,r,o){this.destination.next(i)}notifyError(e,i){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Z2 extends ge{constructor(e,i,n){super(),this.parent=e,this.outerValue=i,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function X2(t,e,i,n,r=new Z2(t,i,n)){if(!r.closed)return e instanceof we?e.subscribe(r):jd(e)(r)}const Nx={};function Dc(...t){let e,i;return Cr(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&br(t[0])&&(t=t[0]),Ud(t,i).lift(new Q2(e))}class Q2{constructor(e){this.resultSelector=e}call(e,i){return i.subscribe(new K2(e,this.resultSelector))}}class K2 extends Y2{constructor(e,i){super(e),this.resultSelector=i,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Nx),this.observables.push(e)}_complete(){const e=this.observables,i=e.length;if(0===i)this.destination.complete();else{this.active=i,this.toRespond=i;for(let n=0;n{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Sc(...t){return function J2(){return xr(1)}()(O(...t))}const er=new we(t=>t.complete());function sp(t){return t?function eV(t){return new we(e=>t.schedule(()=>e.complete()))}(t):er}function Fx(t){return new we(e=>{let i;try{i=t()}catch(r){return void e.error(r)}return(i?Ze(i):sp()).subscribe(e)})}function yo(t,e){return new we(e?i=>e.schedule(tV,0,{error:t,subscriber:i}):i=>i.error(t))}function tV({error:t,subscriber:e}){e.error(t)}const Lx=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function gn(t){return e=>0===t?sp():e.lift(new nV(t))}class nV{constructor(e){if(this.total=e,this.total<0)throw new Lx}call(e,i){return i.subscribe(new iV(e,this.total))}}class iV extends ge{constructor(e,i){super(e),this.total=i,this.count=0}_next(e){const i=this.total,n=++this.count;n<=i&&(this.destination.next(e),n===i&&(this.destination.complete(),this.unsubscribe()))}}function bo(...t){const e=t[t.length-1];return Cr(e)?(t.pop(),i=>Sc(t,i,e)):i=>Sc(t,i)}function rn(t,e){return function(n){return n.lift(new rV(t,e))}}class rV{constructor(e,i){this.predicate=e,this.thisArg=i}call(e,i){return i.subscribe(new oV(e,this.predicate,this.thisArg))}}class oV extends ge{constructor(e,i,n){super(e),this.predicate=i,this.thisArg=n,this.count=0}_next(e){let i;try{i=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}i&&this.destination.next(e)}}function Ic(t=null){return e=>e.lift(new sV(t))}class sV{constructor(e){this.defaultValue=e}call(e,i){return i.subscribe(new aV(e,this.defaultValue))}}class aV extends ge{constructor(e,i){super(e),this.defaultValue=i,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Vx(t=dV){return e=>e.lift(new lV(t))}class lV{constructor(e){this.errorFactory=e}call(e,i){return i.subscribe(new cV(e,this.errorFactory))}}class cV extends ge{constructor(e,i){super(e),this.errorFactory=i,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(i){e=i}this.destination.error(e)}}}function dV(){return new Ec}function tr(t,e){const i=arguments.length>=2;return n=>n.pipe(t?rn((r,o)=>t(r,o,n)):ka,gn(1),i?Ic(e):Vx(()=>new Ec))}function wo(t,e){return tt(t,e,1)}function Si(){}function Ge(t,e,i){return function(r){return r.lift(new uV(t,e,i))}}class uV{constructor(e,i,n){this.nextOrObserver=e,this.error=i,this.complete=n}call(e,i){return i.subscribe(new hV(e,this.nextOrObserver,this.error,this.complete))}}class hV extends ge{constructor(e,i,n,r){super(e),this._tapNext=Si,this._tapError=Si,this._tapComplete=Si,this._tapError=n||Si,this._tapComplete=r||Si,ui(i)?(this._context=this,this._tapNext=i):i&&(this._context=i,this._tapNext=i.next||Si,this._tapError=i.error||Si,this._tapComplete=i.complete||Si)}_next(e){try{this._tapNext.call(this._context,e)}catch(i){return void this.destination.error(i)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(i){return void this.destination.error(i)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function nr(t){return function(i){const n=new fV(t),r=i.lift(n);return n.caught=r}}class fV{constructor(e){this.selector=e}call(e,i){return i.subscribe(new pV(e,this.selector,this.caught))}}class pV extends jo{constructor(e,i,n){super(e),this.selector=i,this.caught=n}error(e){if(!this.isStopped){let i;try{i=this.selector(e,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const n=new Bo(this);this.add(n);const r=Ho(i,n);r!==n&&this.add(r)}}}class gV{constructor(e,i,n=!1){this.accumulator=e,this.seed=i,this.hasSeed=n}call(e,i){return i.subscribe(new _V(e,this.accumulator,this.seed,this.hasSeed))}}class _V extends ge{constructor(e,i,n,r){super(e),this.accumulator=i,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const i=this.index++;let n;try{n=this.accumulator(this.seed,e,i)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function ap(t){return function(i){return 0===t?sp():i.lift(new vV(t))}}class vV{constructor(e){if(this.total=e,this.total<0)throw new Lx}call(e,i){return i.subscribe(new yV(e,this.total))}}class yV extends ge{constructor(e,i){super(e),this.total=i,this.ring=new Array,this.count=0}_next(e){const i=this.ring,n=this.total,r=this.count++;i.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;oe.lift(new DV(t))}class DV{constructor(e){this.callback=e}call(e,i){return i.subscribe(new EV(e,this.callback))}}class EV extends ge{constructor(e,i){super(e),this.add(new me(i))}}const q="primary",Ws=Symbol("RouteTitle");class SV{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){const i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function Co(t){return new SV(t)}function IV(t,e,i){const n=i.path.split("/");if(n.length>t.length||"full"===i.pathMatch&&(e.hasChildren()||n.lengthn[o]===r)}return t===e}function jx(t){return t.length>0?t[t.length-1]:null}function Ii(t){return function W2(t){return!!t&&(t instanceof we||"function"==typeof t.lift&&"function"==typeof t.subscribe)}(t)?t:Ts(t)?Ze(Promise.resolve(t)):O(t)}const TV={exact:function $x(t,e,i){if(!ir(t.segments,e.segments)||!Tc(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children)if(!t.children[n]||!$x(t.children[n],e.children[n],i))return!1;return!0},subset:zx},Hx={exact:function AV(t,e){return Ln(t,e)},subset:function RV(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Bx(t[i],e[i]))},ignored:()=>!0};function Ux(t,e,i){return TV[i.paths](t.root,e.root,i.matrixParams)&&Hx[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function zx(t,e,i){return Gx(t,e,e.segments,i)}function Gx(t,e,i,n){if(t.segments.length>i.length){const r=t.segments.slice(0,i.length);return!(!ir(r,i)||e.hasChildren()||!Tc(r,i,n))}if(t.segments.length===i.length){if(!ir(t.segments,i)||!Tc(t.segments,i,n))return!1;for(const r in e.children)if(!t.children[r]||!zx(t.children[r],e.children[r],n))return!1;return!0}{const r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!(ir(t.segments,r)&&Tc(t.segments,r,n)&&t.children[q])&&Gx(t.children[q],e,o,n)}}function Tc(t,e,i){return e.every((n,r)=>Hx[i](t[r].parameters,n.parameters))}class xo{constructor(e=new fe([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Co(this.queryParams)),this._queryParamMap}toString(){return PV.serialize(this)}}class fe{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ac(this)}}class Ys{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=Co(this.parameters)),this._parameterMap}toString(){return Yx(this)}}function ir(t,e){return t.length===e.length&&t.every((i,n)=>i.path===e[n].path)}let Zs=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return new lp},providedIn:"root"}),e})();class lp{parse(e){const i=new GV(e);return new xo(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){const i=`/${Xs(e.root,!0)}`,n=function LV(t){const e=Object.keys(t).map(i=>{const n=t[i];return Array.isArray(n)?n.map(r=>`${Rc(i)}=${Rc(r)}`).join("&"):`${Rc(i)}=${Rc(n)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}(e.queryParams),r="string"==typeof e.fragment?`#${function NV(t){return encodeURI(t)}(e.fragment)}`:"";return`${i}${n}${r}`}}const PV=new lp;function Ac(t){return t.segments.map(e=>Yx(e)).join("/")}function Xs(t,e){if(!t.hasChildren())return Ac(t);if(e){const i=t.children[q]?Xs(t.children[q],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==q&&n.push(`${r}:${Xs(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function OV(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===q&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==q&&(i=i.concat(e(r,n)))}),i}(t,(n,r)=>r===q?[Xs(t.children[q],!1)]:[`${r}:${Xs(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[q]?`${Ac(t)}/${i[0]}`:`${Ac(t)}/(${i.join("//")})`}}function qx(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rc(t){return qx(t).replace(/%3B/gi,";")}function cp(t){return qx(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kc(t){return decodeURIComponent(t)}function Wx(t){return kc(t.replace(/\+/g,"%20"))}function Yx(t){return`${cp(t.path)}${function FV(t){return Object.keys(t).map(e=>`;${cp(e)}=${cp(t[e])}`).join("")}(t.parameters)}`}const VV=/^[^\/()?;#]+/;function dp(t){const e=t.match(VV);return e?e[0]:""}const BV=/^[^\/()?;=#]+/,HV=/^[^=?&#]+/,$V=/^[^&#]+/;class GV{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[q]=new fe(e,i)),n}parseSegment(){const e=dp(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(e),new Ys(kc(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const i=function jV(t){const e=t.match(BV);return e?e[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=dp(this.remaining);r&&(n=r,this.capture(n))}e[kc(i)]=kc(n)}parseQueryParam(e){const i=function UV(t){const e=t.match(HV);return e?e[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function zV(t){const e=t.match($V);return e?e[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=Wx(i),o=Wx(n);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=dp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new v(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=q);const s=this.parseChildren();i[o]=1===Object.keys(s).length?s[q]:new fe([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new v(4011,!1)}}function Zx(t){return t.segments.length>0?new fe([],{[q]:t}):t}function Xx(t){const e={};for(const n of Object.keys(t.children)){const o=Xx(t.children[n]);if(n===q&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}return function qV(t){if(1===t.numberOfChildren&&t.children[q]){const e=t.children[q];return new fe(t.segments.concat(e.segments),e.children)}return t}(new fe(t.segments,e))}function rr(t){return t instanceof xo}function Qx(t){let e;const r=Zx(function i(o){const s={};for(const l of o.children){const c=i(l);s[l.outlet]=c}const a=new fe(o.url,s);return o===t&&(e=a),a}(t.root));return e??r}function Kx(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(0===e.length)return up(r,r,r,i,n);const o=function YV(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new eD(!0,0,t);let e=0,i=!1;const n=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?i=!0:".."===a?e++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new eD(i,e,n)}(e);if(o.toRoot())return up(r,r,new fe([],{}),i,n);const s=function ZV(t,e,i){if(t.isAbsolute)return new Pc(e,!0,0);if(!i)return new Pc(e,!1,NaN);if(null===i.parent)return new Pc(i,!0,0);const n=Oc(t.commands[0])?0:1;return function XV(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new v(4005,!1);r=n.segments.length}return new Pc(n,!1,r-o)}(i,i.segments.length-1+n,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?Ks(s.segmentGroup,s.index,o.commands):tD(s.segmentGroup,s.index,o.commands);return up(r,s.segmentGroup,a,i,n)}function Oc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Qs(t){return"object"==typeof t&&null!=t&&t.outlets}function up(t,e,i,n,r){let s,o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),s=t===e?i:Jx(t,e,i);const a=Zx(Xx(s));return new xo(a,o,r)}function Jx(t,e,i){const n={};return Object.entries(t.children).forEach(([r,o])=>{n[r]=o===e?i:Jx(o,e,i)}),new fe(t.segments,n)}class eD{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Oc(n[0]))throw new v(4003,!1);const r=n.find(Qs);if(r&&r!==jx(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Pc{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}}function tD(t,e,i){if(t||(t=new fe([],{})),0===t.segments.length&&t.hasChildren())return Ks(t,e,i);const n=function KV(t,e,i){let n=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return o;const s=t.segments[r],a=i[n];if(Qs(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!iD(l,c,s))return o;n+=2}else{if(!iD(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=tD(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===n[o]&&(r[o]=s)}),new fe(t.segments,r)}}function hp(t,e,i){const n=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof n&&(n=[n]),null!==n&&(e[i]=hp(new fe([],{}),0,n))}),e}function nD(t){const e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function iD(t,e,i){return t==i.path&&Ln(e,i.parameters)}const Js="imperative";class Vn{constructor(e,i){this.id=e,this.url=i}}class fp extends Vn{constructor(e,i,n="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class or extends Vn{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Nc extends Vn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ea extends Vn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=16}}class pp extends Vn{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class eB extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tB extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nB extends Vn{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class iB extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rB extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oB{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class sB{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class aB{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lB{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cB{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dB{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rD{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class uB{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ta,this.attachRef=null}}let ta=(()=>{var t;class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new uB,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class oD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){const i=mp(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){const i=mp(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){const i=gp(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return gp(e,this._root).map(i=>i.value)}}function mp(t,e){if(t===e.value)return e;for(const i of e.children){const n=mp(t,i);if(n)return n}return null}function gp(t,e){if(t===e.value)return[e];for(const i of e.children){const n=gp(t,i);if(n.length)return n.unshift(e),n}return[]}class ri{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}}function Do(t){const e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}class sD extends oD{constructor(e,i){super(e),this.snapshot=i,_p(this,e)}toString(){return this.snapshot.toString()}}function aD(t,e){const i=function hB(t,e){const s=new Fc([],{},{},"",{},q,e,null,{});return new cD("",new ri(s,[]))}(0,e),n=new At([new Ys("",{})]),r=new At({}),o=new At({}),s=new At({}),a=new At(""),l=new Eo(n,r,s,a,o,q,e,i.root);return l.snapshot=i.root,new sD(new ri(l,[]),i)}class Eo{constructor(e,i,n,r,o,s,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Y(c=>c[Ws]))??O(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Y(e=>Co(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Y(e=>Co(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function lD(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function fB(t){return t.reduce((e,i)=>({params:{...e.params,...i.params},data:{...e.data,...i.data},resolve:{...i.data,...e.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Fc{get title(){return this.data?.[Ws]}constructor(e,i,n,r,o,s,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Co(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Co(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cD extends oD{constructor(e,i){super(i),this.url=e,_p(this,i)}toString(){return dD(this._root)}}function _p(t,e){e.value._routerState=t,e.children.forEach(i=>_p(t,i))}function dD(t){const e=t.children.length>0?` { ${t.children.map(dD).join(", ")} } `:"";return`${t.value}${e}`}function vp(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Ln(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),Ln(e.params,i.params)||t.paramsSubject.next(i.params),function MV(t,e){if(t.length!==e.length)return!1;for(let i=0;iLn(i.parameters,e[n].parameters))}(t.url,e.url);return i&&!(!t.parent!=!e.parent)&&(!t.parent||yp(t.parent,e.parent))}let bp=(()=>{var t;class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new se,this.deactivateEvents=new se,this.attachEvents=new se,this.detachEvents=new se,this.parentContexts=E(ta),this.location=E(Jt),this.changeDetector=E(Fn),this.environmentInjector=E(Zt),this.inputBinder=E(Lc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;const o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new pB(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275dir=A({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class pB{constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Eo?this.route:e===ta?this.childContexts:this.parent.get(e,i)}}const Lc=new C("");let uD=(()=>{var t;class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Dc([r.queryParams,r.params,r.data]).pipe(zt(([s,a,l],c)=>(l={...s,...a,...l},0===c?O(l):Promise.resolve(l)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const a=function DF(t){const e=J(t);if(!e)return null;const i=new Ds(e);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}(r.component);if(a)for(const{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,s[l]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();function na(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const r=function gB(t,e,i){return e.children.map(n=>{for(const r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return na(t,n,r);return na(t,n)})}(t,e,i);return new ri(n,r)}{if(t.shouldAttach(e.value)){const o=t.retrieve(e.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>na(t,a)),s}}const n=function _B(t){return new Eo(new At(t.url),new At(t.params),new At(t.queryParams),new At(t.fragment),new At(t.data),t.outlet,t.component,t)}(e.value),r=e.children.map(o=>na(t,o));return new ri(n,r)}}const wp="ngNavigationCancelingError";function hD(t,e){const{redirectTo:i,navigationBehaviorOptions:n}=rr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=fD(!1,0,e);return r.url=i,r.navigationBehaviorOptions=n,r}function fD(t,e,i){const n=new Error("NavigationCancelingError: "+(t||""));return n[wp]=!0,n.cancellationCode=e,i&&(n.url=i),n}function pD(t){return mD(t)&&rr(t.url)}function mD(t){return t&&t[wp]}let gD=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Wt({type:t,selectors:[["ng-component"]],standalone:!0,features:[uw],decls:1,vars:0,template:function(n,r){1&n&&Qt(0,"router-outlet")},dependencies:[bp],encapsulation:2}),e})();function Cp(t){const e=t.children&&t.children.map(Cp),i=e?{...t,children:e}:{...t};return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==q&&(i.component=gD),i}function _n(t){return t.outlet||q}function ia(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class DB{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){const i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),vp(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){const r=Do(i);e.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){const r=e.value,o=i?i.value:null;if(r===o)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){const n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Do(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(n&&n.outlet){const s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){const n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Do(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){const r=Do(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new dB(o.value.snapshot))}),e.children.length&&this.forwardEvent(new lB(e.value.snapshot))}activateRoutes(e,i,n){const r=e.value,o=i?i.value:null;if(vp(r),r===o)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),vp(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=ia(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}}class _D{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Vc{constructor(e,i){this.component=e,this.route=i}}function EB(t,e,i){const n=t._root;return ra(n,e?e._root:null,i,[n.value])}function So(t,e){const i=Symbol(),n=e.get(t,i);return n===i?"function"!=typeof t||function FI(t){return null!==La(t)}(t)?e.get(t):t:n}function ra(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Do(e);return t.children.forEach(s=>{(function IB(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function MB(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!ir(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ir(t.url,e.url)||!Ln(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yp(t,e)||!Ln(t.queryParams,e.queryParams);default:return!yp(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new _D(n)):(o.data=s.data,o._resolvedData=s._resolvedData),ra(t,e,o.component?a?a.children:null:i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Vc(a.outlet.component,s))}else s&&oa(e,a,r),r.canActivateChecks.push(new _D(n)),ra(t,null,o.component?a?a.children:null:i,n,r)})(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>oa(a,i.getContext(s),r)),r}function oa(t,e,i){const n=Do(t),r=t.value;Object.entries(n).forEach(([o,s])=>{oa(s,r.component?e?e.children.getContext(o):null:e,i)}),i.canDeactivateChecks.push(new Vc(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function sa(t){return"function"==typeof t}function vD(t){return t instanceof Ec||"EmptyError"===t?.name}const Bc=Symbol("INITIAL_VALUE");function Io(){return zt(t=>Dc(t.map(e=>e.pipe(gn(1),bo(Bc)))).pipe(Y(e=>{for(const i of e)if(!0!==i){if(i===Bc)return Bc;if(!1===i||i instanceof xo)return i}return!0}),rn(e=>e!==Bc),gn(1)))}function yD(t){return function nI(...t){return Km(t)}(Ge(e=>{if(rr(e))throw hD(0,e)}),Y(e=>!0===e))}class jc{constructor(e){this.segmentGroup=e||null}}class bD{constructor(e){this.urlTree=e}}function Mo(t){return yo(new jc(t))}function wD(t){return yo(new bD(t))}class YB{constructor(e,i){this.urlSerializer=e,this.urlTree=i}noMatchError(e){return new v(4002,!1)}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return O(n);if(r.numberOfChildren>1||!r.children[q])return yo(new v(4e3,!1));r=r.children[q]}}applyRedirectCommands(e,i,n){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n)}applyRedirectCreateUrlTree(e,i,n,r){const o=this.createSegmentGroup(e,i.root,n,r);return new xo(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){const n={};return Object.entries(e).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){const o=this.createSegments(e,i.segments,n,r);let s={};return Object.entries(i.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,r)}),new fe(o,s)}createSegments(e,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){const r=n[i.path.substring(1)];if(!r)throw new v(4001,!1);return r}findOrReturn(e,i){let n=0;for(const r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}}const xp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ZB(t,e,i,n,r){const o=Dp(t,e,i);return o.matched?(n=function vB(t,e){return t.providers&&!t._injector&&(t._injector=Jh(t.providers,e,`Route: ${t.path}`)),t._injector??e}(e,n),function GB(t,e,i,n){const r=e.canMatch;return r&&0!==r.length?O(r.map(s=>{const a=So(s,t);return Ii(function PB(t){return t&&sa(t.canMatch)}(a)?a.canMatch(e,i):t.runInContext(()=>a(e,i)))})).pipe(Io(),yD()):O(!0)}(n,e,i).pipe(Y(s=>!0===s?o:{...xp}))):O(o)}function Dp(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{...xp}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(e.matcher||IV)(i,t,e);if(!r)return{...xp};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function CD(t,e,i,n){return i.length>0&&function KB(t,e,i){return i.some(n=>Hc(t,e,n)&&_n(n)!==q)}(t,i,n)?{segmentGroup:new fe(e,QB(n,new fe(i,t.children))),slicedSegments:[]}:0===i.length&&function JB(t,e,i){return i.some(n=>Hc(t,e,n))}(t,i,n)?{segmentGroup:new fe(t.segments,XB(t,0,i,n,t.children)),slicedSegments:i}:{segmentGroup:new fe(t.segments,t.children),slicedSegments:i}}function XB(t,e,i,n,r){const o={};for(const s of n)if(Hc(t,i,s)&&!r[_n(s)]){const a=new fe([],{});o[_n(s)]=a}return{...r,...o}}function QB(t,e){const i={};i[q]=e;for(const n of t)if(""===n.path&&_n(n)!==q){const r=new fe([],{});i[_n(n)]=r}return i}function Hc(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}class ij{constructor(e,i,n,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new YB(this.urlSerializer,this.urlTree)}noMatchError(e){return new v(4002,!1)}recognize(){const e=CD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,q).pipe(nr(i=>{if(i instanceof bD)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof jc?this.noMatchError(i):i}),Y(i=>{const n=new Fc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),r=new ri(n,i),o=new cD("",r),s=function WV(t,e,i=null,n=null){return Kx(Qx(t),e,i,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e.root,q).pipe(nr(n=>{throw n instanceof jc?this.noMatchError(n):n}))}inheritParamsAndData(e){const i=e.value,n=lD(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),e.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(e,i,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0)}processChildren(e,i,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Ze(r).pipe(wo(o=>{const s=n.children[o],a=function CB(t,e){const i=t.filter(n=>_n(n)===e);return i.push(...t.filter(n=>_n(n)!==e)),i}(i,o);return this.processSegmentGroup(e,a,s,o)}),function mV(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(r){return r.lift(new gV(t,e,i))}}((o,s)=>(o.push(...s),o)),Ic(null),function bV(t,e){const i=arguments.length>=2;return n=>n.pipe(t?rn((r,o)=>t(r,o,n)):ka,ap(1),i?Ic(e):Vx(()=>new Ec))}(),tt(o=>{if(null===o)return Mo(n);const s=xD(o);return function rj(t){t.sort((e,i)=>e.value.outlet===q?-1:i.value.outlet===q?1:e.value.outlet.localeCompare(i.value.outlet))}(s),O(s)}))}processSegment(e,i,n,r,o,s){return Ze(i).pipe(wo(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,o,s).pipe(nr(l=>{if(l instanceof jc)return O(null);throw l}))),tr(a=>!!a),nr(a=>{if(vD(a))return function tj(t,e,i){return 0===e.length&&!t.children[i]}(n,r,o)?O([]):Mo(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,o,s,a){return function ej(t,e,i,n){return!!(_n(t)===n||n!==q&&Hc(e,i,t))&&("**"===t.path||Dp(e,t,i).matched)}(n,r,o,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,r,n,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s):Mo(r):Mo(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,n,r){const o=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?wD(o):this.applyRedirects.lineralizeSegments(n,o).pipe(tt(s=>{const a=new fe(s,{});return this.processSegment(e,i,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:d}=Dp(i,r,o);if(!a)return Mo(i);const u=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?wD(u):this.applyRedirects.lineralizeSegments(r,u).pipe(tt(h=>this.processSegment(e,n,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,i,n,r,o,s){let a;if("**"===n.path){const l=r.length>0?jx(r).parameters:{};a=O({snapshot:new Fc(r,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DD(n),_n(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else a=ZB(i,n,r,e).pipe(Y(({matched:l,consumedSegments:c,remainingSegments:d,parameters:u})=>l?{snapshot:new Fc(c,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,DD(n),_n(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:c,remainingSegments:d}:null));return a.pipe(zt(l=>null===l?Mo(i):this.getChildConfig(e=n._injector??e,n,r).pipe(zt(({routes:c})=>{const d=n._loadedInjector??e,{snapshot:u,consumedSegments:h,remainingSegments:f}=l,{segmentGroup:p,slicedSegments:m}=CD(i,h,f,c);if(0===m.length&&p.hasChildren())return this.processChildren(d,c,p).pipe(Y(x=>null===x?null:[new ri(u,x)]));if(0===c.length&&0===m.length)return O([new ri(u,[])]);const y=_n(n)===o;return this.processSegment(d,c,p,m,y?q:o,!0).pipe(Y(x=>[new ri(u,x)]))}))))}getChildConfig(e,i,n){return i.children?O({routes:i.children,injector:e}):i.loadChildren?void 0!==i._loadedRoutes?O({routes:i._loadedRoutes,injector:i._loadedInjector}):function zB(t,e,i,n){const r=e.canLoad;return void 0===r||0===r.length?O(!0):O(r.map(s=>{const a=So(s,t);return Ii(function AB(t){return t&&sa(t.canLoad)}(a)?a.canLoad(e,i):t.runInContext(()=>a(e,i)))})).pipe(Io(),yD())}(e,i,n).pipe(tt(r=>r?this.configLoader.loadChildren(e,i).pipe(Ge(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):function WB(t){return yo(fD(!1,3))}())):O({routes:[],injector:e})}}function oj(t){const e=t.value.routeConfig;return e&&""===e.path}function xD(t){const e=[],i=new Set;for(const n of t){if(!oj(n)){e.push(n);continue}const r=e.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),i.add(r)):e.push(n)}for(const n of i){const r=xD(n.children);e.push(new ri(n.value,r))}return e.filter(n=>!i.has(n))}function DD(t){return t.data||{}}function ED(t){return t.resolve||{}}function SD(t){return"string"==typeof t.title||null===t.title}function Ep(t){return zt(e=>{const i=t(e);return i?Ze(i).pipe(Y(()=>e)):O(e)})}const To=new C("ROUTES");let Sp=(()=>{var t;class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=E(rC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return O(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Ii(n.loadComponent()).pipe(Y(ID),Ge(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Mc(()=>{this.componentLoaders.delete(n)})),o=new $d(r,()=>new de).pipe(Pa());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return O({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(Y(l=>{this.onLoadEndListener&&this.onLoadEndListener(r);let c,d;return Array.isArray(l)?d=l:(c=l.create(n).injector,d=c.get(To,[],Z.Self|Z.Optional).flat()),{routes:d.map(Cp),injector:c}}),Mc(()=>{this.childrenLoaders.delete(r)})),a=new $d(s,()=>new de).pipe(Pa());return this.childrenLoaders.set(r,a),a}loadModuleFactoryOrRoutes(n){return Ii(n()).pipe(Y(ID),tt(r=>r instanceof cw||Array.isArray(r)?O(r):Ze(this.compiler.compileModuleAsync(r))))}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function ID(t){return function hj(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let Uc=(()=>{var t;class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new de,this.configLoader=E(Sp),this.environmentInjector=E(Zt),this.urlSerializer=E(Zs),this.rootContexts=E(ta),this.inputBindingEnabled=null!==E(Lc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>O(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new sB(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new oB(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new At({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Js,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(rn(r=>0!==r.id),Y(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),zt(r=>{let o=!1,s=!1;return O(r).pipe(Ge(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),zt(a=>{const l=n.browserUrlTree.toString(),c=!n.navigated||a.extractedUrl.toString()!==l||l!==n.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const u="";return this.events.next(new ea(a.id,n.serializeUrl(r.rawUrl),u,0)),n.rawUrlTree=a.rawUrl,a.resolve(null),er}if(n.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return MD(a.source)&&(n.browserUrlTree=a.extractedUrl),O(a).pipe(zt(u=>{const h=this.transitions?.getValue();return this.events.next(new fp(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?er:Promise.resolve(u)}),function sj(t,e,i,n,r,o){return tt(s=>function nj(t,e,i,n,r,o,s="emptyOnly"){return new ij(t,e,i,n,r,s,o).recognize()}(t,e,i,n,s.extractedUrl,r,o).pipe(Y(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Ge(u=>{if(r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!u.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);n.setBrowserUrl(f,u)}n.browserUrlTree=u.urlAfterRedirects}const h=new eB(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(c&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:u,extractedUrl:h,source:f,restoredState:p,extras:m}=a,y=new fp(u,this.urlSerializer.serialize(h),f,p);this.events.next(y);const x=aD(0,this.rootComponentType).snapshot;return O(r={...a,targetSnapshot:x,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new ea(a.id,n.serializeUrl(r.extractedUrl),u,1)),n.rawUrlTree=a.rawUrl,a.resolve(null),er}}),Ge(a=>{const l=new tB(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Y(a=>r={...a,guards:EB(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function FB(t,e){return tt(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return 0===s.length&&0===o.length?O({...i,guardsResult:!0}):function LB(t,e,i,n){return Ze(t).pipe(tt(r=>function $B(t,e,i,n,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?O(o.map(a=>{const l=ia(e)??r,c=So(a,l);return Ii(function OB(t){return t&&sa(t.canDeactivate)}(c)?c.canDeactivate(t,e,i,n):l.runInContext(()=>c(t,e,i,n))).pipe(tr())})).pipe(Io()):O(!0)}(r.component,r.route,i,e,n)),tr(r=>!0!==r,!0))}(s,n,r,t).pipe(tt(a=>a&&function TB(t){return"boolean"==typeof t}(a)?function VB(t,e,i,n){return Ze(e).pipe(wo(r=>Sc(function jB(t,e){return null!==t&&e&&e(new aB(t)),O(!0)}(r.route.parent,n),function BB(t,e){return null!==t&&e&&e(new cB(t)),O(!0)}(r.route,n),function UB(t,e,i){const n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>function SB(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>Fx(()=>O(s.guards.map(l=>{const c=ia(s.node)??i,d=So(l,c);return Ii(function kB(t){return t&&sa(t.canActivateChild)}(d)?d.canActivateChild(n,t):c.runInContext(()=>d(n,t))).pipe(tr())})).pipe(Io())));return O(o).pipe(Io())}(t,r.path,i),function HB(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return O(!0);const r=n.map(o=>Fx(()=>{const s=ia(e)??i,a=So(o,s);return Ii(function RB(t){return t&&sa(t.canActivate)}(a)?a.canActivate(e,t):s.runInContext(()=>a(e,t))).pipe(tr())}));return O(r).pipe(Io())}(t,r.route,i))),tr(r=>!0!==r,!0))}(n,o,t,e):O(a)),Y(a=>({...i,guardsResult:a})))})}(this.environmentInjector,a=>this.events.next(a)),Ge(a=>{if(r.guardsResult=a.guardsResult,rr(a.guardsResult))throw hD(0,a.guardsResult);const l=new nB(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(l)}),rn(a=>!!a.guardsResult||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Ep(a=>{if(a.guards.canActivateChecks.length)return O(a).pipe(Ge(l=>{const c=new iB(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),zt(l=>{let c=!1;return O(l).pipe(function aj(t,e){return tt(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return O(i);let o=0;return Ze(r).pipe(wo(s=>function lj(t,e,i,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!SD(r)&&(o[Ws]=r.title),function cj(t,e,i,n){const r=function dj(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return O({});const o={};return Ze(r).pipe(tt(s=>function uj(t,e,i,n){const r=ia(e)??n,o=So(t,r);return Ii(o.resolve?o.resolve(e,i):r.runInContext(()=>o(e,i)))}(t[s],e,i,n).pipe(tr(),Ge(a=>{o[s]=a}))),ap(1),function wV(t){return e=>e.lift(new CV(t))}(o),nr(s=>vD(s)?er:yo(s)))}(o,t,e,n).pipe(Y(s=>(t._resolvedData=s,t.data=lD(t,i).resolve,r&&SD(r)&&(t.data[Ws]=r.title),null)))}(s.route,n,t,e)),Ge(()=>o++),ap(1),tt(s=>o===r.length?O(i):er))})}(n.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>c=!0,complete:()=>{c||(n.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Ge(l=>{const c=new rB(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}))}),Ep(a=>{const l=c=>{const d=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(Ge(u=>{c.component=u}),Y(()=>{})));for(const u of c.children)d.push(...l(u));return d};return Dc(l(a.targetSnapshot.root)).pipe(Ic(),gn(1))}),Ep(()=>this.afterPreactivation()),Y(a=>{const l=function mB(t,e,i){const n=na(t,e._root,i?i._root:void 0);return new sD(n,e)}(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Ge(a=>{n.currentUrlTree=a.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),n.routerState=a.targetRouterState,"deferred"===n.urlUpdateStrategy&&(a.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,a),n.browserUrlTree=a.urlAfterRedirects)}),((t,e,i,n)=>Y(r=>(new DB(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)))(this.rootContexts,n.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),gn(1),Ge({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new or(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),Mc(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),nr(a=>{if(s=!0,mD(a)){pD(a)||(n.navigated=!0,n.restoreHistory(r,!0));const l=new Nc(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode);if(this.events.next(l),pD(a)){const c=n.urlHandlingStrategy.merge(a.url,n.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||MD(r.source)};n.scheduleNavigation(c,Js,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const l=new pp(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);this.events.next(l);try{r.resolve(n.errorHandler(a))}catch(c){r.reject(c)}}return er}))}))}cancelNavigationTransition(n,r,o){const s=new Nc(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function MD(t){return t!==Js}let TD=(()=>{var t;class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[Ws]}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(fj)},providedIn:"root"}),e})(),fj=(()=>{var t;class e extends TD{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Ax))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),pj=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(gj)},providedIn:"root"}),e})();class mj{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}}let gj=(()=>{var t;class e extends mj{}return(t=e).\u0275fac=function(){let i;return function(r){return(i||(i=Le(t)))(r||t)}}(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const $c=new C("",{providedIn:"root",factory:()=>({})});let _j=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(vj)},providedIn:"root"}),e})(),vj=(()=>{var t;class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();var aa=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(aa||{});function AD(t,e){t.events.pipe(rn(i=>i instanceof or||i instanceof Nc||i instanceof pp||i instanceof ea),Y(i=>i instanceof or||i instanceof ea?aa.COMPLETE:i instanceof Nc&&(0===i.code||1===i.code)?aa.REDIRECTING:aa.FAILED),rn(i=>i!==aa.REDIRECTING),gn(1)).subscribe(()=>{e()})}function yj(t){throw t}function bj(t,e,i){return e.parse("/")}const wj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Cj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let on=(()=>{var t;class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=E(nC),this.isNgZoneEnabled=!1,this.options=E($c,{optional:!0})||{},this.pendingTasks=E(iC),this.errorHandler=this.options.errorHandler||yj,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||bj,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=E(_j),this.routeReuseStrategy=E(pj),this.titleStrategy=E(TD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=E(To,{optional:!0})?.flat()??[],this.navigationTransitions=E(Uc),this.urlSerializer=E(Zs),this.location=E(cc),this.componentInputBindingEnabled=!!E(Lc,{optional:!0}),this.isNgZoneEnabled=E(X)instanceof X&&X.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new xo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=aD(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Js,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(s.state=c)}const l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Cp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,d=c?this.currentUrlTree.fragment:a;let h,u=null;switch(l){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{h=Qx(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return Kx(h,n,u,d??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=rr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Js,null,r)}navigate(n,r={skipLocationChange:!1}){return function xj(t){for(let e=0;e{const s=n[o];return null!=s&&(r[o]=s),r},{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((h,f)=>{l=h,c=f});const u=this.pendingTasks.add();return AD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const a={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",s)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-(this.browserPageId??this.currentPageId);0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class RD{}let Sj=(()=>{var t;class e{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(rn(n=>n instanceof or),wo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const s of r){s.providers&&!s._injector&&(s._injector=Jh(s.providers,n,`Route: ${s.path}`));const a=s._injector??n,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return Ze(o).pipe(xr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):O(null);const s=o.pipe(tt(a=>null===a?O(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));return r.loadComponent&&!r._loadedComponent?Ze([s,this.loader.loadComponent(r)]).pipe(xr()):s})}}return(t=e).\u0275fac=function(n){return new(n||t)(b(on),b(rC),b(Zt),b(RD),b(Sp))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const Mp=new C("");let kD=(()=>{var t;class e{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof fp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof or?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ea&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof rD&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new rD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(t=e).\u0275fac=function(n){bh()},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();function oi(t,e){return{\u0275kind:t,\u0275providers:e}}function PD(){const t=E(rt);return e=>{const i=t.get(xi);if(e!==i.components[0])return;const n=t.get(on),r=t.get(ND);1===t.get(Tp)&&n.initialNavigation(),t.get(FD,null,Z.Optional)?.setUpPreloading(),t.get(Mp,null,Z.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const ND=new C("",{factory:()=>new de}),Tp=new C("",{providedIn:"root",factory:()=>1}),FD=new C("");function Aj(t){return oi(0,[{provide:FD,useExisting:Sj},{provide:RD,useExisting:t}])}const LD=new C("ROUTER_FORROOT_GUARD"),kj=[cc,{provide:Zs,useClass:lp},on,ta,{provide:Eo,useFactory:function OD(t){return t.routerState.root},deps:[on]},Sp,[]];function Oj(){return new gC("Router",on)}let VD=(()=>{var t;class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[kj,[],{provide:To,multi:!0,useValue:n},{provide:LD,useFactory:Lj,deps:[[on,new Ui,new os]]},{provide:$c,useValue:r||{}},r?.useHash?{provide:Ji,useClass:TF}:{provide:Ji,useClass:GC},{provide:Mp,useFactory:()=>{const t=E(qL),e=E(X),i=E($c),n=E(Uc),r=E(Zs);return i.scrollOffset&&t.setOffset(i.scrollOffset),new kD(r,n,t,e,i)}},r?.preloadingStrategy?Aj(r.preloadingStrategy).\u0275providers:[],{provide:gC,multi:!0,useFactory:Oj},r?.initialNavigation?Vj(r):[],r?.bindToComponentInputs?oi(8,[uD,{provide:Lc,useExisting:uD}]).\u0275providers:[],[{provide:BD,useFactory:PD},{provide:Ef,multi:!0,useExisting:BD}]]}}static forChild(n){return{ngModule:e,providers:[{provide:To,multi:!0,useValue:n}]}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(LD,8))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();function Lj(t){return"guarded"}function Vj(t){return["disabled"===t.initialNavigation?oi(3,[{provide:mf,multi:!0,useFactory:()=>{const e=E(on);return()=>{e.setUpLocationChangeListener()}}},{provide:Tp,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?oi(2,[{provide:Tp,useValue:0},{provide:mf,multi:!0,deps:[rt],useFactory:e=>{const i=e.get(IF,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=e.get(on),o=e.get(ND);AD(r,()=>{n(!0)}),e.get(Uc).afterPreactivation=()=>(n(!0),o.closed?O(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const BD=new C("");function jD(t,e,i,n,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void i(c)}a.done?e(l):Promise.resolve(l).then(n,r)}let Ap;try{Ap=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ap=!1}let la,sr,Rp,Bt=(()=>{var t;class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?function GL(t){return t===ux}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ap)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(t=e).\u0275fac=function(n){return new(n||t)(b(qi))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function ca(t){return function Hj(){if(null==la&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>la=!0}))}finally{la=la||!1}return la}()?t:!!t.capture}function Uj(){if(null==sr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return sr=!1,sr;if("scrollBehavior"in document.documentElement.style)sr=!0;else{const t=Element.prototype.scrollTo;sr=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return sr}function Mi(t){return t.composedPath?t.composedPath()[0]:t.target}function kp(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function qc(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class dH extends me{constructor(e,i){super()}schedule(e,i=0){return this}}class Np extends dH{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,i)),this.pending=!0,this.delay=i,this.id=this.id||this.requestAsyncId(r,this.id,i),this}requestAsyncId(e,i,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return i;clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,i);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let r,n=!1;try{this.work(e)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,i=this.scheduler,n=i.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null}}let $D=(()=>{class t{constructor(i,n=t.now){this.SchedulerAction=i,this.now=n}schedule(i,n=0,r){return new this.SchedulerAction(this,i).schedule(r,n)}}return t.now=()=>Date.now(),t})();class Bn extends $D{constructor(e,i=$D.now){super(e,()=>Bn.delegate&&Bn.delegate!==this?Bn.delegate.now():i()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,i=0,n){return Bn.delegate&&Bn.delegate!==this?Bn.delegate.schedule(e,i,n):super.schedule(e,i,n)}flush(e){const{actions:i}=this;if(this.active)return void i.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=i.shift());if(this.active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}}const Fp=new Bn(Np);function zD(t,e=Fp){return i=>i.lift(new uH(t,e))}class uH{constructor(e,i){this.dueTime=e,this.scheduler=i}call(e,i){return i.subscribe(new hH(e,this.dueTime,this.scheduler))}}class hH extends ge{constructor(e,i,n){super(e),this.dueTime=i,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(fH,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function fH(t){t.debouncedNext()}function GD(t){return e=>e.lift(new pH(t))}class pH{constructor(e){this.total=e}call(e,i){return i.subscribe(new mH(e,this.total))}}class mH extends ge{constructor(e,i){super(e),this.total=i,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function Be(t){return e=>e.lift(new gH(t))}class gH{constructor(e){this.notifier=e}call(e,i){const n=new _H(e),r=Ho(this.notifier,new Bo(n));return r&&!n.seenValue?(n.add(r),i.subscribe(n)):n}}class _H extends jo{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function qe(t){return null!=t&&"false"!=`${t}`}function Lp(t,e=0){return function vH(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Wc(t){return Array.isArray(t)?t:[t]}function He(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ro(t){return t instanceof he?t.nativeElement:t}let yH=(()=>{var t;class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),bH=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[yH]}),e})();const qD=new Set;let ar,wH=(()=>{var t;class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xH}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function CH(t,e){if(!qD.has(t))try{ar||(ar=document.createElement("style"),e&&(ar.nonce=e),ar.setAttribute("type","text/css"),document.head.appendChild(ar)),ar.sheet&&(ar.sheet.insertRule(`@media ${t} {body{ }}`,0),qD.add(t))}catch(i){console.error(i)}}(n,this._nonce),this._matchMedia(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(oh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function xH(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let DH=(()=>{var t;class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return WD(Wc(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let s=Dc(WD(Wc(n)).map(a=>this._registerQuery(a).observable));return s=Sc(s.pipe(gn(1)),s.pipe(GD(1),zD(0))),s.pipe(Y(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);const r=this._mediaMatcher.matchMedia(n),s={observable:new we(a=>{const l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(bo(r),Y(({matches:a})=>({query:n,matches:a})),Be(this._destroySubject)),mql:r};return this._queries.set(n,s),s}}return(t=e).\u0275fac=function(n){return new(n||t)(b(wH),b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function WD(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}function Yc(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const ZD="cdk-describedby-message",Zc="cdk-describedby-host";let Vp=0,IH=(()=>{var t;class e{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Vp++,this._document=n,this._id=E(ps)+"-"+Vp++}describe(n,r,o){if(!this._canBeDescribed(n,r))return;const s=Bp(r,o);"string"!=typeof r?(XD(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,r,o){if(!r||!this._isElementNode(n))return;const s=Bp(r,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),"string"==typeof r){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const n=this._document.querySelectorAll(`[${Zc}="${this._id}"]`);for(let r=0;r0!=o.indexOf(ZD));n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){const o=this._messageRegistry.get(r);(function EH(t,e,i){const n=Yc(t,e);n.some(r=>r.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))})(n,"aria-describedby",o.messageElement.id),n.setAttribute(Zc,this._id),o.referenceCount++}_removeMessageReference(n,r){const o=this._messageRegistry.get(r);o.referenceCount--,function SH(t,e,i){const r=Yc(t,e).filter(o=>o!=i.trim());r.length?t.setAttribute(e,r.join(" ")):t.removeAttribute(e)}(n,"aria-describedby",o.messageElement.id),n.removeAttribute(Zc)}_isElementDescribedByMessage(n,r){const o=Yc(n,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&"object"==typeof r)return!0;const o=null==r?"":`${r}`.trim(),s=n.getAttribute("aria-label");return!(!o||s&&s.trim()===o)}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q),b(Bt))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function Bp(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function XD(t,e){t.id||(t.id=`${ZD}-${e}-${Vp++}`)}class MH{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new de,this._typeaheadSubscription=me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new de,this.change=new de,e instanceof po&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){const r=i.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ge(i=>this._pressedLetters.push(i)),zD(e),rn(()=>this._pressedLetters.length>0),Y(()=>this._pressedLetters.join(""))).subscribe(i=>{const n=this._getItemsArray();for(let r=1;r!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const i=this._getItemsArray(),n="number"==typeof e?e:i.indexOf(e);this._activeItem=i[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const i=this._getItemsArray();for(let n=1;n<=i.length;n++){const r=(this._activeItemIndex+e*n+i.length)%i.length;if(!this._skipPredicateFn(i[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=i])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof po?this._items.toArray():this._items}}class TH extends MH{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function KD(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function JD(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const NH=new C("cdk-input-modality-detector-options"),FH={ignoreKeys:[18,17,224,91,16]},ko=ca({passive:!0,capture:!0});let LH=(()=>{var t;class e{get mostRecentModality(){return this._modality.value}constructor(n,r,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new At(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Mi(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(KD(a)?"keyboard":"mouse"),this._mostRecentTarget=Mi(a))},this._onTouchstart=a=>{JD(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Mi(a))},this._options={...FH,...s},this.modalityDetected=this._modality.pipe(GD(1)),this.modalityChanged=this.modalityDetected.pipe(og()),n.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,ko),o.addEventListener("mousedown",this._onMousedown,ko),o.addEventListener("touchstart",this._onTouchstart,ko)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ko),document.removeEventListener("mousedown",this._onMousedown,ko),document.removeEventListener("touchstart",this._onTouchstart,ko))}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(X),b(Q),b(NH,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const BH=new C("cdk-focus-monitor-default-options"),Xc=ca({passive:!0,capture:!0});let jp=(()=>{var t;class e{constructor(n,r,o,s,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new de,this._rootNodeFocusAndBlurListener=l=>{for(let d=Mi(l);d;d=d.parentElement)"focus"===l.type?this._onFocus(l,d):this._onBlur(l,d)},this._document=s,this._detectionMode=a?.detectionMode||0}monitor(n,r=!1){const o=Ro(n);if(!this._platform.isBrowser||1!==o.nodeType)return O();const s=function zj(t){if(function $j(){if(null==Rp){const t=typeof document<"u"?document.head:null;Rp=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Rp}()){const e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;const l={checkChildren:r,subject:new de,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){const r=Ro(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(n,r,o){const s=Ro(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return 1===this._detectionMode||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused","touch"===r),n.classList.toggle("cdk-keyboard-focused","keyboard"===r),n.classList.toggle("cdk-mouse-focused","mouse"===r),n.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=n,this._originFromTouchInteraction="touch"===n&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(n,r){const o=this._elementInfo.get(r),s=Mi(n);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(n,r){const o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;const r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Xc),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Xc)}),this._rootNodeFocusListenerCount.set(r,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Be(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){const r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xc),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xc),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){const r=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(n){const{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!r||r===n||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName||n.disabled)return!1;const s=n.labels;if(s)for(let a=0;a{var t;class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=E(DH).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);const r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const n=this._document.body.classList;n.remove(Hp,t0,n0),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?n.add(Hp,t0):2===r&&n.add(Hp,n0)}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),jH=(()=>{var t;class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(r0))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[bH]}),e})();const HH=new C("cdk-dir-doc",{providedIn:"root",factory:function UH(){return E(Q)}}),$H=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Qc=(()=>{var t;class e{constructor(n){this.value="ltr",this.change=new se,n&&(this.value=function zH(t){const e=t?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?$H.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((n.body?n.body.dir:null)||(n.documentElement?n.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(HH,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),da=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();const qH=new C("mat-sanity-checks",{providedIn:"root",factory:function GH(){return!0}});let vn=(()=>{var t;class e{constructor(n,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return!kp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}return(t=e).\u0275fac=function(n){return new(n||t)(b(r0),b(qH,8),b(Q))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[da,da]}),e})();function WH(t){return class extends t{get disabled(){return this._disabled}set disabled(e){this._disabled=qe(e)}constructor(...e){super(...e),this._disabled=!1}}}function l0(t,e){return class extends t{get color(){return this._color}set color(i){const n=i||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function YH(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=qe(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function Up(t,e=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=null!=i?Lp(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}let c0=(()=>{var t;class e{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class QH{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const d0=ca({passive:!0,capture:!0});class KH{constructor(){this._events=new Map,this._delegateEventHandler=e=>{const i=Mi(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,i,n,r){const o=this._events.get(i);if(o){const s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,d0)})}removeHandler(e,i,n){const r=this._events.get(e);if(!r)return;const o=r.get(i);o&&(o.delete(n),0===o.size&&r.delete(i),0===r.size&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,d0)))}}const u0={enterDuration:225,exitDuration:150},h0=ca({passive:!0,capture:!0}),f0=["mousedown","touchstart"],p0=["mouseup","mouseleave","touchend","touchcancel"];class ha{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ro(n))}fadeInRipple(e,i,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...u0,...n.animation};n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);const s=n.radius||function eU(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(e,i,r),a=e-r.left,l=i-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,p="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,m=new QH(this,d,n,p);d.style.transform="scale3d(1, 1, 1)",m.state=0,n.persistent||(this._mostRecentTransientRipple=m);let y=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const x=()=>this._finishRippleTransition(m),_=()=>this._destroyRipple(m);d.addEventListener("transitionend",x),d.addEventListener("transitioncancel",_),y={onTransitionEnd:x,onTransitionCancel:_}}),this._activeRipples.set(m,y),(p||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(e){if(2===e.state||3===e.state)return;const i=e.element,n={...u0,...e.config.animation};i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const i=Ro(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,f0.forEach(n=>{ha._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{p0.forEach(i=>{this._triggerElement.addEventListener(i,this,h0)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){0===e.state?this._startFadeOutTransition(e):2===e.state&&this._destroyRipple(e)}_startFadeOutTransition(e){const i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=1,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){const i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,null!==i&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){const i=KD(e),n=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const e=this._triggerElement;e&&(f0.forEach(i=>ha._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&p0.forEach(i=>e.removeEventListener(i,this,h0)))}}ha._eventManager=new KH;const Kc=new C("mat-ripple-global-options");let tU=(()=>{var t;class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new ha(this,r,n,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,o){return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,r,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...n})}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(X),g(Bt),g(Kc,8),g(Yn,8))},t.\u0275dir=A({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){2&n&&St("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),e})(),nU=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[vn,vn]}),e})();const m0={capture:!0},g0=["focus","click","mouseenter","touchstart"],$p="mat-ripple-loader-uninitialized",zp="mat-ripple-loader-class-name",_0="mat-ripple-loader-centered",Jc="mat-ripple-loader-disabled";let iU=(()=>{var t;class e{constructor(){this._document=E(Q,{optional:!0}),this._animationMode=E(Yn,{optional:!0}),this._globalRippleOptions=E(Kc,{optional:!0}),this._platform=E(Bt),this._ngZone=E(X),this._onInteraction=n=>{if(!(n.target instanceof HTMLElement))return;const o=n.target.closest(`[${$p}]`);o&&this.createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const n of g0)this._document?.addEventListener(n,this._onInteraction,m0)})}ngOnDestroy(){for(const n of g0)this._document?.removeEventListener(n,this._onInteraction,m0)}configureRipple(n,r){n.setAttribute($p,""),(r.className||!n.hasAttribute(zp))&&n.setAttribute(zp,r.className||""),r.centered&&n.setAttribute(_0,""),r.disabled&&n.setAttribute(Jc,"")}getRipple(n){return n.matRipple?n.matRipple:this.createRipple(n)}setDisabled(n,r){const o=n.matRipple;o?o.disabled=r:r?n.setAttribute(Jc,""):n.removeAttribute(Jc)}createRipple(n){if(!this._document)return;n.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",n.getAttribute(zp)),n.append(r);const o=new tU(new he(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(_0),o.disabled=n.hasAttribute(Jc),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute($p),n.matRipple=r}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function ed(t,e){return new we(i=>{const n=t.length;if(0===n)return void i.complete();const r=new Array(n);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=d},error:d=>i.error(d),complete:()=>{o++,(o===n||!c)&&(s===n&&i.next(e?e.reduce((d,u,h)=>(d[u]=r[h],d),{}):r),i.complete())}}))}})}class Gp{}class si{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(i=>{const n=i.indexOf(":");if(n>0){const r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){const i=new si;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof si?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){const i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,i);const r=("a"===e.op?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":const o=e.value;if(o){let s=this.headers.get(i);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}else this.headers.delete(i),this.normalizedNames.delete(i)}}setHeaderEntries(e,i){const n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}}class rU{encodeKey(e){return y0(e)}encodeValue(e){return y0(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const sU=/%(\d[a-f0-9])/gi,aU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function y0(t){return encodeURIComponent(t).replace(sU,(e,i)=>aU[i]??e)}function td(t){return`${t}`}class Ti{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new rU,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oU(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{const n=e.fromObject[i],r=Array.isArray(n)?n.map(td):[td(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){const i=[];return Object.keys(e).forEach(n=>{const r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const i=new Ti({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const i=("a"===e.op?this.map.get(e.param):void 0)||[];i.push(td(e.value)),this.map.set(e.param,i);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let n=this.map.get(e.param)||[];const r=n.indexOf(td(e.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class lU{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function b0(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function w0(t){return typeof Blob<"u"&&t instanceof Blob}function C0(t){return typeof FormData<"u"&&t instanceof FormData}class fa{constructor(e,i,n,r){let o;if(this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function cU(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new si),this.context||(this.context=new lU),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=i;else{const a=i.indexOf("?");this.urlWithParams=i+(-1===a?"?":au.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((u,h)=>u.set(h,e.setParams[h]),c)),new fa(i,n,o,{params:c,headers:l,context:d,reportProgress:a,responseType:r,withCredentials:s})}}var Wp=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Wp||{});class uU{constructor(e,i=200,n="OK"){this.headers=e.headers||new si,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class pa extends uU{constructor(e={}){super(e),this.type=Wp.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new pa({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Yp(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Zp=(()=>{var t;class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof fa)s=n;else{let c,d;c=o.headers instanceof si?o.headers:new si(o.headers),o.params&&(d=o.params instanceof Ti?o.params:new Ti({fromObject:o.params})),s=new fa(n,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=O(s).pipe(wo(c=>this.handler.handle(c)));if(n instanceof fa||"events"===o.observe)return a;const l=a.pipe(rn(c=>c instanceof pa));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Y(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(Y(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(Y(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return l.pipe(Y(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Ti).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Yp(o,r))}post(n,r,o={}){return this.request("POST",n,Yp(o,r))}put(n,r,o={}){return this.request("PUT",n,Yp(o,r))}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Gp))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const RU=["*"];let rd;function ma(t){return function kU(){if(void 0===rd&&(rd=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(rd=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return rd}()?.createHTML(t)||t}function k0(t){return Error(`Unable to find icon with the name "${t}"`)}function O0(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function P0(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class cr{constructor(e,i,n){this.url=e,this.svgText=i,this.options=n}}let od=(()=>{var t;class e{constructor(n,r,o,s){this._httpClient=n,this._sanitizer=r,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(n,r,o){return this.addSvgIconInNamespace("",n,r,o)}addSvgIconLiteral(n,r,o){return this.addSvgIconLiteralInNamespace("",n,r,o)}addSvgIconInNamespace(n,r,o,s){return this._addSvgIconConfig(n,r,new cr(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,o,s){const a=this._sanitizer.sanitize(Je.HTML,o);if(!a)throw P0(o);const l=ma(a);return this._addSvgIconConfig(n,r,new cr("",l,s))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,o){return this._addSvgIconSetConfig(n,new cr(r,null,o))}addSvgIconSetLiteralInNamespace(n,r,o){const s=this._sanitizer.sanitize(Je.HTML,r);if(!s)throw P0(r);const a=ma(s);return this._addSvgIconSetConfig(n,new cr("",a,o))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){const r=this._sanitizer.sanitize(Je.RESOURCE_URL,n);if(!r)throw O0(n);const o=this._cachedIconsByUrl.get(r);return o?O(sd(o)):this._loadSvgIconFromConfig(new cr(n,null)).pipe(Ge(s=>this._cachedIconsByUrl.set(r,s)),Y(s=>sd(s)))}getNamedSvgIcon(n,r=""){const o=N0(r,n);let s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);const a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):yo(k0(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?O(sd(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Y(r=>sd(r)))}_getSvgFromIconSetConfigs(n,r){const o=this._extractIconWithNameFromAnySet(n,r);return o?O(o):function v0(...t){if(1===t.length){const e=t[0];if(br(e))return ed(e,null);if(Bd(e)&&Object.getPrototypeOf(e)===Object.prototype){const i=Object.keys(e);return ed(i.map(n=>e[n]),i)}}if("function"==typeof t[t.length-1]){const e=t.pop();return ed(t=1===t.length&&br(t[0])?t[0]:t,null).pipe(Y(i=>e(...i)))}return ed(t,null)}(r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(nr(l=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(Je.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(d)),O(null)})))).pipe(Y(()=>{const a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw k0(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let o=r.length-1;o>=0;o--){const s=r[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){const a=this._svgElementFromConfig(s),l=this._extractSvgIconFromSet(a,n,s.options);if(l)return l}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(Ge(r=>n.svgText=r),Y(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?O(null):this._fetchIcon(n).pipe(Ge(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,o){const s=n.querySelector(`[id="${r}"]`);if(!s)return null;const a=s.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const l=this._svgElementFromString(ma(""));return l.appendChild(a),this._setSvgAttributes(l,o)}_svgElementFromString(n){const r=this._document.createElement("DIV");r.innerHTML=n;const o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){const r=this._svgElementFromString(ma("")),o=n.attributes;for(let s=0;sma(d)),Mc(()=>this._inProgressUrlFetches.delete(a)),zd());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(n,r,o){return this._svgIconConfigs.set(N0(n,r),o),this}_addSvgIconSetConfig(n,r){const o=this._iconSetConfigs.get(n);return o?o.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){const r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let o=0;oe?e.pathname+e.search:""}}}),F0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],jU=F0.map(t=>`[${t}]`).join(", "),HU=/^url\(['"]?#(.*?)['"]?\)$/;let UU=(()=>{var t;class e extends FU{get inline(){return this._inline}set inline(n){this._inline=qe(n)}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){const r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){const r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,o,s,a,l){super(n),this._iconRegistry=r,this._location=s,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=me.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];const r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const n=this._elementsWithExternalReferences;if(n&&n.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){const n=this._elementRef.nativeElement;let r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const o=n.childNodes[r];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),r.forEach(o=>n.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return"string"==typeof n?n.trim().split(" ")[0]:n}_prependPathToReferences(n){const r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){const r=n.querySelectorAll(jU),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const l=r[s],c=l.getAttribute(a),d=c?c.match(HU):null;if(d){let u=o.get(l);u||(u=[],o.set(l,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){const[r,o]=this._splitIconName(n);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(gn(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${o}! ${s.message}`))})}}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(od),Hi("aria-hidden"),g(VU),g(An),g(LU,8))},t.\u0275cmp=Wt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(n,r){2&n&&(Re("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),St("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[W],ngContentSelectors:RU,decls:1,vars:0,template:function(n,r){1&n&&(yi(),ft(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),e})(),$U=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[vn,vn]}),e})();const yn=new C("NgValueAccessor");class jE{}class z3{}const li="*";function HE(t,e=null){return{type:2,steps:t,options:e}}function sn(t){return{type:6,styles:t,offset:null}}class Ca{constructor(e=0,i=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=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const i="start"==e?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class UE{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const i=e*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){const e=this.players.reduce((i,n)=>null===i||n.totalTime>i.totalTime?n:i,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const i="start"==e?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}function J3(t,e){1&t&&(k(0,"span",7),ft(1,1),N())}function e$(t,e){1&t&&(k(0,"span",8),ft(1,2),N())}const $E=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],zE=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function t$(t,e){1&t&&(k(0,"span",8),ft(1,1),k(2,"span",9),function l_(){V.lFrame.currentNamespace=Hg}(),k(3,"svg",10),Qt(4,"path",11),N()()())}function n$(t,e){1&t&&(k(0,"span",12),ft(1,2),N())}const _m=["*"],vd=new C("mat-chips-default-options"),vm=new C("MatChipAvatar"),ym=new C("MatChipTrailingIcon"),bm=new C("MatChipRemove"),yd=new C("MatChip");class h${}const f$=Up(h$,-1);let Po=(()=>{var t;class e extends f${get disabled(){return this._disabled||this._parentChip.disabled}set disabled(n){this._disabled=qe(n)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(n,r){super(),this._elementRef=n,this._parentChip=r,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(n){!this.disabled&&this.isInteractive&&this._isPrimary&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(yd))},t.\u0275dir=A({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,r){1&n&&Te("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(Re("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),St("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[W]}),e})(),_$=0;const v$=Up(l0(YH(WH(class{constructor(t){this._elementRef=t}})),"primary"),-1);let No=(()=>{var t;class e extends v${_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(n){this._value=n}get removable(){return this._removable}set removable(n){this._removable=qe(n)}get highlighted(){return this._highlighted}set highlighted(n){this._highlighted=qe(n)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}constructor(n,r,o,s,a,l,c,d){super(r),this._changeDetectorRef=n,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=c,this._onFocus=new de,this._onBlur=new de,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+_$++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new se,this.destroyed=new se,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=E(iU),this._document=a,this._animationsDisabled="NoopAnimations"===l,null!=d&&(this.tabIndex=parseInt(d)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const n=this._elementRef.nativeElement;this._isBasicChip=n.hasAttribute(this.basicChipAttrName)||n.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Uo(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(n){(8===n.keyCode||46===n.keyCode)&&(n.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(n){return this._getActions().find(r=>{const o=r._elementRef.nativeElement;return o===n||o.contains(n)})}_getActions(){const n=[];return this.primaryAction&&n.push(this.primaryAction),this.removeIcon&&n.push(this.removeIcon),this.trailingIcon&&n.push(this.trailingIcon),n}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{const r=null!==n;r!==this._hasFocusInternal&&(this._hasFocusInternal=r,r?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(gn(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Fn),g(he),g(X),g(jp),g(Q),g(Yn,8),g(Kc,8),Hi("tabindex"))},t.\u0275cmp=Wt({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,r,o){if(1&n&&(en(o,vm,5),en(o,ym,5),en(o,bm,5),en(o,vm,5),en(o,ym,5),en(o,bm,5)),2&n){let s;mt(s=gt())&&(r.leadingIcon=s.first),mt(s=gt())&&(r.trailingIcon=s.first),mt(s=gt())&&(r.removeIcon=s.first),mt(s=gt())&&(r._allLeadingIcons=s),mt(s=gt())&&(r._allTrailingIcons=s),mt(s=gt())&&(r._allRemoveIcons=s)}},viewQuery:function(n,r){if(1&n&&ec(Po,5),2&n){let o;mt(o=gt())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(n,r){1&n&&Te("keydown",function(s){return r._handleKeydown(s)}),2&n&&(wi("id",r.id),Re("role",r.role)("tabindex",r.role?r.tabIndex:null)("aria-label",r.ariaLabel),St("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[re([{provide:yd,useExisting:t}]),W],ngContentSelectors:zE,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(yi($E),Qt(0,"span",0),k(1,"span",1)(2,"span",2),te(3,J3,2,0,"span",3),k(4,"span",4),ft(5),Qt(6,"span",5),N()()(),te(7,e$,2,0,"span",6)),2&n&&(R(2),B("isInteractive",!1),R(1),B("ngIf",r.leadingIcon),R(4),B("ngIf",r._hasTrailingIcon()))},dependencies:[$s,Po],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),e})(),wm=(()=>{var t;class e extends No{constructor(){super(...arguments),this._defaultOptions=E(vd,{optional:!0}),this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._selectable=!0,this._selected=!1,this.basicChipAttrName="mat-basic-chip-option",this.selectionChange=new se}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(n){this._selectable=qe(n),this._changeDetectorRef.markForCheck()}get selected(){return this._selected}set selected(n){this._setSelectedState(qe(n),!1,!0)}get ariaSelected(){return this.selectable?this.selected.toString():null}ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(n=!1){return this._setSelectedState(!this.selected,n,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return!!this.leadingIcon||!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(n,r,o){n!==this.selected&&(this._selected=n,o&&this.selectionChange.emit({source:this,isUserInput:r,selected:this.selected}),this._changeDetectorRef.markForCheck())}}return(t=e).\u0275fac=function(){let i;return function(r){return(i||(i=Le(t)))(r||t)}}(),t.\u0275cmp=Wt({type:t,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(n,r){2&n&&(wi("id",r.id),Re("tabindex",null)("aria-label",null)("aria-description",null)("role",r.role),St("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--filter",!r._isBasicChip)("mdc-evolution-chip--selectable",!r._isBasicChip)("mat-mdc-chip-selected",r.selected)("mat-mdc-chip-multiple",r._chipListMultiple)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-with-avatar",r.leadingIcon)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--selected",r.selected)("mdc-evolution-chip--selecting",!r._animationsDisabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-primary-graphic",r._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selectable:"selectable",selected:"selected"},outputs:{selectionChange:"selectionChange"},features:[re([{provide:No,useExisting:t},{provide:yd,useExisting:t}]),W],ngContentSelectors:zE,decls:10,vars:9,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"tabIndex","_allowFocusWhenDisabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(yi($E),Qt(0,"span",0),k(1,"span",1)(2,"button",2),te(3,t$,5,0,"span",3),k(4,"span",4),ft(5),Qt(6,"span",5),N()()(),te(7,n$,2,0,"span",6),k(8,"span",7),oe(9),N()),2&n&&(R(2),B("tabIndex",r.tabIndex)("_allowFocusWhenDisabled",!0),Re("aria-selected",r.ariaSelected)("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),R(1),B("ngIf",r._hasLeadingGraphic()),R(4),B("ngIf",r._hasTrailingIcon()),R(1),B("id",r._ariaDescriptionId),R(1),uo(r.ariaDescription))},dependencies:[$s,Po],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),e})();class y${constructor(e){}}const b$=Up(y$);let Cm=(()=>{var t;class e extends b${get chipFocusChanges(){return this._getChipStream(n=>n._onFocus)}get chipDestroyedChanges(){return this._getChipStream(n=>n.destroyed)}get disabled(){return this._disabled}set disabled(n){this._disabled=qe(n),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(n){this._explicitRole=n}get focused(){return this._hasFocusedChip()}constructor(n,r,o){super(n),this._elementRef=n,this._changeDetectorRef=r,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new de,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new po}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(n=>n._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(n=>{n.disabled=this._disabled,n._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(n){this._originatesFromChip(n)&&this._keyManager.onKeydown(n)}_isValidIndex(n){return n>=0&&nthis.tabIndex=n)}}_getChipStream(n){return this._chips.changes.pipe(bo(null),zt(()=>Uo(...this._chips.map(n))))}_originatesFromChip(n){let r=n.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-mdc-chip"))return!0;r=r.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(bo(this._chips)).subscribe(n=>{const r=[];n.forEach(o=>o._getActions().forEach(s=>r.push(s))),this._chipActions.reset(r),this._chipActions.notifyOnChanges()}),this._keyManager=new TH(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(n=>this._skipPredicate(n)),this.chipFocusChanges.pipe(Be(this._destroyed)).subscribe(({chip:n})=>{const r=n._getSourceAction(document.activeElement);r&&this._keyManager.updateActiveItem(r)}),this._dir?.change.pipe(Be(this._destroyed)).subscribe(n=>this._keyManager.withHorizontalOrientation(n))}_skipPredicate(n){return!n.isInteractive||n.disabled}_trackChipSetChanges(){this._chips.changes.pipe(bo(null),Be(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Be(this._destroyed)).subscribe(n=>{const o=this._chips.toArray().indexOf(n.chip);this._isValidIndex(o)&&n.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const n=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),r=this._chips.toArray()[n];r.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():r.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(Fn),g(Qc,8))},t.\u0275cmp=Wt({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,r,o){if(1&n&&en(o,No,5),2&n){let s;mt(s=gt())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,r){1&n&&Te("keydown",function(s){return r._handleKeydown(s)}),2&n&&Re("role",r.role)},inputs:{disabled:"disabled",role:"role"},features:[W],ngContentSelectors:_m,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(yi(),k(0,"div",0),ft(1),N())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),e})();class w${constructor(e,i){this.source=e,this.value=i}}const C$={provide:yn,useExisting:_e(()=>xm),multi:!0};let xm=(()=>{var t;class e extends Cm{constructor(){super(...arguments),this._onTouched=()=>{},this._onChange=()=>{},this._defaultRole="listbox",this._defaultOptions=E(vd,{optional:!0}),this._multiple=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.compareWith=(n,r)=>n===r,this._required=!1,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.change=new se,this._chips=void 0}get multiple(){return this._multiple}set multiple(n){this._multiple=qe(n),this._syncListboxProperties()}get selected(){const n=this._chips.toArray().filter(r=>r.selected);return this.multiple?n:n[0]}get selectable(){return this._selectable}set selectable(n){this._selectable=qe(n),this._syncListboxProperties()}get required(){return this._required}set required(n){this._required=qe(n)}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=qe(n),this._syncListboxProperties()}get chipSelectionChanges(){return this._getChipStream(n=>n.selectionChange)}get chipBlurChanges(){return this._getChipStream(n=>n._onBlur)}get value(){return this._value}set value(n){this.writeValue(n),this._value=n}ngAfterContentInit(){void 0!==this._pendingInitialValue&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe(bo(null),Be(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe(Be(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(Be(this._destroyed)).subscribe(n=>{this.multiple||this._chips.forEach(r=>{r!==n.source&&r._setSelectedState(!1,!1,!1)}),n.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;const n=this._getFirstSelectedChip();n&&!n.disabled?n.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(n){this._chips?this._setSelectionByValue(n,!1):null!=n&&(this._pendingInitialValue=n)}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n}_setSelectionByValue(n,r=!0){this._clearSelection(),Array.isArray(n)?n.forEach(o=>this._selectValue(o,r)):this._selectValue(n,r)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(n){9===n.keyCode&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let n=null;n=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:void 0,this._value=n,this.change.emit(new w$(this,n)),this._onChange(n),this._changeDetectorRef.markForCheck()}_clearSelection(n){this._chips.forEach(r=>{r!==n&&r.deselect()})}_selectValue(n,r){const o=this._chips.find(s=>null!=s.value&&this.compareWith(s.value,n));return o&&(r?o.selectViaInteraction():o.select()),o}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(n=>{n._chipListMultiple=this.multiple,n.chipListSelectable=this._selectable,n._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,n._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(n){return!n.isInteractive}}return(t=e).\u0275fac=function(){let i;return function(r){return(i||(i=Le(t)))(r||t)}}(),t.\u0275cmp=Wt({type:t,selectors:[["mat-chip-listbox"]],contentQueries:function(n,r,o){if(1&n&&en(o,wm,5),2&n){let s;mt(s=gt())&&(r._chips=s)}},hostAttrs:["ngSkipHydration","",1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(n,r){1&n&&Te("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(s){return r._keydown(s)}),2&n&&(wi("tabIndex",r.empty?-1:r.tabIndex),Re("role",r.role)("aria-describedby",r._ariaDescribedby||null)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-multiselectable",r.multiple)("aria-orientation",r.ariaOrientation),St("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-required",r.required))},inputs:{tabIndex:"tabIndex",multiple:"multiple",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",compareWith:"compareWith",required:"required",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",value:"value"},outputs:{change:"change"},features:[re([C$]),W],ngContentSelectors:_m,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(yi(),k(0,"div",0),ft(1),N())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),e})(),M$=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[c0,{provide:vd,useValue:{separatorKeyCodes:[13]}}],imports:[vn,zs,nU,vn]}),e})();function YE(t,e,i,n){return ui(i)&&(n=i,i=void 0),n?YE(t,e,i).pipe(Y(r=>br(r)?n(...r):n(r))):new we(r=>{ZE(t,e,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,i)})}function ZE(t,e,i,n,r){let o;if(function R$(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(e,i,r),o=()=>s.removeEventListener(e,i,r)}else if(function A$(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(e,i),o=()=>s.off(e,i)}else if(function T$(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(e,i),o=()=>s.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s0?super.requestAsyncId(e,i,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,i,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,i,n);0===e.actions.length&&(cancelAnimationFrame(i),e.scheduled=void 0)}});let N$=1;const F$=Promise.resolve(),wd={};function XE(t){return t in wd&&(delete wd[t],!0)}const QE={setImmediate(t){const e=N$++;return wd[e]=!0,F$.then(()=>XE(e)&&t()),e},clearImmediate(t){XE(t)}};new class V$ extends Bn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:i}=this;let n,r=-1,o=i.length;e=e||i.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r0?super.requestAsyncId(e,i,n):(e.actions.push(this),e.scheduled||(e.scheduled=QE.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,i,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,i,n);0===e.actions.length&&(QE.clearImmediate(i),e.scheduled=void 0)}});class H${constructor(e){this.durationSelector=e}call(e,i){return i.subscribe(new U$(e,this.durationSelector))}}class U$ extends jo{constructor(e,i){super(e),this.durationSelector=i,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:r}=this;i=r(e)}catch(r){return this.destination.error(r)}const n=Ho(i,new Bo(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:e,hasValue:i,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),i&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function KE(t){return!br(t)&&t-parseFloat(t)+1>=0}function z$(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function JE(t,e=Fp){return function j$(t){return function(i){return i.lift(new H$(t))}}(()=>function $$(t=0,e,i){let n=-1;return KE(e)?n=Number(e)<1?1:Number(e):Cr(e)&&(i=e),Cr(i)||(i=Fp),new we(r=>{const o=KE(t)?t:+t-i.now();return i.schedule(z$,o,{index:0,period:n,subscriber:r})})}(t,e))}let eS=(()=>{var t;class e{constructor(n,r,o){this._ngZone=n,this._platform=r,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){const r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=20){return this._platform.isBrowser?new we(r=>{this._globalSubscription||this._addGlobalListener();const o=n>0?this._scrolled.pipe(JE(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):O()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){const o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(rn(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(n){const r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,n)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let o=Ro(r),s=n.getElementRef().nativeElement;do{if(o==s)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>YE(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X),b(Bt),b(Q,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),tS=(()=>{var t;class e{constructor(n,r,o){this._platform=n,this._change=new de,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(n.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){const n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const n=this._document,r=this._getWindow(),o=n.documentElement,s=o.getBoundingClientRect();return{top:-s.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,left:-s.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0}}change(n=20){return n>0?this._change.pipe(JE(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(X),b(Q,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),xa=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})(),nS=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[da,xa,da,xa]}),e})();class Dm{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class iS extends Dm{constructor(e,i,n,r,o){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class W$ extends Dm{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class Y$ extends Dm{constructor(e){super(),this.element=e instanceof he?e.nativeElement:e}}class Z${constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof iS?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof W$?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Y$?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class X$ extends Z${constructor(e,i,n,r,o){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||rt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);-1!==r&&i.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let rS=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();const oS=Uj();class Q${constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=He(-this._previousScrollPosition.left),e.style.top=He(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,n=e.style,r=this._document.body.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),oS&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),oS&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}}class K${constructor(e,i,n,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0).pipe(rn(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class sS{enable(){}disable(){}attach(){}}function Em(t,e){return e.some(i=>t.bottomi.bottom||t.righti.right)}function aS(t,e){return e.some(i=>t.topi.bottom||t.lefti.right)}class J${constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Em(i,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ez=(()=>{var t;class e{constructor(n,r,o,s){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new sS,this.close=a=>new K$(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Q$(this._viewportRuler,this._document),this.reposition=a=>new J$(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}}return(t=e).\u0275fac=function(n){return new(n||t)(b(eS),b(tS),b(X),b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class tz{constructor(e){if(this.scrollStrategy=new sS,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const i=Object.keys(e);for(const n of i)void 0!==e[n]&&(this[n]=e[n])}}}class nz{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}}let lS=(()=>{var t;class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){const r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),iz=(()=>{var t;class e extends lS{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=o=>{const s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){const l=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(n){super.add(n),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q),b(X,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),rz=(()=>{var t;class e extends lS{constructor(n,r,o){super(n),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Mi(s)},this._clickListener=s=>{const a=Mi(s),l="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const u=c[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(l))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(n){if(super.add(n),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q),b(Bt),b(X,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),cS=(()=>{var t;class e{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||kp()){const o=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let s=0;sthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new de,this._outsidePointerEvents=new de,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(gn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof i?.onDestroy&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=He(this._config.width),e.height=He(this._config.height),e.minWidth=He(this._config.minWidth),e.minHeight=He(this._config.minHeight),e.maxWidth=He(this._config.maxWidth),e.maxHeight=He(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,n){const r=Wc(i||[]).filter(o=>!!o);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Be(Uo(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dS="cdk-overlay-connected-position-bounding-box",sz=/([A-Za-z%]+)$/;class az{get positions(){return this._preferredPositions}constructor(e,i,n,r,o){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new de,this._resizeSubscription=me.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._validatePositions(),e.hostElement.classList.add(dS),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,i,a),d=this._getOverlayFit(c,i,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,n)?o.push({position:a,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&pr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,n){let r,o;if("center"==n.originX)r=e.left+e.width/2;else{const s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==n.originX?s:a}return i.left<0&&(r-=i.left),o="center"==n.originY?e.top+e.height/2:"top"==n.originY?e.top:e.bottom,i.top<0&&(o-=i.top),{x:r,y:o}}_getOverlayPoint(e,i,n){let r,o;return r="center"==n.overlayX?-i.width/2:"start"===n.overlayX?this._isRtl()?-i.width:0:this._isRtl()?0:-i.width,o="center"==n.overlayY?-i.height/2:"top"==n.overlayY?0:-i.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,i,n,r){const o=hS(i);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-n.height,p=this._subtractOverflows(o.width,0-s,s+o.width-n.width),m=this._subtractOverflows(o.height,h,f),y=p*m;return{visibleArea:y,isCompletelyWithinViewport:o.width*o.height===y,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,i,n){if(this._hasFlexibleDimensions){const r=n.bottom-i.y,o=n.right-i.x,s=uS(this._overlayRef.getConfig().minHeight),a=uS(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=s&&s<=r)&&(e.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(e,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=hS(i),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-n.top-e.y,0),c=Math.max(o.left-n.left-e.x,0);let d=0,u=0;return d=r.width<=o.width?c||-s:e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}if("end"===i.overlayX&&!r||"start"===i.overlayX&&r)h=n.width-e.x+this._viewportMargin,d=e.x-this._viewportMargin;else if("start"===i.overlayX&&!r||"end"===i.overlayX&&r)u=e.x,d=n.right-e.x;else{const f=Math.min(n.right-e.x+n.left,e.x),p=this._lastBoundingBoxSize.width;d=2*f,u=e.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-p/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(e,i){const n=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=He(n.height),r.top=He(n.top),r.bottom=He(n.bottom),r.width=He(n.width),r.left=He(n.left),r.right=He(n.right),r.alignItems="center"===i.overlayX?"center":"end"===i.overlayX?"flex-end":"flex-start",r.justifyContent="center"===i.overlayY?"center":"bottom"===i.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=He(o)),s&&(r.maxWidth=He(s))}this._lastBoundingBoxSize=n,pr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){pr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){pr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();pr(n,this._getExactOverlayY(i,e,d)),pr(n,this._getExactOverlayX(i,e,d))}else n.position="static";let a="",l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=He(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=He(s.maxWidth):o&&(n.maxWidth="")),pr(this._pane.style,n)}_getExactOverlayY(e,i,n){let r={top:"",bottom:""},o=this._getOverlayPoint(i,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=He(o.y),r}_getExactOverlayX(e,i,n){let s,r={left:"",right:""},o=this._getOverlayPoint(i,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=He(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:aS(e,n),isOriginOutsideView:Em(e,n),isOverlayClipped:aS(i,n),isOverlayOutsideView:Em(i,n)}}_subtractOverflows(e,...i){return i.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return"x"===i?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Wc(e).forEach(i=>{""!==i&&-1===this._appliedPanelClasses.indexOf(i)&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof he)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const i=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+i,height:n,width:i}}}function pr(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function uS(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(sz);return i&&"px"!==i?null:parseFloat(e)}return t||null}function hS(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const fS="cdk-global-overlay-wrapper";class lz{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(fS),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===d?(m="center",h?p=u:f=u):h?"left"===d||"end"===d?(m="flex-end",f=u):("right"===d||"start"===d)&&(m="flex-start",p=u):"left"===d||"start"===d?(m="flex-start",f=u):("right"===d||"end"===d)&&(m="flex-end",p=u),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,i.justifyContent=m,i.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(fS),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let cz=(()=>{var t;class e{constructor(n,r,o,s){this._viewportRuler=n,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new lz}flexibleConnectedTo(n){return new az(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(tS),b(Q),b(Bt),b(cS))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),dz=0,Cd=(()=>{var t;class e{constructor(n,r,o,s,a,l,c,d,u,h,f,p){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(n){const r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new tz(n);return a.direction=a.direction||this._directionality.value,new oz(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(n){const r=this._document.createElement("div");return r.id="cdk-overlay-"+dz++,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){const n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(xi)),new X$(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(ez),b(cS),b(vs),b(cz),b(iz),b(rt),b(X),b(Q),b(Qc),b(cc),b(rz),b(Yn,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const fz={provide:new C("cdk-connected-overlay-scroll-strategy"),deps:[Cd],useFactory:function hz(t){return()=>t.scrollStrategies.reposition()}};let pz=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[Cd,fz],imports:[da,rS,nS,nS]}),e})();const mz=["tooltip"],pS=new C("mat-tooltip-scroll-strategy"),vz={provide:pS,deps:[Cd],useFactory:function _z(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},bz=new C("mat-tooltip-default-options",{providedIn:"root",factory:function yz(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mS="tooltip-panel",gS=ca({passive:!0});let Sz=(()=>{var t;class e{get position(){return this._position}set position(n){n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(n){this._positionAtOrigin=qe(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=qe(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=Lp(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=Lp(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(n){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(n,r,o,s,a,l,c,d,u,h,f,p){this._overlay=n,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=l,this._ariaDescriber=c,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new de,this._scrollStrategy=u,this._document=p,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Be(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Be(this._destroyed)).subscribe(n=>{n?"keyboard"===n&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{n.removeEventListener(r,o,gS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}show(n=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(r);this._detach(),this._portal=this._portal||new iS(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(Be(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(n)}hide(n=this.hideDelay){const r=this._tooltipInstance;r&&(r.isVisible()?r.hide(n):(r._cancelPendingAnimations(),this._detach()))}toggle(n){this._isTooltipVisible()?this.hide():this.show(void 0,n)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(n){if(this._overlayRef){const s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&s._origin instanceof he)return this._overlayRef;this._detach()}const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&n||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(Be(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${mS}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Be(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Be(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Be(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!qc(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(n){const r=n.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();r.withPositions([this._addOffset({...o.main,...s.main}),this._addOffset({...o.fallback,...s.fallback})])}_addOffset(n){return n}_getOrigin(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r||"below"==r?o={originX:"center",originY:"above"==r?"top":"bottom"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={originX:"start",originY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={originX:"end",originY:"center"});const{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r?o={overlayX:"center",overlayY:"bottom"}:"below"==r?o={overlayX:"center",overlayY:"top"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={overlayX:"end",overlayY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={overlayX:"start",overlayY:"center"});const{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(gn(1),Be(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,r){return"above"===this.position||"below"===this.position?"top"===r?r="bottom":"bottom"===r&&(r="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:r}}_updateCurrentPositionClass(n){const{overlayY:r,originX:o,originY:s}=n;let a;if(a="center"===r?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===r&&"top"===s?"above":"below",a!==this._currentPosition){const l=this._overlayRef;if(l){const c=`${this._cssClassPrefix}-${mS}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",n=>{let r;this._setupPointerExitEventsIfNeeded(),void 0!==n.x&&void 0!==n.y&&(r=n),this.show(void 0,r)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{const r=n.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",r=>{const o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,gS)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){const r=this._document.elementFromPoint(n.clientX,n.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){const n=this.touchGestures;if("off"!==n){const r=this._elementRef.nativeElement,o=r.style;("on"===n||"INPUT"!==r.nodeName&&"TEXTAREA"!==r.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===n||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return(t=e).\u0275fac=function(n){bh()},t.\u0275dir=A({type:t,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e})(),Iz=(()=>{var t;class e extends Sz{constructor(n,r,o,s,a,l,c,d,u,h,f,p){super(n,r,o,s,a,l,c,d,u,h,f,p),this._tooltipComponent=Tz,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(n){const o=!this._dir||"ltr"==this._dir.value;return"top"===n.originY?n.offsetY=-8:"bottom"===n.originY?n.offsetY=8:"start"===n.originX?n.offsetX=o?-8:8:"end"===n.originX&&(n.offsetX=o?8:-8),n}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Cd),g(he),g(eS),g(Jt),g(X),g(Bt),g(IH),g(jp),g(pS),g(Qc,8),g(bz,8),g(Q))},t.\u0275dir=A({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){2&n&&St("mat-mdc-tooltip-disabled",r.disabled)},exportAs:["matTooltip"],features:[W]}),e})(),Mz=(()=>{var t;class e{constructor(n,r){this._changeDetectorRef=n,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new de,this._animationsDisabled="NoopAnimations"===r}show(n){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},n)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:n}){(!n||!this._triggerElement.contains(n))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){const r=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(r.classList.remove(n?s:o),r.classList.add(n?o:s),this._isVisible=n,n&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(r);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Fn),g(Yn,8))},t.\u0275dir=A({type:t}),e})(),Tz=(()=>{var t;class e extends Mz{constructor(n,r,o){super(n,o),this._elementRef=r,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>24&&n.width>=200}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Fn),g(he),g(Yn,8))},t.\u0275cmp=Wt({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(1&n&&ec(mz,7),2&n){let o;mt(o=gt())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,r){1&n&&Te("mouseleave",function(s){return r._handleMouseLeave(s)}),2&n&&st("zoom",r.isVisible()?1:null)},features:[W],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,r){1&n&&(k(0,"div",0,1),Te("animationend",function(s){return r._handleAnimationEnd(s)}),k(2,"div",2),oe(3),N()()),2&n&&(St("mdc-tooltip--multiline",r._isMultiline),B("ngClass",r.tooltipClass),R(3),uo(r.message))},dependencies:[nx],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),e})(),Az=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[vz],imports:[jH,zs,pz,vn,vn,xa]}),e})();function Rz(t,e){if(1&t&&(k(0,"a",10),Te("click",function(n){return n.stopPropagation()}),oe(1),N()),2&t){const i=ke().$implicit;Bh("href","https://store.steampowered.com/app/"+i.titleId,Wr),R(1),Kt(" ",i.game_name," ")}}function kz(t,e){if(1&t&&(k(0,"div"),oe(1),N()),2&t){const i=ke().$implicit;R(1),Kt(" ",i.game_name," ")}}function Oz(t,e){if(1&t){const i=function $y(){return w()}();k(0,"mat-chip-option",11),Te("click",function(r){const s=function Xg(t){return V.lFrame.contextLView=t,t[Ne]}(i).$implicit,a=ke().$implicit;return function Qg(t){return V.lFrame.contextLView=null,t}(ke().onEngineClicked(r,a,s.key))}),oe(1),N()}if(2&t){const i=e.$implicit,n=ke().$implicit;B("selected",ke().titleEnginePicked[n.titleId]==i.key)("value",i.key),R(1),Kt(" ",i.key," ")}}function Pz(t,e){1&t&&(k(0,"mat-icon",29),oe(1," sports_esports "),N()),2&t&&st("color","darkgray")}function Nz(t,e){1&t&&(k(0,"mat-icon",30),oe(1," sports_esports "),N()),2&t&&st("color","red")}function Fz(t,e){1&t&&(k(0,"mat-icon",31),oe(1," sports_esports "),N()),2&t&&st("color","green")}function Lz(t,e){1&t&&(k(0,"mat-icon",32),oe(1," sports_esports "),N()),2&t&&st("color","yellow")}function Vz(t,e){1&t&&(k(0,"mat-icon",33),oe(1," sports_esports "),N()),2&t&&st("color","yellow")}function Bz(t,e){1&t&&(k(0,"mat-icon",34),oe(1," sports_esports "),N()),2&t&&st("color","yellow")}function jz(t,e){1&t&&(k(0,"mat-icon",35),oe(1," cloud_off "),N()),2&t&&st("color","darkgray")}function Hz(t,e){1&t&&(k(0,"mat-icon",36),oe(1," cloud "),N()),2&t&&st("color","darkgray")}function Uz(t,e){1&t&&(k(0,"mat-icon",37),oe(1," cloud "),N()),2&t&&st("color","green")}function $z(t,e){1&t&&(k(0,"mat-icon",38),oe(1," cloud "),N()),2&t&&st("color","yellow")}function zz(t,e){if(1&t&&(k(0,"div",9)(1,"div",25),oe(2,"Version"),N(),k(3,"div",26),oe(4),N()()),2&t){const i=ke(2).$implicit,n=ke();R(4),Kt(" ",i.engines[n.titleEnginePicked[i.titleId]].version," ")}}function Gz(t,e){if(1&t&&(k(0,"div"),oe(1),N()),2&t){const i=ke().$implicit;R(1),Kt(" ",i.label," ")}}function qz(t,e){if(1&t&&(k(0,"div"),oe(1),N()),2&t){const i=ke().$implicit,n=ke(5);R(1),Kt(" ",n.NOTICE_MAP[i.value]," ")}}function Wz(t,e){if(1&t&&(k(0,"div"),oe(1),N()),2&t){const i=ke().$implicit,n=ke(5);R(1),Kt(" ",n.NOTICE_MAP[i.key]," ")}}function Yz(t,e){if(1&t&&(k(0,"li"),te(1,Gz,2,1,"div",6),te(2,qz,2,1,"div",6),te(3,Wz,2,1,"div",6),N()),2&t){const i=e.$implicit;R(1),B("ngIf",i.label),R(1),B("ngIf",i.value),R(1),B("ngIf",i.key&&!i.value&&!i.label)}}function Zz(t,e){if(1&t&&(Kn(0),te(1,Yz,4,3,"li",39),Jn()),2&t){const i=ke(3).$implicit,n=ke();R(1),B("ngForOf",i.engines[n.titleEnginePicked[i.titleId]].notices)}}function Xz(t,e){if(1&t&&(Kn(0),k(1,"div",12)(2,"ul"),te(3,Zz,2,1,"ng-container",6),N()(),Jn()),2&t){const i=ke(2).$implicit,n=ke();R(3),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].notices)}}function Qz(t,e){if(1&t&&(Kn(0),k(1,"div",12)(2,"div",9)(3,"div",13)(4,"mat-icon",14),oe(5," install_desktop "),N(),k(6,"mat-icon",14),oe(7," desktop_windows "),N(),k(8,"mat-icon",14),oe(9," construction "),N(),te(10,Pz,2,2,"mat-icon",15),te(11,Nz,2,2,"mat-icon",16),te(12,Fz,2,2,"mat-icon",17),te(13,Lz,2,2,"mat-icon",18),te(14,Vz,2,2,"mat-icon",19),te(15,Bz,2,2,"mat-icon",20),te(16,jz,2,2,"mat-icon",21),te(17,Hz,2,2,"mat-icon",22),te(18,Uz,2,2,"mat-icon",23),te(19,$z,2,2,"mat-icon",24),N()(),k(20,"div",9)(21,"div",25),oe(22,"Engine"),N(),k(23,"div",26)(24,"a",27),oe(25),N()()(),k(26,"div",9)(27,"div",25),oe(28,"License"),N(),k(29,"div",26)(30,"a",27),oe(31),N()()(),te(32,zz,5,1,"div",28),k(33,"div",9)(34,"div",25),oe(35,"Contributor"),N(),k(36,"div",26)(37,"a",27),oe(38),N()()()(),te(39,Xz,4,1,"ng-container",6),Jn()),2&t){const i=ke().$implicit,n=ke();R(4),st("color",i.engines[n.titleEnginePicked[i.titleId]].manualSteps?"yellow":"green"),B("matTooltip",i.engines[n.titleEnginePicked[i.titleId]].manualSteps?"Manual Steps Required":"Automatic Installation"),R(2),st("color",i.engines[n.titleEnginePicked[i.titleId]].steamOverlayDisabled?"red":"green"),B("matTooltip",i.engines[n.titleEnginePicked[i.titleId]].steamOverlayDisabled?"Steam Overlay Disabled":"Steam Overlay Enabled"),R(2),st("color",i.engines[n.titleEnginePicked[i.titleId]].inProgress?"yellow":"green"),B("matTooltip",i.engines[n.titleEnginePicked[i.titleId]].inProgress?"Engine May Have Missing Features":"Engine Considered Feature Complete"),R(2),B("ngIf",!(i.engines[n.titleEnginePicked[i.titleId]].controllerNotSupported||i.engines[n.titleEnginePicked[i.titleId]].controllerSupported||i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedSteamChanges||i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGame||i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGameAndSteam)),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerNotSupported),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupported&&i.controllerSteamDefault),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGame&&i.controllerSteamDefault),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupported&&!i.controllerSteamDefault),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGame&&!i.controllerSteamDefault),R(1),B("ngIf",i.cloudNotAvailable),R(1),B("ngIf",i.cloudAvailable&&!i.cloudSupported),R(1),B("ngIf",i.cloudAvailable&&i.cloudSupported),R(1),B("ngIf",i.cloudAvailable&&i.cloudIssue),R(5),B("href",i.engines[n.titleEnginePicked[i.titleId]].engine_link,Wr),R(1),uo(n.titleEnginePicked[i.titleId]),R(5),B("href",i.engines[n.titleEnginePicked[i.titleId]].license_link,Wr),R(1),Kt(" ",i.engines[n.titleEnginePicked[i.titleId]].license," "),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].version),R(5),B("href",i.engines[n.titleEnginePicked[i.titleId]].author_link,Wr),R(1),Kt(" ",i.engines[n.titleEnginePicked[i.titleId]].author," "),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].notices||i.notices)}}function Kz(t,e){if(1&t&&(k(0,"div",2)(1,"div",3)(2,"div",4),te(3,Rz,2,2,"a",5),te(4,kz,2,1,"div",6),N(),k(5,"div",7)(6,"mat-chip-listbox"),te(7,Oz,2,3,"mat-chip-option",8),function xw(t,e){const i=ee();let n;const r=t+K;i.firstCreatePass?(n=function yP(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];const o=n.factory||(n.factory=Vi(n.type)),a=bt(g);try{const l=il(!1),c=o();return il(l),function ek(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,w(),r,c),c}finally{bt(a)}}(8,"keyvalue"),N()()(),k(9,"div",9),te(10,Qz,40,27,"ng-container",6),N()()),2&t){const i=e.$implicit,n=ke();R(3),B("ngIf",!i.isDefault),R(1),B("ngIf",i.isDefault),R(3),B("ngForOf",Dw(8,4,i.engines)),R(3),B("ngIf",n.titleEnginePicked[i.titleId])}}const Jz=[{path:"**",component:(()=>{var t;class e{constructor(){this.titles=[],this.titleEnginePicked={},this.NOTICE_MAP={},this.runControllerCheck=!0}ngOnInit(){var n=this;return function jj(t){return function(){var e=this,i=arguments;return new Promise(function(n,r){var o=t.apply(e,i);function s(l){jD(o,n,r,s,a,"next",l)}function a(l){jD(o,n,r,s,a,"throw",l)}s(void 0)})}}(function*(){const r=yield fetch("/packagessniper_v2.json");n.titles=yield r.json(),n.enginesToMap(),n.noticeTranslationToMap(),n.sortTitles()})()}noticeTranslationToMap(){for(let n of this.titles.notice_translation)this.NOTICE_MAP[n.key]=n.value}enginesToMap(){const n={};for(let r of this.titles.engines)n[r.engine_name]=r;this.titles.engines=n}processTitle(n){const r=n.app_id;if(n.engines={},n.cloudAvailable&&!n.cloudSupported&&!n.cloudIssues&&console.error(`title of ${n.game_name} has unknown cloud save feature state`),n.engine_name){const s=n.engine_name;this.titles.engines[s]?n.engines[s]=this.titles.engines[s]:console.error(`engineName of ${s} not found from title of ${r}`)}else if(n.engine_names)for(let s of n.engine_names)this.titles.engines[s]?n.engines[s]=this.titles.engines[s]:console.error(`engineName of ${s} not found from title of ${r}`);else if(n.choices)for(let s of n.choices){const a=s.name;this.titles.engines[a]?n.engines[a]=this.titles.engines[a]:s.engine_name&&this.titles.engines[s.engine_name]?n.engines[s.engine_name]=this.titles.engines[s.engine_name]:console.error(`engineName of ${a} not found from title of ${r}`)}else console.error(`missing information for ${r}`);const o=Object.keys(n.engines);o.sort(),this.titleEnginePicked[r]=o[0];for(let s in n.engines){const a=JSON.parse(JSON.stringify(n.engines[s]));if(n.notices){a.notices||(a.notices=[]);for(let l of n.notices)a.notices.push(l)}if(n.removeNotices){const l=[];for(let c of a.notices){let d=!0;for(let u of n.removeNotices)if(c.key===u){d=!1;break}d&&l.push(c)}a.notices=l}if(a.notices)for(let l of a.notices)"manual_steps"===l.key&&(a.manualSteps=!0),"steam_overlay_disabled"===l.key&&(a.steamOverlayDisabled=!0),"in_progress"===l.key&&(a.inProgress=!0);n.engines[s]=a}return n}sortTitles(){const n=[];let r=this.titles.default_engine;if(this.runControllerCheck)for(const o in this.titles.engines){const s=this.titles.engines[o];let a=!1;for(let l of Object.keys(s))if(-1!==l.indexOf("controller")){a=!0;break}a||console.error(`missing controller data for ${s.engine_name}`)}for(let o of this.titles.games)o.titleId=o.app_id,o=this.processTitle(o),n.push(o);n.sort(function(o,s){return o.game_names.game_name?1:0}),r&&(r.isDefault=!0,r.titleId="default",r.app_id="default",r=this.processTitle(r),n.unshift(r)),this.titles=n}onEngineClicked(n,r,o){this.titleEnginePicked[r.titleId]=o}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Wt({type:t,selectors:[["app-packages"]],decls:2,vars:1,consts:[[1,"container-fluid","page-wrapper"],["class","row game-row",4,"ngFor","ngForOf"],[1,"row","game-row"],[1,"row","header-wrapper"],[1,"col-sm-6","game-title"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],[1,"col-sm-6","game-choices"],[3,"selected","value","click",4,"ngFor","ngForOf"],[1,"row"],["target","_blank",3,"href","click"],[3,"selected","value","click"],[1,"col-12","col-md-6"],[1,"col-12","status-icons"],[3,"matTooltip"],["matTooltip","Unknown Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Does Not Have Native Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings",3,"color",4,"ngIf"],["matTooltip","Game Does Not Have Cloud Saves",3,"color",4,"ngIf"],["matTooltip","Game Has Cloud Saves But Unknown Status",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Supported",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Not Supported",3,"color",4,"ngIf"],[1,"col-5","col-md-4","col-lg-3"],[1,"col-7","col-md-8"],["target","_blank",3,"href"],["class","row",4,"ngIf"],["matTooltip","Unknown Controller Support"],["matTooltip","Engine Does Not Have Native Controller Support"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings"],["matTooltip","Game Does Not Have Cloud Saves"],["matTooltip","Game Has Cloud Saves But Unknown Status"],["matTooltip","Cloud Saves Supported"],["matTooltip","Cloud Saves Not Supported"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(k(0,"div",0),te(1,Kz,11,6,"div",1),N()),2&n&&(R(1),B("ngForOf",r.titles))},dependencies:[rx,$s,UU,xm,wm,Iz,cx],styles:[".packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.packages-wrapper[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}.mat-chip[_ngcontent-%COMP%]{cursor:pointer!important}.page-wrapper[_ngcontent-%COMP%]{padding-top:1rem;color:#fff;max-width:1200px}.header-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding-bottom:.5rem;margin-bottom:.5rem;padding-top:.5rem}.game-row[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 24px;margin-bottom:1rem;margin-left:15px;margin-right:15px;padding-bottom:.5rem}.game-title[_ngcontent-%COMP%], .engine-choices[_ngcontent-%COMP%]{align-self:center;margin-bottom:.5rem}div[_ngcontent-%COMP%]{word-break:break-word}.status-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.625rem}"]}),e})()}];let e4=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[VD.forRoot(Jz),VD]}),e})(),t4=(()=>{var t;class e{constructor(){this.title="webui"}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Wt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){1&n&&Qt(0,"router-outlet")},dependencies:[bp]}),e})();function _S(t){return new v(3e3,!1)}function Oi(t){switch(t.length){case 0:return new Ca;case 1:return t[0];default:return new UE(t)}}function vS(t,e,i=new Map,n=new Map){const r=[],o=[];let s=-1,a=null;if(e.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let p=f,m=h;if("offset"!==f)switch(p=t.normalizePropertyName(p,r),m){case"!":m=i.get(f);break;case li:m=n.get(f);break;default:m=t.normalizeStyleValue(f,p,m,r)}u.set(p,m)}),d||o.push(u),a=u,s=c}),r.length)throw function E4(t){return new v(3502,!1)}();return o}function Sm(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Im(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Im(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Im(i,"destroy",t)))}}function Im(t,e,i){const o=Mm(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,i.totalTime??t.totalTime,!!i.disabled),s=t._data;return null!=s&&(o._data=s),o}function Mm(t,e,i,n,r="",o=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function jt(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function yS(t){const e=t.indexOf(":");return[t.substring(1,e),t.slice(e+1)]}const L4=(()=>typeof document>"u"?null:document.documentElement)();function Tm(t){const e=t.parentNode||t.host||null;return e===L4?null:e}let mr=null,bS=!1;function wS(t,e){for(;e;){if(e===t)return!0;e=Tm(e)}return!1}function CS(t,e,i){if(i)return Array.from(t.querySelectorAll(e));const n=t.querySelector(e);return n?[n]:[]}let xS=(()=>{var t;class e{validateStyleProperty(n){return function B4(t){mr||(mr=function j4(){return typeof document<"u"?document.body:null}()||{},bS=!!mr.style&&"WebkitAppearance"in mr.style);let e=!0;return mr.style&&!function V4(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in mr.style,!e&&bS&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in mr.style)),e}(n)}matchesElement(n,r){return!1}containsElement(n,r){return wS(n,r)}getParentElement(n){return Tm(n)}query(n,r,o){return CS(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,l=[],c){return new Ca(o,s)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})(),Am=(()=>{class e{}return e.NOOP=new xS,e})();const H4=1e3,Rm="ng-enter",xd="ng-leave",Dd="ng-trigger",Ed=".ng-trigger",ES="ng-animating",km=".ng-animating";function di(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Om(parseFloat(e[1]),e[2])}function Om(t,e){return"s"===e?t*H4:t}function Sd(t,e,i){return t.hasOwnProperty("duration")?t:function $4(t,e,i){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(_S()),{duration:0,delay:0,easing:""};r=Om(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Om(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!i){let a=!1,l=e.length;r<0&&(e.push(function n4(){return new v(3100,!1)}()),a=!0),o<0&&(e.push(function r4(){return new v(3101,!1)}()),a=!0),a&&e.splice(l,0,_S())}return{duration:r,delay:o,easing:s}}(t,e,i)}function Da(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function SS(t){const e=new Map;return Object.keys(t).forEach(i=>{e.set(i,t[i])}),e}function Pi(t,e=new Map,i){if(i)for(let[n,r]of i)e.set(n,r);for(let[n,r]of t)e.set(n,r);return e}function jn(t,e,i){e.forEach((n,r)=>{const o=Nm(r);i&&!i.has(r)&&i.set(r,t.style[o]),t.style[o]=n})}function gr(t,e){e.forEach((i,n)=>{const r=Nm(n);t.style[r]=""})}function Ea(t){return Array.isArray(t)?1==t.length?t[0]:HE(t):t}const Pm=new RegExp("{{\\s*(.+?)\\s*}}","g");function MS(t){let e=[];if("string"==typeof t){let i;for(;i=Pm.exec(t);)e.push(i[1]);Pm.lastIndex=0}return e}function Sa(t,e,i){const n=t.toString(),r=n.replace(Pm,(o,s)=>{let a=e[s];return null==a&&(i.push(function s4(t){return new v(3003,!1)}()),a=""),a.toString()});return r==n?t:r}function Id(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const q4=/-+([a-z0-9])/g;function Nm(t){return t.replace(q4,(...e)=>e[1].toUpperCase())}function Ht(t,e,i){switch(e.type){case 7:return t.visitTrigger(e,i);case 0:return t.visitState(e,i);case 1:return t.visitTransition(e,i);case 2:return t.visitSequence(e,i);case 3:return t.visitGroup(e,i);case 4:return t.visitAnimate(e,i);case 5:return t.visitKeyframes(e,i);case 6:return t.visitStyle(e,i);case 8:return t.visitReference(e,i);case 9:return t.visitAnimateChild(e,i);case 10:return t.visitAnimateRef(e,i);case 11:return t.visitQuery(e,i);case 12:return t.visitStagger(e,i);default:throw function a4(t){return new v(3004,!1)}()}}function TS(t,e){return window.getComputedStyle(t)[e]}const Md="*";function Z4(t,e){const i=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function X4(t,e,i){if(":"==t[0]){const l=function Q4(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}(t,i);if("function"==typeof l)return void e.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(function b4(t){return new v(3015,!1)}()),e;const r=n[1],o=n[2],s=n[3];e.push(AS(r,s));"<"==o[0]&&!(r==Md&&s==Md)&&e.push(AS(s,r))}(n,i,e)):i.push(t),i}const Td=new Set(["true","1"]),Ad=new Set(["false","0"]);function AS(t,e){const i=Td.has(t)||Ad.has(t),n=Td.has(e)||Ad.has(e);return(r,o)=>{let s=t==Md||t==r,a=e==Md||e==o;return!s&&i&&"boolean"==typeof r&&(s=r?Td.has(t):Ad.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?Td.has(e):Ad.has(e)),s&&a}}const K4=new RegExp("s*:selfs*,?","g");function Fm(t,e,i,n){return new J4(t).build(e,i,n)}class J4{constructor(e){this._driver=e}build(e,i,n){const r=new n8(i);return this._resetContextStyleTimingState(r),Ht(this,Ea(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&i.errors.push(function c4(){return new v(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,i))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,i);n+=l.queryCount,r+=l.depCount,s.push(l)}else i.errors.push(function d4(){return new v(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,i){const n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{MS(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Id(o.values()),i.errors.push(function u4(t,e){return new v(3008,!1)}()))}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;const n=Ht(this,Ea(e.animation),i);return{type:1,matchers:Z4(e.expr,i.errors),animation:n,queryCount:i.queryCount,depCount:i.depCount,options:_r(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(n=>Ht(this,n,i)),options:_r(e.options)}}visitGroup(e,i){const n=i.currentTime;let r=0;const o=e.steps.map(s=>{i.currentTime=n;const a=Ht(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:3,steps:o,options:_r(e.options)}}visitAnimate(e,i){const n=function r8(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Lm(Sd(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Lm(0,0,"");return o.dynamic=!0,o.strValue=i,o}const r=Sd(i,e);return Lm(r.duration,r.delay,r.easing)}(e.timings,i.errors);i.currentAnimateTimings=n;let r,o=e.styles?e.styles:sn({});if(5==o.type)r=this.visitKeyframes(o,i);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};n.easing&&(c.easing=n.easing),s=sn(c)}i.currentTime+=n.duration+n.delay;const l=this.visitStyle(s,i);l.isEmptyStep=a,r=l}return i.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,i){const n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){const n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)"string"==typeof a?a===li?n.push(a):i.errors.push(new v(3002,!1)):n.push(SS(a));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,i){const n=i.currentAnimateTimings;let r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(i.errors.push(function f4(t,e,i,n,r){return new v(3010,!1)}()),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),i.options&&function G4(t,e,i){const n=e.params||{},r=MS(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(function o4(t){return new v(3001,!1)}())})}(a,i.options,i.errors)})})}visitKeyframes(e,i){const n={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function p4(){return new v(3011,!1)}()),n;let o=0;const s=[];let a=!1,l=!1,c=0;const d=e.steps.map(x=>{const _=this._makeStyleAst(x,i);let I=null!=_.offset?_.offset:function i8(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){const n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}(_.styles),M=0;return null!=I&&(o++,M=_.offset=I),l=l||M<0||M>1,a=a||M0&&o{const I=h>0?_==f?1:h*_:s[_],M=I*y;i.currentTime=p+m.delay+M,m.duration=M,this._validateStyleAst(x,i),x.offset=I,n.styles.push(x)}),n}visitReference(e,i){return{type:8,animation:Ht(this,Ea(e.animation),i),options:_r(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:_r(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:_r(e.options)}}visitQuery(e,i){const n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;const[o,s]=function e8(t){const e=!!t.split(/\s*,\s*/).find(i=>":self"==i);return e&&(t=t.replace(K4,"")),t=t.replace(/@\*/g,Ed).replace(/@\w+/g,i=>Ed+"-"+i.slice(1)).replace(/:animating/g,km),[t,e]}(e.selector);i.currentQuerySelector=n.length?n+" "+o:o,jt(i.collectedStyles,i.currentQuerySelector,new Map);const a=Ht(this,Ea(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:_r(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(function v4(){return new v(3013,!1)}());const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Sd(e.timings,i.errors,!0);return{type:12,animation:Ht(this,Ea(e.animation),i),timings:n,options:null}}}class n8{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function _r(t){return t?(t=Da(t)).params&&(t.params=function t8(t){return t?Da(t):null}(t.params)):t={},t}function Lm(t,e,i){return{duration:t,delay:e,easing:i}}function Vm(t,e,i,n,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Rd{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const a8=new RegExp(":enter","g"),c8=new RegExp(":leave","g");function Bm(t,e,i,n,r,o=new Map,s=new Map,a,l,c=[]){return(new d8).buildKeyframes(t,e,i,n,r,o,s,a,l,c)}class d8{buildKeyframes(e,i,n,r,o,s,a,l,c,d=[]){c=c||new Rd;const u=new jm(e,i,c,r,o,d,[]);u.options=l;const h=l.delay?di(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),Ht(this,n,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const y=f[m];if(y.element===i){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Vm(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){const n=i.subInstructions.get(i.element);if(n){const r=i.createSubContext(e.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){const n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(const r of e){const o=r?.delay;if(o){const s="number"==typeof o?o:di(Sa(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let o=i.currentTimeline.currentTime;const s=null!=n.duration?di(n.duration):null,a=null!=n.delay?di(n.delay):null;return 0!==s&&e.forEach(l=>{const c=i.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,i){i.updateOptions(e.options,!0),Ht(this,e.animation,i),i.previousNode=e}visitSequence(e,i){const n=i.subContextCount;let r=i;const o=e.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=kd);const s=di(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ht(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){const n=[];let r=i.currentTimeline.currentTime;const o=e.options&&e.options.delay?di(e.options.delay):0;e.steps.forEach(s=>{const a=i.createSubContext(e.options);o&&a.delayNextStep(o),Ht(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){const n=e.strValue;return Sd(i.params?Sa(n,i.params,i.errors):n,i.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){const n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){const n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){const n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=e}visitQuery(e,i){const n=i.currentTimeline.currentTime,r=e.options||{},o=r.delay?di(r.delay):0;o&&(6===i.previousNode.type||0==n&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=kd);let s=n;const a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;const u=i.createSubContext(e.options,c);o&&u.delayNextStep(o),c===i.element&&(l=u.currentTimeline),Ht(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){const n=i.parentContext,r=i.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1);let l=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const d=i.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;Ht(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const kd={};class jm{constructor(e,i,n,r,o,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Od(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=di(n.duration)),null!=n.delay&&(r.delay=di(n.delay));const o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=Sa(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const i=this.options.params;if(i){const n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){const r=i||this.element,o=new jm(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=kd,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){const r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new u8(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(a8,"."+this._enterClassName)).replace(c8,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&0==a.length&&s.push(function y4(t){return new v(3014,!1)}()),a}}class Od{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,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(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(e){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new Od(this._driver,e,i||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||li),this._currentKeyframe.set(i,li);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);const o=r&&r.params||{},s=function h8(t,e){const i=new Map;let n;return t.forEach(r=>{if("*"===r){n=n||e.keys();for(let o of n)i.set(o,li)}else Pi(r,i)}),i}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=Sa(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??li),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{const r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Pi(a,new Map,this._backFill);c.forEach((d,u)=>{"!"===d?e.add(u):d===li&&i.add(u)}),n||c.set("offset",l/this.duration),r.push(c)});const o=e.size?Id(e.values()):[],s=i.size?Id(i.values()):[];if(n){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Vm(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class u8 extends Od{constructor(e,i,n,r,o,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){const o=[],s=n+i,a=i/s,l=Pi(e[0]);l.set("offset",0),o.push(l);const c=Pi(e[0]);c.set("offset",OS(a)),o.push(c);const d=e.length-1;for(let u=1;u<=d;u++){let h=Pi(e[u]);const f=h.get("offset");h.set("offset",OS((i+f*n)/s)),o.push(h)}n=s,i=0,r="",e=o}return Vm(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}function OS(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Hm{}const f8=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 p8 extends Hm{normalizePropertyName(e,i){return Nm(e)}normalizeStyleValue(e,i,n,r){let o="";const s=n.toString().trim();if(f8.has(i)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function l4(t,e){return new v(3005,!1)}())}return s+o}}function PS(t,e,i,n,r,o,s,a,l,c,d,u,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Um={};class NS{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return function m8(t,e,i,n,r){return t.some(o=>o(e,i,n,r))}(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,o,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||Um,p=this.buildStyles(n,a&&a.params||Um,u),m=l&&l.params||Um,y=this.buildStyles(r,m,u),x=new Set,_=new Map,I=new Map,M="void"===r,$={params:g8(m,h),delay:this.ast.options?.delay},be=d?[]:Bm(e,i,this.ast.animation,o,s,p,y,$,c,u);let pe=0;if(be.forEach(Tt=>{pe=Math.max(Tt.duration+Tt.delay,pe)}),u.length)return PS(i,this._triggerName,n,r,M,p,y,[],[],_,I,pe,u);be.forEach(Tt=>{const wn=Tt.element,Ld=jt(_,wn,new Set);Tt.preStyleProps.forEach(vr=>Ld.add(vr));const Ma=jt(I,wn,new Set);Tt.postStyleProps.forEach(vr=>Ma.add(vr)),wn!==i&&x.add(wn)});const et=Id(x.values());return PS(i,this._triggerName,n,r,M,p,y,be,et,_,I,pe)}}function g8(t,e){const i=Da(e);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(i[n]=t[n]);return i}class _8{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){const n=new Map,r=Da(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Sa(s,r,i));const l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}}class y8{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{this.states.set(r.name,new _8(r.style,r.options&&r.options.params||{},n))}),FS(this.states,"true","1"),FS(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new NS(e,r,this.states))}),this.fallbackTransition=function b8(t,e,i){return new NS(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(s=>s.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}}function FS(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}const w8=new Rd;class C8{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){const n=[],o=Fm(this._driver,i,n,[]);if(n.length)throw function S4(t){return new v(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,i,n){const r=e.element,o=vS(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){const r=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=Bm(this._driver,i,o,Rm,xd,new Map,new Map,n,w8,r),s.forEach(d=>{const u=jt(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function I4(){return new v(3300,!1)}()),s=[]),r.length)throw function M4(t){return new v(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,li))})});const c=Oi(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);const n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){const i=this._playersById.get(e);if(!i)throw function T4(t){return new v(3301,!1)}();return i}listen(e,i,n,r){const o=Mm(i,"","","");return Sm(this._getPlayer(e),n,o,r),()=>{}}command(e,i,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,i,r[0]||{});const o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const LS="ng-animate-queued",$m="ng-animate-disabled",I8=[],VS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},M8={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},bn="__ng_removed";class zm{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;const n=e&&e.hasOwnProperty("value");if(this.value=function k8(t){return t??null}(n?e.value:e),n){const o=Da(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const i=e.params;if(i){const n=this.options.params;Object.keys(i).forEach(r=>{null==n[r]&&(n[r]=i[r])})}}}const Ia="void",Gm=new zm(Ia);class T8{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,an(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw function A4(t,e){return new v(3302,!1)}();if(null==n||0==n.length)throw function R4(t){return new v(3303,!1)}();if(!function O8(t){return"start"==t||"done"==t}(n))throw function k4(t,e){return new v(3400,!1)}();const o=jt(this._elementListeners,e,[]),s={name:i,phase:n,callback:r};o.push(s);const a=jt(this._engine.statesByElement,e,new Map);return a.has(i)||(an(e,Dd),an(e,Dd+"-"+i),a.set(i,Gm)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return!this._triggers.has(e)&&(this._triggers.set(e,i),!0)}_getTrigger(e){const i=this._triggers.get(e);if(!i)throw function O4(t){return new v(3401,!1)}();return i}trigger(e,i,n,r=!0){const o=this._getTrigger(i),s=new qm(this.id,i,e);let a=this._engine.statesByElement.get(e);a||(an(e,Dd),an(e,Dd+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i);const c=new zm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Gm),c.value!==Ia&&l.value===c.value){if(!function F8(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let r=0;r{gr(e,y),jn(e,x)})}return}const h=jt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==i&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(an(e,LS),s.onStart(()=>{Fo(e,LS)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(e);if(y){let x=y.indexOf(s);x>=0&&y.splice(x,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){const n=this._engine.driver.query(e,Ed,!0);n.forEach(r=>{if(r[bn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(e,c,Ia,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&Oi(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){const r=new Set;i.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Gm,d=new zm(Ia),u=new qm(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,i){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{const o=e[bn];(!o||o===VS)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){an(e,this._hostClassName)}drainQueuedTransitions(e){const i=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){const l=Mm(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Sm(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{const o=n.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class A8{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){const n=new T8(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){const l=r.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const i=new Set,n=this.statesByElement.get(e);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}return i}trigger(e,i,n,r){if(Pd(i)){const o=this._fetchNamespace(e);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!Pd(i))return;const o=i[bn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),an(e,$m)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Fo(e,$m))}removeNode(e,i,n){if(Pd(i)){const r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);const o=this.namespacesByHostElement.get(i);o&&o.id!==e&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,o){this.collectedLeaveElements.push(i),i[bn]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,i,n,r,o){return Pd(i)?this._fetchNamespace(e).listen(i,n,r,o):()=>{}}_buildInstruction(e,i,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,o)}destroyInnerAnimations(e){let i=this.driver.query(e,Ed,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(e,km,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){const i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){const i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Oi(this.players).onDone(()=>e());e()})}processLeaveNode(e){const i=e[bn];if(i&&i.setForRemoval){if(e[bn]=VS,i.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains($m)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],i.length?Oi(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw function P4(t){return new v(3402,!1)}()}_flushAnimations(e,i){const n=new Rd,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(T=>{d.add(T);const P=this.driver.query(T,".ng-animate-queued",!0);for(let F=0;F{const F=Rm+m++;p.set(P,F),T.forEach(ne=>an(ne,F))});const y=[],x=new Set,_=new Set;for(let T=0;Tx.add(ne)):_.add(P))}const I=new Map,M=HS(h,Array.from(x));M.forEach((T,P)=>{const F=xd+m++;I.set(P,F),T.forEach(ne=>an(ne,F))}),e.push(()=>{f.forEach((T,P)=>{const F=p.get(P);T.forEach(ne=>Fo(ne,F))}),M.forEach((T,P)=>{const F=I.get(P);T.forEach(ne=>Fo(ne,F))}),y.forEach(T=>{this.processLeaveNode(T)})});const $=[],be=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(i).forEach(F=>{const ne=F.player,Ye=F.element;if($.push(ne),this.collectedEnterElements.length){const lt=Ye[bn];if(lt&<.setForMove){if(lt.previousTriggersValues&<.previousTriggersValues.has(F.triggerName)){const yr=lt.previousTriggersValues.get(F.triggerName),ln=this.statesByElement.get(F.element);if(ln&&ln.has(F.triggerName)){const Vd=ln.get(F.triggerName);Vd.value=yr,ln.set(F.triggerName,Vd)}}return void ne.destroy()}}const Hn=!u||!this.driver.containsElement(u,Ye),Ut=I.get(Ye),Ni=p.get(Ye),Ae=this._buildInstruction(F,n,Ni,Ut,Hn);if(Ae.errors&&Ae.errors.length)return void be.push(Ae);if(Hn)return ne.onStart(()=>gr(Ye,Ae.fromStyles)),ne.onDestroy(()=>jn(Ye,Ae.toStyles)),void r.push(ne);if(F.isFallbackTransition)return ne.onStart(()=>gr(Ye,Ae.fromStyles)),ne.onDestroy(()=>jn(Ye,Ae.toStyles)),void r.push(ne);const JS=[];Ae.timelines.forEach(lt=>{lt.stretchStartingKeyframe=!0,this.disabledNodes.has(lt.element)||JS.push(lt)}),Ae.timelines=JS,n.append(Ye,Ae.timelines),s.push({instruction:Ae,player:ne,element:Ye}),Ae.queriedElements.forEach(lt=>jt(a,lt,[]).push(ne)),Ae.preStyleProps.forEach((lt,yr)=>{if(lt.size){let ln=l.get(yr);ln||l.set(yr,ln=new Set),lt.forEach((Vd,Zm)=>ln.add(Zm))}}),Ae.postStyleProps.forEach((lt,yr)=>{let ln=c.get(yr);ln||c.set(yr,ln=new Set),lt.forEach((Vd,Zm)=>ln.add(Zm))})});if(be.length){const T=[];be.forEach(P=>{T.push(function N4(t,e){return new v(3505,!1)}())}),$.forEach(P=>P.destroy()),this.reportError(T)}const pe=new Map,et=new Map;s.forEach(T=>{const P=T.element;n.has(P)&&(et.set(P,P),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,pe))}),r.forEach(T=>{const P=T.element;this._getPreviousPlayers(P,!1,T.namespaceId,T.triggerName,null).forEach(ne=>{jt(pe,P,[]).push(ne),ne.destroy()})});const Tt=y.filter(T=>$S(T,l,c)),wn=new Map;jS(wn,this.driver,_,c,li).forEach(T=>{$S(T,l,c)&&Tt.push(T)});const Ma=new Map;f.forEach((T,P)=>{jS(Ma,this.driver,new Set(T),l,"!")}),Tt.forEach(T=>{const P=wn.get(T),F=Ma.get(T);wn.set(T,new Map([...P?.entries()??[],...F?.entries()??[]]))});const vr=[],QS=[],KS={};s.forEach(T=>{const{element:P,player:F,instruction:ne}=T;if(n.has(P)){if(d.has(P))return F.onDestroy(()=>jn(P,ne.toStyles)),F.disabled=!0,F.overrideTotalTime(ne.totalTime),void r.push(F);let Ye=KS;if(et.size>1){let Ut=P;const Ni=[];for(;Ut=Ut.parentNode;){const Ae=et.get(Ut);if(Ae){Ye=Ae;break}Ni.push(Ut)}Ni.forEach(Ae=>et.set(Ae,Ye))}const Hn=this._buildAnimation(F.namespaceId,ne,pe,o,Ma,wn);if(F.setRealPlayer(Hn),Ye===KS)vr.push(F);else{const Ut=this.playersByElement.get(Ye);Ut&&Ut.length&&(F.parentPlayer=Oi(Ut)),r.push(F)}}else gr(P,ne.fromStyles),F.onDestroy(()=>jn(P,ne.toStyles)),QS.push(F),d.has(P)&&r.push(F)}),QS.forEach(T=>{const P=o.get(T.element);if(P&&P.length){const F=Oi(P);T.setRealPlayer(F)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!Hn.destroyed);Ye.length?P8(this,P,Ye):this.processLeaveNode(P)}return y.length=0,vr.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const P=this.players.indexOf(T);this.players.splice(P,1)}),T.play()}),vr}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,o){let s=[];if(i){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==Ia;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){const o=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:i.triggerName;for(const l of i.timelines){const c=l.element,d=c!==o,u=jt(n,c,[]);this._getPreviousPlayers(c,d,s,a,i.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}gr(o,i.fromStyles)}_buildAnimation(e,i,n,r,o,s){const a=i.triggerName,l=i.element,c=[],d=new Set,u=new Set,h=i.timelines.map(p=>{const m=p.element;d.add(m);const y=m[bn];if(y&&y.removedBeforeQueried)return new Ca(p.duration,p.delay);const x=m!==l,_=function N8(t){const e=[];return US(t,e),e}((n.get(m)||I8).map(pe=>pe.getRealPlayer())).filter(pe=>!!pe.element&&pe.element===m),I=o.get(m),M=s.get(m),$=vS(this._normalizer,p.keyframes,I,M),be=this._buildPlayer(p,$,_);if(p.subTimeline&&r&&u.add(m),x){const pe=new qm(e,a,m);pe.setRealPlayer(be),c.push(pe)}return be});c.forEach(p=>{jt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function R8(t,e,i){let n=t.get(e);if(n){if(n.length){const r=n.indexOf(i);n.splice(r,1)}0==n.length&&t.delete(e)}return n}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>an(p,ES));const f=Oi(h);return f.onDestroy(()=>{d.forEach(p=>Fo(p,ES)),jn(l,i.toStyles)}),u.forEach(p=>{jt(r,p,[]).push(f)}),f}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new Ca(e.duration,e.delay)}}class qm{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new Ca,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Sm(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){jt(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const i=this._player;i.triggerCallback&&i.triggerCallback(e)}}function Pd(t){return t&&1===t.nodeType}function BS(t,e){const i=t.style.display;return t.style.display=e??"none",i}function jS(t,e,i,n,r){const o=[];i.forEach(l=>o.push(BS(l)));const s=[];n.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=e.computeStyle(c,u,r);d.set(u,h),(!h||0==h.length)&&(c[bn]=M8,s.push(c))}),t.set(c,d)});let a=0;return i.forEach(l=>BS(l,o[a++])),s}function HS(t,e){const i=new Map;if(t.forEach(a=>i.set(a,[])),0==e.length)return i;const r=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=i.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&i.get(l).push(a)}),i}function an(t,e){t.classList?.add(e)}function Fo(t,e){t.classList?.remove(e)}function P8(t,e,i){Oi(i).onDone(()=>t.processLeaveNode(e))}function US(t,e){for(let i=0;ir.add(o)):e.set(t,n),i.delete(t),!0}class Nd{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new A8(e,i,n),this._timelineEngine=new C8(e,i,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,i,n,r,o){const s=e+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],d=Fm(this._driver,o,l,[]);if(l.length)throw function D4(t,e){return new v(3404,!1)}();a=function v8(t,e,i){return new y8(t,e,i)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if("@"==n.charAt(0)){const[o,s]=yS(n);this._timelineEngine.command(o,i,s,r)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,o){if("@"==n.charAt(0)){const[s,a]=yS(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(e,i,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}let V8=(()=>{class e{constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o,this._state=0;let s=e.initialStylesByElement.get(n);s||e.initialStylesByElement.set(n,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&jn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jn(this._element,this._initialStyles),this._endStyles&&(jn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(gr(this._element,this._endStyles),this._endStyles=null),jn(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Wm(t){let e=null;return t.forEach((i,n)=>{(function B8(t){return"display"===t||"position"===t})(n)&&(e=e||new Map,e.set(n,i))}),e}class zS{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&e.set(r,this._finished?n:TS(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const i="start"===e?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class j8{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return wS(e,i)}getParentElement(e){return Tm(e)}query(e,i,n){return CS(e,i,n)}computeStyle(e,i,n){return window.getComputedStyle(e)[i]}animate(e,i,n,r,o,s=[]){const l={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,d=s.filter(f=>f instanceof zS);(function W4(t,e){return 0===t||0===e})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let u=function z4(t){return t.length?t[0]instanceof Map?t:t.map(e=>SS(e)):[]}(i).map(f=>Pi(f));u=function Y4(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,TS(t,a)))}}return e}(e,u,c);const h=function L8(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Wm(e[0]),e.length>1&&(n=Wm(e[e.length-1]))):e instanceof Map&&(i=Wm(e)),i||n?new V8(t,i,n):null}(e,u);return new zS(e,u,l,h)}}let H8=(()=>{var t;class e extends jE{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:qt.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(n)?HE(n):n;return GS(this._renderer,null,r,"register",[o]),new U8(r,this._renderer)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(ys),b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class U8 extends z3{constructor(e,i){super(),this._id=e,this._renderer=i}create(e,i){return new $8(this._id,e,i||{},this._renderer)}}class $8{constructor(e,i,n,r){this.id=e,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,i){return this._renderer.listen(this.element,`@@${this.id}:${e}`,i)}_command(e,...i){return GS(this._renderer,this.element,this.id,e,i)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function GS(t,e,i,n,r){return t.setProperty(e,`@@${i}:${n}`,r)}const qS="@.disabled";let z8=(()=>{var t;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=(s,a)=>{const l=a?.parentNode(s);l&&a.removeChild(l,s)}}createRenderer(n,r){const s=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new WS("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const a=r.id,l=r.id+"-"+this._currentId;this._currentId++,this.engine.register(l,n);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(a,l,n,u.name,u)};return r.data.animation.forEach(c),new G8(this,l,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,o){n>=0&&nr(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[a,l]=s;a(l)}),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()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(ys),b(Nd),b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class WS{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){"@"==i.charAt(0)&&i==qS?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}}class G8 extends WS{constructor(e,i,n,r,o){super(i,n,r,o),this.factory=e,this.namespaceId=i}setProperty(e,i,n){"@"==i.charAt(0)?"."==i.charAt(1)&&i==qS?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if("@"==i.charAt(0)){const r=function q8(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let o=i.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function W8(t){const e=t.indexOf(".");return[t.substring(0,e),t.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(e,i,n)}}let Y8=(()=>{var t;class e extends Nd{constructor(n,r,o,s){super(n.body,r,o)}ngOnDestroy(){this.flush()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Q),b(Am),b(Hm),b(xi))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const YS=[{provide:jE,useClass:H8},{provide:Hm,useFactory:function Z8(){return new p8}},{provide:Nd,useClass:Y8},{provide:ys,useFactory:function X8(t,e,i){return new z8(t,e,i)},deps:[tp,Nd,X]}],Ym=[{provide:Am,useFactory:()=>new j8},{provide:Yn,useValue:"BrowserAnimations"},...YS],ZS=[{provide:Am,useClass:xS},{provide:Yn,useValue:"NoopAnimations"},...YS];let Q8=(()=>{var t;class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?ZS:Ym}}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:Ym,imports:[Tx]}),e})(),K8=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})(),J8=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[zs,vn,K8,rS]}),e})(),t5=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[zs,vn,xa,xa,vn]}),e})(),n5=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t,bootstrap:[t4]}),t.\u0275inj=Ee({imports:[Tx,e4,Q8,J8,$U,M$,t5,Az]}),e})();B2().bootstrapModule(n5).catch(t=>console.error(t))}},ui=>{ui(ui.s=361)}]); \ No newline at end of file +"use strict";(self.webpackChunkwebui=self.webpackChunkwebui||[]).push([[179],{361:()=>{function ui(t){return"function"==typeof t}let Ho=!1;const $t={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Ho&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ho=t},get useDeprecatedSynchronousErrorHandling(){return Ho}};function hi(t){setTimeout(()=>{throw t},0)}const Pa={closed:!0,next(t){},error(t){if($t.useDeprecatedSynchronousErrorHandling)throw t;hi(t)},complete(){}},wr=Array.isArray||(t=>t&&"number"==typeof t.length);function $d(t){return null!==t&&"object"==typeof t}const Fa=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,n)=>`${n+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class pe{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof pe)i.remove(this);else if(null!==i)for(let s=0;se.concat(i instanceof Fa?i.errors:i),[])}pe.EMPTY=((t=new pe).closed=!0,t);const La="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ge extends pe{constructor(e,i,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Pa;break;case 1:if(!e){this.destination=Pa;break}if("object"==typeof e){e instanceof ge?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new rg(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new rg(this,e,i,n)}}[La](){return this}static create(e,i,n){const r=new ge(e,i,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class rg extends ge{constructor(e,i,n,r){super(),this._parentSubscriber=e;let o,s=this;ui(i)?o=i:i&&(o=i.next,n=i.error,r=i.complete,i!==Pa&&(s=Object.create(i),ui(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;$t.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:n}=$t;if(this._error)n&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(i.syncErrorThrowable)n?(i.syncErrorValue=e,i.syncErrorThrown=!0):hi(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;hi(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const i=()=>this._complete.call(this._context);$t.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,i){try{e.call(this._context,i)}catch(n){if(this.unsubscribe(),$t.useDeprecatedSynchronousErrorHandling)throw n;hi(n)}}__tryOrSetError(e,i,n){if(!$t.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,n)}catch(r){return $t.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(hi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Uo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Va(t){return t}function og(t){return 0===t.length?Va:1===t.length?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}let be=(()=>{class t{constructor(i){this._isScalar=!1,i&&(this._subscribe=i)}lift(i){const n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){const{operator:o}=this,s=function yI(t,e,i){if(t){if(t instanceof ge)return t;if(t[La])return t[La]()}return t||e||i?new ge(t,e,i):new ge(Pa)}(i,n,r);if(s.add(o?o.call(s,this.source):this.source||$t.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),$t.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(i){try{return this._subscribe(i)}catch(n){$t.useDeprecatedSynchronousErrorHandling&&(i.syncErrorThrown=!0,i.syncErrorValue=n),function vI(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof ge?i:null}return!0}(i)?i.error(n):console.warn(n)}}forEach(i,n){return new(n=sg(n))((r,o)=>{let s;s=this.subscribe(a=>{try{i(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(i){const{source:n}=this;return n&&n.subscribe(i)}[Uo](){return this}pipe(...i){return 0===i.length?this:og(i)(this)}toPromise(i){return new(i=sg(i))((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function sg(t){if(t||(t=$t.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Cr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class wI extends pe{constructor(e,i){super(),this.subject=e,this.subscriber=i,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,i=e.observers;if(this.subject=null,!i||0===i.length||e.isStopped||e.closed)return;const n=i.indexOf(this.subscriber);-1!==n&&i.splice(n,1)}}class ag extends ge{constructor(e){super(e),this.destination=e}}let oe=(()=>{class t extends be{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[La](){return new ag(this)}lift(i){const n=new lg(this,this);return n.operator=i,n}next(i){if(this.closed)throw new Cr;if(!this.isStopped){const{observers:n}=this,r=n.length,o=n.slice();for(let s=0;snew lg(e,i),t})();class lg extends oe{constructor(e,i){super(),this.destination=e,this.source=i}next(e){const{destination:i}=this;i&&i.next&&i.next(e)}error(e){const{destination:i}=this;i&&i.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:i}=this;return i?this.source.subscribe(e):pe.EMPTY}}function xr(t){return t&&"function"==typeof t.schedule}function Z(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new CI(t,e))}}class CI{constructor(e,i){this.project=e,this.thisArg=i}call(e,i){return i.subscribe(new xI(e,this.project,this.thisArg))}}class xI extends ge{constructor(e,i,n){super(e),this.project=i,this.count=0,this.thisArg=n||this}_next(e){let i;try{i=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(i)}}const cg=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function ug(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const zd=t=>{if(t&&"function"==typeof t[Uo])return(t=>e=>{const i=t[Uo]();if("function"!=typeof i.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return i.subscribe(e)})(t);if(dg(t))return cg(t);if(ug(t))return(t=>e=>(t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,hi),e))(t);if(t&&"function"==typeof t[Ba])return(t=>e=>{const i=t[Ba]();for(;;){let n;try{n=i.next()}catch(r){return e.error(r),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof i.return&&e.add(()=>{i.return&&i.return()}),e})(t);{const i=`You provided ${$d(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(i)}};function Gd(t,e){return new be(i=>{const n=new pe;let r=0;return n.add(e.schedule(function(){r!==t.length?(i.next(t[r++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function Ye(t,e){return e?function kI(t,e){if(null!=t){if(function RI(t){return t&&"function"==typeof t[Uo]}(t))return function MI(t,e){return new be(i=>{const n=new pe;return n.add(e.schedule(()=>{const r=t[Uo]();n.add(r.subscribe({next(o){n.add(e.schedule(()=>i.next(o)))},error(o){n.add(e.schedule(()=>i.error(o)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(ug(t))return function TI(t,e){return new be(i=>{const n=new pe;return n.add(e.schedule(()=>t.then(r=>{n.add(e.schedule(()=>{i.next(r),n.add(e.schedule(()=>i.complete()))}))},r=>{n.add(e.schedule(()=>i.error(r)))}))),n})}(t,e);if(dg(t))return Gd(t,e);if(function OI(t){return t&&"function"==typeof t[Ba]}(t)||"string"==typeof t)return function AI(t,e){if(!t)throw new Error("Iterable cannot be null");return new be(i=>{const n=new pe;let r;return n.add(()=>{r&&"function"==typeof r.return&&r.return()}),n.add(e.schedule(()=>{r=t[Ba](),n.add(e.schedule(function(){if(i.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void i.error(a)}s?i.complete():(i.next(o),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof be?t:new be(zd(t))}class $o extends ge{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class zo extends ge{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Go(t,e){if(e.closed)return;if(t instanceof be)return t.subscribe(e);let i;try{i=zd(t)(e)}catch(n){e.error(n)}return i}function tt(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(tt((r,o)=>Ye(t(r,o)).pipe(Z((s,a)=>e(r,s,o,a))),i)):("number"==typeof e&&(i=e),n=>n.lift(new NI(t,i)))}class NI{constructor(e,i=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=i}call(e,i){return i.subscribe(new PI(e,this.project,this.concurrent))}}class PI extends zo{constructor(e,i,n=Number.POSITIVE_INFINITY){super(e),this.project=i,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Dr(t=Number.POSITIVE_INFINITY){return tt(Va,t)}function qd(t,e){return e?Gd(t,e):new be(cg(t))}function qo(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return xr(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof be?t[0]:Dr(e)(qd(t,i))}class At extends oe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const i=super._subscribe(e);return i&&!i.closed&&e.next(this._value),i}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Cr;return this._value}next(e){super.next(this._value=e)}}function k(...t){let e=t[t.length-1];return xr(e)?(t.pop(),Gd(t,e)):qd(t)}function ja(){return function(e){return e.lift(new FI(e))}}class FI{constructor(e){this.connectable=e}call(e,i){const{connectable:n}=this;n._refCount++;const r=new LI(e,n),o=i.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class LI extends ge{constructor(e,i){super(e),this.connectable=i}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const i=e._refCount;if(i<=0)return void(this.connection=null);if(e._refCount=i-1,i>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()}}class Wd extends be{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new pe,e.add(this.source.subscribe(new BI(this.getSubject(),this))),e.closed&&(this._connection=null,e=pe.EMPTY)),e}refCount(){return ja()(this)}}const VI=(()=>{const t=Wd.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class BI extends ag{constructor(e,i){super(e),this.connectable=i}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const i=e._connection;e._refCount=0,e._subject=null,e._connection=null,i&&i.unsubscribe()}}}class UI{constructor(e,i){this.subjectFactory=e,this.selector=i}call(e,i){const{selector:n}=this,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(i.subscribe(r)),o}}function $I(){return new oe}function Yd(){return t=>ja()(function HI(t,e){return function(n){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new UI(r,e));const o=Object.create(n,VI);return o.source=n,o.subjectFactory=r,o}}($I)(t))}function zt(t,e){return"function"==typeof e?i=>i.pipe(zt((n,r)=>Ye(t(n,r)).pipe(Z((o,s)=>e(n,o,r,s))))):i=>i.lift(new zI(t))}class zI{constructor(e){this.project=e}call(e,i){return i.subscribe(new GI(e,this.project))}}class GI extends zo{constructor(e,i){super(e),this.project=i,this.index=0}_next(e){let i;const n=this.index++;try{i=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(i)}_innerSub(e){const i=this.innerSubscription;i&&i.unsubscribe();const n=new $o(this),r=this.destination;r.add(n),this.innerSubscription=Go(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}function hg(t,e){return i=>i.lift(new qI(t,e))}class qI{constructor(e,i){this.compare=e,this.keySelector=i}call(e,i){return i.subscribe(new WI(e,this.compare,this.keySelector))}}class WI extends ge{constructor(e,i,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof i&&(this.compare=i)}compare(e,i){return e===i}_next(e){let i;try{const{keySelector:r}=this;i=r?r(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:r}=this;n=r(this.key,i)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=i,this.destination.next(e))}}function ue(t){for(let e in t)if(t[e]===ue)return e;throw Error("Could not find renamed property on target object.")}function Ha(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function $e(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function Zd(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const YI=ue({__forward_ref__:ue});function _e(t){return t.__forward_ref__=_e,t.toString=function(){return $e(this())},t}function j(t){return Xd(t)?t():t}function Xd(t){return"function"==typeof t&&t.hasOwnProperty(YI)&&t.__forward_ref__===_e}function Qd(t){return t&&!!t.\u0275providers}const fg="https://g.co/ng/security#xss";class v extends Error{constructor(e,i){super(function Ua(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,i)),this.code=e}}function H(t){return"string"==typeof t?t:null==t?"":String(t)}function Kd(t,e){throw new v(-201,!1)}function Gt(t,e){null==t&&function L(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${i} ${n} ${e} <=Actual]`))}(e,t,null,"!=")}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ee(t){return{providers:t.providers||[],imports:t.imports||[]}}function $a(t){return pg(t,Ga)||pg(t,mg)}function pg(t,e){return t.hasOwnProperty(e)?t[e]:null}function za(t){return t&&(t.hasOwnProperty(Jd)||t.hasOwnProperty(nM))?t[Jd]:null}const Ga=ue({\u0275prov:ue}),Jd=ue({\u0275inj:ue}),mg=ue({ngInjectableDef:ue}),nM=ue({ngInjectorDef:ue});var Q=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Q||{});let eu;function wt(t){const e=eu;return eu=t,e}function _g(t,e,i){const n=$a(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Q.Optional?null:void 0!==e?e:void Kd($e(t))}const we=globalThis,Wo={},ou="__NG_DI_FLAG__",qa="ngTempTokenPath",oM=/\n/gm,yg="__source";let Er;function fi(t){const e=Er;return Er=t,e}function lM(t,e=Q.Default){if(void 0===Er)throw new v(-203,!1);return null===Er?_g(t,void 0,e):Er.get(t,e&Q.Optional?null:void 0,e)}function b(t,e=Q.Default){return(function gg(){return eu}()||lM)(j(t),e)}function E(t,e=Q.Default){return b(t,Wa(e))}function Wa(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function su(t){const e=[];for(let i=0;ie){s=o-1;break}}}for(;oo?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==xg(f,c,0)||2&n&&c!==h){if(un(n))return!1;s=!0}}}}else{if(!s&&!un(n)&&!un(l))return!1;if(s&&un(l))continue;s=!1,n=l|1&n}}return un(n)||s}function un(t){return 0==(1&t)}function mM(t,e,i,n){if(null===e)return-1;let r=0;if(n||!i){let o=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!un(s)&&(e+=Ag(o,r),r=""),n=s,o=o||!un(n);i++}return""!==r&&(e+=Ag(o,r)),e}function Wt(t){return Un(()=>{const e=Og(t),i={...e,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ya.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||qt.Emulated,styles:t.styles||ie,_:null,schemas:t.schemas||null,tView:null,id:""};kg(i);const n=t.dependencies;return i.directiveDefs=Xa(n,!1),i.pipeDefs=Xa(n,!0),i.id=function MM(t){let e=0;const i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}(i),i})}function DM(t){return J(t)||Ze(t)}function EM(t){return null!==t}function Se(t){return Un(()=>({type:t.type,bootstrap:t.bootstrap||ie,declarations:t.declarations||ie,imports:t.imports||ie,exports:t.exports||ie,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Rg(t,e){if(null==t)return Dn;const i={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,e&&(e[r]=o)}return i}function A(t){return Un(()=>{const e=Og(t);return kg(e),e})}function Ct(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function J(t){return t[Za]||null}function Ze(t){return t[au]||null}function ct(t){return t[lu]||null}function Ot(t,e){const i=t[wg]||null;if(!i&&!0===e)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return i}function Og(t){const e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Dn,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||ie,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Rg(t.inputs,e),outputs:Rg(t.outputs)}}function kg(t){t.features?.forEach(e=>e(t))}function Xa(t,e){if(!t)return null;const i=e?ct:DM;return()=>("function"==typeof t?t():t).map(n=>i(n)).filter(EM)}const Re=0,I=1,G=2,Ie=3,hn=4,Qo=5,nt=6,Ir=7,Fe=8,pi=9,Mr=10,U=11,Ko=12,Ng=13,Tr=14,Le=15,Jo=16,Ar=17,En=18,es=19,Pg=20,mi=21,zn=22,ts=23,ns=24,K=25,du=1,Fg=2,Sn=7,Rr=9,Xe=11;function xt(t){return Array.isArray(t)&&"object"==typeof t[du]}function dt(t){return Array.isArray(t)&&!0===t[du]}function uu(t){return 0!=(4&t.flags)}function Bi(t){return t.componentOffset>-1}function Ka(t){return 1==(1&t.flags)}function fn(t){return!!t.template}function hu(t){return 0!=(512&t[G])}function ji(t,e){return t.hasOwnProperty($n)?t[$n]:null}let Qe=null,Ja=!1;function Yt(t){const e=Qe;return Qe=t,e}const Bg={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 Hg(t){if(!rs(t)||t.dirty){if(!t.producerMustRecompute(t)&&!zg(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function $g(t){t.dirty=!0,function Ug(t){if(void 0===t.liveConsumerNode)return;const e=Ja;Ja=!0;try{for(const i of t.liveConsumerNode)i.dirty||$g(i)}finally{Ja=e}}(t),t.consumerMarkedDirty?.(t)}function pu(t){return t&&(t.nextProducerIndex=0),Yt(t)}function mu(t,e){if(Yt(e),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(rs(t))for(let i=t.nextProducerIndex;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function zg(t){Or(t);for(let e=0;e0}function Or(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Yg=null;const Kg=()=>{},HM=(()=>({...Bg,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:Kg}))();class UM{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function kt(){return Jg}function Jg(t){return t.type.prototype.ngOnChanges&&(t.setInput=zM),$M}function $M(){const t=t_(this),e=t?.current;if(e){const i=t.previous;if(i===Dn)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function zM(t,e,i,n){const r=this.declaredInputs[i],o=t_(t)||function GM(t,e){return t[e_]=e}(t,{previous:Dn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new UM(l&&l.currentValue,e,a===Dn),t[n]=e}kt.ngInherit=!0;const e_="__ngSimpleChanges__";function t_(t){return t[e_]||null}const In=function(t,e,i){},n_="svg";function Ce(t){for(;Array.isArray(t);)t=t[Re];return t}function tl(t,e){return Ce(e[t])}function Dt(t,e){return Ce(e[t.index])}function r_(t,e){return t.data[e]}function Nt(t,e){const i=e[t];return xt(i)?i:i[Re]}function _i(t,e){return null==e?null:t[e]}function o_(t){t[Ar]=0}function QM(t){1024&t[G]||(t[G]|=1024,a_(t,1))}function s_(t){1024&t[G]&&(t[G]&=-1025,a_(t,-1))}function a_(t,e){let i=t[Ie];if(null===i)return;i[Qo]+=e;let n=i;for(i=i[Ie];null!==i&&(1===e&&1===n[Qo]||-1===e&&0===n[Qo]);)i[Qo]+=e,n=i,i=i[Ie]}const V={lFrame:b_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function d_(){return V.bindingsEnabled}function Nr(){return null!==V.skipHydrationRootTNode}function w(){return V.lFrame.lView}function ee(){return V.lFrame.tView}function Ke(){let t=f_();for(;null!==t&&64===t.type;)t=t.parent;return t}function f_(){return V.lFrame.currentTNode}function Mn(t,e){const i=V.lFrame;i.currentTNode=t,i.isParent=e}function bu(){return V.lFrame.isParent}function wu(){V.lFrame.isParent=!1}function Pr(){return V.lFrame.bindingIndex++}function cT(t,e){const i=V.lFrame;i.bindingIndex=i.bindingRootIndex=t,Cu(e)}function Cu(t){V.lFrame.currentDirectiveIndex=t}function __(){return V.lFrame.currentQueryIndex}function Du(t){V.lFrame.currentQueryIndex=t}function uT(t){const e=t[I];return 2===e.type?e.declTNode:1===e.type?t[nt]:null}function v_(t,e,i){if(i&Q.SkipSelf){let r=e,o=t;for(;!(r=r.parent,null!==r||i&Q.Host||(r=uT(o),null===r||(o=o[Tr],10&r.type))););if(null===r)return!1;e=r,t=o}const n=V.lFrame=y_();return n.currentTNode=e,n.lView=t,!0}function Eu(t){const e=y_(),i=t[I];V.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function y_(){const t=V.lFrame,e=null===t?null:t.child;return null===e?b_(t):e}function b_(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function w_(){const t=V.lFrame;return V.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const C_=w_;function Su(){const t=w_();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ht(){return V.lFrame.selectedIndex}function Hi(t){V.lFrame.selectedIndex=t}function Me(){const t=V.lFrame;return r_(t.tView,t.selectedIndex)}let E_=!0;function nl(){return E_}function vi(t){E_=t}function il(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[l]<0&&(t[Ar]+=65536),(a>13>16&&(3&t[G])===e&&(t[G]+=8192,I_(a,o)):I_(a,o)}const Fr=-1;class ss{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function Tu(t){return t!==Fr}function as(t){return 32767&t}function ls(t,e){let i=function CT(t){return t>>16}(t),n=e;for(;i>0;)n=n[Tr],i--;return n}let Au=!0;function sl(t){const e=Au;return Au=t,e}const M_=255,T_=5;let xT=0;const Tn={};function al(t,e){const i=A_(t,e);if(-1!==i)return i;const n=e[I];n.firstCreatePass&&(t.injectorIndex=e.length,Ru(n.data,t),Ru(e,null),Ru(n.blueprint,null));const r=ll(t,e),o=t.injectorIndex;if(Tu(r)){const s=as(r),a=ls(r,e),l=a[I].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function Ru(t,e){t.push(0,0,0,0,0,0,0,0,e)}function A_(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ll(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;null!==r;){if(n=L_(r),null===n)return Fr;if(i++,r=r[Tr],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Fr}function Ou(t,e,i){!function DT(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Zo)&&(n=i[Zo]),null==n&&(n=i[Zo]=xT++);const r=n&M_;e.data[t+(r>>T_)]|=1<=0?e&M_:TT:e}(i);if("function"==typeof o){if(!v_(e,t,n))return n&Q.Host?R_(r,0,n):O_(e,i,n,r);try{let s;if(s=o(n),null!=s||n&Q.Optional)return s;Kd()}finally{C_()}}else if("number"==typeof o){let s=null,a=A_(t,e),l=Fr,c=n&Q.Host?e[Le][nt]:null;for((-1===a||n&Q.SkipSelf)&&(l=-1===a?ll(t,e):e[a+8],l!==Fr&&F_(n,!1)?(s=e[I],a=as(l),e=ls(l,e)):a=-1);-1!==a;){const d=e[I];if(P_(o,a,d.data)){const u=ST(a,e,i,s,n,c);if(u!==Tn)return u}l=e[a+8],l!==Fr&&F_(n,e[I].data[a+8]===c)&&P_(o,a,e)?(s=d,a=as(l),e=ls(l,e)):a=-1}}return r}function ST(t,e,i,n,r,o){const s=e[I],a=s.data[t+8],d=cl(a,s,i,null==n?Bi(a)&&Au:n!=s&&0!=(3&a.type),r&Q.Host&&o===a);return null!==d?Ui(e,s,d,a):Tn}function cl(t,e,i,n,r){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,d=o>>20,h=r?a+d:t.directiveEnd;for(let f=n?a:a+d;f=l&&p.type===i)return f}if(r){const f=s[l];if(f&&fn(f)&&f.type===i)return l}return null}function Ui(t,e,i,n){let r=t[i];const o=e.data;if(function yT(t){return t instanceof ss}(r)){const s=r;s.resolving&&function ZI(t,e){const i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new v(-200,`Circular dependency in DI detected for ${t}${i}`)}(function de(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():H(t)}(o[i]));const a=sl(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?wt(s.injectImpl):null;v_(t,n,Q.Default);try{r=t[i]=s.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function _T(t,e,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){const s=Jg(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}(i,o[i],e)}finally{null!==c&&wt(c),sl(a),s.resolving=!1,C_()}}return r}function P_(t,e,i){return!!(i[e+(t>>T_)]&1<{const e=t.prototype.constructor,i=e[$n]||ku(e),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[$n]||ku(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ku(t){return Xd(t)?()=>{const e=ku(j(t));return e&&e()}:ji(t)}function L_(t){const e=t[I],i=e.type;return 2===i?e.declTNode:1===i?t[nt]:null}function $i(t){return function ET(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const n=i.length;let r=0;for(;r{const n=function Nu(t){return function(...i){if(t){const n=t(...i);for(const r in n)this[r]=n[r]}}}(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(Vr)?l[Vr]:Object.defineProperty(l,Vr,{value:[]})[Vr];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function Ur(t,e){t.forEach(i=>Array.isArray(i)?Ur(i,e):e(i))}function B_(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function dl(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function us(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function LT(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function Pu(t,e){const i=$r(t,e);if(i>=0)return t[1|i]}function $r(t,e){return function j_(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){const o=n+(r-n>>1),s=t[o<e?r=o:n=o+1}return~(r<|^->||--!>|)/g,sA="\u200b$1\u200b";const ju=new Map;let aA=0;const Uu="__ngContext__";function it(t,e){xt(e)?(t[Uu]=e[es],function cA(t){ju.set(t[es],t)}(e)):t[Uu]=e}let $u;function zu(t,e){return $u(t,e)}function ms(t){const e=t[Ie];return dt(e)?e[Ie]:e}function sv(t){return lv(t[Ko])}function av(t){return lv(t[hn])}function lv(t){for(;null!==t&&!dt(t);)t=t[hn];return t}function qr(t,e,i,n,r){if(null!=n){let o,s=!1;dt(n)?o=n:xt(n)&&(s=!0,n=n[Re]);const a=Ce(n);0===t&&null!==i?null==r?hv(e,i,a):Gi(e,i,a,r||null,!0):1===t&&null!==i?Gi(e,i,a,r||null,!0):2===t?function xl(t,e,i){const n=wl(t,e);n&&function MA(t,e,i,n){t.removeChild(e,i,n)}(t,n,e,i)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function RA(t,e,i,n,r){const o=i[Sn];o!==Ce(i)&&qr(e,t,n,o,r);for(let a=Xe;ae.replace(oA,sA))}(e))}function yl(t,e,i){return t.createElement(e,i)}function dv(t,e){const i=t[Rr],n=i.indexOf(e);s_(e),i.splice(n,1)}function bl(t,e){if(t.length<=Xe)return;const i=Xe+e,n=t[i];if(n){const r=n[Jo];null!==r&&r!==t&&dv(r,n),e>0&&(t[i-1][hn]=n[hn]);const o=dl(t,Xe+e);!function bA(t,e){_s(t,e,e[U],2,null,null),e[Re]=null,e[nt]=null}(n[I],n);const s=o[En];null!==s&&s.detachView(o[I]),n[Ie]=null,n[hn]=null,n[G]&=-129}return n}function qu(t,e){if(!(256&e[G])){const i=e[U];e[ts]&&Gg(e[ts]),e[ns]&&Gg(e[ns]),i.destroyNode&&_s(t,e,i,3,null,null),function xA(t){let e=t[Ko];if(!e)return Wu(t[I],t);for(;e;){let i=null;if(xt(e))i=e[Ko];else{const n=e[Xe];n&&(i=n)}if(!i){for(;e&&!e[hn]&&e!==t;)xt(e)&&Wu(e[I],e),e=e[Ie];null===e&&(e=t),xt(e)&&Wu(e[I],e),i=e&&e[hn]}e=i}}(e)}}function Wu(t,e){if(!(256&e[G])){e[G]&=-129,e[G]|=256,function IA(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s]():n[-s].unsubscribe(),o+=2}else i[o].call(n[i[o+1]]);null!==n&&(e[Ir]=null);const r=e[mi];if(null!==r){e[mi]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===qt.None||o===qt.Emulated)return null}return Dt(n,i)}}(t,e.parent,i)}function Gi(t,e,i,n,r){t.insertBefore(e,i,n,r)}function hv(t,e,i){t.appendChild(e,i)}function fv(t,e,i,n,r){null!==n?Gi(t,e,i,n,r):hv(t,e,i)}function wl(t,e){return t.parentNode(e)}function pv(t,e,i){return gv(t,e,i)}let Zu,Dl,Ju,gv=function mv(t,e,i){return 40&t.type?Dt(t,i):null};function Cl(t,e,i,n){const r=Yu(t,n,e),o=e[U],a=pv(n.parent||e[nt],n,e);if(null!=r)if(Array.isArray(i))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Dl}()?.createHTML(t)||t}class qi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fg})`}}class VA extends qi{getTypeName(){return"HTML"}}class BA extends qi{getTypeName(){return"Style"}}class jA extends qi{getTypeName(){return"Script"}}class HA extends qi{getTypeName(){return"URL"}}class UA extends qi{getTypeName(){return"ResourceURL"}}function Ft(t){return t instanceof qi?t.changingThisBreaksApplicationSecurity:t}function An(t,e){const i=function $A(t){return t instanceof qi&&t.getTypeName()||null}(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${fg})`)}return i===e}class ZA{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const i=(new window.DOMParser).parseFromString(Wr(e),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}}class XA{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const i=this.inertDocument.createElement("template");return i.innerHTML=Wr(e),i}}const KA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Sl(t){return(t=String(t)).match(KA)?t:"unsafe:"+t}function Wn(t){const e={};for(const i of t.split(","))e[i]=!0;return e}function vs(...t){const e={};for(const i of t)for(const n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}const Iv=Wn("area,br,col,hr,img,wbr"),Mv=Wn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tv=Wn("rp,rt"),th=vs(Iv,vs(Mv,Wn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),vs(Tv,Wn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),vs(Tv,Mv)),nh=Wn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Av=vs(nh,Wn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Wn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),JA=Wn("script,style,template");class e1{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(e){const i=e.nodeName.toLowerCase();if(!th.hasOwnProperty(i))return this.sanitizedSomething=!0,!JA.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const i=e.nodeName.toLowerCase();th.hasOwnProperty(i)&&!Iv.hasOwnProperty(i)&&(this.buf.push(""))}chars(e){this.buf.push(Rv(e))}checkClobberedElement(e,i){if(i&&(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return i}}const t1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n1=/([^\#-~ |!])/g;function Rv(t){return t.replace(/&/g,"&").replace(t1,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(n1,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Il;function Ov(t,e){let i=null;try{Il=Il||function Sv(t){const e=new XA(t);return function QA(){try{return!!(new window.DOMParser).parseFromString(Wr(""),"text/html")}catch{return!1}}()?new ZA(e):e}(t);let n=e?String(e):"";i=Il.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Il.getInertBodyElement(n)}while(n!==o);return Wr((new e1).sanitizeChildren(ih(i)||i))}finally{if(i){const n=ih(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ih(t){return"content"in t&&function r1(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Je=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Je||{});function Zr(t){const e=function ys(){const t=w();return t&&t[Mr].sanitizer}();return e?e.sanitize(Je.URL,t)||"":An(t,"URL")?Ft(t):Sl(H(t))}class C{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=D({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const bs=new C("ENVIRONMENT_INITIALIZER"),Pv=new C("INJECTOR",-1),Fv=new C("INJECTOR_DEF_TYPES");class rh{get(e,i=Wo){if(i===Wo){const n=new Error(`NullInjectorError: No provider for ${$e(e)}!`);throw n.name="NullInjectorError",n}return i}}function u1(...t){return{\u0275providers:Vv(0,t),\u0275fromNgModule:!0}}function Vv(t,...e){const i=[],n=new Set;let r;const o=s=>{i.push(s)};return Ur(e,s=>{const a=s;Ml(a,o,[],n)&&(r||=[],r.push(a))}),void 0!==r&&Bv(r,o),i}function Bv(t,e){for(let i=0;i{e(o,n)})}}function Ml(t,e,i,n){if(!(t=j(t)))return!1;let r=null,o=za(t);const s=!o&&J(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=za(l),!o)return!1;r=l}const a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Ml(c,e,i,n)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;n.add(r);try{Ur(o.imports,d=>{Ml(d,e,i,n)&&(c||=[],c.push(d))})}finally{}void 0!==c&&Bv(c,e)}if(!a){const c=ji(r)||(()=>new r);e({provide:r,useFactory:c,deps:ie},r),e({provide:Fv,useValue:r,multi:!0},r),e({provide:bs,useValue:()=>b(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=t;oh(l,d=>{e(d,c)})}}}return r!==t&&void 0!==t.providers}function oh(t,e){for(let i of t)Qd(i)&&(i=i.\u0275providers),Array.isArray(i)?oh(i,e):e(i)}const h1=ue({provide:String,useValue:ue});function sh(t){return null!==t&&"object"==typeof t&&h1 in t}function Wi(t){return"function"==typeof t}const ah=new C("Set Injector scope."),Tl={},p1={};let lh;function Al(){return void 0===lh&&(lh=new rh),lh}class Xt{}class Rl extends Xt{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,dh(e,s=>this.processProvider(s)),this.records.set(Pv,Xr(void 0,this)),r.has("environment")&&this.records.set(Xt,Xr(void 0,this));const o=this.records.get(ah);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Fv.multi,ie,Q.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const i=fi(this),n=wt(void 0);try{return e()}finally{fi(i),wt(n)}}get(e,i=Wo,n=Q.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Cg))return e[Cg](this);n=Wa(n);const o=fi(this),s=wt(void 0);try{if(!(n&Q.SkipSelf)){let l=this.records.get(e);if(void 0===l){const c=function y1(t){return"function"==typeof t||"object"==typeof t&&t instanceof C}(e)&&$a(e);l=c&&this.injectableDefInScope(c)?Xr(ch(e),Tl):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(n&Q.Self?Al():this.parent).get(e,i=n&Q.Optional&&i===Wo?null:i)}catch(a){if("NullInjectorError"===a.name){if((a[qa]=a[qa]||[]).unshift($e(e)),o)throw a;return function dM(t,e,i,n){const r=t[qa];throw e[yg]&&r.unshift(e[yg]),t.message=function uM(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=$e(e);if(Array.isArray(e))r=e.map($e).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):$e(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(oM,"\n ")}`}("\n"+t.message,r,i,n),t.ngTokenPath=r,t[qa]=null,t}(a,e,"R3InjectorError",this.source)}throw a}finally{wt(s),fi(o)}}resolveInjectorInitializers(){const e=fi(this),i=wt(void 0);try{const r=this.get(bs.multi,ie,Q.Self);for(const o of r)o()}finally{fi(e),wt(i)}}toString(){const e=[],i=this.records;for(const n of i.keys())e.push($e(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(e){let i=Wi(e=j(e))?e:j(e&&e.provide);const n=function g1(t){return sh(t)?Xr(void 0,t.useValue):Xr(Uv(t),Tl)}(e);if(Wi(e)||!0!==e.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=Xr(void 0,Tl,!0),r.factory=()=>su(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){return i.value===Tl&&(i.value=p1,i.value=i.factory()),"object"==typeof i.value&&i.value&&function v1(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(e){if(!e.providedIn)return!1;const i=j(e.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){const i=this._onDestroyHooks.indexOf(e);-1!==i&&this._onDestroyHooks.splice(i,1)}}function ch(t){const e=$a(t),i=null!==e?e.factory:ji(t);if(null!==i)return i;if(t instanceof C)throw new v(204,!1);if(t instanceof Function)return function m1(t){const e=t.length;if(e>0)throw us(e,"?"),new v(204,!1);const i=function tM(t){return t&&(t[Ga]||t[mg])||null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new v(204,!1)}function Uv(t,e,i){let n;if(Wi(t)){const r=j(t);return ji(r)||ch(r)}if(sh(t))n=()=>j(t.useValue);else if(function Hv(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...su(t.deps||[]));else if(function jv(t){return!(!t||!t.useExisting)}(t))n=()=>b(j(t.useExisting));else{const r=j(t&&(t.useClass||t.provide));if(!function _1(t){return!!t.deps}(t))return ji(r)||ch(r);n=()=>new r(...su(t.deps))}return n}function Xr(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function dh(t,e){for(const i of t)Array.isArray(i)?dh(i,e):i&&Qd(i)?dh(i.\u0275providers,e):e(i)}const ws=new C("AppId",{providedIn:"root",factory:()=>b1}),b1="ng",$v=new C("Platform Initializer"),Yi=new C("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Yn=new C("AnimationModuleType"),uh=new C("CSP nonce",{providedIn:"root",factory:()=>function Yr(){if(void 0!==Ju)return Ju;if(typeof document<"u")return document;throw new v(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let zv=(t,e,i)=>null;function yh(t,e,i=!1){return zv(t,e,i)}class A1{}class Wv{}class O1{resolveComponentFactory(e){throw function R1(t){const e=Error(`No component factory found for ${$e(t)}.`);return e.ngComponent=t,e}(e)}}let Ds=(()=>{class e{}return e.NULL=new O1,e})();function k1(){return Jr(Ke(),w())}function Jr(t,e){return new he(Dt(t,e))}let he=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=k1,e})();function N1(t){return t instanceof he?t.nativeElement:t}class Es{}let Zn=(()=>{class e{constructor(){this.destroyNode=null}}return e.__NG_ELEMENT_ID__=()=>function P1(){const t=w(),i=Nt(Ke().index,t);return(xt(i)?i:t)[U]}(),e})(),F1=(()=>{var t;class e{}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>null}),e})();class Zi{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const L1=new Zi("16.2.9"),Ch={};function Kv(t,e=null,i=null,n){const r=Jv(t,e,i,n);return r.resolveInjectorInitializers(),r}function Jv(t,e=null,i=null,n,r=new Set){const o=[i||ie,u1(t)];return n=n||("object"==typeof t?void 0:$e(t)),new Rl(o,e||Al(),n||null,r)}let rt=(()=>{var t;class e{static create(n,r){if(Array.isArray(n))return Kv({name:""},r,n,"");{const o=n.name??"";return Kv({name:o},n.parent,n.providers,o)}}}return(t=e).THROW_IF_NOT_FOUND=Wo,t.NULL=new rh,t.\u0275prov=D({token:t,providedIn:"any",factory:()=>b(Pv)}),t.__NG_ELEMENT_ID__=-1,e})();function Dh(t){return t.ngOriginalError}class Qt{constructor(){this._console=console}handleError(e){const i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Dh(e);for(;i&&Dh(i);)i=Dh(i);return i||null}}function Sh(t){return e=>{setTimeout(t,void 0,e)}}const se=class z1 extends oe{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,i,n){let r=e,o=i||(()=>null),s=n;if(e&&"object"==typeof e){const l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Sh(o),r&&(r=Sh(r)),s&&(s=Sh(s)));const a=super.subscribe({next:r,error:o,complete:s});return e instanceof pe&&e.add(a),a}};function ty(...t){}class q{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function G1(){const t="function"==typeof we.requestAnimationFrame;let e=we[t?"requestAnimationFrame":"setTimeout"],i=we[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function Y1(t){const e=()=>{!function W1(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(we,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Mh(t),t.isCheckStableRunning=!0,Ih(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Mh(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{if(function X1(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return i.invokeTask(r,o,s,a);try{return ny(t),i.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),iy(t)}},onInvoke:(i,n,r,o,s,a,l)=>{try{return ny(t),i.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),iy(t)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Mh(t),Ih(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!q.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(q.isInAngularZone())throw new v(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,q1,ty,ty);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}}const q1={};function Ih(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Mh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ny(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function iy(t){t._nesting--,Ih(t)}class Z1{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}}const ry=new C("",{providedIn:"root",factory:oy});function oy(){const t=E(q);let e=!0;return qo(new be(r=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(e),r.complete()})}),new be(r=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,r.next(!0))})})});const s=t.onUnstable.subscribe(()=>{q.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(Yd()))}function Xn(t){return t instanceof Function?t():t}let Th=(()=>{var t;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}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>new t}),e})();function Ss(t){for(;t;){t[G]|=64;const e=ms(t);if(hu(t)&&!e)return t;t=e}return null}const dy=new C("",{providedIn:"root",factory:()=>!1});let Vl=null;function py(t,e){return t[e]??_y()}function my(t,e){const i=_y();i.producerNode?.length&&(t[e]=Vl,i.lView=t,Vl=gy())}const sR={...Bg,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ss(t.lView)},lView:null};function gy(){return Object.create(sR)}function _y(){return Vl??=gy(),Vl}const z={};function R(t){vy(ee(),w(),ht()+t,!1)}function vy(t,e,i,n){if(!n)if(3==(3&e[G])){const o=t.preOrderCheckHooks;null!==o&&rl(e,o,i)}else{const o=t.preOrderHooks;null!==o&&ol(e,o,0,i)}Hi(i)}function g(t,e=Q.Default){const i=w();return null===i?b(t,e):k_(Ke(),i,j(t),e)}function Ah(){throw new Error("invalid")}function Bl(t,e,i,n,r,o,s,a,l,c,d){const u=e.blueprint.slice();return u[Re]=r,u[G]=140|n,(null!==c||t&&2048&t[G])&&(u[G]|=2048),o_(u),u[Ie]=u[Tr]=t,u[Fe]=i,u[Mr]=s||t&&t[Mr],u[U]=a||t&&t[U],u[pi]=l||t&&t[pi]||null,u[nt]=o,u[es]=function lA(){return aA++}(),u[zn]=d,u[Pg]=c,u[Le]=2==e.type?t[Le]:u,u}function no(t,e,i,n,r){let o=t.data[e];if(null===o)o=function Rh(t,e,i,n,r){const o=f_(),s=bu(),l=t.data[e]=function pR(t,e,i,n,r,o){let s=e?e.injectorIndex:-1,a=0;return Nr()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,i,e,n,r);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(t,e,i,n,r),function lT(){return V.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=i,o.value=n,o.attrs=r;const s=function os(){const t=V.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Mn(o,!0),o}function Is(t,e,i,n){if(0===i)return-1;const r=e.length;for(let o=0;oK&&vy(t,e,K,!1),In(a?2:0,r);const c=a?o:null,d=pu(c);try{null!==c&&(c.dirty=!1),i(n,r)}finally{mu(c,d)}}finally{a&&null===e[ts]&&my(e,ts),Hi(s),In(a?3:1,r)}}function Oh(t,e,i){if(uu(e)){const n=Yt(null);try{const o=e.directiveEnd;for(let s=e.directiveStart;snull;function Cy(t,e,i,n){for(let r in t)if(t.hasOwnProperty(r)){i=null===i?{}:i;const o=t[r];null===n?xy(i,e,r,o):n.hasOwnProperty(r)&&xy(i,e,n[r],o)}return i}function xy(t,e,i,n){t.hasOwnProperty(i)?t[i].push(e,n):t[i]=[e,n]}function Lt(t,e,i,n,r,o,s,a){const l=Dt(e,i);let d,c=e.inputs;!a&&null!=c&&(d=c[n])?(jh(t,i,d,n,r),Bi(e)&&function _R(t,e){const i=Nt(e,t);16&i[G]||(i[G]|=64)}(i,e.index)):3&e.type&&(n=function gR(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),r=null!=s?s(r,e.value||"",n):r,o.setProperty(l,n,r))}function Fh(t,e,i,n){if(d_()){const r=null===n?null:{"":-1},o=function xR(t,e){const i=t.directiveRegistry;let n=null,r=null;if(i)for(let o=0;o0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(s)!=a&&s.push(a),s.push(i,n,o)}}(t,e,n,Is(t,i,r.hostVars,z),r)}function Rn(t,e,i,n,r,o){const s=Dt(t,e);!function Vh(t,e,i,n,r,o,s){if(null==o)t.removeAttribute(e,r,i);else{const a=null==s?H(o):s(o,n||"",r);t.setAttribute(e,r,a,i)}}(e[U],s,o,t.value,i,n,r)}function TR(t,e,i,n,r,o){const s=o[e];if(null!==s)for(let a=0;a{var t;class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const s=typeof Zone>"u"?null:Zone.current,a=function jM(t,e,i){const n=Object.create(HM);i&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;const r=s=>{n.cleanupFn=s};return n.ref={notify:()=>$g(n),run:()=>{if(n.dirty=!1,n.hasRun&&!zg(n))return;n.hasRun=!0;const s=pu(n);try{n.cleanupFn(),n.cleanupFn=Kg,n.fn(r)}finally{mu(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(n,d=>{this.all.has(d)&&this.queue.set(d,s)},o);let l;this.all.add(a),a.notify();const c=()=>{a.cleanup(),l?.(),this.all.delete(a),this.queue.delete(a)};return l=r?.onDestroy(c),{destroy:c}}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}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>new t}),e})();function Hl(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(null!==e)for(let s=0;s0){Fy(t,1);const r=i.components;null!==r&&Vy(t,r,1)}}function Vy(t,e,i){for(let n=0;n-1&&(bl(e,n),dl(i,n))}this._attachedToViewContainer=!1}qu(this._lView[I],this._lView)}onDestroy(e){!function l_(t,e){if(256==(256&t[G]))throw new v(911,!1);null===t[mi]&&(t[mi]=[]),t[mi].push(e)}(this._lView,e)}markForCheck(){Ss(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){this._lView[G]|=128}detectChanges(){Ul(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function CA(t,e){_s(t,e,e[U],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e}}class VR extends Ts{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Ul(e[I],e,e[Fe],!1)}checkNoChanges(){}get context(){return null}}class By extends Ds{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const i=J(e);return new As(i,this.ngModule)}}function jy(t){const e=[];for(let i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}class jR{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=Wa(n);const r=this.injector.get(e,Ch,n);return r!==Ch||i===Ch?r:this.parentInjector.get(e,i,n)}}class As extends Wv{get inputs(){const e=this.componentDef,i=e.inputTransforms,n=jy(e.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return jy(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=function wM(t){return t.map(bM).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){let o=(r=r||this.ngModule)instanceof Xt?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new jR(e,o):e,a=s.get(Es,null);if(null===a)throw new v(407,!1);const u={rendererFactory:a,sanitizer:s.get(F1,null),effectManager:s.get(ky,null),afterRenderEventManager:s.get(Th,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=n?function cR(t,e,i,n){const o=n.get(dy,!1)||i===qt.ShadowDom,s=t.selectRootElement(e,o);return function dR(t){wy(t)}(s),s}(h,n,this.componentDef.encapsulation,s):yl(h,f,function BR(t){const e=t.toLowerCase();return"svg"===e?n_:"math"===e?"math":null}(f)),x=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let _=null;null!==p&&(_=yh(p,s,!0));const S=Ph(0,null,null,1,0,null,null,null,null,null,null),M=Bl(null,S,null,x,null,null,u,h,s,null,_);let $,ye;Eu(M);try{const me=this.componentDef;let et,Tt=null;me.findHostDirectiveDefs?(et=[],Tt=new Map,me.findHostDirectiveDefs(me,et,Tt),et.push(me)):et=[me];const xn=function UR(t,e){const i=t[I],n=K;return t[n]=e,no(i,n,2,"#host",null)}(M,p),Hd=function $R(t,e,i,n,r,o,s){const a=r[I];!function zR(t,e,i,n){for(const r of t)e.mergedAttrs=Xo(e.mergedAttrs,r.hostAttrs);null!==e.mergedAttrs&&(Hl(e,e.mergedAttrs,!0),null!==i&&Cv(n,i,e))}(n,t,e,s);let l=null;null!==e&&(l=yh(e,r[pi]));const c=o.rendererFactory.createRenderer(e,i);let d=16;i.signals?d=4096:i.onPush&&(d=64);const u=Bl(r,by(i),null,d,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&Lh(a,t,n.length-1),jl(r,u),r[t.index]=u}(xn,p,me,et,M,u,h);ye=r_(S,K),p&&function qR(t,e,i,n){if(n)cu(t,i,["ng-version",L1.full]);else{const{attrs:r,classes:o}=function CM(t){const e=[],i=[];let n=1,r=2;for(;n0&&wv(t,i,o.join(" "))}}(h,me,p,n),void 0!==i&&function WR(t,e,i){const n=t.projection=[];for(let r=0;r=0;n--){const r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Xo(r.hostAttrs,i=Xo(i,r.hostAttrs))}}(n)}function $l(t){return t===Dn?{}:t===ie?[]:t}function XR(t,e){const i=t.viewQuery;t.viewQuery=i?(n,r)=>{e(n,r),i(n,r)}:e}function QR(t,e){const i=t.contentQueries;t.contentQueries=i?(n,r,o)=>{e(n,r,o),i(n,r,o)}:e}function KR(t,e){const i=t.hostBindings;t.hostBindings=i?(n,r)=>{e(n,r),i(n,r)}:e}function zl(t){return!!Uh(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Uh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ot(t,e,i){return!Object.is(t[e],i)&&(t[e]=i,!0)}function Oe(t,e,i,n){const r=w();return ot(r,Pr(),e)&&(ee(),Rn(Me(),r,t,e,i,n)),Oe}function ro(t,e,i,n){return ot(t,Pr(),i)?e+H(i)+n:z}function te(t,e,i,n,r,o,s,a){const l=w(),c=ee(),d=t+K,u=c.firstCreatePass?function xO(t,e,i,n,r,o,s,a,l){const c=e.consts,d=no(e,t,4,s||null,_i(c,a));Fh(e,i,d,_i(c,l)),il(e,d);const u=d.tView=Ph(2,d,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return null!==e.queries&&(e.queries.template(e,d),u.queries=e.queries.embeddedTView(d)),d}(d,c,l,e,i,n,r,o,s):c.data[d];Mn(u,!1);const h=rb(c,l,u,t);nl()&&Cl(c,l,h,u),it(h,l),jl(l,l[d]=Iy(h,l,h,u)),Ka(u)&&kh(c,l,u),null!=s&&Nh(l,u,a)}let rb=function ob(t,e,i,n){return vi(!0),e[U].createComment("")};function B(t,e,i){const n=w();return ot(n,Pr(),e)&&Lt(ee(),Me(),n,t,e,n[U],i,!1),B}function Yh(t,e,i,n,r){const s=r?"class":"style";jh(t,i,e.inputs[s],s,n)}function O(t,e,i,n){const r=w(),o=ee(),s=K+t,a=r[U],l=o.firstCreatePass?function IO(t,e,i,n,r,o){const s=e.consts,l=no(e,t,2,n,_i(s,r));return Fh(e,i,l,_i(s,o)),null!==l.attrs&&Hl(l,l.attrs,!1),null!==l.mergedAttrs&&Hl(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(s,o,r,e,i,n):o.data[s],c=ab(o,r,l,a,e,t);r[s]=c;const d=Ka(l);return Mn(l,!0),Cv(a,c,l),32!=(32&l.flags)&&nl()&&Cl(o,r,c,l),0===function JM(){return V.lFrame.elementDepthCount}()&&it(c,r),function eT(){V.lFrame.elementDepthCount++}(),d&&(kh(o,r,l),Oh(o,l,r)),null!==n&&Nh(r,l),O}function P(){let t=Ke();bu()?wu():(t=t.parent,Mn(t,!1));const e=t;(function nT(t){return V.skipHydrationRootTNode===t})(e)&&function sT(){V.skipHydrationRootTNode=null}(),function tT(){V.lFrame.elementDepthCount--}();const i=ee();return i.firstCreatePass&&(il(i,t),uu(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function bT(t){return 0!=(8&t.flags)}(e)&&Yh(i,e,w(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function wT(t){return 0!=(16&t.flags)}(e)&&Yh(i,e,w(),e.stylesWithoutHost,!1),P}function Jt(t,e,i,n){return O(t,e,i,n),P(),Jt}let ab=(t,e,i,n,r,o)=>(vi(!0),yl(n,r,function D_(){return V.lFrame.currentNamespace}()));function Kn(t,e,i){const n=w(),r=ee(),o=t+K,s=r.firstCreatePass?function AO(t,e,i,n,r){const o=e.consts,s=_i(o,n),a=no(e,t,8,"ng-container",s);return null!==s&&Hl(a,s,!0),Fh(e,i,a,_i(o,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(o,r,n,e,i):r.data[o];Mn(s,!0);const a=cb(r,n,s,t);return n[o]=a,nl()&&Cl(r,n,a,s),it(a,n),Ka(s)&&(kh(r,n,s),Oh(r,s,n)),null!=i&&Nh(n,s),Kn}function Jn(){let t=Ke();const e=ee();return bu()?wu():(t=t.parent,Mn(t,!1)),e.firstCreatePass&&(il(e,t),uu(t)&&e.queries.elementEnd(t)),Jn}let cb=(t,e,i,n)=>(vi(!0),Gu(e[U],""));function Ps(t){return!!t&&"function"==typeof t.then}function ub(t){return!!t&&"function"==typeof t.subscribe}function Te(t,e,i,n){const r=w(),o=ee(),s=Ke();return function fb(t,e,i,n,r,o,s){const a=Ka(n),c=t.firstCreatePass&&Ay(t),d=e[Fe],u=Ty(e);let h=!0;if(3&n.type||s){const m=Dt(n,e),y=s?s(m):m,x=u.length,_=s?M=>s(Ce(M[n.index])):n.index;let S=null;if(!s&&a&&(S=function kO(t,e,i,n){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,e,r,n.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=o,S.__ngLastListenerFn__=o,h=!1;else{o=mb(n,e,d,o,!1);const M=i.listen(y,r,o);u.push(o,M),c&&c.push(r,_,x,x+1)}}else o=mb(n,e,d,o,!1);const f=n.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let y=0;y-1?Nt(t.index,e):e);let l=pb(e,i,n,s),c=o.__ngNextListenerFn__;for(;c;)l=pb(e,i,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&s.preventDefault(),l}}function ke(t=1){return function hT(t){return(V.lFrame.contextLView=function fT(t,e){for(;t>0;)e=e[Tr],t--;return e}(t,V.lFrame.contextLView))[Fe]}(t)}function NO(t,e){let i=null;const n=function gM(t){const e=t.attrs;if(null!=e){const i=e.indexOf(5);if(!(1&i))return e[i+1]}return null}(t);for(let r=0;r>17&32767}function Qh(t){return 2|t}function Qi(t){return(131068&t)>>2}function Kh(t,e){return-131069&t|e<<2}function Jh(t){return 1|t}function Db(t,e,i,n,r){const o=t[i+1],s=null===e;let a=n?wi(o):Qi(o),l=!1;for(;0!==a&&(!1===l||s);){const d=t[a+1];jO(t[a],e)&&(l=!0,t[a+1]=n?Jh(d):Qh(d)),a=n?wi(d):Qi(d)}l&&(t[i+1]=n?Qh(o):Jh(o))}function jO(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&$r(t,e)>=0}function st(t,e,i){return pn(t,e,i,!1),st}function St(t,e){return pn(t,e,null,!0),St}function pn(t,e,i,n){const r=w(),o=ee(),s=function qn(t){const e=V.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}(2);o.firstUpdatePass&&function Ob(t,e,i,n){const r=t.data;if(null===r[i+1]){const o=r[ht()],s=function Rb(t,e){return e>=t.expandoStartIndex}(t,i);(function Fb(t,e){return 0!=(t.flags&(e?8:16))})(o,n)&&null===e&&!s&&(e=!1),e=function ZO(t,e,i,n){const r=function xu(t){const e=V.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=Fs(i=ef(null,t,e,i,n),e.attrs,n),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(i=ef(r,t,e,i,n),null===o){let l=function XO(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==Qi(n))return t[wi(n)]}(t,e,n);void 0!==l&&Array.isArray(l)&&(l=ef(null,t,e,l[1],n),l=Fs(l,e.attrs,n),function QO(t,e,i,n){t[wi(i?e.classBindings:e.styleBindings)]=n}(t,e,n,l))}else o=function KO(t,e,i){let n;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)):d=i,r)if(0!==l){const h=wi(t[a+1]);t[n+1]=Zl(h,a),0!==h&&(t[h+1]=Kh(t[h+1],n)),t[a+1]=function FO(t,e){return 131071&t|e<<17}(t[a+1],n)}else t[n+1]=Zl(a,0),0!==a&&(t[a+1]=Kh(t[a+1],n)),a=n;else t[n+1]=Zl(l,0),0===a?a=n:t[l+1]=Kh(t[l+1],n),l=n;c&&(t[n+1]=Qh(t[n+1])),Db(t,d,n,!0),Db(t,d,n,!1),function BO(t,e,i,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&$r(o,e)>=0&&(i[n+1]=Jh(i[n+1]))}(e,d,t,n,o),s=Zl(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,i,s,n)}}(o,t,s,n),e!==z&&ot(r,s,e)&&function Nb(t,e,i,n,r,o,s,a){if(!(3&e.type))return;const l=t.data,c=l[a+1],d=function LO(t){return 1==(1&t)}(c)?Pb(l,e,i,r,Qi(c),s):void 0;Xl(d)||(Xl(o)||function PO(t){return 2==(2&t)}(c)&&(o=Pb(l,null,i,r,a,s)),function OA(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let o=-1===n.indexOf("-")?void 0:yi.DashCase;null==r?t.removeStyle(i,n,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=yi.Important),t.setStyle(i,n,r,o))}}(n,s,tl(ht(),i),r,o))}(o,o.data[ht()],r,r[U],t,r[s+1]=function nk(t,e){return null==t||""===t||("string"==typeof e?t+=e:"object"==typeof t&&(t=$e(Ft(t)))),t}(e,i),n,s)}function ef(t,e,i,n,r){let o=null;const s=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=i[r+1];h===z&&(h=u?ie:void 0);let f=u?Pu(h,n):d===n?h:void 0;if(c&&!Xl(f)&&(f=Pu(l,n)),Xl(f)&&(a=f,s))return a;const p=t[r+1];r=s?wi(p):Qi(p)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(a=Pu(l,n))}return a}function Xl(t){return void 0!==t}function ae(t,e=""){const i=w(),n=ee(),r=t+K,o=n.firstCreatePass?no(n,r,1,e,null):n.data[r],s=Lb(n,i,o,e,t);i[r]=s,nl()&&Cl(n,i,s,o),Mn(o,!1)}let Lb=(t,e,i,n,r)=>(vi(!0),function vl(t,e){return t.createText(e)}(e[U],n));function po(t){return en("",t,""),po}function en(t,e,i){const n=w(),r=ro(n,t,e,i);return r!==z&&function Qn(t,e,i){const n=tl(e,t);!function cv(t,e,i){t.setValue(e,i)}(t[U],n,i)}(n,ht(),r),en}function Ci(t,e,i){const n=w();return ot(n,Pr(),e)&&Lt(ee(),Me(),n,t,e,n[U],i,!0),Ci}const go="en-US";let rw=go;function rf(t,e,i,n,r){if(t=j(t),Array.isArray(t))for(let o=0;o>20;if(Wi(t)||!t.multi){const f=new ss(c,r,g),p=af(l,e,r?d:d+h,u);-1===p?(Ou(al(a,s),o,l),sf(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(f),s.push(f)):(i[p]=f,s[p]=f)}else{const f=af(l,e,d+h,u),p=af(l,e,d,d+h),y=p>=0&&i[p];if(r&&!y||!r&&!(f>=0&&i[f])){Ou(al(a,s),o,l);const x=function xN(t,e,i,n,r){const o=new ss(t,i,g);return o.multi=[],o.index=e,o.componentProviders=0,Tw(o,r,n&&!i),o}(r?CN:wN,i.length,r,n,c);!r&&y&&(i[p].providerFactory=x),sf(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(x),s.push(x)}else sf(o,t,f>-1?f:p,Tw(i[r?p:f],c,!r&&n));!r&&n&&y&&i[p].componentProviders++}}}function sf(t,e,i,n){const r=Wi(e),o=function f1(t){return!!t.useClass}(e);if(r||o){const l=(o?j(e.useClass):e).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const d=c.indexOf(i);-1===d?c.push(i,[n,l]):c[d+1].push(n,l)}else c.push(i,l)}}}function Tw(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function af(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>function bN(t,e,i){const n=ee();if(n.firstCreatePass){const r=fn(t);rf(i,n.data,n.blueprint,r,!0),rf(e,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,e)}}class Ji{}class Aw{}class cf extends Ji{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new By(this);const r=Ot(e);this._bootstrapComponents=Xn(r.bootstrap),this._r3Injector=Jv(e,i,[{provide:Ji,useValue:this},{provide:Ds,useValue:this.componentFactoryResolver},...n],$e(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class df extends Aw{constructor(e){super(),this.moduleType=e}create(e){return new cf(this.moduleType,e,[])}}class Rw extends Ji{constructor(e){super(),this.componentFactoryResolver=new By(this),this.instance=null;const i=new Rl([...e.providers,{provide:Ji,useValue:this},{provide:Ds,useValue:this.componentFactoryResolver}],e.parent||Al(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function uf(t,e,i=null){return new Rw({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}let SN=(()=>{var t;class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Vv(0,n.type),o=r.length>0?uf([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(t=e).\u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(b(Xt))}),e})();function Ow(t){t.getStandaloneInjector=e=>e.get(SN).getOrCreateStandaloneInjector(t)}function Bw(t,e,i,n,r,o){const s=e+i;return ot(t,s,r)?function On(t,e,i){return t[e]=i}(t,s+1,o?n.call(o,r):n(r)):function Us(t,e){const i=t[e];return i===z?void 0:i}(t,s+1)}function Gw(t,e,i){const n=t+K,r=w(),o=function kr(t,e){return t[e]}(r,n);return function $s(t,e){return t[I].data[e].pure}(r,n)?Bw(r,function ut(){const t=V.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,o.transform,i,o):o.transform(i)}function XN(){return this._results[Symbol.iterator]()}class _o{get changes(){return this._changes||(this._changes=new se)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=_o.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=XN)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){const n=this;n.dirty=!1;const r=function Zt(t){return t.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function PT(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0&&(i[r-1][hn]=e),n{class e{}return e.__NG_ELEMENT_ID__=tP,e})();const JN=ei,eP=class extends JN{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){const r=function QN(t,e,i,n){const r=e.tView,a=Bl(t,r,i,4096&t[G]?4096:16,null,e,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[Jo]=t[e.index];const c=t[En];return null!==c&&(a[En]=c.createEmbeddedView(r)),Hh(r,a,i),a}(this._declarationLView,this._declarationTContainer,e,{injector:i,hydrationInfo:n});return new Ts(r)}};function tP(){return tc(Ke(),w())}function tc(t,e){return 4&t.type?new eP(e,t,Jr(t,e)):null}let tn=(()=>{class e{}return e.__NG_ELEMENT_ID__=aP,e})();function aP(){return Kw(Ke(),w())}const lP=tn,Xw=class extends lP{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return Jr(this._hostTNode,this._hostLView)}get injector(){return new ft(this._hostTNode,this._hostLView)}get parentInjector(){const e=ll(this._hostTNode,this._hostLView);if(Tu(e)){const i=ls(e,this._hostLView),n=as(e);return new ft(i[I].data[n+8],i)}return new ft(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const i=Qw(this._lContainer);return null!==i&&i[e]||null}get length(){return this._lContainer.length-Xe}createEmbeddedView(e,i,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=e.createEmbeddedViewImpl(i||{},o,null);return this.insertImpl(a,r,false),a}createComponent(e,i,n,r,o){const s=e&&!function ds(t){return"function"==typeof t}(e);let a;if(s)a=i;else{const m=i||{};a=m.index,n=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}const l=s?e:new As(J(e)),c=n||this.parentInjector;if(!o&&null==l.ngModule){const y=(s?c:this.parentInjector).get(Xt,null);y&&(o=y)}J(l.componentType??{});const f=l.create(c,r,null,o);return this.insertImpl(f.hostView,a,false),f}insert(e,i){return this.insertImpl(e,i,!1)}insertImpl(e,i,n){const r=e._lView;if(function XM(t){return dt(t[Ie])}(r)){const l=this.indexOf(e);if(-1!==l)this.detach(l);else{const c=r[Ie],d=new Xw(c,c[nt],c[Ie]);d.detach(d.indexOf(e))}}const s=this._adjustIndex(i),a=this._lContainer;return KN(a,r,s,!n),e.attachToViewContainerRef(),B_(ff(a),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){const i=Qw(this._lContainer);return null!==i?i.indexOf(e):-1}remove(e){const i=this._adjustIndex(e,-1),n=bl(this._lContainer,i);n&&(dl(ff(this._lContainer),i),qu(n[I],n))}detach(e){const i=this._adjustIndex(e,-1),n=bl(this._lContainer,i);return n&&null!=dl(ff(this._lContainer),i)?new Ts(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function Qw(t){return t[8]}function ff(t){return t[8]||(t[8]=[])}function Kw(t,e){let i;const n=e[t.index];return dt(n)?i=n:(i=Iy(n,e,null,t),e[t.index]=i,jl(e,i)),Jw(i,e,t,n),new Xw(i,t,e)}let Jw=function eC(t,e,i,n){if(t[Sn])return;let r;r=8&i.type?Ce(n):function cP(t,e){const i=t[U],n=i.createComment(""),r=Dt(e,t);return Gi(i,wl(i,r),n,function TA(t,e){return t.nextSibling(e)}(i,r),!1),n}(e,i),t[Sn]=r};class pf{constructor(e){this.queryList=e,this.matches=null}clone(){return new pf(this.queryList)}setDirty(){this.queryList.setDirty()}}class mf{constructor(e=[]){this.queries=e}createEmbeddedView(e){const i=e.queries;if(null!==i){const n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[];for(let o=0;o0)n.push(s[a/2]);else{const c=o[a+1],d=e[-l];for(let u=Xe;u{var t;class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=E(Df,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const s=o();if(Ps(s))n.push(s);else if(ub(s)){const a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),xC=(()=>{var t;class e{log(n){console.log(n)}warn(n){console.warn(n)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})();const Pn=new C("LocaleId",{providedIn:"root",factory:()=>E(Pn,Q.Optional|Q.SkipSelf)||function VP(){return typeof $localize<"u"&&$localize.locale||go}()});let DC=(()=>{var t;class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new At(!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)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class HP{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}}let EC=(()=>{var t;class e{compileModuleSync(n){return new df(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=Xn(Ot(n).declarations).reduce((a,l)=>{const c=J(l);return c&&a.push(new As(c)),a},[]);return new HP(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const TC=new C(""),sc=new C("");let Af,Mf=(()=>{var t;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,Af||(function aF(t){Af=t}(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:()=>{q.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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,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[]}}return(t=e).\u0275fac=function(n){return new(n||t)(b(q),b(Tf),b(sc))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})(),Tf=(()=>{var t;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 Af?.findTestabilityInTree(this,n,r)??null}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})(),xi=null;const AC=new C("AllowMultipleToken"),Rf=new C("PlatformDestroyListeners"),Of=new C("appBootstrapListener");class OC{constructor(e,i){this.name=e,this.token=i}}function NC(t,e,i=[]){const n=`Platform: ${e}`,r=new C(n);return(o=[])=>{let s=kf();if(!s||s.injector.get(AC,!1)){const a=[...i,...o,{provide:r,useValue:!0}];t?t(a):function dF(t){if(xi&&!xi.get(AC,!1))throw new v(400,!1);(function RC(){!function PM(t){Yg=t}(()=>{throw new v(600,!1)})})(),xi=t;const e=t.get(FC);(function kC(t){t.get($v,null)?.forEach(i=>i())})(t)}(function PC(t=[],e){return rt.create({name:e,providers:[{provide:ah,useValue:"platform"},{provide:Rf,useValue:new Set([()=>xi=null])},...t]})}(a,n))}return function hF(t){const e=kf();if(!e)throw new v(401,!1);return e}()}}function kf(){return xi?.get(FC)??null}let FC=(()=>{var t;class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function fF(t="zone.js",e){return"noop"===t?new Z1:"zone.js"===t?new q(e):t}(r?.ngZone,function LC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const s=function EN(t,e,i){return new cf(t,e,i)}(n.moduleType,this.injector,function UC(t){return[{provide:q,useFactory:t},{provide:bs,multi:!0,useFactory:()=>{const e=E(mF,{optional:!0});return()=>e.initialize()}},{provide:HC,useFactory:pF},{provide:ry,useFactory:oy}]}(()=>o)),a=s.injector.get(Qt,null);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{ac(this._modules,s),l.unsubscribe()})}),function VC(t,e,i){try{const n=i();return Ps(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(a,o,()=>{const l=s.injector.get(Ef);return l.runInitializers(),l.donePromise.then(()=>(function ow(t){Gt(t,"Expected localeId to be defined"),"string"==typeof t&&(rw=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(Pn,go)||go),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const o=BC({},r);return function lF(t,e,i){const n=new df(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const r=n.injector.get(Di);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new v(-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 v(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Rf,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(t=e).\u0275fac=function(n){return new(n||t)(b(rt))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"}),e})();function BC(t,e){return Array.isArray(e)?e.reduce(BC,t):{...t,...e}}let Di=(()=>{var t;class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=E(HC),this.zoneIsStable=E(ry),this.componentTypes=[],this.components=[],this.isStable=E(DC).hasPendingTasks.pipe(zt(n=>n?k(!1):this.zoneIsStable),hg(),Yd()),this._injector=E(Xt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Wv;if(!this._injector.get(Ef).done)throw!o&&function Sr(t){const e=J(t)||Ze(t)||ct(t);return null!==e&&e.standalone}(n),new v(405,!1);let a;a=o?n:this._injector.get(Ds).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const l=function cF(t){return t.isBoundToModule}(a)?void 0:this._injector.get(Ji),d=a.create(rt.NULL,[],r||a.selector,l),u=d.location.nativeElement,h=d.injector.get(TC,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),ac(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new v(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;ac(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Of,[]);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),()=>ac(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function ac(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const HC=new C("",{providedIn:"root",factory:()=>E(Qt).handleError.bind(void 0)});function pF(){const t=E(q),e=E(Qt);return i=>t.runOutsideAngular(()=>e.handleError(i))}let mF=(()=>{var t;class e{constructor(){this.zone=E(q),this.applicationRef=E(Di)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();let Fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=_F,e})();function _F(t){return function vF(t,e,i){if(Bi(t)&&!i){const n=Nt(t.index,e);return new Ts(n,n)}return 47&t.type?new Ts(e[Le],e):null}(Ke(),w(),16==(16&t))}class qC{constructor(){}supports(e){return zl(e)}create(e){return new DF(e)}}const xF=(t,e)=>e;class DF{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||xF}forEachItem(e){let i;for(i=this._itHead;null!==i;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){const s=!n||i&&i.currentIndex{s=this._trackByFn(r,a),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)):(i=this._mismatch(i,a,s,r),n=!0),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,o,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,o,r)):e=this._addAfter(new EF(i,n),o,r),e}_verifyReinsertion(e,i,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const i=e._next;this._addToRemovals(this._unlink(e)),e=i}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){const r=null===i?this._itHead:i._next;return e._next=r,e._prev=i,null===r?this._itTail=e:r._prev=e,null===i?this._itHead=e:i._next=e,null===this._linkedRecords&&(this._linkedRecords=new WC),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const i=e._prev,n=e._next;return null===i?this._itHead=n:i._next=n,null===n?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new WC),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class EF{constructor(e,i){this.item=e,this.trackById=i,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 SF{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===i||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const i=e._prevDup,n=e._nextDup;return null===i?this._head=n:i._nextDup=n,null===n?this._tail=i:n._prevDup=i,null===this._head}}class WC{constructor(){this.map=new Map}put(e){const i=e.trackById;let n=this.map.get(i);n||(n=new SF,this.map.set(i,n)),n.add(e)}get(e,i){const r=this.map.get(e);return r?r.get(e,i):null}remove(e){const i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function YC(t,e,i){const n=t.previousIndex;if(null===n)return n;let r=0;return i&&n{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{const o=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,o)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){const n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,i);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const n=new MF(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}}class MF{constructor(e){this.key=e,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 XC(){return new dc([new qC])}let dc=(()=>{var t;class e{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||XC()),deps:[[e,new hs,new zi]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new v(901,!1)}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:XC}),e})();function QC(){return new qs([new ZC])}let qs=(()=>{var t;class e{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||QC()),deps:[[e,new hs,new zi]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new v(901,!1)}}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:QC}),e})();const RF=NC(null,"core",[]);let OF=(()=>{var t;class e{constructor(n){}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Di))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})(),Bf=null;function Ei(){return Bf}class qF{}const X=new C("DocumentToken");let jf=(()=>{var t;class e{historyGo(n){throw new Error("Not implemented")}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(YF)},providedIn:"platform"}),e})();const WF=new C("Location Initialized");let YF=(()=>{var t;class e extends jf{constructor(){super(),this._doc=E(X),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ei().getBaseHref(this._doc)}onPopState(n){const r=Ei().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Ei().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return new t},providedIn:"platform"}),e})();function Hf(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function sx(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function ti(t){return t&&"?"!==t[0]?"?"+t:t}let tr=(()=>{var t;class e{historyGo(n){throw new Error("Not implemented")}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(lx)},providedIn:"root"}),e})();const ax=new C("appBaseHref");let lx=(()=>{var t;class e extends tr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??E(X).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Hf(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+ti(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){const a=this.prepareExternalUrl(o+ti(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){const a=this.prepareExternalUrl(o+ti(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(jf),b(ax,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),ZF=(()=>{var t;class e extends tr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Hf(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+ti(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+ti(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(jf),b(ax,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})(),hc=(()=>{var t;class e{constructor(n){this._subject=new se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function KF(t){if(new RegExp("^(https?:)?//").test(t)){const[,i]=t.split(/\/\/[^\/]+/);return i}return t}(sx(cx(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+ti(r))}normalize(n){return e.stripTrailingSlash(function QF(t,e){if(!t||!e.startsWith(t))return e;const i=e.substring(t.length);return""===i||["/",";","?","#"].includes(i[0])?i:e}(this._basePath,cx(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ti(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ti(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return(t=e).normalizeQueryParams=ti,t.joinWithSlash=Hf,t.stripTrailingSlash=sx,t.\u0275fac=function(n){return new(n||t)(b(tr))},t.\u0275prov=D({token:t,factory:function(){return function XF(){return new hc(b(tr))}()},providedIn:"root"}),e})();function cx(t){return t.replace(/\/index.html$/,"")}const Qf=/\s+/,vx=[];let yx=(()=>{var t;class e{constructor(n,r,o,s){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=s,this.initialClasses=vx,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(Qf):vx}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(Qf):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(Qf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return(t=e).\u0275fac=function(n){return new(n||t)(g(dc),g(qs),g(he),g(Zn))},t.\u0275dir=A({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class VL{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let wx=(()=>{var t;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,s,a)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VL(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===s?void 0:s);else if(null!==s){const l=r.get(s);r.move(l,a),Cx(l,o)}});for(let o=0,s=r.length;o{Cx(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return(t=e).\u0275fac=function(n){return new(n||t)(g(tn),g(ei),g(dc))},t.\u0275dir=A({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function Cx(t,e){t.context.$implicit=e.item}let Zs=(()=>{var t;class e{constructor(n,r){this._viewContainer=n,this._context=new BL,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){xx("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){xx("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}}return(t=e).\u0275fac=function(n){return new(n||t)(g(tn),g(ei))},t.\u0275dir=A({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class BL{constructor(){this.$implicit=null,this.ngIf=null}}function xx(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${$e(e)}'.`)}let Sx=(()=>{var t;class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=Ix}transform(n,r=Ix){if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());const o=this.differ.diff(n),s=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function o2(t,e){return{key:t,value:e}}(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}}return(t=e).\u0275fac=function(n){return new(n||t)(g(qs,16))},t.\u0275pipe=Ct({name:"keyvalue",type:t,pure:!1,standalone:!0}),e})();function Ix(t,e){const i=t.key,n=e.key;if(i===n)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(null===i)return 1;if(null===n)return-1;if("string"==typeof i&&"string"==typeof n)return i{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();const Mx="browser";function Tx(t){return"server"===t}let f2=(()=>{var t;class e{}return(t=e).\u0275prov=D({token:t,providedIn:"root",factory:()=>new p2(b(X),window)}),e})();class p2{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const i=function m2(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.supportsScrolling()&&(this.window.history.scrollRestoration=e)}scrollToElement(e){const i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class B2 extends qF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ip extends B2{static makeCurrent(){!function GF(t){Bf||(Bf=t)}(new ip)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return(i=i||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return"window"===i?window:"document"===i?e:"body"===i?e.body:null}getBaseHref(e){const i=function j2(){return Ks=Ks||document.querySelector("base"),Ks?Ks.getAttribute("href"):null}();return null==i?null:function H2(t){Sc=Sc||document.createElement("a"),Sc.setAttribute("href",t);const e=Sc.pathname;return"/"===e.charAt(0)?e:`/${e}`}(i)}resetBaseElement(){Ks=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function FL(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const n=i.indexOf("="),[r,o]=-1==n?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Sc,Ks=null,$2=(()=>{var t;class e{build(){return new XMLHttpRequest}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const rp=new C("EventManagerPlugins");let Nx=(()=>{var t;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(s=>s.supports(n)),!r)throw new v(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(t=e).\u0275fac=function(n){return new(n||t)(b(rp),b(q))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class Px{constructor(e){this._doc=e}}const op="ng-app-id";let Fx=(()=>{var t;class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Tx(s),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[${op}="${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 s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(op),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(op,this.appId),a}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X),b(ws),b(uh,8),b(Yi))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const sp={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/"},ap=/%COMP%/g,W2=new C("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Vx(t,e){return e.map(i=>i.replace(ap,t))}let lp=(()=>{var t;class e{constructor(n,r,o,s,a,l,c,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Tx(l),this.defaultRenderer=new cp(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===qt.ShadowDom&&(r={...r,encapsulation:qt.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof jx?o.applyToHost(n):o instanceof dp&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let s=o.get(r.id);if(!s){const a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case qt.Emulated:s=new jx(c,d,r,this.appId,u,a,l,h);break;case qt.ShadowDom:return new Q2(c,d,n,r,a,l,this.nonce,h);default:s=new dp(c,d,r,u,a,l,h)}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Nx),b(Fx),b(ws),b(W2),b(X),b(Yi),b(q),b(uh))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class cp{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(sp[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Bx(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Bx(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n="string"==typeof e?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;const o=sp[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){const r=sp[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(yi.DashCase|yi.Important)?e.style.setProperty(i,n,r&yi.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&yi.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e[i]=n}setValue(e,i){e.nodeValue=i}listen(e,i,n){if("string"==typeof e&&!(e=Ei().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if("__ngUnwrap__"===i)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))&&i.preventDefault()}}}function Bx(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class Q2 extends cp{constructor(e,i,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=Vx(r.id,r.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class dp extends cp{constructor(e,i,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?Vx(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class jx extends dp{constructor(e,i,n,r,o,s,a,l){const c=r+"-"+n.id;super(e,i,n,o,s,a,l,c),this.contentAttr=function Y2(t){return"_ngcontent-%COMP%".replace(ap,t)}(c),this.hostAttr=function Z2(t){return"_nghost-%COMP%".replace(ap,t)}(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){const n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}}let K2=(()=>{var t;class e extends Px{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)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const Hx=["alt","control","meta","shift"],J2={"\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"},eV={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let tV=(()=>{var t;class e extends Px{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ei().onAndCancel(n,s.domEventName,a))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(r.pop());let a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),Hx.forEach(d=>{const u=r.indexOf(d);u>-1&&(r.splice(u,1),a+=d+".")}),a+=s,0!=r.length||0===s.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let o=J2[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Hx.forEach(a=>{a!==o&&(0,eV[a])(n)&&(s+=a+".")}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const $x=[{provide:Yi,useValue:Mx},{provide:$v,useValue:function nV(){ip.makeCurrent()},multi:!0},{provide:X,useFactory:function rV(){return function LA(t){Ju=t}(document),document},deps:[]}],oV=NC(RF,"browser",$x),sV=new C(""),zx=[{provide:sc,useClass:class U2{addToWindow(e){we.getAngularTestability=(n,r=!0)=>{const o=e.findTestabilityInTree(n,r);if(null==o)throw new v(5103,!1);return o},we.getAllAngularTestabilities=()=>e.getAllTestabilities(),we.getAllAngularRootElements=()=>e.getAllRootElements(),we.frameworkStabilizers||(we.frameworkStabilizers=[]),we.frameworkStabilizers.push(n=>{const r=we.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&n(s)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(e,i,n){return null==i?null:e.getTestability(i)??(n?Ei().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},deps:[]},{provide:TC,useClass:Mf,deps:[q,Tf,sc]},{provide:Mf,useClass:Mf,deps:[q,Tf,sc]}],Gx=[{provide:ah,useValue:"root"},{provide:Qt,useFactory:function iV(){return new Qt},deps:[]},{provide:rp,useClass:K2,multi:!0,deps:[X,q,Yi]},{provide:rp,useClass:tV,multi:!0,deps:[X]},lp,Fx,Nx,{provide:Es,useExisting:lp},{provide:class g2{},useClass:$2,deps:[]},[]];let qx=(()=>{var t;class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ws,useValue:n.appId}]}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(sV,12))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[...Gx,...zx],imports:[Xs,OF]}),e})(),Wx=(()=>{var t;class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X))},t.\u0275prov=D({token:t,factory:function(n){let r=null;return r=n?new n:function lV(){return new Wx(b(X))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;let hp=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(n){let r=null;return r=n?new(n||t):b(Xx),r},providedIn:"root"}),e})(),Xx=(()=>{var t;class e extends hp{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case Je.NONE:return r;case Je.HTML:return An(r,"HTML")?Ft(r):Ov(this._doc,String(r)).toString();case Je.STYLE:return An(r,"Style")?Ft(r):r;case Je.SCRIPT:if(An(r,"Script"))return Ft(r);throw new v(5200,!1);case Je.URL:return An(r,"URL")?Ft(r):Sl(String(r));case Je.RESOURCE_URL:if(An(r,"ResourceURL"))return Ft(r);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(n){return function zA(t){return new VA(t)}(n)}bypassSecurityTrustStyle(n){return function GA(t){return new BA(t)}(n)}bypassSecurityTrustScript(n){return function qA(t){return new jA(t)}(n)}bypassSecurityTrustUrl(n){return function WA(t){return new HA(t)}(n)}bypassSecurityTrustResourceUrl(n){return function YA(t){return new UA(t)}(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X))},t.\u0275prov=D({token:t,factory:function(n){let r=null;return r=n?new n:function hV(t){return new Xx(t.get(X))}(b(rt)),r},providedIn:"root"}),e})();class pV extends ge{notifyNext(e,i,n,r,o){this.destination.next(i)}notifyError(e,i){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class mV extends ge{constructor(e,i,n){super(),this.parent=e,this.outerValue=i,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function gV(t,e,i,n,r=new mV(t,i,n)){if(!r.closed)return e instanceof be?e.subscribe(r):zd(e)(r)}const Kx={};function Ic(...t){let e,i;return xr(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&wr(t[0])&&(t=t[0]),qd(t,i).lift(new _V(e))}class _V{constructor(e){this.resultSelector=e}call(e,i){return i.subscribe(new vV(e,this.resultSelector))}}class vV extends pV{constructor(e,i){super(e),this.resultSelector=i,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Kx),this.observables.push(e)}_complete(){const e=this.observables,i=e.length;if(0===i)this.destination.complete();else{this.active=i,this.toRespond=i;for(let n=0;n{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Tc(...t){return function yV(){return Dr(1)}()(k(...t))}const nr=new be(t=>t.complete());function fp(t){return t?function bV(t){return new be(e=>t.schedule(()=>e.complete()))}(t):nr}function Jx(t){return new be(e=>{let i;try{i=t()}catch(r){return void e.error(r)}return(i?Ye(i):fp()).subscribe(e)})}function Co(t,e){return new be(e?i=>e.schedule(wV,0,{error:t,subscriber:i}):i=>i.error(t))}function wV({error:t,subscriber:e}){e.error(t)}const eD=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function vn(t){return e=>0===t?fp():e.lift(new CV(t))}class CV{constructor(e){if(this.total=e,this.total<0)throw new eD}call(e,i){return i.subscribe(new xV(e,this.total))}}class xV extends ge{constructor(e,i){super(e),this.total=i,this.count=0}_next(e){const i=this.total,n=++this.count;n<=i&&(this.destination.next(e),n===i&&(this.destination.complete(),this.unsubscribe()))}}function xo(...t){const e=t[t.length-1];return xr(e)?(t.pop(),i=>Tc(t,i,e)):i=>Tc(t,i)}function sn(t,e){return function(n){return n.lift(new DV(t,e))}}class DV{constructor(e,i){this.predicate=e,this.thisArg=i}call(e,i){return i.subscribe(new EV(e,this.predicate,this.thisArg))}}class EV extends ge{constructor(e,i,n){super(e),this.predicate=i,this.thisArg=n,this.count=0}_next(e){let i;try{i=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}i&&this.destination.next(e)}}function Ac(t=null){return e=>e.lift(new SV(t))}class SV{constructor(e){this.defaultValue=e}call(e,i){return i.subscribe(new IV(e,this.defaultValue))}}class IV extends ge{constructor(e,i){super(e),this.defaultValue=i,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function tD(t=AV){return e=>e.lift(new MV(t))}class MV{constructor(e){this.errorFactory=e}call(e,i){return i.subscribe(new TV(e,this.errorFactory))}}class TV extends ge{constructor(e,i){super(e),this.errorFactory=i,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(i){e=i}this.destination.error(e)}}}function AV(){return new Mc}function ir(t,e){const i=arguments.length>=2;return n=>n.pipe(t?sn((r,o)=>t(r,o,n)):Va,vn(1),i?Ac(e):tD(()=>new Mc))}function Do(t,e){return tt(t,e,1)}function Ii(){}function He(t,e,i){return function(r){return r.lift(new RV(t,e,i))}}class RV{constructor(e,i,n){this.nextOrObserver=e,this.error=i,this.complete=n}call(e,i){return i.subscribe(new OV(e,this.nextOrObserver,this.error,this.complete))}}class OV extends ge{constructor(e,i,n,r){super(e),this._tapNext=Ii,this._tapError=Ii,this._tapComplete=Ii,this._tapError=n||Ii,this._tapComplete=r||Ii,ui(i)?(this._context=this,this._tapNext=i):i&&(this._context=i,this._tapNext=i.next||Ii,this._tapError=i.error||Ii,this._tapComplete=i.complete||Ii)}_next(e){try{this._tapNext.call(this._context,e)}catch(i){return void this.destination.error(i)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(i){return void this.destination.error(i)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function rr(t){return function(i){const n=new kV(t),r=i.lift(n);return n.caught=r}}class kV{constructor(e){this.selector=e}call(e,i){return i.subscribe(new NV(e,this.selector,this.caught))}}class NV extends zo{constructor(e,i,n){super(e),this.selector=i,this.caught=n}error(e){if(!this.isStopped){let i;try{i=this.selector(e,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const n=new $o(this);this.add(n);const r=Go(i,n);r!==n&&this.add(r)}}}class FV{constructor(e,i,n=!1){this.accumulator=e,this.seed=i,this.hasSeed=n}call(e,i){return i.subscribe(new LV(e,this.accumulator,this.seed,this.hasSeed))}}class LV extends ge{constructor(e,i,n,r){super(e),this.accumulator=i,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const i=this.index++;let n;try{n=this.accumulator(this.seed,e,i)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function pp(t){return function(i){return 0===t?fp():i.lift(new VV(t))}}class VV{constructor(e){if(this.total=e,this.total<0)throw new eD}call(e,i){return i.subscribe(new BV(e,this.total))}}class BV extends ge{constructor(e,i){super(e),this.total=i,this.ring=new Array,this.count=0}_next(e){const i=this.ring,n=this.total,r=this.count++;i.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;oe.lift(new zV(t))}class zV{constructor(e){this.callback=e}call(e,i){return i.subscribe(new GV(e,this.callback))}}class GV extends ge{constructor(e,i){super(e),this.add(new pe(i))}}function Pe(t){return e=>e.lift(new qV(t))}class qV{constructor(e){this.notifier=e}call(e,i){const n=new WV(e),r=Go(this.notifier,new $o(n));return r&&!n.seenValue?(n.add(r),i.subscribe(n)):n}}class WV extends zo{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const W="primary",Js=Symbol("RouteTitle");class YV{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){const i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function Eo(t){return new YV(t)}function ZV(t,e,i){const n=i.path.split("/");if(n.length>t.length||"full"===i.pathMatch&&(e.hasChildren()||n.lengthn[o]===r)}return t===e}function iD(t){return t.length>0?t[t.length-1]:null}function Mi(t){return function fV(t){return!!t&&(t instanceof be||"function"==typeof t.lift&&"function"==typeof t.subscribe)}(t)?t:Ps(t)?Ye(Promise.resolve(t)):k(t)}const QV={exact:function sD(t,e,i){if(!or(t.segments,e.segments)||!Oc(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children)if(!t.children[n]||!sD(t.children[n],e.children[n],i))return!1;return!0},subset:aD},rD={exact:function KV(t,e){return Ln(t,e)},subset:function JV(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>nD(t[i],e[i]))},ignored:()=>!0};function oD(t,e,i){return QV[i.paths](t.root,e.root,i.matrixParams)&&rD[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function aD(t,e,i){return lD(t,e,e.segments,i)}function lD(t,e,i,n){if(t.segments.length>i.length){const r=t.segments.slice(0,i.length);return!(!or(r,i)||e.hasChildren()||!Oc(r,i,n))}if(t.segments.length===i.length){if(!or(t.segments,i)||!Oc(t.segments,i,n))return!1;for(const r in e.children)if(!t.children[r]||!aD(t.children[r],e.children[r],n))return!1;return!0}{const r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!(or(t.segments,r)&&Oc(t.segments,r,n)&&t.children[W])&&lD(t.children[W],e,o,n)}}function Oc(t,e,i){return e.every((n,r)=>rD[i](t[r].parameters,n.parameters))}class So{constructor(e=new fe([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Eo(this.queryParams)),this._queryParamMap}toString(){return nB.serialize(this)}}class fe{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kc(this)}}class ea{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=Eo(this.parameters)),this._parameterMap}toString(){return uD(this)}}function or(t,e){return t.length===e.length&&t.every((i,n)=>i.path===e[n].path)}let ta=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return new mp},providedIn:"root"}),e})();class mp{parse(e){const i=new fB(e);return new So(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){const i=`/${na(e.root,!0)}`,n=function oB(t){const e=Object.keys(t).map(i=>{const n=t[i];return Array.isArray(n)?n.map(r=>`${Nc(i)}=${Nc(r)}`).join("&"):`${Nc(i)}=${Nc(n)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}(e.queryParams),r="string"==typeof e.fragment?`#${function iB(t){return encodeURI(t)}(e.fragment)}`:"";return`${i}${n}${r}`}}const nB=new mp;function kc(t){return t.segments.map(e=>uD(e)).join("/")}function na(t,e){if(!t.hasChildren())return kc(t);if(e){const i=t.children[W]?na(t.children[W],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==W&&n.push(`${r}:${na(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function tB(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===W&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==W&&(i=i.concat(e(r,n)))}),i}(t,(n,r)=>r===W?[na(t.children[W],!1)]:[`${r}:${na(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[W]?`${kc(t)}/${i[0]}`:`${kc(t)}/(${i.join("//")})`}}function cD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nc(t){return cD(t).replace(/%3B/gi,";")}function gp(t){return cD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pc(t){return decodeURIComponent(t)}function dD(t){return Pc(t.replace(/\+/g,"%20"))}function uD(t){return`${gp(t.path)}${function rB(t){return Object.keys(t).map(e=>`;${gp(e)}=${gp(t[e])}`).join("")}(t.parameters)}`}const sB=/^[^\/()?;#]+/;function _p(t){const e=t.match(sB);return e?e[0]:""}const aB=/^[^\/()?;=#]+/,cB=/^[^=?&#]+/,uB=/^[^&#]+/;class fB{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[W]=new fe(e,i)),n}parseSegment(){const e=_p(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(e),new ea(Pc(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const i=function lB(t){const e=t.match(aB);return e?e[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=_p(this.remaining);r&&(n=r,this.capture(n))}e[Pc(i)]=Pc(n)}parseQueryParam(e){const i=function dB(t){const e=t.match(cB);return e?e[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function hB(t){const e=t.match(uB);return e?e[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=dD(i),o=dD(n);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=_p(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new v(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=W);const s=this.parseChildren();i[o]=1===Object.keys(s).length?s[W]:new fe([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new v(4011,!1)}}function hD(t){return t.segments.length>0?new fe([],{[W]:t}):t}function fD(t){const e={};for(const n of Object.keys(t.children)){const o=fD(t.children[n]);if(n===W&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}return function pB(t){if(1===t.numberOfChildren&&t.children[W]){const e=t.children[W];return new fe(t.segments.concat(e.segments),e.children)}return t}(new fe(t.segments,e))}function sr(t){return t instanceof So}function pD(t){let e;const r=hD(function i(o){const s={};for(const l of o.children){const c=i(l);s[l.outlet]=c}const a=new fe(o.url,s);return o===t&&(e=a),a}(t.root));return e??r}function mD(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(0===e.length)return vp(r,r,r,i,n);const o=function gB(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new _D(!0,0,t);let e=0,i=!1;const n=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?i=!0:".."===a?e++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new _D(i,e,n)}(e);if(o.toRoot())return vp(r,r,new fe([],{}),i,n);const s=function _B(t,e,i){if(t.isAbsolute)return new Lc(e,!0,0);if(!i)return new Lc(e,!1,NaN);if(null===i.parent)return new Lc(i,!0,0);const n=Fc(t.commands[0])?0:1;return function vB(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new v(4005,!1);r=n.segments.length}return new Lc(n,!1,r-o)}(i,i.segments.length-1+n,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?ra(s.segmentGroup,s.index,o.commands):vD(s.segmentGroup,s.index,o.commands);return vp(r,s.segmentGroup,a,i,n)}function Fc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ia(t){return"object"==typeof t&&null!=t&&t.outlets}function vp(t,e,i,n,r){let s,o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),s=t===e?i:gD(t,e,i);const a=hD(fD(s));return new So(a,o,r)}function gD(t,e,i){const n={};return Object.entries(t.children).forEach(([r,o])=>{n[r]=o===e?i:gD(o,e,i)}),new fe(t.segments,n)}class _D{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Fc(n[0]))throw new v(4003,!1);const r=n.find(ia);if(r&&r!==iD(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lc{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}}function vD(t,e,i){if(t||(t=new fe([],{})),0===t.segments.length&&t.hasChildren())return ra(t,e,i);const n=function bB(t,e,i){let n=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return o;const s=t.segments[r],a=i[n];if(ia(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!bD(l,c,s))return o;n+=2}else{if(!bD(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexo!==W)&&t.children[W]&&1===t.numberOfChildren&&0===t.children[W].segments.length){const o=ra(t.children[W],e,i);return new fe(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=vD(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===n[o]&&(r[o]=s)}),new fe(t.segments,r)}}function yp(t,e,i){const n=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof n&&(n=[n]),null!==n&&(e[i]=yp(new fe([],{}),0,n))}),e}function yD(t){const e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function bD(t,e,i){return t==i.path&&Ln(e,i.parameters)}const oa="imperative";class Vn{constructor(e,i){this.id=e,this.url=i}}class Vc extends Vn{constructor(e,i,n="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ti extends Vn{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class sa extends Vn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Io extends Vn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=16}}class Bc extends Vn{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wD extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CB extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xB extends Vn{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class DB extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class EB extends Vn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class SB{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class IB{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class MB{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TB{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AB{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class RB{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CD{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class bp{}class wp{constructor(e){this.url=e}}class OB{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new aa,this.attachRef=null}}let aa=(()=>{var t;class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new OB,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class xD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){const i=Cp(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){const i=Cp(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){const i=xp(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return xp(e,this._root).map(i=>i.value)}}function Cp(t,e){if(t===e.value)return e;for(const i of e.children){const n=Cp(t,i);if(n)return n}return null}function xp(t,e){if(t===e.value)return[e];for(const i of e.children){const n=xp(t,i);if(n.length)return n.unshift(e),n}return[]}class ri{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}}function Mo(t){const e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}class DD extends xD{constructor(e,i){super(e),this.snapshot=i,Dp(this,e)}toString(){return this.snapshot.toString()}}function ED(t,e){const i=function kB(t,e){const s=new jc([],{},{},"",{},W,e,null,{});return new ID("",new ri(s,[]))}(0,e),n=new At([new ea("",{})]),r=new At({}),o=new At({}),s=new At({}),a=new At(""),l=new To(n,r,s,a,o,W,e,i.root);return l.snapshot=i.root,new DD(new ri(l,[]),i)}class To{constructor(e,i,n,r,o,s,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Z(c=>c[Js]))??k(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Z(e=>Eo(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Z(e=>Eo(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function SD(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function NB(t){return t.reduce((e,i)=>({params:{...e.params,...i.params},data:{...e.data,...i.data},resolve:{...i.data,...e.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(n))}class jc{get title(){return this.data?.[Js]}constructor(e,i,n,r,o,s,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Eo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Eo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ID extends xD{constructor(e,i){super(i),this.url=e,Dp(this,i)}toString(){return MD(this._root)}}function Dp(t,e){e.value._routerState=t,e.children.forEach(i=>Dp(t,i))}function MD(t){const e=t.children.length>0?` { ${t.children.map(MD).join(", ")} } `:"";return`${t.value}${e}`}function Ep(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Ln(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),Ln(e.params,i.params)||t.paramsSubject.next(i.params),function XV(t,e){if(t.length!==e.length)return!1;for(let i=0;iLn(i.parameters,e[n].parameters))}(t.url,e.url);return i&&!(!t.parent!=!e.parent)&&(!t.parent||Sp(t.parent,e.parent))}let Ip=(()=>{var t;class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=W,this.activateEvents=new se,this.deactivateEvents=new se,this.attachEvents=new se,this.detachEvents=new se,this.parentContexts=E(aa),this.location=E(tn),this.changeDetector=E(Fn),this.environmentInjector=E(Xt),this.inputBinder=E(Hc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;const o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new PB(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275dir=A({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[kt]}),e})();class PB{constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===To?this.route:e===aa?this.childContexts:this.parent.get(e,i)}}const Hc=new C("");let TD=(()=>{var t;class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Ic([r.queryParams,r.params,r.data]).pipe(zt(([s,a,l],c)=>(l={...s,...a,...l},0===c?k(l):Promise.resolve(l)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const a=function zF(t){const e=J(t);if(!e)return null;const i=new As(e);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}(r.component);if(a)for(const{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,s[l]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();function la(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const r=function LB(t,e,i){return e.children.map(n=>{for(const r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return la(t,n,r);return la(t,n)})}(t,e,i);return new ri(n,r)}{if(t.shouldAttach(e.value)){const o=t.retrieve(e.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>la(t,a)),s}}const n=function VB(t){return new To(new At(t.url),new At(t.params),new At(t.queryParams),new At(t.fragment),new At(t.data),t.outlet,t.component,t)}(e.value),r=e.children.map(o=>la(t,o));return new ri(n,r)}}const Mp="ngNavigationCancelingError";function AD(t,e){const{redirectTo:i,navigationBehaviorOptions:n}=sr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=RD(!1,0,e);return r.url=i,r.navigationBehaviorOptions=n,r}function RD(t,e,i){const n=new Error("NavigationCancelingError: "+(t||""));return n[Mp]=!0,n.cancellationCode=e,i&&(n.url=i),n}function OD(t){return t&&t[Mp]}let kD=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Wt({type:t,selectors:[["ng-component"]],standalone:!0,features:[Ow],decls:1,vars:0,template:function(n,r){1&n&&Jt(0,"router-outlet")},dependencies:[Ip],encapsulation:2}),e})();function Tp(t){const e=t.children&&t.children.map(Tp),i=e?{...t,children:e}:{...t};return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==W&&(i.component=kD),i}function yn(t){return t.outlet||W}function ca(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class qB{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){const i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),Ep(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){const r=Mo(i);e.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){const r=e.value,o=i?i.value:null;if(r===o)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){const n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Mo(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(n&&n.outlet){const s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){const n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Mo(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){const r=Mo(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new RB(o.value.snapshot))}),e.children.length&&this.forwardEvent(new TB(e.value.snapshot))}activateRoutes(e,i,n){const r=e.value,o=i?i.value:null;if(Ep(r),r===o)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ep(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=ca(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}}class ND{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Uc{constructor(e,i){this.component=e,this.route=i}}function WB(t,e,i){const n=t._root;return da(n,e?e._root:null,i,[n.value])}function Ao(t,e){const i=Symbol(),n=e.get(t,i);return n===i?"function"!=typeof t||function eM(t){return null!==$a(t)}(t)?e.get(t):t:n}function da(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Mo(e);return t.children.forEach(s=>{(function ZB(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function XB(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!or(t.url,e.url);case"pathParamsOrQueryParamsChange":return!or(t.url,e.url)||!Ln(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sp(t,e)||!Ln(t.queryParams,e.queryParams);default:return!Sp(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new ND(n)):(o.data=s.data,o._resolvedData=s._resolvedData),da(t,e,o.component?a?a.children:null:i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Uc(a.outlet.component,s))}else s&&ua(e,a,r),r.canActivateChecks.push(new ND(n)),da(t,null,o.component?a?a.children:null:i,n,r)})(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ua(a,i.getContext(s),r)),r}function ua(t,e,i){const n=Mo(t),r=t.value;Object.entries(n).forEach(([o,s])=>{ua(s,r.component?e?e.children.getContext(o):null:e,i)}),i.canDeactivateChecks.push(new Uc(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function ha(t){return"function"==typeof t}function PD(t){return t instanceof Mc||"EmptyError"===t?.name}const $c=Symbol("INITIAL_VALUE");function Ro(){return zt(t=>Ic(t.map(e=>e.pipe(vn(1),xo($c)))).pipe(Z(e=>{for(const i of e)if(!0!==i){if(i===$c)return $c;if(!1===i||i instanceof So)return i}return!0}),sn(e=>e!==$c),vn(1)))}function FD(t){return function bI(...t){return og(t)}(He(e=>{if(sr(e))throw AD(0,e)}),Z(e=>!0===e))}class zc{constructor(e){this.segmentGroup=e||null}}class LD{constructor(e){this.urlTree=e}}function Oo(t){return Co(new zc(t))}function VD(t){return Co(new LD(t))}class gj{constructor(e,i){this.urlSerializer=e,this.urlTree=i}noMatchError(e){return new v(4002,!1)}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return k(n);if(r.numberOfChildren>1||!r.children[W])return Co(new v(4e3,!1));r=r.children[W]}}applyRedirectCommands(e,i,n){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n)}applyRedirectCreateUrlTree(e,i,n,r){const o=this.createSegmentGroup(e,i.root,n,r);return new So(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){const n={};return Object.entries(e).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){const o=this.createSegments(e,i.segments,n,r);let s={};return Object.entries(i.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,r)}),new fe(o,s)}createSegments(e,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){const r=n[i.path.substring(1)];if(!r)throw new v(4001,!1);return r}findOrReturn(e,i){let n=0;for(const r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}}const Ap={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _j(t,e,i,n,r){const o=Rp(t,e,i);return o.matched?(n=function jB(t,e){return t.providers&&!t._injector&&(t._injector=uf(t.providers,e,`Route: ${t.path}`)),t._injector??e}(e,n),function fj(t,e,i,n){const r=e.canMatch;return r&&0!==r.length?k(r.map(s=>{const a=Ao(s,t);return Mi(function nj(t){return t&&ha(t.canMatch)}(a)?a.canMatch(e,i):t.runInContext(()=>a(e,i)))})).pipe(Ro(),FD()):k(!0)}(n,e,i).pipe(Z(s=>!0===s?o:{...Ap}))):k(o)}function Rp(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{...Ap}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(e.matcher||ZV)(i,t,e);if(!r)return{...Ap};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function BD(t,e,i,n){return i.length>0&&function bj(t,e,i){return i.some(n=>Gc(t,e,n)&&yn(n)!==W)}(t,i,n)?{segmentGroup:new fe(e,yj(n,new fe(i,t.children))),slicedSegments:[]}:0===i.length&&function wj(t,e,i){return i.some(n=>Gc(t,e,n))}(t,i,n)?{segmentGroup:new fe(t.segments,vj(t,0,i,n,t.children)),slicedSegments:i}:{segmentGroup:new fe(t.segments,t.children),slicedSegments:i}}function vj(t,e,i,n,r){const o={};for(const s of n)if(Gc(t,i,s)&&!r[yn(s)]){const a=new fe([],{});o[yn(s)]=a}return{...r,...o}}function yj(t,e){const i={};i[W]=e;for(const n of t)if(""===n.path&&yn(n)!==W){const r=new fe([],{});i[yn(n)]=r}return i}function Gc(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}class Ej{constructor(e,i,n,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new gj(this.urlSerializer,this.urlTree)}noMatchError(e){return new v(4002,!1)}recognize(){const e=BD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,W).pipe(rr(i=>{if(i instanceof LD)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof zc?this.noMatchError(i):i}),Z(i=>{const n=new jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},W,this.rootComponentType,null,{}),r=new ri(n,i),o=new ID("",r),s=function mB(t,e,i=null,n=null){return mD(pD(t),e,i,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e.root,W).pipe(rr(n=>{throw n instanceof zc?this.noMatchError(n):n}))}inheritParamsAndData(e){const i=e.value,n=SD(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),e.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(e,i,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0)}processChildren(e,i,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Ye(r).pipe(Do(o=>{const s=n.children[o],a=function zB(t,e){const i=t.filter(n=>yn(n)===e);return i.push(...t.filter(n=>yn(n)!==e)),i}(i,o);return this.processSegmentGroup(e,a,s,o)}),function PV(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(r){return r.lift(new FV(t,e,i))}}((o,s)=>(o.push(...s),o)),Ac(null),function jV(t,e){const i=arguments.length>=2;return n=>n.pipe(t?sn((r,o)=>t(r,o,n)):Va,pp(1),i?Ac(e):tD(()=>new Mc))}(),tt(o=>{if(null===o)return Oo(n);const s=jD(o);return function Sj(t){t.sort((e,i)=>e.value.outlet===W?-1:i.value.outlet===W?1:e.value.outlet.localeCompare(i.value.outlet))}(s),k(s)}))}processSegment(e,i,n,r,o,s){return Ye(i).pipe(Do(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,o,s).pipe(rr(l=>{if(l instanceof zc)return k(null);throw l}))),ir(a=>!!a),rr(a=>{if(PD(a))return function xj(t,e,i){return 0===e.length&&!t.children[i]}(n,r,o)?k([]):Oo(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,o,s,a){return function Cj(t,e,i,n){return!!(yn(t)===n||n!==W&&Gc(e,i,t))&&("**"===t.path||Rp(e,t,i).matched)}(n,r,o,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,r,n,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s):Oo(r):Oo(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,n,r){const o=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?VD(o):this.applyRedirects.lineralizeSegments(n,o).pipe(tt(s=>{const a=new fe(s,{});return this.processSegment(e,i,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:d}=Rp(i,r,o);if(!a)return Oo(i);const u=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,d);return r.redirectTo.startsWith("/")?VD(u):this.applyRedirects.lineralizeSegments(r,u).pipe(tt(h=>this.processSegment(e,n,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,i,n,r,o,s){let a;if("**"===n.path){const l=r.length>0?iD(r).parameters:{};a=k({snapshot:new jc(r,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,HD(n),yn(n),n.component??n._loadedComponent??null,n,UD(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else a=_j(i,n,r,e).pipe(Z(({matched:l,consumedSegments:c,remainingSegments:d,parameters:u})=>l?{snapshot:new jc(c,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,HD(n),yn(n),n.component??n._loadedComponent??null,n,UD(n)),consumedSegments:c,remainingSegments:d}:null));return a.pipe(zt(l=>null===l?Oo(i):this.getChildConfig(e=n._injector??e,n,r).pipe(zt(({routes:c})=>{const d=n._loadedInjector??e,{snapshot:u,consumedSegments:h,remainingSegments:f}=l,{segmentGroup:p,slicedSegments:m}=BD(i,h,f,c);if(0===m.length&&p.hasChildren())return this.processChildren(d,c,p).pipe(Z(x=>null===x?null:[new ri(u,x)]));if(0===c.length&&0===m.length)return k([new ri(u,[])]);const y=yn(n)===o;return this.processSegment(d,c,p,m,y?W:o,!0).pipe(Z(x=>[new ri(u,x)]))}))))}getChildConfig(e,i,n){return i.children?k({routes:i.children,injector:e}):i.loadChildren?void 0!==i._loadedRoutes?k({routes:i._loadedRoutes,injector:i._loadedInjector}):function hj(t,e,i,n){const r=e.canLoad;return void 0===r||0===r.length?k(!0):k(r.map(s=>{const a=Ao(s,t);return Mi(function KB(t){return t&&ha(t.canLoad)}(a)?a.canLoad(e,i):t.runInContext(()=>a(e,i)))})).pipe(Ro(),FD())}(e,i,n).pipe(tt(r=>r?this.configLoader.loadChildren(e,i).pipe(He(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):function mj(t){return Co(RD(!1,3))}())):k({routes:[],injector:e})}}function Ij(t){const e=t.value.routeConfig;return e&&""===e.path}function jD(t){const e=[],i=new Set;for(const n of t){if(!Ij(n)){e.push(n);continue}const r=e.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),i.add(r)):e.push(n)}for(const n of i){const r=jD(n.children);e.push(new ri(n.value,r))}return e.filter(n=>!i.has(n))}function HD(t){return t.data||{}}function UD(t){return t.resolve||{}}function $D(t){return"string"==typeof t.title||null===t.title}function Op(t){return zt(e=>{const i=t(e);return i?Ye(i).pipe(Z(()=>e)):k(e)})}const ko=new C("ROUTES");let kp=(()=>{var t;class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=E(EC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return k(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Mi(n.loadComponent()).pipe(Z(zD),He(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Rc(()=>{this.componentLoaders.delete(n)})),o=new Wd(r,()=>new oe).pipe(ja());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return k({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=function Nj(t,e,i,n){return Mi(t.loadChildren()).pipe(Z(zD),tt(r=>r instanceof Aw||Array.isArray(r)?k(r):Ye(e.compileModuleAsync(r))),Z(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(i).injector,s=o.get(ko,[],{optional:!0,self:!0}).flat()),{routes:s.map(Tp),injector:o}}))}(r,this.compiler,n,this.onLoadEndListener).pipe(Rc(()=>{this.childrenLoaders.delete(r)})),a=new Wd(s,()=>new oe).pipe(ja());return this.childrenLoaders.set(r,a),a}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function zD(t){return function Pj(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let qc=(()=>{var t;class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new oe,this.transitionAbortSubject=new oe,this.configLoader=E(kp),this.environmentInjector=E(Xt),this.urlSerializer=E(ta),this.rootContexts=E(aa),this.inputBindingEnabled=null!==E(Hc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>k(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new IB(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new SB(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,o){return this.transitions=new At({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:n.urlHandlingStrategy.extract(r),urlAfterRedirects:n.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:oa,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(sn(s=>0!==s.id),Z(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),zt(s=>{this.currentTransition=s;let a=!1,l=!1;return k(s).pipe(He(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),zt(c=>{const d=c.currentBrowserUrl.toString(),u=!n.navigated||c.extractedUrl.toString()!==d||d!==c.currentUrlTree.toString();if(!u&&"reload"!==(c.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const f="";return this.events.next(new Io(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),nr}if(n.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return k(c).pipe(zt(f=>{const p=this.transitions?.getValue();return this.events.next(new Vc(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?nr:Promise.resolve(f)}),function Mj(t,e,i,n,r,o){return tt(s=>function Dj(t,e,i,n,r,o,s="emptyOnly"){return new Ej(t,e,i,n,r,s,o).recognize()}(t,e,i,n,s.extractedUrl,r,o).pipe(Z(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),He(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const p=new wD(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:f,extractedUrl:p,source:m,restoredState:y,extras:x}=c,_=new Vc(f,this.urlSerializer.serialize(p),m,y);this.events.next(_);const S=ED(0,this.rootComponentType).snapshot;return this.currentTransition=s={...c,targetSnapshot:S,urlAfterRedirects:p,extras:{...x,skipLocationChange:!1,replaceUrl:!1}},k(s)}{const f="";return this.events.next(new Io(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),nr}}),He(c=>{const d=new CB(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),Z(c=>(this.currentTransition=s={...c,guards:WB(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},s)),function rj(t,e){return tt(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return 0===s.length&&0===o.length?k({...i,guardsResult:!0}):function oj(t,e,i,n){return Ye(t).pipe(tt(r=>function uj(t,e,i,n,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?k(o.map(a=>{const l=ca(e)??r,c=Ao(a,l);return Mi(function tj(t){return t&&ha(t.canDeactivate)}(c)?c.canDeactivate(t,e,i,n):l.runInContext(()=>c(t,e,i,n))).pipe(ir())})).pipe(Ro()):k(!0)}(r.component,r.route,i,e,n)),ir(r=>!0!==r,!0))}(s,n,r,t).pipe(tt(a=>a&&function QB(t){return"boolean"==typeof t}(a)?function sj(t,e,i,n){return Ye(e).pipe(Do(r=>Tc(function lj(t,e){return null!==t&&e&&e(new MB(t)),k(!0)}(r.route.parent,n),function aj(t,e){return null!==t&&e&&e(new AB(t)),k(!0)}(r.route,n),function dj(t,e,i){const n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>function YB(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>Jx(()=>k(s.guards.map(l=>{const c=ca(s.node)??i,d=Ao(l,c);return Mi(function ej(t){return t&&ha(t.canActivateChild)}(d)?d.canActivateChild(n,t):c.runInContext(()=>d(n,t))).pipe(ir())})).pipe(Ro())));return k(o).pipe(Ro())}(t,r.path,i),function cj(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return k(!0);const r=n.map(o=>Jx(()=>{const s=ca(e)??i,a=Ao(o,s);return Mi(function JB(t){return t&&ha(t.canActivate)}(a)?a.canActivate(e,t):s.runInContext(()=>a(e,t))).pipe(ir())}));return k(r).pipe(Ro())}(t,r.route,i))),ir(r=>!0!==r,!0))}(n,o,t,e):k(a)),Z(a=>({...i,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),He(c=>{if(s.guardsResult=c.guardsResult,sr(c.guardsResult))throw AD(0,c.guardsResult);const d=new xB(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),sn(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",3),!1)),Op(c=>{if(c.guards.canActivateChecks.length)return k(c).pipe(He(d=>{const u=new DB(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),zt(d=>{let u=!1;return k(d).pipe(function Tj(t,e){return tt(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return k(i);let o=0;return Ye(r).pipe(Do(s=>function Aj(t,e,i,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!$D(r)&&(o[Js]=r.title),function Rj(t,e,i,n){const r=function Oj(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return k({});const o={};return Ye(r).pipe(tt(s=>function kj(t,e,i,n){const r=ca(e)??n,o=Ao(t,r);return Mi(o.resolve?o.resolve(e,i):r.runInContext(()=>o(e,i)))}(t[s],e,i,n).pipe(ir(),He(a=>{o[s]=a}))),pp(1),function HV(t){return e=>e.lift(new UV(t))}(o),rr(s=>PD(s)?nr:Co(s)))}(o,t,e,n).pipe(Z(s=>(t._resolvedData=s,t.data=SD(t,i).resolve,r&&$D(r)&&(t.data[Js]=r.title),null)))}(s.route,n,t,e)),He(()=>o++),pp(1),tt(s=>o===r.length?k(i):nr))})}(n.paramsInheritanceStrategy,this.environmentInjector),He({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",2)}}))}),He(d=>{const u=new EB(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),Op(c=>{const d=u=>{const h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(He(f=>{u.component=f}),Z(()=>{})));for(const f of u.children)h.push(...d(f));return h};return Ic(d(c.targetSnapshot.root)).pipe(Ac(),vn(1))}),Op(()=>this.afterPreactivation()),Z(c=>{const d=function FB(t,e,i){const n=la(t,e._root,i?i._root:void 0);return new DD(n,e)}(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s={...c,targetRouterState:d},s}),He(()=>{this.events.next(new bp)}),((t,e,i,n)=>Z(r=>(new qB(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)))(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),vn(1),He({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ti(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),n.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Pe(this.transitionAbortSubject.pipe(He(c=>{throw c}))),Rc(()=>{a||l||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),rr(c=>{if(l=!0,OD(c))this.events.next(new sa(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),function BB(t){return OD(t)&&sr(t.url)}(c)?this.events.next(new wp(c.url)):s.resolve(!1);else{this.events.next(new Bc(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(d){s.reject(d)}}return nr}))}))}cancelNavigationTransition(n,r,o){const s=new sa(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function GD(t){return t!==oa}let qD=(()=>{var t;class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===W);return r}getResolvedTitleForRoute(n){return n.data[Js]}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(Fj)},providedIn:"root"}),e})(),Fj=(()=>{var t;class e extends qD{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Wx))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),Lj=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(Bj)},providedIn:"root"}),e})();class Vj{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}}let Bj=(()=>{var t;class e extends Vj{}return(t=e).\u0275fac=function(){let i;return function(r){return(i||(i=Ve(t)))(r||t)}}(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const Wc=new C("",{providedIn:"root",factory:()=>({})});let jj=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:function(){return E(Hj)},providedIn:"root"}),e})(),Hj=(()=>{var t;class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();var fa=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(fa||{});function WD(t,e){t.events.pipe(sn(i=>i instanceof Ti||i instanceof sa||i instanceof Bc||i instanceof Io),Z(i=>i instanceof Ti||i instanceof Io?fa.COMPLETE:i instanceof sa&&(0===i.code||1===i.code)?fa.REDIRECTING:fa.FAILED),sn(i=>i!==fa.REDIRECTING),vn(1)).subscribe(()=>{e()})}function Uj(t){throw t}function $j(t,e,i){return e.parse("/")}const zj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let an=(()=>{var t;class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=E(xC),this.isNgZoneEnabled=!1,this._events=new oe,this.options=E(Wc,{optional:!0})||{},this.pendingTasks=E(DC),this.errorHandler=this.options.errorHandler||Uj,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||$j,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=E(jj),this.routeReuseStrategy=E(Lj),this.titleStrategy=E(qD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=E(ko,{optional:!0})?.flat()??[],this.navigationTransitions=E(qc),this.urlSerializer=E(ta),this.location=E(hc),this.componentInputBindingEnabled=!!E(Hc,{optional:!0}),this.eventsSubscription=new pe,this.isNgZoneEnabled=E(q)instanceof q&&q.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new So,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ED(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(YD(r)&&this._events.next(r));if(r instanceof Vc)GD(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(r instanceof Io)this.rawUrlTree=o.rawUrl;else if(r instanceof wD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(r instanceof bp)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(r instanceof sa)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(o);else if(r instanceof wp){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||GD(o.source)};this.scheduleNavigation(s,oa,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}r instanceof Bc&&this.restoreHistory(o,!0),r instanceof Ti&&(this.navigated=!0),YD(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),oa,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(s.state=c)}const l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Tp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,d=c?this.currentUrlTree.fragment:a;let h,u=null;switch(l){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{h=pD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return mD(h,n,u,d??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=sr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,oa,null,r)}navigate(n,r={skipLocationChange:!1}){return function qj(t){for(let e=0;e{const s=n[o];return null!=s&&(r[o]=s),r},{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((h,f)=>{l=h,c=f});const u=this.pendingTasks.add();return WD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const a={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function YD(t){return!(t instanceof bp||t instanceof wp)}class ZD{}let Zj=(()=>{var t;class e{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(sn(n=>n instanceof Ti),Do(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const s of r){s.providers&&!s._injector&&(s._injector=uf(s.providers,n,`Route: ${s.path}`));const a=s._injector??n,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return Ye(o).pipe(Dr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):k(null);const s=o.pipe(tt(a=>null===a?k(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));return r.loadComponent&&!r._loadedComponent?Ye([s,this.loader.loadComponent(r)]).pipe(Dr()):s})}}return(t=e).\u0275fac=function(n){return new(n||t)(b(an),b(EC),b(Xt),b(ZD),b(kp))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const Pp=new C("");let XD=(()=>{var t;class e{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Vc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ti?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Io&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof CD&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new CD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(t=e).\u0275fac=function(n){Ah()},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();function oi(t,e){return{\u0275kind:t,\u0275providers:e}}function KD(){const t=E(rt);return e=>{const i=t.get(Di);if(e!==i.components[0])return;const n=t.get(an),r=t.get(JD);1===t.get(Fp)&&n.initialNavigation(),t.get(eE,null,Q.Optional)?.setUpPreloading(),t.get(Pp,null,Q.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const JD=new C("",{factory:()=>new oe}),Fp=new C("",{providedIn:"root",factory:()=>1}),eE=new C("");function Jj(t){return oi(0,[{provide:eE,useExisting:Zj},{provide:ZD,useExisting:t}])}const tE=new C("ROUTER_FORROOT_GUARD"),tH=[hc,{provide:ta,useClass:mp},an,aa,{provide:To,useFactory:function QD(t){return t.routerState.root},deps:[an]},kp,[]];function nH(){return new OC("Router",an)}let nE=(()=>{var t;class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[tH,[],{provide:ko,multi:!0,useValue:n},{provide:tE,useFactory:sH,deps:[[an,new zi,new hs]]},{provide:Wc,useValue:r||{}},r?.useHash?{provide:tr,useClass:ZF}:{provide:tr,useClass:lx},{provide:Pp,useFactory:()=>{const t=E(f2),e=E(q),i=E(Wc),n=E(qc),r=E(ta);return i.scrollOffset&&t.setOffset(i.scrollOffset),new XD(r,n,t,e,i)}},r?.preloadingStrategy?Jj(r.preloadingStrategy).\u0275providers:[],{provide:OC,multi:!0,useFactory:nH},r?.initialNavigation?aH(r):[],r?.bindToComponentInputs?oi(8,[TD,{provide:Hc,useExisting:TD}]).\u0275providers:[],[{provide:iE,useFactory:KD},{provide:Of,multi:!0,useExisting:iE}]]}}static forChild(n){return{ngModule:e,providers:[{provide:ko,multi:!0,useValue:n}]}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(tE,8))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();function sH(t){return"guarded"}function aH(t){return["disabled"===t.initialNavigation?oi(3,[{provide:Df,multi:!0,useFactory:()=>{const e=E(an);return()=>{e.setUpLocationChangeListener()}}},{provide:Fp,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?oi(2,[{provide:Fp,useValue:0},{provide:Df,multi:!0,deps:[rt],useFactory:e=>{const i=e.get(WF,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=e.get(an),o=e.get(JD);WD(r,()=>{n(!0)}),e.get(qc).afterPreactivation=()=>(n(!0),o.closed?k(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const iE=new C("");function rE(t,e,i,n,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void i(c)}a.done?e(l):Promise.resolve(l).then(n,r)}let Lp;try{Lp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Lp=!1}let pa,ar,Vp,Bt=(()=>{var t;class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?function h2(t){return t===Mx}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Lp)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Yi))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function ma(t){return function dH(){if(null==pa&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>pa=!0}))}finally{pa=pa||!1}return pa}()?t:!!t.capture}function uH(){if(null==ar){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ar=!1,ar;if("scrollBehavior"in document.documentElement.style)ar=!0;else{const t=Element.prototype.scrollTo;ar=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return ar}function Ai(t){return t.composedPath?t.composedPath()[0]:t.target}function Bp(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Xc(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class kH extends pe{constructor(e,i){super()}schedule(e,i=0){return this}}class Up extends kH{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,i)),this.pending=!0,this.delay=i,this.id=this.id||this.requestAsyncId(r,this.id,i),this}requestAsyncId(e,i,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return i;clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,i);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let r,n=!1;try{this.work(e)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,i=this.scheduler,n=i.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null}}let aE=(()=>{class t{constructor(i,n=t.now){this.SchedulerAction=i,this.now=n}schedule(i,n=0,r){return new this.SchedulerAction(this,i).schedule(r,n)}}return t.now=()=>Date.now(),t})();class Bn extends aE{constructor(e,i=aE.now){super(e,()=>Bn.delegate&&Bn.delegate!==this?Bn.delegate.now():i()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,i=0,n){return Bn.delegate&&Bn.delegate!==this?Bn.delegate.schedule(e,i,n):super.schedule(e,i,n)}flush(e){const{actions:i}=this;if(this.active)return void i.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=i.shift());if(this.active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}}const $p=new Bn(Up);function lE(t,e=$p){return i=>i.lift(new NH(t,e))}class NH{constructor(e,i){this.dueTime=e,this.scheduler=i}call(e,i){return i.subscribe(new PH(e,this.dueTime,this.scheduler))}}class PH extends ge{constructor(e,i,n){super(e),this.dueTime=i,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(FH,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function FH(t){t.debouncedNext()}function cE(t){return e=>e.lift(new LH(t))}class LH{constructor(e){this.total=e}call(e,i){return i.subscribe(new VH(e,this.total))}}class VH extends ge{constructor(e,i){super(e),this.total=i,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function qe(t){return null!=t&&"false"!=`${t}`}function zp(t,e=0){return function BH(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Qc(t){return Array.isArray(t)?t:[t]}function Ue(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Po(t){return t instanceof he?t.nativeElement:t}let jH=(()=>{var t;class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),HH=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[jH]}),e})();const dE=new Set;let lr,UH=(()=>{var t;class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):zH}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function $H(t,e){if(!dE.has(t))try{lr||(lr=document.createElement("style"),e&&(lr.nonce=e),lr.setAttribute("type","text/css"),document.head.appendChild(lr)),lr.sheet&&(lr.sheet.insertRule(`@media ${t} {body{ }}`,0),dE.add(t))}catch(i){console.error(i)}}(n,this._nonce),this._matchMedia(n)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(uh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function zH(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let GH=(()=>{var t;class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new oe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return uE(Qc(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let s=Ic(uE(Qc(n)).map(a=>this._registerQuery(a).observable));return s=Tc(s.pipe(vn(1)),s.pipe(cE(1),lE(0))),s.pipe(Z(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);const r=this._mediaMatcher.matchMedia(n),s={observable:new be(a=>{const l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(xo(r),Z(({matches:a})=>({query:n,matches:a})),Pe(this._destroySubject)),mql:r};return this._queries.set(n,s),s}}return(t=e).\u0275fac=function(n){return new(n||t)(b(UH),b(q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function uE(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}function Kc(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const fE="cdk-describedby-message",Jc="cdk-describedby-host";let Gp=0,YH=(()=>{var t;class e{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Gp++,this._document=n,this._id=E(ws)+"-"+Gp++}describe(n,r,o){if(!this._canBeDescribed(n,r))return;const s=qp(r,o);"string"!=typeof r?(pE(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,r,o){if(!r||!this._isElementNode(n))return;const s=qp(r,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),"string"==typeof r){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const n=this._document.querySelectorAll(`[${Jc}="${this._id}"]`);for(let r=0;r0!=o.indexOf(fE));n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){const o=this._messageRegistry.get(r);(function qH(t,e,i){const n=Kc(t,e);n.some(r=>r.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))})(n,"aria-describedby",o.messageElement.id),n.setAttribute(Jc,this._id),o.referenceCount++}_removeMessageReference(n,r){const o=this._messageRegistry.get(r);o.referenceCount--,function WH(t,e,i){const r=Kc(t,e).filter(o=>o!=i.trim());r.length?t.setAttribute(e,r.join(" ")):t.removeAttribute(e)}(n,"aria-describedby",o.messageElement.id),n.removeAttribute(Jc)}_isElementDescribedByMessage(n,r){const o=Kc(n,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&"object"==typeof r)return!0;const o=null==r?"":`${r}`.trim(),s=n.getAttribute("aria-label");return!(!o||s&&s.trim()===o)}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X),b(Bt))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function qp(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function pE(t,e){t.id||(t.id=`${fE}-${e}-${Gp++}`)}class ZH{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new oe,this._typeaheadSubscription=pe.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new oe,this.change=new oe,e instanceof _o&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){const r=i.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(He(i=>this._pressedLetters.push(i)),lE(e),sn(()=>this._pressedLetters.length>0),Z(()=>this._pressedLetters.join(""))).subscribe(i=>{const n=this._getItemsArray();for(let r=1;r!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const i=this._getItemsArray(),n="number"==typeof e?e:i.indexOf(e);this._activeItem=i[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const i=this._getItemsArray();for(let n=1;n<=i.length;n++){const r=(this._activeItemIndex+e*n+i.length)%i.length;if(!this._skipPredicateFn(i[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=i])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof _o?this._items.toArray():this._items}}class XH extends ZH{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function gE(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function _E(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const nU=new C("cdk-input-modality-detector-options"),iU={ignoreKeys:[18,17,224,91,16]},Fo=ma({passive:!0,capture:!0});let rU=(()=>{var t;class e{get mostRecentModality(){return this._modality.value}constructor(n,r,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new At(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ai(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(gE(a)?"keyboard":"mouse"),this._mostRecentTarget=Ai(a))},this._onTouchstart=a=>{_E(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ai(a))},this._options={...iU,...s},this.modalityDetected=this._modality.pipe(cE(1)),this.modalityChanged=this.modalityDetected.pipe(hg()),n.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Fo),o.addEventListener("mousedown",this._onMousedown,Fo),o.addEventListener("touchstart",this._onTouchstart,Fo)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fo),document.removeEventListener("mousedown",this._onMousedown,Fo),document.removeEventListener("touchstart",this._onTouchstart,Fo))}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(q),b(X),b(nU,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const sU=new C("cdk-focus-monitor-default-options"),ed=ma({passive:!0,capture:!0});let Wp=(()=>{var t;class e{constructor(n,r,o,s,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new oe,this._rootNodeFocusAndBlurListener=l=>{for(let d=Ai(l);d;d=d.parentElement)"focus"===l.type?this._onFocus(l,d):this._onBlur(l,d)},this._document=s,this._detectionMode=a?.detectionMode||0}monitor(n,r=!1){const o=Po(n);if(!this._platform.isBrowser||1!==o.nodeType)return k();const s=function fH(t){if(function hH(){if(null==Vp){const t=typeof document<"u"?document.head:null;Vp=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Vp}()){const e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;const l={checkChildren:r,subject:new oe,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){const r=Po(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(n,r,o){const s=Po(n);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return 1===this._detectionMode||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused","touch"===r),n.classList.toggle("cdk-keyboard-focused","keyboard"===r),n.classList.toggle("cdk-mouse-focused","mouse"===r),n.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=n,this._originFromTouchInteraction="touch"===n&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(n,r){const o=this._elementInfo.get(r),s=Ai(n);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(n,r){const o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;const r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,ed),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,ed)}),this._rootNodeFocusListenerCount.set(r,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Pe(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){const r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ed),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ed),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){const r=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(n){const{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!r||r===n||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName||n.disabled)return!1;const s=n.labels;if(s)for(let a=0;a{var t;class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=E(GH).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);const r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const n=this._document.body.classList;n.remove(Yp,yE,bE),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?n.add(Yp,yE):2===r&&n.add(Yp,bE)}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),aU=(()=>{var t;class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(wE))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[HH]}),e})();const lU=new C("cdk-dir-doc",{providedIn:"root",factory:function cU(){return E(X)}}),dU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let td=(()=>{var t;class e{constructor(n){this.value="ltr",this.change=new se,n&&(this.value=function uU(t){const e=t?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?dU.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((n.body?n.body.dir:null)||(n.documentElement?n.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(lU,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),ga=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();const fU=new C("mat-sanity-checks",{providedIn:"root",factory:function hU(){return!0}});let bn=(()=>{var t;class e{constructor(n,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return!Bp()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}return(t=e).\u0275fac=function(n){return new(n||t)(b(wE),b(fU,8),b(X))},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[ga,ga]}),e})();function pU(t){return class extends t{get disabled(){return this._disabled}set disabled(e){this._disabled=qe(e)}constructor(...e){super(...e),this._disabled=!1}}}function EE(t,e){return class extends t{get color(){return this._color}set color(i){const n=i||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function mU(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=qe(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function Zp(t,e=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=null!=i?zp(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}let SE=(()=>{var t;class e{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class vU{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const IE=ma({passive:!0,capture:!0});class yU{constructor(){this._events=new Map,this._delegateEventHandler=e=>{const i=Ai(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,i,n,r){const o=this._events.get(i);if(o){const s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,IE)})}removeHandler(e,i,n){const r=this._events.get(e);if(!r)return;const o=r.get(i);o&&(o.delete(n),0===o.size&&r.delete(i),0===r.size&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,IE)))}}const ME={enterDuration:225,exitDuration:150},TE=ma({passive:!0,capture:!0}),AE=["mousedown","touchstart"],RE=["mouseup","mouseleave","touchend","touchcancel"];class va{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Po(n))}fadeInRipple(e,i,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...ME,...n.animation};n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);const s=n.radius||function wU(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(e,i,r),a=e-r.left,l=i-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,p="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,m=new vU(this,d,n,p);d.style.transform="scale3d(1, 1, 1)",m.state=0,n.persistent||(this._mostRecentTransientRipple=m);let y=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const x=()=>this._finishRippleTransition(m),_=()=>this._destroyRipple(m);d.addEventListener("transitionend",x),d.addEventListener("transitioncancel",_),y={onTransitionEnd:x,onTransitionCancel:_}}),this._activeRipples.set(m,y),(p||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(e){if(2===e.state||3===e.state)return;const i=e.element,n={...ME,...e.config.animation};i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const i=Po(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,AE.forEach(n=>{va._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{RE.forEach(i=>{this._triggerElement.addEventListener(i,this,TE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){0===e.state?this._startFadeOutTransition(e):2===e.state&&this._destroyRipple(e)}_startFadeOutTransition(e){const i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=1,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){const i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,null!==i&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){const i=gE(e),n=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const e=this._triggerElement;e&&(AE.forEach(i=>va._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&RE.forEach(i=>e.removeEventListener(i,this,TE)))}}va._eventManager=new yU;const nd=new C("mat-ripple-global-options");let CU=(()=>{var t;class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new va(this,r,n,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,o){return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,r,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...n})}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(q),g(Bt),g(nd,8),g(Yn,8))},t.\u0275dir=A({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,r){2&n&&St("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),e})(),xU=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[bn,bn]}),e})();const OE={capture:!0},kE=["focus","click","mouseenter","touchstart"],Xp="mat-ripple-loader-uninitialized",Qp="mat-ripple-loader-class-name",NE="mat-ripple-loader-centered",id="mat-ripple-loader-disabled";let DU=(()=>{var t;class e{constructor(){this._document=E(X,{optional:!0}),this._animationMode=E(Yn,{optional:!0}),this._globalRippleOptions=E(nd,{optional:!0}),this._platform=E(Bt),this._ngZone=E(q),this._onInteraction=n=>{if(!(n.target instanceof HTMLElement))return;const o=n.target.closest(`[${Xp}]`);o&&this.createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const n of kE)this._document?.addEventListener(n,this._onInteraction,OE)})}ngOnDestroy(){for(const n of kE)this._document?.removeEventListener(n,this._onInteraction,OE)}configureRipple(n,r){n.setAttribute(Xp,""),(r.className||!n.hasAttribute(Qp))&&n.setAttribute(Qp,r.className||""),r.centered&&n.setAttribute(NE,""),r.disabled&&n.setAttribute(id,"")}getRipple(n){return n.matRipple?n.matRipple:this.createRipple(n)}setDisabled(n,r){const o=n.matRipple;o?o.disabled=r:r?n.setAttribute(id,""):n.removeAttribute(id)}createRipple(n){if(!this._document)return;n.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",n.getAttribute(Qp)),n.append(r);const o=new CU(new he(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(NE),o.disabled=n.hasAttribute(id),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute(Xp),n.matRipple=r}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();function rd(t,e){return new be(i=>{const n=t.length;if(0===n)return void i.complete();const r=new Array(n);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=d},error:d=>i.error(d),complete:()=>{o++,(o===n||!c)&&(s===n&&i.next(e?e.reduce((d,u,h)=>(d[u]=r[h],d),{}):r),i.complete())}}))}})}class Kp{}class si{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(i=>{const n=i.indexOf(":");if(n>0){const r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){const i=new si;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof si?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){const i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,i);const r=("a"===e.op?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":const o=e.value;if(o){let s=this.headers.get(i);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}else this.headers.delete(i),this.normalizedNames.delete(i)}}setHeaderEntries(e,i){const n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}}class EU{encodeKey(e){return FE(e)}encodeValue(e){return FE(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const IU=/%(\d[a-f0-9])/gi,MU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function FE(t){return encodeURIComponent(t).replace(IU,(e,i)=>MU[i]??e)}function od(t){return`${t}`}class Ri{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new EU,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function SU(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{const n=e.fromObject[i],r=Array.isArray(n)?n.map(od):[od(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){const i=[];return Object.keys(e).forEach(n=>{const r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const i=new Ri({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const i=("a"===e.op?this.map.get(e.param):void 0)||[];i.push(od(e.value)),this.map.set(e.param,i);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let n=this.map.get(e.param)||[];const r=n.indexOf(od(e.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class TU{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function LE(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function VE(t){return typeof Blob<"u"&&t instanceof Blob}function BE(t){return typeof FormData<"u"&&t instanceof FormData}class ya{constructor(e,i,n,r){let o;if(this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function AU(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new si),this.context||(this.context=new TU),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=i;else{const a=i.indexOf("?");this.urlWithParams=i+(-1===a?"?":au.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((u,h)=>u.set(h,e.setParams[h]),c)),new ya(i,n,o,{params:c,headers:l,context:d,reportProgress:a,responseType:r,withCredentials:s})}}var em=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(em||{});class OU{constructor(e,i=200,n="OK"){this.headers=e.headers||new si,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class ba extends OU{constructor(e={}){super(e),this.type=em.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ba({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function tm(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let nm=(()=>{var t;class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof ya)s=n;else{let c,d;c=o.headers instanceof si?o.headers:new si(o.headers),o.params&&(d=o.params instanceof Ri?o.params:new Ri({fromObject:o.params})),s=new ya(n,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=k(s).pipe(Do(c=>this.handler.handle(c)));if(n instanceof ya||"events"===o.observe)return a;const l=a.pipe(sn(c=>c instanceof ba));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Z(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(Z(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(Z(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return l.pipe(Z(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Ri).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,tm(o,r))}post(n,r,o={}){return this.request("POST",n,tm(o,r))}put(n,r,o={}){return this.request("PUT",n,tm(o,r))}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Kp))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const KU=["*"];let ld;function wa(t){return function JU(){if(void 0===ld&&(ld=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(ld=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return ld}()?.createHTML(t)||t}function ZE(t){return Error(`Unable to find icon with the name "${t}"`)}function XE(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function QE(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class dr{constructor(e,i,n){this.url=e,this.svgText=i,this.options=n}}let cd=(()=>{var t;class e{constructor(n,r,o,s){this._httpClient=n,this._sanitizer=r,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(n,r,o){return this.addSvgIconInNamespace("",n,r,o)}addSvgIconLiteral(n,r,o){return this.addSvgIconLiteralInNamespace("",n,r,o)}addSvgIconInNamespace(n,r,o,s){return this._addSvgIconConfig(n,r,new dr(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,o,s){const a=this._sanitizer.sanitize(Je.HTML,o);if(!a)throw QE(o);const l=wa(a);return this._addSvgIconConfig(n,r,new dr("",l,s))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,o){return this._addSvgIconSetConfig(n,new dr(r,null,o))}addSvgIconSetLiteralInNamespace(n,r,o){const s=this._sanitizer.sanitize(Je.HTML,r);if(!s)throw QE(r);const a=wa(s);return this._addSvgIconSetConfig(n,new dr("",a,o))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){const r=this._sanitizer.sanitize(Je.RESOURCE_URL,n);if(!r)throw XE(n);const o=this._cachedIconsByUrl.get(r);return o?k(dd(o)):this._loadSvgIconFromConfig(new dr(n,null)).pipe(He(s=>this._cachedIconsByUrl.set(r,s)),Z(s=>dd(s)))}getNamedSvgIcon(n,r=""){const o=KE(r,n);let s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);const a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):Co(ZE(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?k(dd(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(Z(r=>dd(r)))}_getSvgFromIconSetConfigs(n,r){const o=this._extractIconWithNameFromAnySet(n,r);return o?k(o):function PE(...t){if(1===t.length){const e=t[0];if(wr(e))return rd(e,null);if($d(e)&&Object.getPrototypeOf(e)===Object.prototype){const i=Object.keys(e);return rd(i.map(n=>e[n]),i)}}if("function"==typeof t[t.length-1]){const e=t.pop();return rd(t=1===t.length&&wr(t[0])?t[0]:t,null).pipe(Z(i=>e(...i)))}return rd(t,null)}(r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(rr(l=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(Je.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(d)),k(null)})))).pipe(Z(()=>{const a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw ZE(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let o=r.length-1;o>=0;o--){const s=r[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){const a=this._svgElementFromConfig(s),l=this._extractSvgIconFromSet(a,n,s.options);if(l)return l}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(He(r=>n.svgText=r),Z(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?k(null):this._fetchIcon(n).pipe(He(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,o){const s=n.querySelector(`[id="${r}"]`);if(!s)return null;const a=s.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const l=this._svgElementFromString(wa(""));return l.appendChild(a),this._setSvgAttributes(l,o)}_svgElementFromString(n){const r=this._document.createElement("DIV");r.innerHTML=n;const o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){const r=this._svgElementFromString(wa("")),o=n.attributes;for(let s=0;swa(d)),Rc(()=>this._inProgressUrlFetches.delete(a)),Yd());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(n,r,o){return this._svgIconConfigs.set(KE(n,r),o),this}_addSvgIconSetConfig(n,r){const o=this._iconSetConfigs.get(n);return o?o.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){const r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let o=0;oe?e.pathname+e.search:""}}}),JE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],l3=JE.map(t=>`[${t}]`).join(", "),c3=/^url\(['"]?#(.*?)['"]?\)$/;let d3=(()=>{var t;class e extends r3{get inline(){return this._inline}set inline(n){this._inline=qe(n)}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){const r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){const r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,o,s,a,l){super(n),this._iconRegistry=r,this._location=s,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=pe.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];const r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const n=this._elementsWithExternalReferences;if(n&&n.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){const n=this._elementRef.nativeElement;let r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const o=n.childNodes[r];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),r.forEach(o=>n.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return"string"==typeof n?n.trim().split(" ")[0]:n}_prependPathToReferences(n){const r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){const r=n.querySelectorAll(l3),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const l=r[s],c=l.getAttribute(a),d=c?c.match(c3):null;if(d){let u=o.get(l);u||(u=[],o.set(l,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){const[r,o]=this._splitIconName(n);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(vn(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${o}! ${s.message}`))})}}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(cd),$i("aria-hidden"),g(s3),g(Qt),g(o3,8))},t.\u0275cmp=Wt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(n,r){2&n&&(Oe("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),St("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Y],ngContentSelectors:KU,decls:1,vars:0,template:function(n,r){1&n&&(bi(),pt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),e})(),u3=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[bn,bn]}),e})();const wn=new C("NgValueAccessor");class rS{}class u${}const li="*";function oS(t,e=null){return{type:2,steps:t,options:e}}function ln(t){return{type:6,styles:t,offset:null}}class Ma{constructor(e=0,i=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=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const i="start"==e?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class sS{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const i=e*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){const e=this.players.reduce((i,n)=>null===i||n.totalTime>i.totalTime?n:i,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const i="start"==e?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}function b$(t,e){1&t&&(O(0,"span",7),pt(1,1),P())}function w$(t,e){1&t&&(O(0,"span",8),pt(1,2),P())}const aS=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],lS=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function C$(t,e){1&t&&(O(0,"span",8),pt(1,1),O(2,"span",9),function x_(){V.lFrame.currentNamespace=n_}(),O(3,"svg",10),Jt(4,"path",11),P()()())}function x$(t,e){1&t&&(O(0,"span",12),pt(1,2),P())}const Dm=["*"],Cd=new C("mat-chips-default-options"),Em=new C("MatChipAvatar"),Sm=new C("MatChipTrailingIcon"),Im=new C("MatChipRemove"),xd=new C("MatChip");class k${}const N$=Zp(k$,-1);let Vo=(()=>{var t;class e extends N${get disabled(){return this._disabled||this._parentChip.disabled}set disabled(n){this._disabled=qe(n)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(n,r){super(),this._elementRef=n,this._parentChip=r,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(n){!this.disabled&&this.isInteractive&&this._isPrimary&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(n){(13===n.keyCode||32===n.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(n.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(xd))},t.\u0275dir=A({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,r){1&n&&Te("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&n&&(Oe("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),St("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[Y]}),e})(),V$=0;const B$=Zp(EE(mU(pU(class{constructor(t){this._elementRef=t}})),"primary"),-1);let Bo=(()=>{var t;class e extends B${_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(n){this._value=n}get removable(){return this._removable}set removable(n){this._removable=qe(n)}get highlighted(){return this._highlighted}set highlighted(n){this._highlighted=qe(n)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}constructor(n,r,o,s,a,l,c,d){super(r),this._changeDetectorRef=n,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=c,this._onFocus=new oe,this._onBlur=new oe,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+V$++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new se,this.destroyed=new se,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=E(DU),this._document=a,this._animationsDisabled="NoopAnimations"===l,null!=d&&(this.tabIndex=parseInt(d)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const n=this._elementRef.nativeElement;this._isBasicChip=n.hasAttribute(this.basicChipAttrName)||n.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=qo(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(n){(8===n.keyCode||46===n.keyCode)&&(n.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(n){return this._getActions().find(r=>{const o=r._elementRef.nativeElement;return o===n||o.contains(n)})}_getActions(){const n=[];return this.primaryAction&&n.push(this.primaryAction),this.removeIcon&&n.push(this.removeIcon),this.trailingIcon&&n.push(this.trailingIcon),n}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{const r=null!==n;r!==this._hasFocusInternal&&(this._hasFocusInternal=r,r?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(vn(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Fn),g(he),g(q),g(Wp),g(X),g(Yn,8),g(nd,8),$i("tabindex"))},t.\u0275cmp=Wt({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,r,o){if(1&n&&(nn(o,Em,5),nn(o,Sm,5),nn(o,Im,5),nn(o,Em,5),nn(o,Sm,5),nn(o,Im,5)),2&n){let s;gt(s=_t())&&(r.leadingIcon=s.first),gt(s=_t())&&(r.trailingIcon=s.first),gt(s=_t())&&(r.removeIcon=s.first),gt(s=_t())&&(r._allLeadingIcons=s),gt(s=_t())&&(r._allTrailingIcons=s),gt(s=_t())&&(r._allRemoveIcons=s)}},viewQuery:function(n,r){if(1&n&&ic(Vo,5),2&n){let o;gt(o=_t())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(n,r){1&n&&Te("keydown",function(s){return r._handleKeydown(s)}),2&n&&(Ci("id",r.id),Oe("role",r.role)("tabindex",r.role?r.tabIndex:null)("aria-label",r.ariaLabel),St("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[re([{provide:xd,useExisting:t}]),Y],ngContentSelectors:lS,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(bi(aS),Jt(0,"span",0),O(1,"span",1)(2,"span",2),te(3,b$,2,0,"span",3),O(4,"span",4),pt(5),Jt(6,"span",5),P()()(),te(7,w$,2,0,"span",6)),2&n&&(R(2),B("isInteractive",!1),R(1),B("ngIf",r.leadingIcon),R(4),B("ngIf",r._hasTrailingIcon()))},dependencies:[Zs,Vo],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),e})(),Mm=(()=>{var t;class e extends Bo{constructor(){super(...arguments),this._defaultOptions=E(Cd,{optional:!0}),this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._selectable=!0,this._selected=!1,this.basicChipAttrName="mat-basic-chip-option",this.selectionChange=new se}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(n){this._selectable=qe(n),this._changeDetectorRef.markForCheck()}get selected(){return this._selected}set selected(n){this._setSelectedState(qe(n),!1,!0)}get ariaSelected(){return this.selectable?this.selected.toString():null}ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(n=!1){return this._setSelectedState(!this.selected,n,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return!!this.leadingIcon||!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(n,r,o){n!==this.selected&&(this._selected=n,o&&this.selectionChange.emit({source:this,isUserInput:r,selected:this.selected}),this._changeDetectorRef.markForCheck())}}return(t=e).\u0275fac=function(){let i;return function(r){return(i||(i=Ve(t)))(r||t)}}(),t.\u0275cmp=Wt({type:t,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(n,r){2&n&&(Ci("id",r.id),Oe("tabindex",null)("aria-label",null)("aria-description",null)("role",r.role),St("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--filter",!r._isBasicChip)("mdc-evolution-chip--selectable",!r._isBasicChip)("mat-mdc-chip-selected",r.selected)("mat-mdc-chip-multiple",r._chipListMultiple)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-with-avatar",r.leadingIcon)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--selected",r.selected)("mdc-evolution-chip--selecting",!r._animationsDisabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-primary-graphic",r._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selectable:"selectable",selected:"selected"},outputs:{selectionChange:"selectionChange"},features:[re([{provide:Bo,useExisting:t},{provide:xd,useExisting:t}]),Y],ngContentSelectors:lS,decls:10,vars:9,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"tabIndex","_allowFocusWhenDisabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,r){1&n&&(bi(aS),Jt(0,"span",0),O(1,"span",1)(2,"button",2),te(3,C$,5,0,"span",3),O(4,"span",4),pt(5),Jt(6,"span",5),P()()(),te(7,x$,2,0,"span",6),O(8,"span",7),ae(9),P()),2&n&&(R(2),B("tabIndex",r.tabIndex)("_allowFocusWhenDisabled",!0),Oe("aria-selected",r.ariaSelected)("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),R(1),B("ngIf",r._hasLeadingGraphic()),R(4),B("ngIf",r._hasTrailingIcon()),R(1),B("id",r._ariaDescriptionId),R(1),po(r.ariaDescription))},dependencies:[Zs,Vo],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),e})();class j${constructor(e){}}const H$=Zp(j$);let Tm=(()=>{var t;class e extends H${get chipFocusChanges(){return this._getChipStream(n=>n._onFocus)}get chipDestroyedChanges(){return this._getChipStream(n=>n.destroyed)}get disabled(){return this._disabled}set disabled(n){this._disabled=qe(n),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(n){this._explicitRole=n}get focused(){return this._hasFocusedChip()}constructor(n,r,o){super(n),this._elementRef=n,this._changeDetectorRef=r,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new oe,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new _o}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(n=>n._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(n=>{n.disabled=this._disabled,n._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(n){this._originatesFromChip(n)&&this._keyManager.onKeydown(n)}_isValidIndex(n){return n>=0&&nthis.tabIndex=n)}}_getChipStream(n){return this._chips.changes.pipe(xo(null),zt(()=>qo(...this._chips.map(n))))}_originatesFromChip(n){let r=n.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-mdc-chip"))return!0;r=r.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(xo(this._chips)).subscribe(n=>{const r=[];n.forEach(o=>o._getActions().forEach(s=>r.push(s))),this._chipActions.reset(r),this._chipActions.notifyOnChanges()}),this._keyManager=new XH(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(n=>this._skipPredicate(n)),this.chipFocusChanges.pipe(Pe(this._destroyed)).subscribe(({chip:n})=>{const r=n._getSourceAction(document.activeElement);r&&this._keyManager.updateActiveItem(r)}),this._dir?.change.pipe(Pe(this._destroyed)).subscribe(n=>this._keyManager.withHorizontalOrientation(n))}_skipPredicate(n){return!n.isInteractive||n.disabled}_trackChipSetChanges(){this._chips.changes.pipe(xo(null),Pe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Pe(this._destroyed)).subscribe(n=>{const o=this._chips.toArray().indexOf(n.chip);this._isValidIndex(o)&&n.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const n=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),r=this._chips.toArray()[n];r.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():r.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return(t=e).\u0275fac=function(n){return new(n||t)(g(he),g(Fn),g(td,8))},t.\u0275cmp=Wt({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,r,o){if(1&n&&nn(o,Bo,5),2&n){let s;gt(s=_t())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,r){1&n&&Te("keydown",function(s){return r._handleKeydown(s)}),2&n&&Oe("role",r.role)},inputs:{disabled:"disabled",role:"role"},features:[Y],ngContentSelectors:Dm,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(bi(),O(0,"div",0),pt(1),P())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),e})();class U${constructor(e,i){this.source=e,this.value=i}}const $$={provide:wn,useExisting:_e(()=>Am),multi:!0};let Am=(()=>{var t;class e extends Tm{constructor(){super(...arguments),this._onTouched=()=>{},this._onChange=()=>{},this._defaultRole="listbox",this._defaultOptions=E(Cd,{optional:!0}),this._multiple=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.compareWith=(n,r)=>n===r,this._required=!1,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.change=new se,this._chips=void 0}get multiple(){return this._multiple}set multiple(n){this._multiple=qe(n),this._syncListboxProperties()}get selected(){const n=this._chips.toArray().filter(r=>r.selected);return this.multiple?n:n[0]}get selectable(){return this._selectable}set selectable(n){this._selectable=qe(n),this._syncListboxProperties()}get required(){return this._required}set required(n){this._required=qe(n)}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(n){this._hideSingleSelectionIndicator=qe(n),this._syncListboxProperties()}get chipSelectionChanges(){return this._getChipStream(n=>n.selectionChange)}get chipBlurChanges(){return this._getChipStream(n=>n._onBlur)}get value(){return this._value}set value(n){this.writeValue(n),this._value=n}ngAfterContentInit(){void 0!==this._pendingInitialValue&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe(xo(null),Pe(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe(Pe(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(Pe(this._destroyed)).subscribe(n=>{this.multiple||this._chips.forEach(r=>{r!==n.source&&r._setSelectedState(!1,!1,!1)}),n.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;const n=this._getFirstSelectedChip();n&&!n.disabled?n.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(n){this._chips?this._setSelectionByValue(n,!1):null!=n&&(this._pendingInitialValue=n)}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n}_setSelectionByValue(n,r=!0){this._clearSelection(),Array.isArray(n)?n.forEach(o=>this._selectValue(o,r)):this._selectValue(n,r)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(n){9===n.keyCode&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let n=null;n=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:void 0,this._value=n,this.change.emit(new U$(this,n)),this._onChange(n),this._changeDetectorRef.markForCheck()}_clearSelection(n){this._chips.forEach(r=>{r!==n&&r.deselect()})}_selectValue(n,r){const o=this._chips.find(s=>null!=s.value&&this.compareWith(s.value,n));return o&&(r?o.selectViaInteraction():o.select()),o}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(n=>{n._chipListMultiple=this.multiple,n.chipListSelectable=this._selectable,n._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,n._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(n){return!n.isInteractive}}return(t=e).\u0275fac=function(){let i;return function(r){return(i||(i=Ve(t)))(r||t)}}(),t.\u0275cmp=Wt({type:t,selectors:[["mat-chip-listbox"]],contentQueries:function(n,r,o){if(1&n&&nn(o,Mm,5),2&n){let s;gt(s=_t())&&(r._chips=s)}},hostAttrs:["ngSkipHydration","",1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(n,r){1&n&&Te("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(s){return r._keydown(s)}),2&n&&(Ci("tabIndex",r.empty?-1:r.tabIndex),Oe("role",r.role)("aria-describedby",r._ariaDescribedby||null)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-multiselectable",r.multiple)("aria-orientation",r.ariaOrientation),St("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-required",r.required))},inputs:{tabIndex:"tabIndex",multiple:"multiple",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",compareWith:"compareWith",required:"required",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",value:"value"},outputs:{change:"change"},features:[re([$$]),Y],ngContentSelectors:Dm,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,r){1&n&&(bi(),O(0,"div",0),pt(1),P())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),e})(),Z$=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[SE,{provide:Cd,useValue:{separatorKeyCodes:[13]}}],imports:[bn,Xs,xU,bn]}),e})();function hS(t,e,i,n){return ui(i)&&(n=i,i=void 0),n?hS(t,e,i).pipe(Z(r=>wr(r)?n(...r):n(r))):new be(r=>{fS(t,e,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,i)})}function fS(t,e,i,n,r){let o;if(function K$(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(e,i,r),o=()=>s.removeEventListener(e,i,r)}else if(function Q$(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(e,i),o=()=>s.off(e,i)}else if(function X$(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(e,i),o=()=>s.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s0?super.requestAsyncId(e,i,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,i,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,i,n);0===e.actions.length&&(cancelAnimationFrame(i),e.scheduled=void 0)}});let nz=1;const iz=Promise.resolve(),Ed={};function pS(t){return t in Ed&&(delete Ed[t],!0)}const mS={setImmediate(t){const e=nz++;return Ed[e]=!0,iz.then(()=>pS(e)&&t()),e},clearImmediate(t){pS(t)}};new class oz extends Bn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:i}=this;let n,r=-1,o=i.length;e=e||i.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r0?super.requestAsyncId(e,i,n):(e.actions.push(this),e.scheduled||(e.scheduled=mS.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,i,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,i,n);0===e.actions.length&&(mS.clearImmediate(i),e.scheduled=void 0)}});class lz{constructor(e){this.durationSelector=e}call(e,i){return i.subscribe(new cz(e,this.durationSelector))}}class cz extends zo{constructor(e,i){super(e),this.durationSelector=i,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:r}=this;i=r(e)}catch(r){return this.destination.error(r)}const n=Go(i,new $o(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:e,hasValue:i,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),i&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function gS(t){return!wr(t)&&t-parseFloat(t)+1>=0}function uz(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function _S(t,e=$p){return function az(t){return function(i){return i.lift(new lz(t))}}(()=>function dz(t=0,e,i){let n=-1;return gS(e)?n=Number(e)<1?1:Number(e):xr(e)&&(i=e),xr(i)||(i=$p),new be(r=>{const o=gS(t)?t:+t-i.now();return i.schedule(uz,o,{index:0,period:n,subscriber:r})})}(t,e))}let vS=(()=>{var t;class e{constructor(n,r,o){this._ngZone=n,this._platform=r,this._scrolled=new oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){const r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=20){return this._platform.isBrowser?new be(r=>{this._globalSubscription||this._addGlobalListener();const o=n>0?this._scrolled.pipe(_S(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):k()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){const o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(sn(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(n){const r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,n)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let o=Po(r),s=n.getElementRef().nativeElement;do{if(o==s)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>hS(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(q),b(Bt),b(X,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),yS=(()=>{var t;class e{constructor(n,r,o){this._platform=n,this._change=new oe,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(n.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){const n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const n=this._document,r=this._getWindow(),o=n.documentElement,s=o.getBoundingClientRect();return{top:-s.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,left:-s.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0}}change(n=20){return n>0?this._change.pipe(_S(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Bt),b(q),b(X,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),Ta=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})(),bS=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[ga,Ta,ga,Ta]}),e})();class Rm{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class wS extends Rm{constructor(e,i,n,r,o){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class pz extends Rm{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class mz extends Rm{constructor(e){super(),this.element=e instanceof he?e.nativeElement:e}}class gz{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof wS?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof pz?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof mz?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class _z extends gz{constructor(e,i,n,r,o){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(e){const n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||rt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);-1!==r&&i.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let CS=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})();const xS=uH();class vz{constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ue(-this._previousScrollPosition.left),e.style.top=Ue(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,n=e.style,r=this._document.body.style,o=n.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),xS&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),xS&&(n.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}}class yz{constructor(e,i,n,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0).pipe(sn(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class DS{enable(){}disable(){}attach(){}}function Om(t,e){return e.some(i=>t.bottomi.bottom||t.righti.right)}function ES(t,e){return e.some(i=>t.topi.bottom||t.lefti.right)}class bz{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();Om(i,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let wz=(()=>{var t;class e{constructor(n,r,o,s){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new DS,this.close=a=>new yz(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new vz(this._viewportRuler,this._document),this.reposition=a=>new bz(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}}return(t=e).\u0275fac=function(n){return new(n||t)(b(vS),b(yS),b(q),b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();class Cz{constructor(e){if(this.scrollStrategy=new DS,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const i=Object.keys(e);for(const n of i)void 0!==e[n]&&(this[n]=e[n])}}}class xz{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}}let SS=(()=>{var t;class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){const r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),0===this._attachedOverlays.length&&this.detach()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),Dz=(()=>{var t;class e extends SS{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=o=>{const s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){const l=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(n){super.add(n),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X),b(q,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),Ez=(()=>{var t;class e extends SS{constructor(n,r,o){super(n),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Ai(s)},this._clickListener=s=>{const a=Ai(s),l="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){const u=c[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(a)||u.overlayElement.contains(l))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(n){if(super.add(n),!this._isAttached){const r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X),b(Bt),b(q,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),IS=(()=>{var t;class e{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||Bp()){const o=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let s=0;sthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new oe,this._outsidePointerEvents=new oe,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(vn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof i?.onDestroy&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Ue(this._config.width),e.height=Ue(this._config.height),e.minWidth=Ue(this._config.minWidth),e.minHeight=Ue(this._config.minHeight),e.maxWidth=Ue(this._config.maxWidth),e.maxHeight=Ue(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,n){const r=Qc(i||[]).filter(o=>!!o);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Pe(qo(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const MS="cdk-overlay-connected-position-bounding-box",Iz=/([A-Za-z%]+)$/;class Mz{get positions(){return this._preferredPositions}constructor(e,i,n,r,o){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new oe,this._resizeSubscription=pe.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._validatePositions(),e.hostElement.classList.add(MS),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,i,a),d=this._getOverlayFit(c,i,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,n)?o.push({position:a,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(MS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,n){let r,o;if("center"==n.originX)r=e.left+e.width/2;else{const s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==n.originX?s:a}return i.left<0&&(r-=i.left),o="center"==n.originY?e.top+e.height/2:"top"==n.originY?e.top:e.bottom,i.top<0&&(o-=i.top),{x:r,y:o}}_getOverlayPoint(e,i,n){let r,o;return r="center"==n.overlayX?-i.width/2:"start"===n.overlayX?this._isRtl()?-i.width:0:this._isRtl()?0:-i.width,o="center"==n.overlayY?-i.height/2:"top"==n.overlayY?0:-i.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,i,n,r){const o=AS(i);let{x:s,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-n.height,p=this._subtractOverflows(o.width,0-s,s+o.width-n.width),m=this._subtractOverflows(o.height,h,f),y=p*m;return{visibleArea:y,isCompletelyWithinViewport:o.width*o.height===y,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,i,n){if(this._hasFlexibleDimensions){const r=n.bottom-i.y,o=n.right-i.x,s=TS(this._overlayRef.getConfig().minHeight),a=TS(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=s&&s<=r)&&(e.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(e,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=AS(i),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-n.top-e.y,0),c=Math.max(o.left-n.left-e.x,0);let d=0,u=0;return d=r.width<=o.width?c||-s:e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}if("end"===i.overlayX&&!r||"start"===i.overlayX&&r)h=n.width-e.x+this._viewportMargin,d=e.x-this._viewportMargin;else if("start"===i.overlayX&&!r||"end"===i.overlayX&&r)u=e.x,d=n.right-e.x;else{const f=Math.min(n.right-e.x+n.left,e.x),p=this._lastBoundingBoxSize.width;d=2*f,u=e.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-p/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(e,i){const n=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Ue(n.height),r.top=Ue(n.top),r.bottom=Ue(n.bottom),r.width=Ue(n.width),r.left=Ue(n.left),r.right=Ue(n.right),r.alignItems="center"===i.overlayX?"center":"end"===i.overlayX?"flex-end":"flex-start",r.justifyContent="center"===i.overlayY?"center":"bottom"===i.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Ue(o)),s&&(r.maxWidth=Ue(s))}this._lastBoundingBoxSize=n,mr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();mr(n,this._getExactOverlayY(i,e,d)),mr(n,this._getExactOverlayX(i,e,d))}else n.position="static";let a="",l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),s.maxHeight&&(r?n.maxHeight=Ue(s.maxHeight):o&&(n.maxHeight="")),s.maxWidth&&(r?n.maxWidth=Ue(s.maxWidth):o&&(n.maxWidth="")),mr(this._pane.style,n)}_getExactOverlayY(e,i,n){let r={top:"",bottom:""},o=this._getOverlayPoint(i,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Ue(o.y),r}_getExactOverlayX(e,i,n){let s,r={left:"",right:""},o=this._getOverlayPoint(i,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),s=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Ue(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ES(e,n),isOriginOutsideView:Om(e,n),isOverlayClipped:ES(i,n),isOverlayOutsideView:Om(i,n)}}_subtractOverflows(e,...i){return i.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return"x"===i?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Qc(e).forEach(i=>{""!==i&&-1===this._appliedPanelClasses.indexOf(i)&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof he)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const i=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+i,height:n,width:i}}}function mr(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function TS(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Iz);return i&&"px"!==i?null:parseFloat(e)}return t||null}function AS(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const RS="cdk-global-overlay-wrapper";class Tz{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(RS),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=n,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===d?(m="center",h?p=u:f=u):h?"left"===d||"end"===d?(m="flex-end",f=u):("right"===d||"start"===d)&&(m="flex-start",p=u):"left"===d||"start"===d?(m="flex-start",f=u):("right"===d||"end"===d)&&(m="flex-end",p=u),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,i.justifyContent=m,i.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(RS),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let Az=(()=>{var t;class e{constructor(n,r,o,s){this._viewportRuler=n,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new Tz}flexibleConnectedTo(n){return new Mz(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(yS),b(X),b(Bt),b(IS))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})(),Rz=0,Sd=(()=>{var t;class e{constructor(n,r,o,s,a,l,c,d,u,h,f,p){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=p}create(n){const r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new Cz(n);return a.direction=a.direction||this._directionality.value,new Sz(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(n){const r=this._document.createElement("div");return r.id="cdk-overlay-"+Rz++,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){const n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Di)),new _z(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(wz),b(IS),b(Ds),b(Az),b(Dz),b(rt),b(q),b(X),b(td),b(hc),b(Ez),b(Yn,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"}),e})();const Nz={provide:new C("cdk-connected-overlay-scroll-strategy"),deps:[Sd],useFactory:function kz(t){return()=>t.scrollStrategies.reposition()}};let Pz=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[Sd,Nz],imports:[ga,CS,bS,bS]}),e})();const Fz=["tooltip"],OS=new C("mat-tooltip-scroll-strategy"),Bz={provide:OS,deps:[Sd],useFactory:function Vz(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Hz=new C("mat-tooltip-default-options",{providedIn:"root",factory:function jz(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),kS="tooltip-panel",NS=ma({passive:!0});let Wz=(()=>{var t;class e{get position(){return this._position}set position(n){n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(n){this._positionAtOrigin=qe(n),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(n){this._disabled=qe(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(n){this._showDelay=zp(n)}get hideDelay(){return this._hideDelay}set hideDelay(n){this._hideDelay=zp(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(n){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(n,r,o,s,a,l,c,d,u,h,f,p){this._overlay=n,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=l,this._ariaDescriber=c,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new oe,this._scrollStrategy=u,this._document=p,f&&(this._showDelay=f.showDelay,this._hideDelay=f.hideDelay,f.position&&(this.position=f.position),f.positionAtOrigin&&(this.positionAtOrigin=f.positionAtOrigin),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Pe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Pe(this._destroyed)).subscribe(n=>{n?"keyboard"===n&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{n.removeEventListener(r,o,NS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}show(n=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const o=this._createOverlay(r);this._detach(),this._portal=this._portal||new wS(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(Pe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(n)}hide(n=this.hideDelay){const r=this._tooltipInstance;r&&(r.isVisible()?r.hide(n):(r._cancelPendingAnimations(),this._detach()))}toggle(n){this._isTooltipVisible()?this.hide():this.show(void 0,n)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(n){if(this._overlayRef){const s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!n)&&s._origin instanceof he)return this._overlayRef;this._detach()}const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&n||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(Pe(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${kS}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Pe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Pe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Pe(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!Xc(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(n){const r=n.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();r.withPositions([this._addOffset({...o.main,...s.main}),this._addOffset({...o.fallback,...s.fallback})])}_addOffset(n){return n}_getOrigin(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r||"below"==r?o={originX:"center",originY:"above"==r?"top":"bottom"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={originX:"start",originY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={originX:"end",originY:"center"});const{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){const n=!this._dir||"ltr"==this._dir.value,r=this.position;let o;"above"==r?o={overlayX:"center",overlayY:"bottom"}:"below"==r?o={overlayX:"center",overlayY:"top"}:"before"==r||"left"==r&&n||"right"==r&&!n?o={overlayX:"end",overlayY:"center"}:("after"==r||"right"==r&&n||"left"==r&&!n)&&(o={overlayX:"start",overlayY:"center"});const{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(vn(1),Pe(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}_invertPosition(n,r){return"above"===this.position||"below"===this.position?"top"===r?r="bottom":"bottom"===r&&(r="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:r}}_updateCurrentPositionClass(n){const{overlayY:r,originX:o,originY:s}=n;let a;if(a="center"===r?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===r&&"top"===s?"above":"below",a!==this._currentPosition){const l=this._overlayRef;if(l){const c=`${this._cssClassPrefix}-${kS}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",n=>{let r;this._setupPointerExitEventsIfNeeded(),void 0!==n.x&&void 0!==n.y&&(r=n),this.show(void 0,r)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",n=>{const r=n.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",r=>{const o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),this._passiveListeners.push(...n)}_addListeners(n){n.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,NS)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(n){if(this._isTooltipVisible()){const r=this._document.elementFromPoint(n.clientX,n.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){const n=this.touchGestures;if("off"!==n){const r=this._elementRef.nativeElement,o=r.style;("on"===n||"INPUT"!==r.nodeName&&"TEXTAREA"!==r.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===n||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return(t=e).\u0275fac=function(n){Ah()},t.\u0275dir=A({type:t,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e})(),Yz=(()=>{var t;class e extends Wz{constructor(n,r,o,s,a,l,c,d,u,h,f,p){super(n,r,o,s,a,l,c,d,u,h,f,p),this._tooltipComponent=Xz,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(n){const o=!this._dir||"ltr"==this._dir.value;return"top"===n.originY?n.offsetY=-8:"bottom"===n.originY?n.offsetY=8:"start"===n.originX?n.offsetX=o?-8:8:"end"===n.originX&&(n.offsetX=o?8:-8),n}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Sd),g(he),g(vS),g(tn),g(q),g(Bt),g(YH),g(Wp),g(OS),g(td,8),g(Hz,8),g(X))},t.\u0275dir=A({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,r){2&n&&St("mat-mdc-tooltip-disabled",r.disabled)},exportAs:["matTooltip"],features:[Y]}),e})(),Zz=(()=>{var t;class e{constructor(n,r){this._changeDetectorRef=n,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new oe,this._animationsDisabled="NoopAnimations"===r}show(n){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},n)}hide(n){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},n)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:n}){(!n||!this._triggerElement.contains(n))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:n}){(n===this._showAnimation||n===this._hideAnimation)&&this._finalizeAnimation(n===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(n){const r=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(r.classList.remove(n?s:o),r.classList.add(n?o:s),this._isVisible=n,n&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(r);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Fn),g(Yn,8))},t.\u0275dir=A({type:t}),e})(),Xz=(()=>{var t;class e extends Zz{constructor(n,r,o){super(n,o),this._elementRef=r,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const n=this._elementRef.nativeElement.getBoundingClientRect();return n.height>24&&n.width>=200}}return(t=e).\u0275fac=function(n){return new(n||t)(g(Fn),g(he),g(Yn,8))},t.\u0275cmp=Wt({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,r){if(1&n&&ic(Fz,7),2&n){let o;gt(o=_t())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,r){1&n&&Te("mouseleave",function(s){return r._handleMouseLeave(s)}),2&n&&st("zoom",r.isVisible()?1:null)},features:[Y],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,r){1&n&&(O(0,"div",0,1),Te("animationend",function(s){return r._handleAnimationEnd(s)}),O(2,"div",2),ae(3),P()()),2&n&&(St("mdc-tooltip--multiline",r._isMultiline),B("ngClass",r.tooltipClass),R(3),po(r.message))},dependencies:[yx],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),e})(),Qz=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:[Bz],imports:[aU,Xs,Pz,bn,bn,Ta]}),e})();function Kz(t,e){if(1&t&&(O(0,"a",10),Te("click",function(n){return n.stopPropagation()}),ae(1),P()),2&t){const i=ke().$implicit;Zh("href","https://store.steampowered.com/app/"+i.titleId,Zr),R(1),en(" ",i.game_name," ")}}function Jz(t,e){if(1&t&&(O(0,"div"),ae(1),P()),2&t){const i=ke().$implicit;R(1),en(" ",i.game_name," ")}}function e4(t,e){if(1&t){const i=function db(){return w()}();O(0,"mat-chip-option",11),Te("click",function(r){const s=function u_(t){return V.lFrame.contextLView=t,t[Fe]}(i).$implicit,a=ke().$implicit;return function h_(t){return V.lFrame.contextLView=null,t}(ke().onEngineClicked(r,a,s.key))}),ae(1),P()}if(2&t){const i=e.$implicit,n=ke().$implicit;B("selected",ke().titleEnginePicked[n.titleId]==i.key)("value",i.key),R(1),en(" ",i.key," ")}}function t4(t,e){1&t&&(O(0,"mat-icon",29),ae(1," sports_esports "),P()),2&t&&st("color","darkgray")}function n4(t,e){1&t&&(O(0,"mat-icon",30),ae(1," sports_esports "),P()),2&t&&st("color","red")}function r4(t,e){1&t&&(O(0,"mat-icon",31),ae(1," sports_esports "),P()),2&t&&st("color","green")}function o4(t,e){1&t&&(O(0,"mat-icon",32),ae(1," sports_esports "),P()),2&t&&st("color","yellow")}function s4(t,e){1&t&&(O(0,"mat-icon",33),ae(1," sports_esports "),P()),2&t&&st("color","yellow")}function a4(t,e){1&t&&(O(0,"mat-icon",34),ae(1," sports_esports "),P()),2&t&&st("color","yellow")}function l4(t,e){1&t&&(O(0,"mat-icon",35),ae(1," cloud_off "),P()),2&t&&st("color","darkgray")}function c4(t,e){1&t&&(O(0,"mat-icon",36),ae(1," cloud "),P()),2&t&&st("color","darkgray")}function d4(t,e){1&t&&(O(0,"mat-icon",37),ae(1," cloud "),P()),2&t&&st("color","green")}function u4(t,e){1&t&&(O(0,"mat-icon",38),ae(1," cloud "),P()),2&t&&st("color","yellow")}function h4(t,e){if(1&t&&(O(0,"div",9)(1,"div",25),ae(2,"Version"),P(),O(3,"div",26),ae(4),P()()),2&t){const i=ke(2).$implicit,n=ke();R(4),en(" ",i.engines[n.titleEnginePicked[i.titleId]].version," ")}}function f4(t,e){if(1&t&&(O(0,"div"),ae(1),P()),2&t){const i=ke().$implicit;R(1),en(" ",i.label," ")}}function p4(t,e){if(1&t&&(O(0,"div"),ae(1),P()),2&t){const i=ke().$implicit,n=ke(5);R(1),en(" ",n.NOTICE_MAP[i.value]," ")}}function m4(t,e){if(1&t&&(O(0,"div"),ae(1),P()),2&t){const i=ke().$implicit,n=ke(5);R(1),en(" ",n.NOTICE_MAP[i.key]," ")}}function g4(t,e){if(1&t&&(O(0,"li"),te(1,f4,2,1,"div",6),te(2,p4,2,1,"div",6),te(3,m4,2,1,"div",6),P()),2&t){const i=e.$implicit;R(1),B("ngIf",i.label),R(1),B("ngIf",i.value),R(1),B("ngIf",i.key&&!i.value&&!i.label)}}function _4(t,e){if(1&t&&(Kn(0),te(1,g4,4,3,"li",39),Jn()),2&t){const i=ke(3).$implicit,n=ke();R(1),B("ngForOf",i.engines[n.titleEnginePicked[i.titleId]].notices)}}function v4(t,e){if(1&t&&(Kn(0),O(1,"div",12)(2,"ul"),te(3,_4,2,1,"ng-container",6),P()(),Jn()),2&t){const i=ke(2).$implicit,n=ke();R(3),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].notices)}}function y4(t,e){if(1&t&&(Kn(0),O(1,"div",12)(2,"div",9)(3,"div",13)(4,"mat-icon",14),ae(5," install_desktop "),P(),O(6,"mat-icon",14),ae(7," desktop_windows "),P(),O(8,"mat-icon",14),ae(9," construction "),P(),te(10,t4,2,2,"mat-icon",15),te(11,n4,2,2,"mat-icon",16),te(12,r4,2,2,"mat-icon",17),te(13,o4,2,2,"mat-icon",18),te(14,s4,2,2,"mat-icon",19),te(15,a4,2,2,"mat-icon",20),te(16,l4,2,2,"mat-icon",21),te(17,c4,2,2,"mat-icon",22),te(18,d4,2,2,"mat-icon",23),te(19,u4,2,2,"mat-icon",24),P()(),O(20,"div",9)(21,"div",25),ae(22,"Engine"),P(),O(23,"div",26)(24,"a",27),ae(25),P()()(),O(26,"div",9)(27,"div",25),ae(28,"License"),P(),O(29,"div",26)(30,"a",27),ae(31),P()()(),te(32,h4,5,1,"div",28),O(33,"div",9)(34,"div",25),ae(35,"Contributor"),P(),O(36,"div",26)(37,"a",27),ae(38),P()()()(),te(39,v4,4,1,"ng-container",6),Jn()),2&t){const i=ke().$implicit,n=ke();R(4),st("color",i.engines[n.titleEnginePicked[i.titleId]].manualSteps?"yellow":"green"),B("matTooltip",i.engines[n.titleEnginePicked[i.titleId]].manualSteps?"Manual Steps Required":"Automatic Installation"),R(2),st("color",i.engines[n.titleEnginePicked[i.titleId]].steamOverlayDisabled?"red":"green"),B("matTooltip",i.engines[n.titleEnginePicked[i.titleId]].steamOverlayDisabled?"Steam Overlay Disabled":"Steam Overlay Enabled"),R(2),st("color",i.engines[n.titleEnginePicked[i.titleId]].inProgress?"yellow":"green"),B("matTooltip",i.engines[n.titleEnginePicked[i.titleId]].inProgress?"Engine May Have Missing Features":"Engine Considered Feature Complete"),R(2),B("ngIf",!(i.engines[n.titleEnginePicked[i.titleId]].controllerNotSupported||i.engines[n.titleEnginePicked[i.titleId]].controllerSupported||i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedSteamChanges||i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGame||i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGameAndSteam)),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerNotSupported),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupported&&i.controllerSteamDefault),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGame&&i.controllerSteamDefault),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupported&&!i.controllerSteamDefault),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].controllerSupportedManualGame&&!i.controllerSteamDefault),R(1),B("ngIf",i.cloudNotAvailable),R(1),B("ngIf",i.cloudAvailable&&!i.cloudSupported),R(1),B("ngIf",i.cloudAvailable&&i.cloudSupported),R(1),B("ngIf",i.cloudAvailable&&i.cloudIssue),R(5),B("href",i.engines[n.titleEnginePicked[i.titleId]].engine_link,Zr),R(1),po(n.titleEnginePicked[i.titleId]),R(5),B("href",i.engines[n.titleEnginePicked[i.titleId]].license_link,Zr),R(1),en(" ",i.engines[n.titleEnginePicked[i.titleId]].license," "),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].version),R(5),B("href",i.engines[n.titleEnginePicked[i.titleId]].author_link,Zr),R(1),en(" ",i.engines[n.titleEnginePicked[i.titleId]].author," "),R(1),B("ngIf",i.engines[n.titleEnginePicked[i.titleId]].notices||i.notices)}}function b4(t,e){if(1&t&&(O(0,"div",2)(1,"div",3)(2,"div",4),te(3,Kz,2,2,"a",5),te(4,Jz,2,1,"div",6),P(),O(5,"div",7)(6,"mat-chip-listbox"),te(7,e4,2,3,"mat-chip-option",8),function zw(t,e){const i=ee();let n;const r=t+K;i.firstCreatePass?(n=function GN(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];const o=n.factory||(n.factory=ji(n.type)),a=wt(g);try{const l=sl(!1),c=o();return sl(l),function SO(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,w(),r,c),c}finally{wt(a)}}(8,"keyvalue"),P()()(),O(9,"div",9),te(10,y4,40,27,"ng-container",6),P()()),2&t){const i=e.$implicit,n=ke();R(3),B("ngIf",!i.isDefault),R(1),B("ngIf",i.isDefault),R(3),B("ngForOf",Gw(8,4,i.engines)),R(3),B("ngIf",n.titleEnginePicked[i.titleId])}}const w4=[{path:"**",component:(()=>{var t;class e{constructor(){this.titles=[],this.titleEnginePicked={},this.NOTICE_MAP={},this.runControllerCheck=!0}ngOnInit(){var n=this;return function cH(t){return function(){var e=this,i=arguments;return new Promise(function(n,r){var o=t.apply(e,i);function s(l){rE(o,n,r,s,a,"next",l)}function a(l){rE(o,n,r,s,a,"throw",l)}s(void 0)})}}(function*(){const r=yield fetch("/packagessniper_v2.json");n.titles=yield r.json(),n.enginesToMap(),n.noticeTranslationToMap(),n.sortTitles()})()}noticeTranslationToMap(){for(let n of this.titles.notice_translation)this.NOTICE_MAP[n.key]=n.value}enginesToMap(){const n={};for(let r of this.titles.engines)n[r.engine_name]=r;this.titles.engines=n}processTitle(n){const r=n.app_id;if(n.engines={},n.cloudAvailable&&!n.cloudSupported&&!n.cloudIssues&&console.error(`title of ${n.game_name} has unknown cloud save feature state`),n.engine_name){const s=n.engine_name;this.titles.engines[s]?n.engines[s]=this.titles.engines[s]:console.error(`engineName of ${s} not found from title of ${r}`)}else if(n.engine_names)for(let s of n.engine_names)this.titles.engines[s]?n.engines[s]=this.titles.engines[s]:console.error(`engineName of ${s} not found from title of ${r}`);else if(n.choices)for(let s of n.choices){const a=s.name;this.titles.engines[a]?n.engines[a]=this.titles.engines[a]:s.engine_name&&this.titles.engines[s.engine_name]?n.engines[s.engine_name]=this.titles.engines[s.engine_name]:console.error(`engineName of ${a} not found from title of ${r}`)}else console.error(`missing information for ${r}`);const o=Object.keys(n.engines);o.sort(),this.titleEnginePicked[r]=o[0];for(let s in n.engines){const a=JSON.parse(JSON.stringify(n.engines[s]));if(n.notices){a.notices||(a.notices=[]);for(let l of n.notices)a.notices.push(l)}if(n.removeNotices){const l=[];for(let c of a.notices){let d=!0;for(let u of n.removeNotices)if(c.key===u){d=!1;break}d&&l.push(c)}a.notices=l}if(a.notices)for(let l of a.notices)"manual_steps"===l.key&&(a.manualSteps=!0),"steam_overlay_disabled"===l.key&&(a.steamOverlayDisabled=!0),"in_progress"===l.key&&(a.inProgress=!0);n.engines[s]=a}return n}sortTitles(){const n=[];let r=this.titles.default_engine;if(this.runControllerCheck)for(const o in this.titles.engines){const s=this.titles.engines[o];let a=!1;for(let l of Object.keys(s))if(-1!==l.indexOf("controller")){a=!0;break}a||console.error(`missing controller data for ${s.engine_name}`)}for(let o of this.titles.games)o.titleId=o.app_id,o=this.processTitle(o),n.push(o);n.sort(function(o,s){return o.game_names.game_name?1:0}),r&&(r.isDefault=!0,r.titleId="default",r.app_id="default",r=this.processTitle(r),n.unshift(r)),this.titles=n}onEngineClicked(n,r,o){this.titleEnginePicked[r.titleId]=o}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Wt({type:t,selectors:[["app-packages"]],decls:2,vars:1,consts:[[1,"container-fluid","page-wrapper"],["class","row game-row",4,"ngFor","ngForOf"],[1,"row","game-row"],[1,"row","header-wrapper"],[1,"col-sm-6","game-title"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],[1,"col-sm-6","game-choices"],[3,"selected","value","click",4,"ngFor","ngForOf"],[1,"row"],["target","_blank",3,"href","click"],[3,"selected","value","click"],[1,"col-12","col-md-6"],[1,"col-12","status-icons"],[3,"matTooltip"],["matTooltip","Unknown Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Does Not Have Native Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings",3,"color",4,"ngIf"],["matTooltip","Game Does Not Have Cloud Saves",3,"color",4,"ngIf"],["matTooltip","Game Has Cloud Saves But Unknown Status",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Supported",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Not Supported",3,"color",4,"ngIf"],[1,"col-5","col-md-4","col-lg-3"],[1,"col-7","col-md-8"],["target","_blank",3,"href"],["class","row",4,"ngIf"],["matTooltip","Unknown Controller Support"],["matTooltip","Engine Does Not Have Native Controller Support"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings"],["matTooltip","Game Does Not Have Cloud Saves"],["matTooltip","Game Has Cloud Saves But Unknown Status"],["matTooltip","Cloud Saves Supported"],["matTooltip","Cloud Saves Not Supported"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(O(0,"div",0),te(1,b4,11,6,"div",1),P()),2&n&&(R(1),B("ngForOf",r.titles))},dependencies:[wx,Zs,d3,Am,Mm,Yz,Sx],styles:[".packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.packages-wrapper[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}.mat-chip[_ngcontent-%COMP%]{cursor:pointer!important}.page-wrapper[_ngcontent-%COMP%]{padding-top:1rem;color:#fff;max-width:1200px}.header-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding-bottom:.5rem;margin-bottom:.5rem;padding-top:.5rem}.game-row[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 24px;margin-bottom:1rem;margin-left:15px;margin-right:15px;padding-bottom:.5rem}.game-title[_ngcontent-%COMP%], .engine-choices[_ngcontent-%COMP%]{align-self:center;margin-bottom:.5rem}div[_ngcontent-%COMP%]{word-break:break-word}.status-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.625rem}"]}),e})()}];let C4=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[nE.forRoot(w4),nE]}),e})(),x4=(()=>{var t;class e{constructor(){this.title="webui"}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Wt({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){1&n&&Jt(0,"router-outlet")},dependencies:[Ip]}),e})();function PS(t){return new v(3e3,!1)}function Pi(t){switch(t.length){case 0:return new Ma;case 1:return t[0];default:return new sS(t)}}function FS(t,e,i=new Map,n=new Map){const r=[],o=[];let s=-1,a=null;if(e.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let p=f,m=h;if("offset"!==f)switch(p=t.normalizePropertyName(p,r),m){case"!":m=i.get(f);break;case li:m=n.get(f);break;default:m=t.normalizeStyleValue(f,p,m,r)}u.set(p,m)}),d||o.push(u),a=u,s=c}),r.length)throw function q4(t){return new v(3502,!1)}();return o}function km(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Nm(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Nm(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Nm(i,"destroy",t)))}}function Nm(t,e,i){const o=Pm(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,i.totalTime??t.totalTime,!!i.disabled),s=t._data;return null!=s&&(o._data=s),o}function Pm(t,e,i,n,r="",o=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function jt(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function LS(t){const e=t.indexOf(":");return[t.substring(1,e),t.slice(e+1)]}const r8=(()=>typeof document>"u"?null:document.documentElement)();function Fm(t){const e=t.parentNode||t.host||null;return e===r8?null:e}let gr=null,VS=!1;function BS(t,e){for(;e;){if(e===t)return!0;e=Fm(e)}return!1}function jS(t,e,i){if(i)return Array.from(t.querySelectorAll(e));const n=t.querySelector(e);return n?[n]:[]}let HS=(()=>{var t;class e{validateStyleProperty(n){return function s8(t){gr||(gr=function a8(){return typeof document<"u"?document.body:null}()||{},VS=!!gr.style&&"WebkitAppearance"in gr.style);let e=!0;return gr.style&&!function o8(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in gr.style,!e&&VS&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in gr.style)),e}(n)}matchesElement(n,r){return!1}containsElement(n,r){return BS(n,r)}getParentElement(n){return Fm(n)}query(n,r,o){return jS(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,l=[],c){return new Ma(o,s)}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})(),Lm=(()=>{class e{}return e.NOOP=new HS,e})();const l8=1e3,Vm="ng-enter",Id="ng-leave",Md="ng-trigger",Td=".ng-trigger",$S="ng-animating",Bm=".ng-animating";function di(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:jm(parseFloat(e[1]),e[2])}function jm(t,e){return"s"===e?t*l8:t}function Ad(t,e,i){return t.hasOwnProperty("duration")?t:function d8(t,e,i){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(PS()),{duration:0,delay:0,easing:""};r=jm(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=jm(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!i){let a=!1,l=e.length;r<0&&(e.push(function D4(){return new v(3100,!1)}()),a=!0),o<0&&(e.push(function E4(){return new v(3101,!1)}()),a=!0),a&&e.splice(l,0,PS())}return{duration:r,delay:o,easing:s}}(t,e,i)}function Aa(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function zS(t){const e=new Map;return Object.keys(t).forEach(i=>{e.set(i,t[i])}),e}function Fi(t,e=new Map,i){if(i)for(let[n,r]of i)e.set(n,r);for(let[n,r]of t)e.set(n,r);return e}function jn(t,e,i){e.forEach((n,r)=>{const o=Um(r);i&&!i.has(r)&&i.set(r,t.style[o]),t.style[o]=n})}function _r(t,e){e.forEach((i,n)=>{const r=Um(n);t.style[r]=""})}function Ra(t){return Array.isArray(t)?1==t.length?t[0]:oS(t):t}const Hm=new RegExp("{{\\s*(.+?)\\s*}}","g");function qS(t){let e=[];if("string"==typeof t){let i;for(;i=Hm.exec(t);)e.push(i[1]);Hm.lastIndex=0}return e}function Oa(t,e,i){const n=t.toString(),r=n.replace(Hm,(o,s)=>{let a=e[s];return null==a&&(i.push(function I4(t){return new v(3003,!1)}()),a=""),a.toString()});return r==n?t:r}function Rd(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const f8=/-+([a-z0-9])/g;function Um(t){return t.replace(f8,(...e)=>e[1].toUpperCase())}function Ht(t,e,i){switch(e.type){case 7:return t.visitTrigger(e,i);case 0:return t.visitState(e,i);case 1:return t.visitTransition(e,i);case 2:return t.visitSequence(e,i);case 3:return t.visitGroup(e,i);case 4:return t.visitAnimate(e,i);case 5:return t.visitKeyframes(e,i);case 6:return t.visitStyle(e,i);case 8:return t.visitReference(e,i);case 9:return t.visitAnimateChild(e,i);case 10:return t.visitAnimateRef(e,i);case 11:return t.visitQuery(e,i);case 12:return t.visitStagger(e,i);default:throw function M4(t){return new v(3004,!1)}()}}function WS(t,e){return window.getComputedStyle(t)[e]}const Od="*";function g8(t,e){const i=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function _8(t,e,i){if(":"==t[0]){const l=function v8(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}(t,i);if("function"==typeof l)return void e.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(function H4(t){return new v(3015,!1)}()),e;const r=n[1],o=n[2],s=n[3];e.push(YS(r,s));"<"==o[0]&&!(r==Od&&s==Od)&&e.push(YS(s,r))}(n,i,e)):i.push(t),i}const kd=new Set(["true","1"]),Nd=new Set(["false","0"]);function YS(t,e){const i=kd.has(t)||Nd.has(t),n=kd.has(e)||Nd.has(e);return(r,o)=>{let s=t==Od||t==r,a=e==Od||e==o;return!s&&i&&"boolean"==typeof r&&(s=r?kd.has(t):Nd.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?kd.has(e):Nd.has(e)),s&&a}}const y8=new RegExp("s*:selfs*,?","g");function $m(t,e,i,n){return new b8(t).build(e,i,n)}class b8{constructor(e){this._driver=e}build(e,i,n){const r=new x8(i);return this._resetContextStyleTimingState(r),Ht(this,Ra(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0;const o=[],s=[];return"@"==e.name.charAt(0)&&i.errors.push(function A4(){return new v(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,i))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,i);n+=l.queryCount,r+=l.depCount,s.push(l)}else i.errors.push(function R4(){return new v(3007,!1)}())}),{type:7,name:e.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,i){const n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{qS(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Rd(o.values()),i.errors.push(function O4(t,e){return new v(3008,!1)}()))}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;const n=Ht(this,Ra(e.animation),i);return{type:1,matchers:g8(e.expr,i.errors),animation:n,queryCount:i.queryCount,depCount:i.depCount,options:vr(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(n=>Ht(this,n,i)),options:vr(e.options)}}visitGroup(e,i){const n=i.currentTime;let r=0;const o=e.steps.map(s=>{i.currentTime=n;const a=Ht(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:3,steps:o,options:vr(e.options)}}visitAnimate(e,i){const n=function E8(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return zm(Ad(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=zm(0,0,"");return o.dynamic=!0,o.strValue=i,o}const r=Ad(i,e);return zm(r.duration,r.delay,r.easing)}(e.timings,i.errors);i.currentAnimateTimings=n;let r,o=e.styles?e.styles:ln({});if(5==o.type)r=this.visitKeyframes(o,i);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};n.easing&&(c.easing=n.easing),s=ln(c)}i.currentTime+=n.duration+n.delay;const l=this.visitStyle(s,i);l.isEmptyStep=a,r=l}return i.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,i){const n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){const n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)"string"==typeof a?a===li?n.push(a):i.errors.push(new v(3002,!1)):n.push(zS(a));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,i){const n=i.currentAnimateTimings;let r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(i.errors.push(function N4(t,e,i,n,r){return new v(3010,!1)}()),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),i.options&&function h8(t,e,i){const n=e.params||{},r=qS(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(function S4(t){return new v(3001,!1)}())})}(a,i.options,i.errors)})})}visitKeyframes(e,i){const n={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function P4(){return new v(3011,!1)}()),n;let o=0;const s=[];let a=!1,l=!1,c=0;const d=e.steps.map(x=>{const _=this._makeStyleAst(x,i);let S=null!=_.offset?_.offset:function D8(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){const n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}(_.styles),M=0;return null!=S&&(o++,M=_.offset=S),l=l||M<0||M>1,a=a||M0&&o{const S=h>0?_==f?1:h*_:s[_],M=S*y;i.currentTime=p+m.delay+M,m.duration=M,this._validateStyleAst(x,i),x.offset=S,n.styles.push(x)}),n}visitReference(e,i){return{type:8,animation:Ht(this,Ra(e.animation),i),options:vr(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:vr(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:vr(e.options)}}visitQuery(e,i){const n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;const[o,s]=function w8(t){const e=!!t.split(/\s*,\s*/).find(i=>":self"==i);return e&&(t=t.replace(y8,"")),t=t.replace(/@\*/g,Td).replace(/@\w+/g,i=>Td+"-"+i.slice(1)).replace(/:animating/g,Bm),[t,e]}(e.selector);i.currentQuerySelector=n.length?n+" "+o:o,jt(i.collectedStyles,i.currentQuerySelector,new Map);const a=Ht(this,Ra(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:vr(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(function B4(){return new v(3013,!1)}());const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ad(e.timings,i.errors,!0);return{type:12,animation:Ht(this,Ra(e.animation),i),timings:n,options:null}}}class x8{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vr(t){return t?(t=Aa(t)).params&&(t.params=function C8(t){return t?Aa(t):null}(t.params)):t={},t}function zm(t,e,i){return{duration:t,delay:e,easing:i}}function Gm(t,e,i,n,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Pd{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const M8=new RegExp(":enter","g"),A8=new RegExp(":leave","g");function qm(t,e,i,n,r,o=new Map,s=new Map,a,l,c=[]){return(new R8).buildKeyframes(t,e,i,n,r,o,s,a,l,c)}class R8{buildKeyframes(e,i,n,r,o,s,a,l,c,d=[]){c=c||new Pd;const u=new Wm(e,i,c,r,o,d,[]);u.options=l;const h=l.delay?di(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),Ht(this,n,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const y=f[m];if(y.element===i){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Gm(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){const n=i.subInstructions.get(i.element);if(n){const r=i.createSubContext(e.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){const n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(const r of e){const o=r?.delay;if(o){const s="number"==typeof o?o:di(Oa(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let o=i.currentTimeline.currentTime;const s=null!=n.duration?di(n.duration):null,a=null!=n.delay?di(n.delay):null;return 0!==s&&e.forEach(l=>{const c=i.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,i){i.updateOptions(e.options,!0),Ht(this,e.animation,i),i.previousNode=e}visitSequence(e,i){const n=i.subContextCount;let r=i;const o=e.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Fd);const s=di(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ht(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){const n=[];let r=i.currentTimeline.currentTime;const o=e.options&&e.options.delay?di(e.options.delay):0;e.steps.forEach(s=>{const a=i.createSubContext(e.options);o&&a.delayNextStep(o),Ht(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){const n=e.strValue;return Ad(i.params?Oa(n,i.params,i.errors):n,i.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){const n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){const n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){const n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=e}visitQuery(e,i){const n=i.currentTimeline.currentTime,r=e.options||{},o=r.delay?di(r.delay):0;o&&(6===i.previousNode.type||0==n&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Fd);let s=n;const a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;const u=i.createSubContext(e.options,c);o&&u.delayNextStep(o),c===i.element&&(l=u.currentTimeline),Ht(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){const n=i.parentContext,r=i.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1);let l=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const d=i.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;Ht(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const Fd={};class Wm{constructor(e,i,n,r,o,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ld(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=di(n.duration)),null!=n.delay&&(r.delay=di(n.delay));const o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=Oa(o[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const i=this.options.params;if(i){const n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){const r=i||this.element,o=new Wm(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Fd,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){const r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new O8(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(M8,"."+this._enterClassName)).replace(A8,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&0==a.length&&s.push(function j4(t){return new v(3014,!1)}()),a}}class Ld{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,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(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(e){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new Ld(this._driver,e,i||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||li),this._currentKeyframe.set(i,li);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);const o=r&&r.params||{},s=function k8(t,e){const i=new Map;let n;return t.forEach(r=>{if("*"===r){n=n||e.keys();for(let o of n)i.set(o,li)}else Fi(r,i)}),i}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=Oa(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??li),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{const r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Fi(a,new Map,this._backFill);c.forEach((d,u)=>{"!"===d?e.add(u):d===li&&i.add(u)}),n||c.set("offset",l/this.duration),r.push(c)});const o=e.size?Rd(e.values()):[],s=i.size?Rd(i.values()):[];if(n){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Gm(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class O8 extends Ld{constructor(e,i,n,r,o,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){const o=[],s=n+i,a=i/s,l=Fi(e[0]);l.set("offset",0),o.push(l);const c=Fi(e[0]);c.set("offset",QS(a)),o.push(c);const d=e.length-1;for(let u=1;u<=d;u++){let h=Fi(e[u]);const f=h.get("offset");h.set("offset",QS((i+f*n)/s)),o.push(h)}n=s,i=0,r="",e=o}return Gm(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}function QS(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Ym{}const N8=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 P8 extends Ym{normalizePropertyName(e,i){return Um(e)}normalizeStyleValue(e,i,n,r){let o="";const s=n.toString().trim();if(N8.has(i)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function T4(t,e){return new v(3005,!1)}())}return s+o}}function KS(t,e,i,n,r,o,s,a,l,c,d,u,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Zm={};class JS{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return function F8(t,e,i,n,r){return t.some(o=>o(e,i,n,r))}(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return void 0!==e&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,o,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||Zm,p=this.buildStyles(n,a&&a.params||Zm,u),m=l&&l.params||Zm,y=this.buildStyles(r,m,u),x=new Set,_=new Map,S=new Map,M="void"===r,$={params:L8(m,h),delay:this.ast.options?.delay},ye=d?[]:qm(e,i,this.ast.animation,o,s,p,y,$,c,u);let me=0;if(ye.forEach(Tt=>{me=Math.max(Tt.duration+Tt.delay,me)}),u.length)return KS(i,this._triggerName,n,r,M,p,y,[],[],_,S,me,u);ye.forEach(Tt=>{const xn=Tt.element,Hd=jt(_,xn,new Set);Tt.preStyleProps.forEach(yr=>Hd.add(yr));const Na=jt(S,xn,new Set);Tt.postStyleProps.forEach(yr=>Na.add(yr)),xn!==i&&x.add(xn)});const et=Rd(x.values());return KS(i,this._triggerName,n,r,M,p,y,ye,et,_,S,me)}}function L8(t,e){const i=Aa(e);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(i[n]=t[n]);return i}class V8{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){const n=new Map,r=Aa(this.defaultParams);return Object.keys(e).forEach(o=>{const s=e[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Oa(s,r,i));const l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}}class j8{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{this.states.set(r.name,new V8(r.style,r.options&&r.options.params||{},n))}),eI(this.states,"true","1"),eI(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new JS(e,r,this.states))}),this.fallbackTransition=function H8(t,e,i){return new JS(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(s=>s.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}}function eI(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}const U8=new Pd;class $8{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){const n=[],o=$m(this._driver,i,n,[]);if(n.length)throw function W4(t){return new v(3503,!1)}();this._animations.set(e,o)}_buildPlayer(e,i,n){const r=e.element,o=FS(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){const r=[],o=this._animations.get(e);let s;const a=new Map;if(o?(s=qm(this._driver,i,o,Vm,Id,new Map,new Map,n,U8,r),s.forEach(d=>{const u=jt(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function Y4(){return new v(3300,!1)}()),s=[]),r.length)throw function Z4(t){return new v(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,li))})});const c=Pi(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);const n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){const i=this._playersById.get(e);if(!i)throw function X4(t){return new v(3301,!1)}();return i}listen(e,i,n,r){const o=Pm(i,"","","");return km(this._getPlayer(e),n,o,r),()=>{}}command(e,i,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,i,r[0]||{});const o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const tI="ng-animate-queued",Xm="ng-animate-disabled",Y8=[],nI={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Z8={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cn="__ng_removed";class Qm{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;const n=e&&e.hasOwnProperty("value");if(this.value=function J8(t){return t??null}(n?e.value:e),n){const o=Aa(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const i=e.params;if(i){const n=this.options.params;Object.keys(i).forEach(r=>{null==n[r]&&(n[r]=i[r])})}}}const ka="void",Km=new Qm(ka);class X8{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,cn(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw function Q4(t,e){return new v(3302,!1)}();if(null==n||0==n.length)throw function K4(t){return new v(3303,!1)}();if(!function e5(t){return"start"==t||"done"==t}(n))throw function J4(t,e){return new v(3400,!1)}();const o=jt(this._elementListeners,e,[]),s={name:i,phase:n,callback:r};o.push(s);const a=jt(this._engine.statesByElement,e,new Map);return a.has(i)||(cn(e,Md),cn(e,Md+"-"+i),a.set(i,Km)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return!this._triggers.has(e)&&(this._triggers.set(e,i),!0)}_getTrigger(e){const i=this._triggers.get(e);if(!i)throw function e8(t){return new v(3401,!1)}();return i}trigger(e,i,n,r=!0){const o=this._getTrigger(i),s=new Jm(this.id,i,e);let a=this._engine.statesByElement.get(e);a||(cn(e,Md),cn(e,Md+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i);const c=new Qm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Km),c.value!==ka&&l.value===c.value){if(!function r5(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let r=0;r{_r(e,y),jn(e,x)})}return}const h=jt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==i&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(cn(e,tI),s.onStart(()=>{jo(e,tI)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(e);if(y){let x=y.indexOf(s);x>=0&&y.splice(x,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){const n=this._engine.driver.query(e,Td,!0);n.forEach(r=>{if(r[Cn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){const o=this._engine.statesByElement.get(e),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(e,c,ka,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&Pi(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){const r=new Set;i.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Km,d=new Qm(ka),u=new Jm(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,i){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{const o=e[Cn];(!o||o===nI)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){cn(e,this._hostClassName)}drainQueuedTransitions(e){const i=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){const l=Pm(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,km(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{const o=n.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class Q8{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){const n=new X8(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){const l=r.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const i=new Set,n=this.statesByElement.get(e);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}return i}trigger(e,i,n,r){if(Vd(i)){const o=this._fetchNamespace(e);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!Vd(i))return;const o=i[Cn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),cn(e,Xm)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),jo(e,Xm))}removeNode(e,i,n){if(Vd(i)){const r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);const o=this.namespacesByHostElement.get(i);o&&o.id!==e&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,o){this.collectedLeaveElements.push(i),i[Cn]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,i,n,r,o){return Vd(i)?this._fetchNamespace(e).listen(i,n,r,o):()=>{}}_buildInstruction(e,i,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,o)}destroyInnerAnimations(e){let i=this.driver.query(e,Td,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(e,Bm,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){const i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){const i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Pi(this.players).onDone(()=>e());e()})}processLeaveNode(e){const i=e[Cn];if(i&&i.setForRemoval){if(e[Cn]=nI,i.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Xm)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],i.length?Pi(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw function t8(t){return new v(3402,!1)}()}_flushAnimations(e,i){const n=new Pd,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(T=>{d.add(T);const N=this.driver.query(T,".ng-animate-queued",!0);for(let F=0;F{const F=Vm+m++;p.set(N,F),T.forEach(ne=>cn(ne,F))});const y=[],x=new Set,_=new Set;for(let T=0;Tx.add(ne)):_.add(N))}const S=new Map,M=oI(h,Array.from(x));M.forEach((T,N)=>{const F=Id+m++;S.set(N,F),T.forEach(ne=>cn(ne,F))}),e.push(()=>{f.forEach((T,N)=>{const F=p.get(N);T.forEach(ne=>jo(ne,F))}),M.forEach((T,N)=>{const F=S.get(N);T.forEach(ne=>jo(ne,F))}),y.forEach(T=>{this.processLeaveNode(T)})});const $=[],ye=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(i).forEach(F=>{const ne=F.player,We=F.element;if($.push(ne),this.collectedEnterElements.length){const lt=We[Cn];if(lt&<.setForMove){if(lt.previousTriggersValues&<.previousTriggersValues.has(F.triggerName)){const br=lt.previousTriggersValues.get(F.triggerName),dn=this.statesByElement.get(F.element);if(dn&&dn.has(F.triggerName)){const Ud=dn.get(F.triggerName);Ud.value=br,dn.set(F.triggerName,Ud)}}return void ne.destroy()}}const Hn=!u||!this.driver.containsElement(u,We),Ut=S.get(We),Li=p.get(We),Ae=this._buildInstruction(F,n,Li,Ut,Hn);if(Ae.errors&&Ae.errors.length)return void ye.push(Ae);if(Hn)return ne.onStart(()=>_r(We,Ae.fromStyles)),ne.onDestroy(()=>jn(We,Ae.toStyles)),void r.push(ne);if(F.isFallbackTransition)return ne.onStart(()=>_r(We,Ae.fromStyles)),ne.onDestroy(()=>jn(We,Ae.toStyles)),void r.push(ne);const _I=[];Ae.timelines.forEach(lt=>{lt.stretchStartingKeyframe=!0,this.disabledNodes.has(lt.element)||_I.push(lt)}),Ae.timelines=_I,n.append(We,Ae.timelines),s.push({instruction:Ae,player:ne,element:We}),Ae.queriedElements.forEach(lt=>jt(a,lt,[]).push(ne)),Ae.preStyleProps.forEach((lt,br)=>{if(lt.size){let dn=l.get(br);dn||l.set(br,dn=new Set),lt.forEach((Ud,ng)=>dn.add(ng))}}),Ae.postStyleProps.forEach((lt,br)=>{let dn=c.get(br);dn||c.set(br,dn=new Set),lt.forEach((Ud,ng)=>dn.add(ng))})});if(ye.length){const T=[];ye.forEach(N=>{T.push(function n8(t,e){return new v(3505,!1)}())}),$.forEach(N=>N.destroy()),this.reportError(T)}const me=new Map,et=new Map;s.forEach(T=>{const N=T.element;n.has(N)&&(et.set(N,N),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,me))}),r.forEach(T=>{const N=T.element;this._getPreviousPlayers(N,!1,T.namespaceId,T.triggerName,null).forEach(ne=>{jt(me,N,[]).push(ne),ne.destroy()})});const Tt=y.filter(T=>aI(T,l,c)),xn=new Map;rI(xn,this.driver,_,c,li).forEach(T=>{aI(T,l,c)&&Tt.push(T)});const Na=new Map;f.forEach((T,N)=>{rI(Na,this.driver,new Set(T),l,"!")}),Tt.forEach(T=>{const N=xn.get(T),F=Na.get(T);xn.set(T,new Map([...N?.entries()??[],...F?.entries()??[]]))});const yr=[],mI=[],gI={};s.forEach(T=>{const{element:N,player:F,instruction:ne}=T;if(n.has(N)){if(d.has(N))return F.onDestroy(()=>jn(N,ne.toStyles)),F.disabled=!0,F.overrideTotalTime(ne.totalTime),void r.push(F);let We=gI;if(et.size>1){let Ut=N;const Li=[];for(;Ut=Ut.parentNode;){const Ae=et.get(Ut);if(Ae){We=Ae;break}Li.push(Ut)}Li.forEach(Ae=>et.set(Ae,We))}const Hn=this._buildAnimation(F.namespaceId,ne,me,o,Na,xn);if(F.setRealPlayer(Hn),We===gI)yr.push(F);else{const Ut=this.playersByElement.get(We);Ut&&Ut.length&&(F.parentPlayer=Pi(Ut)),r.push(F)}}else _r(N,ne.fromStyles),F.onDestroy(()=>jn(N,ne.toStyles)),mI.push(F),d.has(N)&&r.push(F)}),mI.forEach(T=>{const N=o.get(T.element);if(N&&N.length){const F=Pi(N);T.setRealPlayer(F)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!Hn.destroyed);We.length?t5(this,N,We):this.processLeaveNode(N)}return y.length=0,yr.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const N=this.players.indexOf(T);this.players.splice(N,1)}),T.play()}),yr}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,o){let s=[];if(i){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!o||o==ka;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){const o=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:i.triggerName;for(const l of i.timelines){const c=l.element,d=c!==o,u=jt(n,c,[]);this._getPreviousPlayers(c,d,s,a,i.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}_r(o,i.fromStyles)}_buildAnimation(e,i,n,r,o,s){const a=i.triggerName,l=i.element,c=[],d=new Set,u=new Set,h=i.timelines.map(p=>{const m=p.element;d.add(m);const y=m[Cn];if(y&&y.removedBeforeQueried)return new Ma(p.duration,p.delay);const x=m!==l,_=function n5(t){const e=[];return sI(t,e),e}((n.get(m)||Y8).map(me=>me.getRealPlayer())).filter(me=>!!me.element&&me.element===m),S=o.get(m),M=s.get(m),$=FS(this._normalizer,p.keyframes,S,M),ye=this._buildPlayer(p,$,_);if(p.subTimeline&&r&&u.add(m),x){const me=new Jm(e,a,m);me.setRealPlayer(ye),c.push(me)}return ye});c.forEach(p=>{jt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function K8(t,e,i){let n=t.get(e);if(n){if(n.length){const r=n.indexOf(i);n.splice(r,1)}0==n.length&&t.delete(e)}return n}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>cn(p,$S));const f=Pi(h);return f.onDestroy(()=>{d.forEach(p=>jo(p,$S)),jn(l,i.toStyles)}),u.forEach(p=>{jt(r,p,[]).push(f)}),f}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new Ma(e.duration,e.delay)}}class Jm{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new Ma,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>km(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){jt(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const i=this._player;i.triggerCallback&&i.triggerCallback(e)}}function Vd(t){return t&&1===t.nodeType}function iI(t,e){const i=t.style.display;return t.style.display=e??"none",i}function rI(t,e,i,n,r){const o=[];i.forEach(l=>o.push(iI(l)));const s=[];n.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=e.computeStyle(c,u,r);d.set(u,h),(!h||0==h.length)&&(c[Cn]=Z8,s.push(c))}),t.set(c,d)});let a=0;return i.forEach(l=>iI(l,o[a++])),s}function oI(t,e){const i=new Map;if(t.forEach(a=>i.set(a,[])),0==e.length)return i;const r=new Set(e),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=i.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&i.get(l).push(a)}),i}function cn(t,e){t.classList?.add(e)}function jo(t,e){t.classList?.remove(e)}function t5(t,e,i){Pi(i).onDone(()=>t.processLeaveNode(e))}function sI(t,e){for(let i=0;ir.add(o)):e.set(t,n),i.delete(t),!0}class Bd{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Q8(e,i,n),this._timelineEngine=new $8(e,i,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,i,n,r,o){const s=e+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],d=$m(this._driver,o,l,[]);if(l.length)throw function G4(t,e){return new v(3404,!1)}();a=function B8(t,e,i){return new j8(t,e,i)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if("@"==n.charAt(0)){const[o,s]=LS(n);this._timelineEngine.command(o,i,s,r)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,o){if("@"==n.charAt(0)){const[s,a]=LS(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(e,i,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}let s5=(()=>{class e{constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o,this._state=0;let s=e.initialStylesByElement.get(n);s||e.initialStylesByElement.set(n,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&jn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jn(this._element,this._initialStyles),this._endStyles&&(jn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(_r(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(_r(this._element,this._endStyles),this._endStyles=null),jn(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function eg(t){let e=null;return t.forEach((i,n)=>{(function a5(t){return"display"===t||"position"===t})(n)&&(e=e||new Map,e.set(n,i))}),e}class lI{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&e.set(r,this._finished?n:WS(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){const i="start"===e?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}}class l5{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return BS(e,i)}getParentElement(e){return Fm(e)}query(e,i,n){return jS(e,i,n)}computeStyle(e,i,n){return window.getComputedStyle(e)[i]}animate(e,i,n,r,o,s=[]){const l={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,d=s.filter(f=>f instanceof lI);(function p8(t,e){return 0===t||0===e})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let u=function u8(t){return t.length?t[0]instanceof Map?t:t.map(e=>zS(e)):[]}(i).map(f=>Fi(f));u=function m8(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,WS(t,a)))}}return e}(e,u,c);const h=function o5(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=eg(e[0]),e.length>1&&(n=eg(e[e.length-1]))):e instanceof Map&&(i=eg(e)),i||n?new s5(t,i,n):null}(e,u);return new lI(e,u,l,h)}}let c5=(()=>{var t;class e extends rS{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:qt.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(n)?oS(n):n;return cI(this._renderer,null,r,"register",[o]),new d5(r,this._renderer)}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Es),b(X))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class d5 extends u${constructor(e,i){super(),this._id=e,this._renderer=i}create(e,i){return new u5(this._id,e,i||{},this._renderer)}}class u5{constructor(e,i,n,r){this.id=e,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,i){return this._renderer.listen(this.element,`@@${this.id}:${e}`,i)}_command(e,...i){return cI(this._renderer,this.element,this.id,e,i)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function cI(t,e,i,n,r){return t.setProperty(e,`@@${i}:${n}`,r)}const dI="@.disabled";let h5=(()=>{var t;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=(s,a)=>{const l=a?.parentNode(s);l&&a.removeChild(l,s)}}createRenderer(n,r){const s=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(s);return u||(u=new uI("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const a=r.id,l=r.id+"-"+this._currentId;this._currentId++,this.engine.register(l,n);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(a,l,n,u.name,u)};return r.data.animation.forEach(c),new f5(this,l,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,o){n>=0&&nr(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[a,l]=s;a(l)}),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()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(Es),b(Bd),b(q))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();class uI{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){"@"==i.charAt(0)&&i==dI?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}}class f5 extends uI{constructor(e,i,n,r,o){super(i,n,r,o),this.factory=e,this.namespaceId=i}setProperty(e,i,n){"@"==i.charAt(0)?"."==i.charAt(1)&&i==dI?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if("@"==i.charAt(0)){const r=function p5(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let o=i.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function m5(t){const e=t.indexOf(".");return[t.substring(0,e),t.slice(e+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(e,i,n)}}let g5=(()=>{var t;class e extends Bd{constructor(n,r,o,s){super(n.body,r,o)}ngOnDestroy(){this.flush()}}return(t=e).\u0275fac=function(n){return new(n||t)(b(X),b(Lm),b(Ym),b(Di))},t.\u0275prov=D({token:t,factory:t.\u0275fac}),e})();const hI=[{provide:rS,useClass:c5},{provide:Ym,useFactory:function _5(){return new P8}},{provide:Bd,useClass:g5},{provide:Es,useFactory:function v5(t,e,i){return new h5(t,e,i)},deps:[lp,Bd,q]}],tg=[{provide:Lm,useFactory:()=>new l5},{provide:Yn,useValue:"BrowserAnimations"},...hI],fI=[{provide:Lm,useClass:HS},{provide:Yn,useValue:"NoopAnimations"},...hI];let y5=(()=>{var t;class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?fI:tg}}}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({providers:tg,imports:[qx]}),e})(),b5=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({}),e})(),w5=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[Xs,bn,b5,CS]}),e})(),x5=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t}),t.\u0275inj=Ee({imports:[Xs,bn,Ta,Ta,bn]}),e})(),D5=(()=>{var t;class e{}return(t=e).\u0275fac=function(n){return new(n||t)},t.\u0275mod=Se({type:t,bootstrap:[x4]}),t.\u0275inj=Ee({imports:[qx,C4,y5,w5,u3,Z$,x5,Qz]}),e})();oV().bootstrapModule(D5).catch(t=>console.error(t))}},ui=>{ui(ui.s=361)}]); \ No newline at end of file