text: "use strict";(self.webpackChunkFUEL=self.webpackChunkFUEL||[]).push([[179],{699:()=>{function he(n){return"function"==typeof n}function Cs(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Xo=Cs(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t});function hi(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class Ye{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(he(r))try{r()}catch(s){e=s instanceof Xo?s.errors:[s]}const{_teardowns:i}=this;if(i){this._teardowns=null;for(const s of i)try{fp(s)}catch(o){e=null!=e?e:[],o instanceof Xo?e=[...e,...o.errors]:e.push(o)}}if(e)throw new Xo(e)}}add(e){var t;if(e&&e!==this)if(this.closed)fp(e);else{if(e instanceof Ye){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&hi(t,e)}remove(e){const{_teardowns:t}=this;t&&hi(t,e),e instanceof Ye&&e._removeParent(this)}}Ye.EMPTY=(()=>{const n=new Ye;return n.closed=!0,n})();const dp=Ye.EMPTY;function hp(n){return n instanceof Ye||n&&"closed"in n&&he(n.remove)&&he(n.add)&&he(n.unsubscribe)}function fp(n){he(n)?n():n.unsubscribe()}const Rr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Jo={setTimeout(...n){const{delegate:e}=Jo;return((null==e?void 0:e.setTimeout)||setTimeout)(...n)},clearTimeout(n){const{delegate:e}=Jo;return((null==e?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function pp(n){Jo.setTimeout(()=>{const{onUnhandledError:e}=Rr;if(!e)throw n;e(n)})}function ws(){}const b0=bu("C",void 0,void 0);function bu(n,e,t){return{kind:n,value:e,error:t}}let Or=null;function ea(n){if(Rr.useDeprecatedSynchronousErrorHandling){const e=!Or;if(e&&(Or={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=Or;if(Or=null,t)throw r}}else n()}class Eu extends Ye{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,hp(e)&&e.add(this)):this.destination=w0}static create(e,t,r){return new Du(e,t,r)}next(e){this.isStopped?wu(function D0(n){return bu("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?wu(function E0(n){return bu("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?wu(b0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class Du extends Eu{constructor(e,t,r){let i;if(super(),he(e))i=e;else if(e){let s;({next:i,error:t,complete:r}=e),this&&Rr.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe()):s=e,i=null==i?void 0:i.bind(s),t=null==t?void 0:t.bind(s),r=null==r?void 0:r.bind(s)}this.destination={next:i?Cu(i):ws,error:Cu(null!=t?t:gp),complete:r?Cu(r):ws}}}function Cu(n,e){return(...t)=>{try{n(...t)}catch(r){Rr.useDeprecatedSynchronousErrorHandling?function C0(n){Rr.useDeprecatedSynchronousErrorHandling&&Or&&(Or.errorThrown=!0,Or.error=n)}(r):pp(r)}}}function gp(n){throw n}function wu(n,e){const{onStoppedNotification:t}=Rr;t&&Jo.setTimeout(()=>t(n,e))}const w0={closed:!0,next:ws,error:gp,complete:ws},Mu="function"==typeof Symbol&&Symbol.observable||"@@observable";function ir(n){return n}let be=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const s=function S0(n){return n&&n instanceof Eu||function M0(n){return n&&he(n.next)&&he(n.error)&&he(n.complete)}(n)&&hp(n)}(t)?t:new Du(t,r,i);return ea(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=_p(r))((i,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),null==o||o.unsubscribe()}},s,i)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Mu](){return this}pipe(...t){return function mp(n){return 0===n.length?ir:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=_p(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return n.create=e=>new n(e),n})();function _p(n){var e;return null!==(e=null!=n?n:Rr.Promise)&&void 0!==e?e:Promise}const T0=Cs(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ge=(()=>{class n extends be{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new yp(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new T0}next(t){ea(()=>{if(this._throwIfClosed(),!this.isStopped){const r=this.observers.slice();for(const i of r)i.next(t)}})}error(t){ea(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){ea(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:s}=this;return r||i?dp:(s.push(t),new Ye(()=>hi(s,t)))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new be;return t.source=this,t}}return n.create=(e,t)=>new yp(e,t),n})();class yp extends Ge{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:dp}}function vp(n){return he(null==n?void 0:n.lift)}function Ne(n){return e=>{if(vp(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}class Re extends Eu{constructor(e,t,r,i,s){super(e),this.onFinalize=s,this._next=t?function(o){try{t(o)}catch(a){e.error(a)}}:super._next,this._error=i?function(o){try{i(o)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(o){e.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}function Z(n,e){return Ne((t,r)=>{let i=0;t.subscribe(new Re(r,s=>{r.next(n.call(e,s,i++))}))})}function kr(n){return this instanceof kr?(this.v=n,this):new kr(n)}function x0(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(n,e||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(h){r[h]&&(i[h]=function(f){return new Promise(function(p,g){s.push([h,f,p,g])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof kr?Promise.resolve(h.value.v).then(u,c):d(s[0][2],h)}(r[h](f))}catch(p){d(s[0][3],p)}}function u(h){a("next",h)}function c(h){a("throw",h)}function d(h,f){h(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function F0(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function Dp(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=n[s]&&function(o){return new Promise(function(a,l){!function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}(a,l,(o=n[s](o)).done,o.value)})}}}const Cp=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function wp(n){return he(null==n?void 0:n.then)}function Mp(n){return he(n[Mu])}function Sp(n){return Symbol.asyncIterator&&he(null==n?void 0:n[Symbol.asyncIterator])}function Tp(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Ap=function O0(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ip(n){return he(null==n?void 0:n[Ap])}function xp(n){return x0(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield kr(t.read());if(i)return yield kr(void 0);yield yield kr(r)}}finally{t.releaseLock()}})}function Fp(n){return he(null==n?void 0:n.getReader)}function sn(n){if(n instanceof be)return n;if(null!=n){if(Mp(n))return function k0(n){return new be(e=>{const t=n[Mu]();if(he(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Cp(n))return function N0(n){return new be(e=>{for(let t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}(n);if(wp(n))return function P0(n){return new be(e=>{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,pp)})}(n);if(Sp(n))return Rp(n);if(Ip(n))return function L0(n){return new be(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(Fp(n))return function V0(n){return Rp(xp(n))}(n)}throw Tp(n)}function Rp(n){return new be(e=>{(function B0(n,e){var t,r,i,s;return function A0(n,e,t,r){return new(t||(t=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):function i(s){return s instanceof t?s:new t(function(o){o(s)})}(c.value).then(a,l)}u((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=F0(n);!(r=yield t.next()).done;)if(e.next(r.value),e.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Pn(n,e,t,r=0,i=!1){const s=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function qe(n,e,t=1/0){return he(e)?qe((r,i)=>Z((s,o)=>e(r,s,i,o))(sn(n(r,i))),t):("number"==typeof e&&(t=e),Ne((r,i)=>function j0(n,e,t,r,i,s,o,a){const l=[];let u=0,c=0,d=!1;const h=()=>{d&&!l.length&&!u&&e.complete()},f=g=>u<r?p(g):l.push(g),p=g=>{s&&e.next(g),u++;let y=!1;sn(t(g,c++)).subscribe(new Re(e,v=>{null==i||i(v),s?f(v):e.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&u<r;){const v=l.shift();o?Pn(e,o,()=>p(v)):p(v)}h()}catch(v){e.error(v)}}))};return n.subscribe(new Re(e,f,()=>{d=!0,h()})),()=>{null==a||a()}}(r,i,n,t)))}function Ms(n=1/0){return qe(ir,n)}const Ln=new be(n=>n.complete());function Tu(n){return n[n.length-1]}function Op(n){return he(Tu(n))?n.pop():void 0}function Ss(n){return function U0(n){return n&&he(n.schedule)}(Tu(n))?n.pop():void 0}function kp(n,e=0){return Ne((t,r)=>{t.subscribe(new Re(r,i=>Pn(r,n,()=>r.next(i),e),()=>Pn(r,n,()=>r.complete(),e),i=>Pn(r,n,()=>r.error(i),e)))})}function Np(n,e=0){return Ne((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function Pp(n,e){if(!n)throw new Error("Iterable cannot be null");return new be(t=>{Pn(t,e,()=>{const r=n[Symbol.asyncIterator]();Pn(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function We(n,e){return e?function Q0(n,e){if(null!=n){if(Mp(n))return function z0(n,e){return sn(n).pipe(Np(e),kp(e))}(n,e);if(Cp(n))return function q0(n,e){return new be(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(wp(n))return function G0(n,e){return sn(n).pipe(Np(e),kp(e))}(n,e);if(Sp(n))return Pp(n,e);if(Ip(n))return function W0(n,e){return new be(t=>{let r;return Pn(t,e,()=>{r=n[Ap](),Pn(t,e,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void t.error(o)}s?t.complete():t.next(i)},0,!0)}),()=>he(null==r?void 0:r.return)&&r.return()})}(n,e);if(Fp(n))return function K0(n,e){return Pp(xp(n),e)}(n,e)}throw Tp(n)}(n,e):sn(n)}function Ts(n){return n<=0?()=>Ln:Ne((e,t)=>{let r=0;e.subscribe(new Re(t,i=>{++r<=n&&(t.next(i),n<=r&&t.complete())}))})}function Lp(n={}){const{connector:e=(()=>new Ge),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return s=>{let o=null,a=null,l=null,u=0,c=!1,d=!1;const h=()=>{null==a||a.unsubscribe(),a=null},f=()=>{h(),o=l=null,c=d=!1},p=()=>{const g=o;f(),null==g||g.unsubscribe()};return Ne((g,y)=>{u++,!d&&!c&&h();const v=l=null!=l?l:e();y.add(()=>{u--,0===u&&!d&&!c&&(a=Au(p,i))}),v.subscribe(y),o||(o=new Du({next:_=>v.next(_),error:_=>{d=!0,h(),a=Au(f,t,_),v.error(_)},complete:()=>{c=!0,h(),a=Au(f,r),v.complete()}}),We(g).subscribe(o))})(s)}}function Au(n,e,...t){return!0===e?(n(),null):!1===e?null:e(...t).pipe(Ts(1)).subscribe(()=>n())}function ce(n){for(let e in n)if(n[e]===ce)return e;throw Error("Could not find renamed property on target object.")}function Iu(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ee(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ee).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function xu(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const Z0=ce({__forward_ref__:ce});function se(n){return n.__forward_ref__=se,n.toString=function(){return ee(this())},n}function z(n){return Vp(n)?n():n}function Vp(n){return"function"==typeof n&&n.hasOwnProperty(Z0)&&n.__forward_ref__===se}class it extends Error{constructor(e,t){super(function Fu(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function j(n){return"string"==typeof n?n:null==n?"":String(n)}function dt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():j(n)}function ta(n,e){const t=e?` in ${e}`:"";throw new it(-201,`No provider for ${dt(n)} found${t}`)}function Tt(n,e){null==n&&function _e(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function P(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ee(n){return{providers:n.providers||[],imports:n.imports||[]}}function Ru(n){return Bp(n,na)||Bp(n,Hp)}function Bp(n,e){return n.hasOwnProperty(e)?n[e]:null}function jp(n){return n&&(n.hasOwnProperty(Ou)||n.hasOwnProperty(iM))?n[Ou]:null}const na=ce({\u0275prov:ce}),Ou=ce({\u0275inj:ce}),Hp=ce({ngInjectableDef:ce}),iM=ce({ngInjectorDef:ce});var U=(()=>((U=U||{})[U.Default=0]="Default",U[U.Host=1]="Host",U[U.Self=2]="Self",U[U.SkipSelf=4]="SkipSelf",U[U.Optional=8]="Optional",U))();let ku;function sr(n){const e=ku;return ku=n,e}function Up(n,e,t){const r=Ru(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&U.Optional?null:void 0!==e?e:void ta(ee(n),"Injector")}function or(n){return{toString:n}.toString()}var on=(()=>((on=on||{})[on.OnPush=0]="OnPush",on[on.Default=1]="Default",on))(),an=(()=>{return(n=an||(an={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",an;var n})();const oM="undefined"!=typeof globalThis&&globalThis,aM="undefined"!=typeof window&&window,lM="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,le=oM||"undefined"!=typeof global&&global||aM||lM,fi={},de=[],ra=ce({\u0275cmp:ce}),Nu=ce({\u0275dir:ce}),Pu=ce({\u0275pipe:ce}),$p=ce({\u0275mod:ce}),Bn=ce({\u0275fac:ce}),As=ce({__NG_ELEMENT_ID__:ce});let uM=0;function vt(n){return or(()=>{const t={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===on.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||de,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||an.Emulated,id:"c",styles:n.styles||de,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,s=n.features,o=n.pipes;return r.id+=uM++,r.inputs=Wp(n.inputs,t),r.outputs=Wp(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(zp):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Gp):null,r})}function zp(n){return st(n)||function ar(n){return n[Nu]||null}(n)}function Gp(n){return function Nr(n){return n[Pu]||null}(n)}const qp={};function Me(n){return or(()=>{const e={type:n.type,bootstrap:n.bootstrap||de,declarations:n.declarations||de,imports:n.imports||de,exports:n.exports||de,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(qp[n.id]=n.type),e})}function Wp(n,e){if(null==n)return fi;const t={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),t[i]=r,e&&(e[i]=s)}return t}const I=vt;function st(n){return n[ra]||null}function $t(n,e){const t=n[$p]||null;if(!t&&!0===e)throw new Error(`Type ${ee(n)} does not have '\u0275mod' property.`);return t}const G=11;function bn(n){return Array.isArray(n)&&"object"==typeof n[1]}function un(n){return Array.isArray(n)&&!0===n[1]}function Bu(n){return 0!=(8&n.flags)}function aa(n){return 2==(2&n.flags)}function la(n){return 1==(1&n.flags)}function cn(n){return null!==n.template}function gM(n){return 0!=(512&n[2])}function Br(n,e){return n.hasOwnProperty(Bn)?n[Bn]:null}class yM{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Dt(){return Qp}function Qp(n){return n.type.prototype.ngOnChanges&&(n.setInput=bM),vM}function vM(){const n=Zp(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===fi)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function bM(n,e,t,r){const i=Zp(n)||function EM(n,e){return n[Yp]=e}(n,{previous:fi,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[t],l=o[a];s[a]=new yM(l&&l.currentValue,e,o===fi),n[r]=e}Dt.ngInherit=!0;const Yp="__ngSimpleChanges__";function Zp(n){return n[Yp]||null}let Uu;function Ie(n){return!!n.listen}const eg={createRenderer:(n,e)=>function $u(){return void 0!==Uu?Uu:"undefined"!=typeof document?document:void 0}()};function Pe(n){for(;Array.isArray(n);)n=n[0];return n}function ua(n,e){return Pe(e[n])}function qt(n,e){return Pe(e[n.index])}function zu(n,e){return n.data[e]}function It(n,e){const t=e[n];return bn(t)?t:t[0]}function tg(n){return 4==(4&n[2])}function Gu(n){return 128==(128&n[2])}function lr(n,e){return null==e?null:n[e]}function ng(n){n[18]=0}function qu(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const B={lFrame:cg(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function rg(){return B.bindingsEnabled}function b(){return B.lFrame.lView}function te(){return B.lFrame.tView}function ur(n){return B.lFrame.contextLView=n,n[8]}function je(){let n=ig();for(;null!==n&&64===n.type;)n=n.parent;return n}function ig(){return B.lFrame.currentTNode}function En(n,e){const t=B.lFrame;t.currentTNode=n,t.isParent=e}function Wu(){return B.lFrame.isParent}function Ku(){B.lFrame.isParent=!1}function ca(){return B.isInCheckNoChangesMode}function da(n){B.isInCheckNoChangesMode=n}function vi(){return B.lFrame.bindingIndex++}function Hn(n){const e=B.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function NM(n,e){const t=B.lFrame;t.bindingIndex=t.bindingRootIndex=n,Qu(e)}function Qu(n){B.lFrame.currentDirectiveIndex=n}function ag(){return B.lFrame.currentQueryIndex}function Zu(n){B.lFrame.currentQueryIndex=n}function LM(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function lg(n,e,t){if(t&U.SkipSelf){let i=e,s=n;for(;!(i=i.parent,null!==i||t&U.Host||(i=LM(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,n=s}const r=B.lFrame=ug();return r.currentTNode=e,r.lView=n,!0}function ha(n){const e=ug(),t=n[1];B.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function ug(){const n=B.lFrame,e=null===n?null:n.child;return null===e?cg(n):e}function cg(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function dg(){const n=B.lFrame;return B.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const hg=dg;function fa(){const n=dg();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ft(){return B.lFrame.selectedIndex}function cr(n){B.lFrame.selectedIndex=n}function xe(){const n=B.lFrame;return zu(n.tView,n.selectedIndex)}function pa(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t<r;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),u&&((n.viewHooks||(n.viewHooks=[])).push(t,u),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,u)),null!=c&&(n.destroyHooks||(n.destroyHooks=[])).push(t,c)}}function ga(n,e,t){fg(n,e,3,t)}function ma(n,e,t,r){(3&n[2])===t&&fg(n,e,t,r)}function Xu(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function fg(n,e,t,r){const s=null!=r?r:-1,o=e.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(qM(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function qM(n,e,t,r){const i=t[r]<0,s=t[r+1],a=n[i?-t[r]:t[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Os{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function _a(n,e,t){const r=Ie(n);let i=0;for(;i<t.length;){const s=t[i];if("number"==typeof s){if(0!==s)break;i++;const o=t[i++],a=t[i++],l=t[i++];r?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++i];ec(o)?r&&n.setProperty(e,o,a):r?n.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function pg(n){return 3===n||4===n||6===n}function ec(n){return 64===n.charCodeAt(0)}function ya(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?t=i:0===t||gg(n,t,i,null,-1===t||2===t?e[++r]:null)}}return n}function gg(n,e,t,r,i){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(n[s+1]=i));if(r===n[s+1])return void(n[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==r&&n.splice(s++,0,r),null!==i&&n.splice(s++,0,i)}function mg(n){return-1!==n}function bi(n){return 32767&n}function Ei(n,e){let t=function ZM(n){return n>>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let tc=!0;function va(n){const e=tc;return tc=n,e}let XM=0;function Ns(n,e){const t=rc(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,nc(r.data,n),nc(e,null),nc(r.blueprint,null));const i=ba(n,e),s=n.injectorIndex;if(mg(i)){const o=bi(i),a=Ei(i,e),l=a[1].data;for(let u=0;u<8;u++)e[s+u]=a[o+u]|l[o+u]}return e[s+8]=i,s}function nc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function rc(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function ba(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){const s=i[1],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Ea(n,e,t){!function JM(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(As)&&(r=t[As]),null==r&&(r=t[As]=XM++);const i=255&r;e.data[n+(i>>5)]|=1<<i}(n,e,t)}function vg(n,e,t){if(t&U.Optional)return n;ta(e,"NodeInjector")}function bg(n,e,t,r){if(t&U.Optional&&void 0===r&&(r=null),0==(t&(U.Self|U.Host))){const i=n[9],s=sr(void 0);try{return i?i.get(e,r,t&U.Optional):Up(e,r,t&U.Optional)}finally{sr(s)}}return vg(r,e,t)}function Eg(n,e,t,r=U.Default,i){if(null!==n){const s=function rS(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(As)?n[As]:void 0;return"number"==typeof e?e>=0?255&e:tS:e}(t);if("function"==typeof s){if(!lg(e,n,r))return r&U.Host?vg(i,t,r):bg(e,t,r,i);try{const o=s(r);if(null!=o||r&U.Optional)return o;ta(t)}finally{hg()}}else if("number"==typeof s){let o=null,a=rc(n,e),l=-1,u=r&U.Host?e[16][6]:null;for((-1===a||r&U.SkipSelf)&&(l=-1===a?ba(n,e):e[a+8],-1!==l&&wg(r,!1)?(o=e[1],a=bi(l),e=Ei(l,e)):a=-1);-1!==a;){const c=e[1];if(Cg(s,a,c.data)){const d=nS(a,e,t,o,r,u);if(d!==Dg)return d}l=e[a+8],-1!==l&&wg(r,e[1].data[a+8]===u)&&Cg(s,a,e)?(o=c,a=bi(l),e=Ei(l,e)):a=-1}}}return bg(e,t,r,i)}const Dg={};function tS(){return new Di(je(),b())}function nS(n,e,t,r,i,s){const o=e[1],a=o.data[n+8],c=Da(a,o,t,null==r?aa(a)&&tc:r!=o&&0!=(3&a.type),i&U.Host&&s===a);return null!==c?Ps(e,o,c,a):Dg}function Da(n,e,t,r,i){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,c=s>>20,h=i?a+c:n.directiveEnd;for(let f=r?a:a+c;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(i){const f=o[l];if(f&&cn(f)&&f.type===t)return l}return null}function Ps(n,e,t,r){let i=n[t];const s=e.data;if(function WM(n){return n instanceof Os}(i)){const o=i;o.resolving&&function X0(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new it(-200,`Circular dependency in DI detected for ${n}${t}`)}(dt(s[t]));const a=va(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?sr(o.injectImpl):null;lg(n,r,U.Default);try{i=n[t]=o.factory(void 0,s,n,r),e.firstCreatePass&&t>=r.directiveStart&&function GM(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const o=Qp(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,i),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&sr(l),va(a),o.resolving=!1,hg()}}return i}function Cg(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function wg(n,e){return!(n&U.Self||n&U.Host&&e)}class Di{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,r){return Eg(this._tNode,this._lView,e,r,t)}}function He(n){return or(()=>{const e=n.prototype.constructor,t=e[Bn]||ic(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const s=i[Bn]||ic(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function ic(n){return Vp(n)?()=>{const e=ic(z(n));return e&&e()}:Br(n)}function hr(n){return function eS(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const r=t.length;let i=0;for(;i<r;){const s=t[i];if(pg(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(s===e)return t[i+1];i+=2}}}return null}(je(),n)}const wi="__parameters__";function Si(n,e,t){return or(()=>{const r=function sc(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}(e);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,u,c){const d=l.hasOwnProperty(wi)?l[wi]:Object.defineProperty(l,wi,{value:[]})[wi];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(o),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class x{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const sS=new x("AnalyzeForEntryComponents");function Wt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let r=n[t];Array.isArray(r)?(e===n&&(e=n.slice(0,t)),Wt(r,e)):e!==n&&e.push(r)}return e}function Dn(n,e){n.forEach(t=>Array.isArray(t)?Dn(t,e):e(t))}function Sg(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Ca(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Bs(n,e){const t=[];for(let r=0;r<n;r++)t.push(e);return t}function xt(n,e,t){let r=Ti(n,e);return r>=0?n[1|r]=t:(r=~r,function lS(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function ac(n,e){const t=Ti(n,e);if(t>=0)return n[1|t]}function Ti(n,e){return function Ig(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const s=r+(i-r>>1),o=n[s<<t];if(e===o)return s<<t;o>e?i=s:r=s+1}return~(i<<t)}(n,e,1)}const js={},uc="__NG_DI_FLAG__",Ma="ngTempTokenPath",gS=/\n/gm,Fg="__source",_S=ce({provide:String,useValue:ce});let Hs;function Rg(n){const e=Hs;return Hs=n,e}function yS(n,e=U.Default){if(void 0===Hs)throw new Error("inject() must be called from an injection context");return null===Hs?Up(n,void 0,e):Hs.get(n,e&U.Optional?null:void 0,e)}function D(n,e=U.Default){return(function sM(){return ku}()||yS)(z(n),e)}const cc=D;function dc(n){const e=[];for(let t=0;t<n.length;t++){const r=z(n[t]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let i,s=U.Default;for(let o=0;o<r.length;o++){const a=r[o],l=vS(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}e.push(D(i,s))}else e.push(D(r))}return e}function Us(n,e){return n[uc]=e,n.prototype[uc]=e,n}function vS(n){return n[uc]}const $s=Us(Si("Inject",n=>({token:n})),-1),Ct=Us(Si("Optional"),8),fr=Us(Si("SkipSelf"),4);let Ta;function Ii(n){var e;return(null===(e=function fc(){if(void 0===Ta&&(Ta=null,le.trustedTypes))try{Ta=le.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ta}())||void 0===e?void 0:e.createHTML(n))||n}class jr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class RS extends jr{getTypeName(){return"HTML"}}class OS extends jr{getTypeName(){return"Style"}}class kS extends jr{getTypeName(){return"Script"}}class NS extends jr{getTypeName(){return"URL"}}class PS extends jr{getTypeName(){return"ResourceURL"}}function Ft(n){return n instanceof jr?n.changingThisBreaksApplicationSecurity:n}function Cn(n,e){const t=Hg(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function Hg(n){return n instanceof jr&&n.getTypeName()||null}class US{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Ii(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class $S{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const r=this.inertDocument.createElement("body");t.appendChild(r)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ii(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=Ii(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const o=t.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let r=e.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const GS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,qS=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Gs(n){return(n=String(n)).match(GS)||n.match(qS)?n:"unsafe:"+n}function wn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function qs(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const zg=wn("area,br,col,hr,img,wbr"),Gg=wn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qg=wn("rp,rt"),gc=qs(zg,qs(Gg,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")),qs(qg,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")),qs(qg,Gg)),mc=wn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_c=wn("srcset"),Wg=qs(mc,_c,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,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")),WS=wn("script,style,template");class KS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!gc.hasOwnProperty(t))return this.sanitizedSomething=!0,!WS.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!Wg.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;mc[a]&&(l=Gs(l)),_c[a]&&(n=l,l=(n=String(n)).split(",").map(e=>Gs(e.trim())).join(", ")),this.buf.push(" ",o,'="',Kg(l),'"')}var n;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();gc.hasOwnProperty(t)&&!zg.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Kg(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&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 t}}const QS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,YS=/([^\#-~ |!])/g;function Kg(n){return n.replace(/&/g,"&amp;").replace(QS,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(YS,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ia;function Qg(n,e){let t=null;try{Ia=Ia||function Ug(n){const e=new $S(n);return function zS(){try{return!!(new window.DOMParser).parseFromString(Ii(""),"text/html")}catch(n){return!1}}()?new US(e):e}(n);let r=e?String(e):"";t=Ia.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=t.innerHTML,t=Ia.getInertBodyElement(r)}while(r!==s);return Ii((new KS).sanitizeChildren(yc(t)||t))}finally{if(t){const r=yc(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function yc(n){return"content"in n&&function ZS(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ie=(()=>((ie=ie||{})[ie.NONE=0]="NONE",ie[ie.HTML=1]="HTML",ie[ie.STYLE=2]="STYLE",ie[ie.SCRIPT=3]="SCRIPT",ie[ie.URL=4]="URL",ie[ie.RESOURCE_URL=5]="RESOURCE_URL",ie))();const Xg="__ngContext__";function at(n,e){n[Xg]=e}function Ec(n){const e=function Ks(n){return n[Xg]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Cc(n){return n.ngOriginalError}function pT(n,...e){n.error(...e)}class Un{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),r=function fT(n){return n&&n.ngErrorLogger||pT}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Cc(e);for(;t&&Cc(t);)t=Cc(t);return t||null}}const rm=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(le))();function Mn(n){return n instanceof Function?n():n}var Rt=(()=>((Rt=Rt||{})[Rt.Important=1]="Important",Rt[Rt.DashCase=2]="DashCase",Rt))();function Mc(n,e){return undefined(n,e)}function Qs(n){const e=n[3];return un(e)?e[3]:e}function Sc(n){return lm(n[13])}function Tc(n){return lm(n[4])}function lm(n){for(;null!==n&&!un(n);)n=n[4];return n}function Fi(n,e,t,r,i){if(null!=r){let s,o=!1;un(r)?s=r:bn(r)&&(o=!0,r=r[0]);const a=Pe(r);0===n&&null!==t?null==i?pm(e,t,a):Hr(e,t,a,i||null,!0):1===n&&null!==t?Hr(e,t,a,i||null,!0):2===n?function Em(n,e,t){const r=xa(n,e);r&&function LT(n,e,t,r){Ie(n)?n.removeChild(e,t,r):e.removeChild(t)}(n,r,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function jT(n,e,t,r,i){const s=t[7];s!==Pe(t)&&Fi(e,n,r,s,i);for(let a=10;a<t.length;a++){const l=t[a];Ys(l[1],l,n,e,r,s)}}(e,n,s,t,i)}}function Ic(n,e,t){return Ie(n)?n.createElement(e,t):null===t?n.createElement(e):n.createElementNS(t,e)}function cm(n,e){const t=n[9],r=t.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,qu(i,-1)),t.splice(r,1)}function xc(n,e){if(n.length<=10)return;const t=10+e,r=n[t];if(r){const i=r[17];null!==i&&i!==n&&cm(i,r),e>0&&(n[t-1][4]=r[4]);const s=Ca(n,10+e);!function IT(n,e){Ys(n,e,e[G],2,null,null),e[0]=null,e[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function dm(n,e){if(!(256&e[2])){const t=e[G];Ie(t)&&t.destroyNode&&Ys(n,e,t,3,null,null),function RT(n){let e=n[13];if(!e)return Fc(n[1],n);for(;e;){let t=null;if(bn(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)bn(e)&&Fc(e[1],e),e=e[3];null===e&&(e=n),bn(e)&&Fc(e[1],e),t=e&&e[4]}e=t}}(e)}}function Fc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function PT(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r<t.length;r+=2){const i=e[t[r]];if(!(i instanceof Os)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(i)}finally{}}}}(n,e),function NT(n,e){const t=n.cleanup,r=e[7];let i=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Pe(e[o]),l=r[i=t[s+2]],u=t[s+3];"boolean"==typeof u?a.removeEventListener(t[s],l,u):u>=0?r[i=u]():r[i=-u].unsubscribe(),s+=2}else{const o=r[i=t[s+1]];t[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();e[7]=null}}(n,e),1===e[1].type&&Ie(e[G])&&e[G].destroy();const t=e[17];if(null!==t&&un(e[3])){t!==e[3]&&cm(t,e);const r=e[19];null!==r&&r.detachView(n)}}}function hm(n,e,t){return function fm(n,e,t){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return t[0];if(2&r.flags){const i=n.data[r.directiveStart].encapsulation;if(i===an.None||i===an.Emulated)return null}return qt(r,t)}(n,e.parent,t)}function Hr(n,e,t,r,i){Ie(n)?n.insertBefore(e,t,r,i):e.insertBefore(t,r,i)}function pm(n,e,t){Ie(n)?n.appendChild(e,t):e.appendChild(t)}function gm(n,e,t,r,i){null!==r?Hr(n,e,t,r,i):pm(n,e,t)}function xa(n,e){return Ie(n)?n.parentNode(e):e.parentNode}function mm(n,e,t){return ym(n,e,t)}let ym=function _m(n,e,t){return 40&n.type?qt(n,t):null};function Fa(n,e,t,r){const i=hm(n,r,e),s=e[G],a=mm(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(t))for(let l=0;l<t.length;l++)gm(s,i,t[l],a,!1);else gm(s,i,t,a,!1)}function Ra(n,e){if(null!==e){const t=e.type;if(3&t)return qt(e,n);if(4&t)return Oc(-1,n[e.index]);if(8&t){const r=e.child;if(null!==r)return Ra(n,r);{const i=n[e.index];return un(i)?Oc(-1,i):Pe(i)}}if(32&t)return Mc(e,n)()||Pe(n[e.index]);{const r=bm(n,e);return null!==r?Array.isArray(r)?r[0]:Ra(Qs(n[16]),r):Ra(n,e.next)}}return null}function bm(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Oc(n,e){const t=10+n+1;if(t<e.length){const r=e[t],i=r[1].firstChild;if(null!==i)return Ra(r,i)}return e[7]}function kc(n,e,t,r,i,s,o){for(;null!=t;){const a=r[t.index],l=t.type;if(o&&0===e&&(a&&at(Pe(a),r),t.flags|=4),64!=(64&t.flags))if(8&l)kc(n,e,t.child,r,i,s,!1),Fi(e,n,i,a,s);else if(32&l){const u=Mc(t,r);let c;for(;c=u();)Fi(e,n,i,c,s);Fi(e,n,i,a,s)}else 16&l?Dm(n,e,r,t,i,s):Fi(e,n,i,a,s);t=o?t.projectionNext:t.next}}function Ys(n,e,t,r,i,s){kc(t,r,n.firstChild,e,i,s,!1)}function Dm(n,e,t,r,i,s){const o=t[16],l=o[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)Fi(e,n,i,l[u],s);else kc(n,e,l,o[3],i,s,!0)}function Cm(n,e,t){Ie(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Nc(n,e,t){Ie(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function wm(n,e,t){let r=n.length;for(;;){const i=n.indexOf(e,t);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const s=e.length;if(i+s===r||n.charCodeAt(i+s)<=32)return i}t=i+1}}const Mm="ng-template";function UT(n,e,t){let r=0;for(;r<n.length;){let i=n[r++];if(t&&"class"===i){if(i=n[r],-1!==wm(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function Sm(n){return 4===n.type&&n.value!==Mm}function $T(n,e,t){return e===(4!==n.type||t?n.value:Mm)}function zT(n,e,t){let r=4;const i=n.attrs||[],s=function WT(n){for(let e=0;e<n.length;e++)if(pg(n[e]))return e;return n.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!$T(n,l,t)||""===l&&1===e.length){if(dn(r))return!1;o=!0}}else{const u=8&r?l:e[++a];if(8&r&&null!==n.attrs){if(!UT(n.attrs,u,t)){if(dn(r))return!1;o=!0}continue}const d=GT(8&r?"class":l,i,Sm(n),t);if(-1===d){if(dn(r))return!1;o=!0;continue}if(""!==u){let h;h=d>s?"":i[d+1].toLowerCase();const f=8&r?h:null;if(f&&-1!==wm(f,u,0)||2&r&&u!==h){if(dn(r))return!1;o=!0}}}}else{if(!o&&!dn(r)&&!dn(l))return!1;if(o&&dn(l))continue;o=!1,r=l|1&r}}return dn(r)||o}function dn(n){return 0==(1&n)}function GT(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let s=!1;for(;i<e.length;){const o=e[i];if(o===n)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++i];for(;"string"==typeof a;)a=e[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function KT(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const r=n[t];if("number"==typeof r)return-1;if(r===e)return t;t++}return-1}(e,n)}function Tm(n,e,t=!1){for(let r=0;r<e.length;r++)if(zT(n,e[r],t))return!0;return!1}function QT(n,e){e:for(let t=0;t<e.length;t++){const r=e[t];if(n.length===r.length){for(let i=0;i<n.length;i++)if(n[i]!==r[i])continue e;return!0}}return!1}function Am(n,e){return n?":not("+e.trim()+")":e}function YT(n){let e=n[0],t=1,r=2,i="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&r){const a=n[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!dn(o)&&(e+=Am(s,i),i=""),r=o,s=s||!dn(r);t++}return""!==i&&(e+=Am(s,i)),e}const H={};function F(n){Im(te(),b(),ft()+n,ca())}function Im(n,e,t,r){if(!r)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&ga(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ma(e,s,0,t)}cr(t)}function Oa(n,e){return n<<17|e<<2}function hn(n){return n>>17&32767}function Pc(n){return 2|n}function $n(n){return(131068&n)>>2}function Lc(n,e){return-131069&n|e<<2}function Vc(n){return 1|n}function jm(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r<t.length;r+=2){const i=t[r],s=t[r+1];if(-1!==s){const o=n.data[s];Zu(i),o.contentQueries(2,e[s],s)}}}function Zs(n,e,t,r,i,s,o,a,l,u){const c=e.blueprint.slice();return c[0]=i,c[2]=140|r,ng(c),c[3]=c[15]=n,c[8]=t,c[10]=o||n&&n[10],c[G]=a||n&&n[G],c[12]=l||n&&n[12]||null,c[9]=u||n&&n[9]||null,c[6]=s,c[16]=2==e.type?n[16]:c,c}function Ri(n,e,t,r,i){let s=n.data[e];if(null===s)s=function Wc(n,e,t,r,i){const s=ig(),o=Wu(),l=n.data[e]=function pA(n,e,t,r,i,s){return{type:t,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,r,i);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,r,i),function kM(){return B.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function Rs(){const n=B.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return En(s,!0),s}function Oi(n,e,t,r){if(0===t)return-1;const i=e.length;for(let s=0;s<t;s++)e.push(r),n.blueprint.push(r),n.data.push(null);return i}function Xs(n,e,t){ha(e);try{const r=n.viewQuery;null!==r&&nd(1,r,t);const i=n.template;null!==i&&Hm(n,e,i,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&jm(n,e),n.staticViewQueries&&nd(2,n.viewQuery,t);const s=n.components;null!==s&&function dA(n,e){for(let t=0;t<e.length;t++)RA(n,e[t])}(e,s)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{e[2]&=-5,fa()}}function ki(n,e,t,r){const i=e[2];if(256==(256&i))return;ha(e);const s=ca();try{ng(e),function sg(n){return B.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Hm(n,e,t,2,r);const o=3==(3&i);if(!s)if(o){const u=n.preOrderCheckHooks;null!==u&&ga(e,u,null)}else{const u=n.preOrderHooks;null!==u&&ma(e,u,0,null),Xu(e,0)}if(function xA(n){for(let e=Sc(n);null!==e;e=Tc(e)){if(!e[2])continue;const t=e[9];for(let r=0;r<t.length;r++){const i=t[r],s=i[3];0==(1024&i[2])&&qu(s,1),i[2]|=1024}}}(e),function IA(n){for(let e=Sc(n);null!==e;e=Tc(e))for(let t=10;t<e.length;t++){const r=e[t],i=r[1];Gu(r)&&ki(i,r,i.template,r[8])}}(e),null!==n.contentQueries&&jm(n,e),!s)if(o){const u=n.contentCheckHooks;null!==u&&ga(e,u)}else{const u=n.contentHooks;null!==u&&ma(e,u,1),Xu(e,1)}!function uA(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)cr(~i);else{const s=i,o=t[++r],a=t[++r];NM(o,s),a(2,e[s])}}}finally{cr(-1)}}(n,e);const a=n.components;null!==a&&function cA(n,e){for(let t=0;t<e.length;t++)FA(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&nd(2,l,r),!s)if(o){const u=n.viewCheckHooks;null!==u&&ga(e,u)}else{const u=n.viewHooks;null!==u&&ma(e,u,2),Xu(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,qu(e[3],-1))}finally{fa()}}function hA(n,e,t,r){const i=e[10],s=!ca(),o=tg(e);try{s&&!o&&i.begin&&i.begin(),o&&Xs(n,e,r),ki(n,e,t,r)}finally{s&&!o&&i.end&&i.end()}}function Hm(n,e,t,r,i){const s=ft(),o=2&r;try{cr(-1),o&&e.length>20&&Im(n,e,20,ca()),t(r,i)}finally{cr(s)}}function Um(n,e,t){if(Bu(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function Kc(n,e,t){!rg()||(function EA(n,e,t,r){const i=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Ns(t,e),at(r,e);const o=t.initialInputs;for(let a=i;a<s;a++){const l=n.data[a],u=cn(l);u&&SA(e,t,l);const c=Ps(e,n,a,t);at(c,e),null!==o&&TA(0,a-i,c,l,0,o),u&&(It(t.index,e)[8]=c)}}(n,e,t,qt(t,e)),128==(128&t.flags)&&function DA(n,e,t){const r=t.directiveStart,i=t.directiveEnd,o=t.index,a=function PM(){return B.lFrame.currentDirectiveIndex}();try{cr(o);for(let l=r;l<i;l++){const u=n.data[l],c=e[l];Qu(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&Ym(u,c)}}finally{cr(-1),Qu(a)}}(n,e,t))}function Qc(n,e,t=qt){const r=e.localNames;if(null!==r){let i=e.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?t(e,n):n[o];n[i++]=a}}}function $m(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Pa(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Pa(n,e,t,r,i,s,o,a,l,u){const c=20+r,d=c+i,h=function fA(n,e){const t=[];for(let r=0;r<e;r++)t.push(r<n?null:H);return t}(c,d),f="function"==typeof u?u():u;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function qm(n,e,t,r){const i=n_(e);null===t?i.push(r):(i.push(t),n.firstCreatePass&&r_(n).push(r,i.length-1))}function Wm(n,e,t){for(let r in n)if(n.hasOwnProperty(r)){const i=n[r];(t=null===t?{}:t).hasOwnProperty(r)?t[r].push(e,i):t[r]=[e,i]}return t}function Ot(n,e,t,r,i,s,o,a){const l=qt(e,t);let c,u=e.inputs;!a&&null!=u&&(c=u[r])?(o_(n,t,c,r,i),aa(e)&&function _A(n,e){const t=It(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(r=function mA(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=o?o(i,e.value||"",r):i,Ie(s)?s.setProperty(l,r,i):ec(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Yc(n,e,t,r){let i=!1;if(rg()){const s=function CA(n,e,t){const r=n.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];Tm(t,o.selectors,!1)&&(i||(i=[]),Ea(Ns(t,e),n,o.type),cn(o)?(Zm(n,t),i.unshift(o)):i.push(o))}return i}(n,e,t),o=null===r?null:{"":-1};if(null!==s){i=!0,Xm(t,n.data.length,s.length);for(let c=0;c<s.length;c++){const d=s[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=Oi(n,e,s.length,null);for(let c=0;c<s.length;c++){const d=s[c];t.mergedAttrs=ya(t.mergedAttrs,d.hostAttrs),Jm(n,t,e,u,d),MA(u,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),u++}!function gA(n,e){const r=e.directiveEnd,i=n.data,s=e.attrs,o=[];let a=null,l=null;for(let u=e.directiveStart;u<r;u++){const c=i[u],d=c.inputs,h=null===s||Sm(e)?null:AA(d,s);o.push(h),a=Wm(d,u,a),l=Wm(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function wA(n,e,t){if(e){const r=n.localNames=[];for(let i=0;i<e.length;i+=2){const s=t[e[i+1]];if(null==s)throw new it(-301,`Export of name '${e[i+1]}' not found!`);r.push(e[i],s)}}}(t,r,o)}return t.mergedAttrs=ya(t.mergedAttrs,t.attrs),i}function Qm(n,e,t,r,i,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function bA(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(r,i,o)}}function Ym(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Zm(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function MA(n,e,t){if(t){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)t[e.exportAs[r]]=n;cn(e)&&(t[""]=n)}}function Xm(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function Jm(n,e,t,r,i){n.data[r]=i;const s=i.factory||(i.factory=Br(i.type)),o=new Os(s,cn(i),null);n.blueprint[r]=o,t[r]=o,Qm(n,e,0,r,Oi(n,t,i.hostVars,H),i)}function SA(n,e,t){const r=qt(e,n),i=$m(t),s=n[10],o=La(n,Zs(n,i,null,t.onPush?64:16,r,e,s,s.createRenderer(r,t),null,null));n[e.index]=o}function Sn(n,e,t,r,i,s){const o=qt(n,e);!function Zc(n,e,t,r,i,s,o){if(null==s)Ie(n)?n.removeAttribute(e,i,t):e.removeAttribute(i);else{const a=null==o?j(s):o(s,r||"",i);Ie(n)?n.setAttribute(e,i,a,t):t?e.setAttributeNS(t,i,a):e.setAttribute(i,a)}}(e[G],o,s,n.value,t,r,i)}function TA(n,e,t,r,i,s){const o=s[e];if(null!==o){const a=r.setInput;for(let l=0;l<o.length;){const u=o[l++],c=o[l++],d=o[l++];null!==a?r.setInput(t,d,u,c):t[c]=d}}}function AA(n,e){let t=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;n.hasOwnProperty(i)&&(null===t&&(t=[]),t.push(i,n[i],e[r+1])),r+=2}else r+=2;else r+=4}return t}function e_(n,e,t,r){return new Array(n,!0,!1,e,null,0,r,t,null,null)}function FA(n,e){const t=It(e,n);if(Gu(t)){const r=t[1];80&t[2]?ki(r,t,r.template,t[8]):t[5]>0&&Xc(t)}}function Xc(n){for(let r=Sc(n);null!==r;r=Tc(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];ki(o,s,o.template,s[8])}else s[5]>0&&Xc(s)}const t=n[1].components;if(null!==t)for(let r=0;r<t.length;r++){const i=It(t[r],n);Gu(i)&&i[5]>0&&Xc(i)}}function RA(n,e){const t=It(e,n),r=t[1];(function OA(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(r,t),Xs(r,t,t[8])}function La(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Jc(n){for(;n;){n[2]|=64;const e=Qs(n);if(gM(n)&&!e)return n;n=e}return null}function td(n,e,t){const r=e[10];r.begin&&r.begin();try{ki(n,e,n.template,t)}catch(i){throw s_(e,i),i}finally{r.end&&r.end()}}function t_(n){!function ed(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],r=Ec(t),i=r[1];hA(i,r,i.template,t)}}(n[8])}function nd(n,e,t){Zu(0),e(n,t)}const LA=(()=>Promise.resolve(null))();function n_(n){return n[7]||(n[7]=[])}function r_(n){return n.cleanup||(n.cleanup=[])}function s_(n,e){const t=n[9],r=t?t.get(Un,null):null;r&&r.handleError(e)}function o_(n,e,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],u=n.data[o];null!==u.setInput?u.setInput(l,i,r,a):l[a]=i}}function zn(n,e,t){const r=ua(e,n);!function um(n,e,t){Ie(n)?n.setValue(e,t):e.textContent=t}(n[G],r,t)}function Va(n,e,t){let r=t?n.styles:null,i=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?i=xu(i,a):2==s&&(r=xu(r,a+": "+e[++o]+";"))}t?n.styles=r:n.stylesWithoutHost=r,t?n.classes=i:n.classesWithoutHost=i}const rd=new x("INJECTOR",-1);class a_{get(e,t=js){if(t===js){const r=new Error(`NullInjectorError: No provider for ${ee(e)}!`);throw r.name="NullInjectorError",r}return t}}const id=new x("Set Injector scope."),Js={},jA={};let sd;function l_(){return void 0===sd&&(sd=new a_),sd}function u_(n,e=null,t=null,r){const i=c_(n,e,t,r);return i._resolveInjectorDefTypes(),i}function c_(n,e=null,t=null,r){return new HA(n,t,e||l_(),r)}class HA{constructor(e,t,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&Dn(t,a=>this.processProvider(a,e,t)),Dn([e],a=>this.processInjectorType(a,[],s)),this.records.set(rd,Ni(void 0,this));const o=this.records.get(id);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof e?null:ee(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=js,r=U.Default){this.assertNotDestroyed();const i=Rg(this),s=sr(void 0);try{if(!(r&U.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function QA(n){return"function"==typeof n||"object"==typeof n&&n instanceof x}(e)&&Ru(e);a=l&&this.injectableDefInScope(l)?Ni(od(e),Js):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&U.Self?l_():this.parent).get(e,t=r&U.Optional&&t===js?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ma]=o[Ma]||[]).unshift(ee(e)),i)throw o;return function bS(n,e,t,r){const i=n[Ma];throw e[Fg]&&i.unshift(e[Fg]),n.message=function ES(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let i=ee(e);if(Array.isArray(e))i=e.map(ee).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ee(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(gS,"\n  ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[Ma]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{sr(s),Rg(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,i)=>e.push(ee(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,r){if(!(e=z(e)))return!1;let i=jp(e);const s=null==i&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==r.indexOf(o);if(void 0!==s&&(i=jp(s)),null==i)return!1;if(null!=i.imports&&!a){let c;r.push(o);try{Dn(i.imports,d=>{this.processInjectorType(d,t,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:h,providers:f}=c[d];Dn(f,p=>this.processProvider(p,h,f||de))}}this.injectorDefTypes.add(o);const l=Br(o)||(()=>new o);this.records.set(o,Ni(l,Js));const u=i.providers;if(null!=u&&!a){const c=e;Dn(u,d=>this.processProvider(d,c,u))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,r){let i=Pi(e=z(e))?e:z(e&&e.provide);const s=function $A(n,e,t){return h_(n)?Ni(void 0,n.useValue):Ni(d_(n),Js)}(e);if(Pi(e)||!0!==e.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=Ni(void 0,Js,!0),o.factory=()=>dc(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,s)}hydrate(e,t){return t.value===Js&&(t.value=jA,t.value=t.factory()),"object"==typeof t.value&&t.value&&function KA(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=z(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function od(n){const e=Ru(n),t=null!==e?e.factory:Br(n);if(null!==t)return t;if(n instanceof x)throw new Error(`Token ${ee(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function UA(n){const e=n.length;if(e>0){const r=Bs(e,"?");throw new Error(`Can't resolve all parameters for ${ee(n)}: (${r.join(", ")}).`)}const t=function nM(n){const e=n&&(n[na]||n[Hp]);if(e){const t=function rM(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new Error("unreachable")}function d_(n,e,t){let r;if(Pi(n)){const i=z(n);return Br(i)||od(i)}if(h_(n))r=()=>z(n.useValue);else if(function GA(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...dc(n.deps||[]));else if(function zA(n){return!(!n||!n.useExisting)}(n))r=()=>D(z(n.useExisting));else{const i=z(n&&(n.useClass||n.provide));if(!function WA(n){return!!n.deps}(n))return Br(i)||od(i);r=()=>new i(...dc(n.deps))}return r}function Ni(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function h_(n){return null!==n&&"object"==typeof n&&_S in n}function Pi(n){return"function"==typeof n}let Ze=(()=>{class n{static create(t,r){var i;if(Array.isArray(t))return u_({name:""},r,t,"");{const s=null!==(i=t.name)&&void 0!==i?i:"";return u_({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=js,n.NULL=new a_,n.\u0275prov=P({token:n,providedIn:"any",factory:()=>D(rd)}),n.__NG_ELEMENT_ID__=-1,n})();function rI(n,e){pa(Ec(n)[1],je())}function q(n){let e=function w_(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let i;if(cn(n))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(t){r.push(i);const o=n;o.inputs=ud(n.inputs),o.declaredInputs=ud(n.declaredInputs),o.outputs=ud(n.outputs);const a=i.hostBindings;a&&aI(n,a);const l=i.viewQuery,u=i.contentQueries;if(l&&sI(n,l),u&&oI(n,u),Iu(n.inputs,i.inputs),Iu(n.declaredInputs,i.declaredInputs),Iu(n.outputs,i.outputs),cn(i)&&i.data.animation){const c=n.data;c.animation=(c.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===q&&(t=!1)}}e=Object.getPrototypeOf(e)}!function iI(n){let e=0,t=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=ya(i.hostAttrs,t=ya(t,i.hostAttrs))}}(r)}function ud(n){return n===fi?{}:n===de?[]:n}function sI(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function oI(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,s)=>{e(r,i,s),t(r,i,s)}:e}function aI(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}let Ba=null;function Li(){if(!Ba){const n=le.Symbol;if(n&&n.iterator)Ba=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ba=r)}}}return Ba}function eo(n){return!!cd(n)&&(Array.isArray(n)||!(n instanceof Map)&&Li()in n)}function cd(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function lt(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Ur(n,e,t,r){const i=lt(n,e,t);return lt(n,e+1,r)||i}function Le(n,e,t,r){const i=b();return lt(i,vi(),e)&&(te(),Sn(xe(),i,n,e,t,r)),Le}function Bi(n,e,t,r){return lt(n,vi(),t)?e+j(t)+r:H}function ji(n,e,t,r,i,s){const a=Ur(n,function jn(){return B.lFrame.bindingIndex}(),t,i);return Hn(2),a?e+j(t)+r+j(i)+s:H}function W(n,e,t,r,i,s,o,a){const l=b(),u=te(),c=n+20,d=u.firstCreatePass?function pI(n,e,t,r,i,s,o,a,l){const u=e.consts,c=Ri(e,n,4,o||null,lr(u,a));Yc(e,t,c,lr(u,l)),pa(e,c);const d=c.tViews=Pa(2,c,r,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}(c,u,l,e,t,r,i,s,o):u.data[c];En(d,!1);const h=l[G].createComment("");Fa(u,l,h,d),at(h,l),La(l,l[c]=e_(h,l,h,d)),la(d)&&Kc(u,l,d),null!=o&&Qc(l,d,a)}function Ha(n){return function yi(n,e){return n[e]}(function OM(){return B.lFrame.contextLView}(),20+n)}function m(n,e=U.Default){const t=b();return null===t?D(n,e):Eg(je(),t,z(n),e)}function gd(){throw new Error("invalid")}function R(n,e,t){const r=b();return lt(r,vi(),e)&&Ot(te(),xe(),r,n,e,r[G],t,!1),R}function md(n,e,t,r,i){const o=i?"class":"style";o_(n,t,e.inputs[o],o,r)}function M(n,e,t,r){const i=b(),s=te(),o=20+n,a=i[G],l=i[o]=Ic(a,e,function zM(){return B.lFrame.currentNamespace}()),u=s.firstCreatePass?function NI(n,e,t,r,i,s,o){const a=e.consts,u=Ri(e,n,2,i,lr(a,s));return Yc(e,t,u,lr(a,o)),null!==u.attrs&&Va(u,u.attrs,!1),null!==u.mergedAttrs&&Va(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(o,s,i,0,e,t,r):s.data[o];En(u,!0);const c=u.mergedAttrs;null!==c&&_a(a,l,c);const d=u.classes;null!==d&&Nc(a,l,d);const h=u.styles;null!==h&&Cm(a,l,h),64!=(64&u.flags)&&Fa(s,i,l,u),0===function AM(){return B.lFrame.elementDepthCount}()&&at(l,i),function IM(){B.lFrame.elementDepthCount++}(),la(u)&&(Kc(s,i,u),Um(s,u,i)),null!==r&&Qc(i,u)}function S(){let n=je();Wu()?Ku():(n=n.parent,En(n,!1));const e=n;!function xM(){B.lFrame.elementDepthCount--}();const t=te();t.firstCreatePass&&(pa(t,n),Bu(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function QM(n){return 0!=(16&n.flags)}(e)&&md(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function YM(n){return 0!=(32&n.flags)}(e)&&md(t,e,b(),e.stylesWithoutHost,!1)}function oe(n,e,t,r){M(n,e,t,r),S()}function $r(n,e,t){const r=b(),i=te(),s=n+20,o=i.firstCreatePass?function PI(n,e,t,r,i){const s=e.consts,o=lr(s,r),a=Ri(e,n,8,"ng-container",o);return null!==o&&Va(a,o,!0),Yc(e,t,a,lr(s,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,i,r,e,t):i.data[s];En(o,!0);const a=r[s]=r[G].createComment("");Fa(i,r,a,o),at(a,r),la(o)&&(Kc(i,r,o),Um(i,o,r)),null!=t&&Qc(r,o)}function zr(){let n=je();const e=te();Wu()?Ku():(n=n.parent,En(n,!1)),e.firstCreatePass&&(pa(e,n),Bu(n)&&e.queries.elementEnd(n))}function Gr(n,e,t){$r(n,e,t),zr()}function Ki(){return b()}function no(n){return!!n&&"function"==typeof n.then}const _d=function z_(n){return!!n&&"function"==typeof n.subscribe};function Ce(n,e,t,r){const i=b(),s=te(),o=je();return function q_(n,e,t,r,i,s,o,a){const l=la(r),c=n.firstCreatePass&&r_(n),d=e[8],h=n_(e);let f=!0;if(3&r.type||a){const y=qt(r,e),v=a?a(y):y,_=h.length,E=a?T=>a(Pe(T[r.index])):r.index;if(Ie(t)){let T=null;if(!a&&l&&(T=function LI(n,e,t,r){const i=n.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===t&&i[s+1]===r){const a=e[7],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,i,r.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=yd(r,e,d,s,!1);const $=t.listen(v,i,s);h.push(s,$),c&&c.push(i,E,_,_+1)}}else s=yd(r,e,d,s,!0),v.addEventListener(i,s,o),h.push(s),c&&c.push(i,E,_,o)}else s=yd(r,e,d,s,!1);const p=r.outputs;let g;if(f&&null!==p&&(g=p[i])){const y=g.length;if(y)for(let v=0;v<y;v+=2){const we=e[g[v]][g[v+1]].subscribe(s),Te=h.length;h.push(s,we),c&&c.push(i,r.index,Te,-(Te+1))}}}(s,i,i[G],o,n,e,!!t,r),Ce}function W_(n,e,t,r){try{return!1!==t(r)}catch(i){return s_(n,i),!1}}function yd(n,e,t,r,i){return function s(o){if(o===Function)return r;const a=2&n.flags?It(n.index,e):e;0==(32&e[2])&&Jc(a);let l=W_(e,0,r,o),u=s.__ngNextListenerFn__;for(;u;)l=W_(e,0,u,o)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function pe(n=1){return function VM(n){return(B.lFrame.contextLView=function BM(n,e){for(;n>0;)e=e[15],n--;return e}(n,B.lFrame.contextLView))[8]}(n)}function VI(n,e){let t=null;const r=function qT(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let i=0;i<e.length;i++){const s=e[i];if("*"!==s){if(null===r?Tm(n,s,!0):QT(r,s))return i}else t=i}return t}function qr(n){const e=b()[16][6];if(!e.projection){const r=e.projection=Bs(n?n.length:1,null),i=r.slice();let s=e.child;for(;null!==s;){const o=n?VI(s,n):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s),s=s.next}}}function mr(n,e=0,t){const r=b(),i=te(),s=Ri(i,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Ku(),64!=(64&s.flags)&&function BT(n,e,t){Dm(e[G],0,e,t,hm(n,t,e),mm(t.parent||e[6],t,e))}(i,r,s)}function ry(n,e,t,r,i){const s=n[t+1],o=null===e;let a=r?hn(s):$n(s),l=!1;for(;0!==a&&(!1===l||o);){const c=n[a+1];HI(n[a],e)&&(l=!0,n[a+1]=r?Vc(c):Pc(c)),a=r?hn(c):$n(c)}l&&(n[t+1]=r?Pc(s):Vc(s))}function HI(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Ti(n,e)>=0}const $e={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function iy(n){return n.substring($e.key,$e.keyEnd)}function sy(n,e){const t=$e.textEnd;return t===e?-1:(e=$e.keyEnd=function GI(n,e,t){for(;e<t&&n.charCodeAt(e)>32;)e++;return e}(n,$e.key=e,t),Qi(n,e,t))}function Qi(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Xe(n,e){return function pn(n,e,t,r){const i=b(),s=te(),o=Hn(2);s.firstUpdatePass&&hy(s,n,o,r),e!==H&&lt(i,o,e)&&py(s,s.data[ft()],i,i[G],n,i[o+1]=function nx(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ee(Ft(n)))),n}(e,t),r,o)}(n,e,null,!0),Xe}function In(n,e){for(let t=function $I(n){return function ay(n){$e.key=0,$e.keyEnd=0,$e.value=0,$e.valueEnd=0,$e.textEnd=n.length}(n),sy(n,Qi(n,0,$e.textEnd))}(e);t>=0;t=sy(e,t))xt(n,iy(e),!0)}function dy(n,e){return e>=n.expandoStartIndex}function hy(n,e,t,r){const i=n.data;if(null===i[t+1]){const s=i[ft()],o=dy(n,t);my(s,r)&&null===e&&!o&&(e=!1),e=function YI(n,e,t,r){const i=function Yu(n){const e=B.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=ro(t=bd(null,n,e,t,r),e.attrs,r),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==i)if(t=bd(i,n,e,t,r),null===s){let l=function ZI(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==$n(r))return n[hn(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=bd(null,n,e,l[1],r),l=ro(l,e.attrs,r),function XI(n,e,t,r){n[hn(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else s=function JI(n,e,t){let r;const i=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<i;s++)r=ro(r,n[s].hostAttrs,t);return ro(r,e.attrs,t)}(n,e,r)}return void 0!==s&&(r?e.residualClasses=s:e.residualStyles=s),t}(i,s,e,r),function BI(n,e,t,r,i,s){let o=s?e.classBindings:e.styleBindings,a=hn(o),l=$n(o);n[r]=t;let c,u=!1;if(Array.isArray(t)){const d=t;c=d[1],(null===c||Ti(d,c)>0)&&(u=!0)}else c=t;if(i)if(0!==l){const h=hn(n[a+1]);n[r+1]=Oa(h,a),0!==h&&(n[h+1]=Lc(n[h+1],r)),n[a+1]=function JT(n,e){return 131071&n|e<<17}(n[a+1],r)}else n[r+1]=Oa(a,0),0!==a&&(n[a+1]=Lc(n[a+1],r)),a=r;else n[r+1]=Oa(l,0),0===a?a=r:n[l+1]=Lc(n[l+1],r),l=r;u&&(n[r+1]=Pc(n[r+1])),ry(n,c,r,!0),ry(n,c,r,!1),function jI(n,e,t,r,i){const s=i?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Ti(s,e)>=0&&(t[r+1]=Vc(t[r+1]))}(e,c,n,r,s),o=Oa(a,l),s?e.classBindings=o:e.styleBindings=o}(i,s,e,t,o,r)}}function bd(n,e,t,r,i){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],r=ro(r,s.hostAttrs,i),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),r}function ro(n,e,t){const r=t?1:2;let i=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?i=o:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),xt(n,o,!!t||e[++s]))}return void 0===n?null:n}function py(n,e,t,r,i,s,o,a){if(!(3&e.type))return;const l=n.data,u=l[a+1];$a(function Rm(n){return 1==(1&n)}(u)?gy(l,e,t,i,$n(u),o):void 0)||($a(s)||function Fm(n){return 2==(2&n)}(u)&&(s=gy(l,null,t,i,a,o)),function HT(n,e,t,r,i){const s=Ie(n);if(e)i?s?n.addClass(t,r):t.classList.add(r):s?n.removeClass(t,r):t.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:Rt.DashCase;if(null==i)s?n.removeStyle(t,r,o):t.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),o|=Rt.Important),s?n.setStyle(t,r,i,o):t.style.setProperty(r,i,a?"important":"")}}}(r,o,ua(ft(),t),i,s))}function gy(n,e,t,r,i,s){const o=null===e;let a;for(;i>0;){const l=n[i],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let h=t[i+1];h===H&&(h=d?de:void 0);let f=d?ac(h,r):c===r?h:void 0;if(u&&!$a(f)&&(f=ac(l,r)),$a(f)&&(a=f,o))return a;const p=n[i+1];i=o?hn(p):$n(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ac(l,r))}return a}function $a(n){return void 0!==n}function my(n,e){return 0!=(n.flags&(e?16:32))}function ge(n,e=""){const t=b(),r=te(),i=n+20,s=r.firstCreatePass?Ri(r,i,1,e,null):r.data[i],o=t[i]=function Ac(n,e){return Ie(n)?n.createText(e):n.createTextNode(e)}(t[G],e);Fa(r,t,o,s),En(s,!1)}function xn(n){return Ed("",n,""),xn}function Ed(n,e,t){const r=b(),i=Bi(r,n,e,t);return i!==H&&zn(r,ft(),i),Ed}function Dd(n,e,t,r,i){const s=b(),o=ji(s,n,e,t,r,i);return o!==H&&zn(s,ft(),o),Dd}function wy(n,e,t){!function gn(n,e,t,r){const i=te(),s=Hn(2);i.firstUpdatePass&&hy(i,null,s,r);const o=b();if(t!==H&&lt(o,s,t)){const a=i.data[ft()];if(my(a,r)&&!dy(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=xu(l,t||"")),md(i,a,o,t,r)}else!function tx(n,e,t,r,i,s,o,a){i===H&&(i=de);let l=0,u=0,c=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==c||null!==d;){const h=l<i.length?i[l+1]:void 0,f=u<s.length?s[u+1]:void 0;let g,p=null;c===d?(l+=2,u+=2,h!==f&&(p=d,g=f)):null===d||null!==c&&c<d?(l+=2,p=c):(u+=2,p=d,g=f),null!==p&&py(n,e,t,r,p,g,o,a),c=l<i.length?i[l]:null,d=u<s.length?s[u]:null}}(i,a,o,o[G],o[s+1],o[s+1]=function ex(n,e,t){if(null==t||""===t)return de;const r=[],i=Ft(t);if(Array.isArray(i))for(let s=0;s<i.length;s++)n(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&n(r,s,i[s]);else"string"==typeof i&&e(r,i);return r}(n,e,t),r,s)}}(xt,In,Bi(b(),n,e,t),!0)}function Wr(n,e,t){const r=b();return lt(r,vi(),e)&&Ot(te(),xe(),r,n,e,r[G],t,!0),Wr}const Kr=void 0;var Ex=["en",[["a","p"],["AM","PM"],Kr],[["AM","PM"],Kr,Kr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Kr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Kr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Kr,"{1} 'at' {0}",Kr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function bx(n){const t=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let Yi={};function Py(n){return n in Yi||(Yi[n]=le.ng&&le.ng.common&&le.ng.common.locales&&le.ng.common.locales[n]),Yi[n]}var w=(()=>((w=w||{})[w.LocaleId=0]="LocaleId",w[w.DayPeriodsFormat=1]="DayPeriodsFormat",w[w.DayPeriodsStandalone=2]="DayPeriodsStandalone",w[w.DaysFormat=3]="DaysFormat",w[w.DaysStandalone=4]="DaysStandalone",w[w.MonthsFormat=5]="MonthsFormat",w[w.MonthsStandalone=6]="MonthsStandalone",w[w.Eras=7]="Eras",w[w.FirstDayOfWeek=8]="FirstDayOfWeek",w[w.WeekendRange=9]="WeekendRange",w[w.DateFormat=10]="DateFormat",w[w.TimeFormat=11]="TimeFormat",w[w.DateTimeFormat=12]="DateTimeFormat",w[w.NumberSymbols=13]="NumberSymbols",w[w.NumberFormats=14]="NumberFormats",w[w.CurrencyCode=15]="CurrencyCode",w[w.CurrencySymbol=16]="CurrencySymbol",w[w.CurrencyName=17]="CurrencyName",w[w.Currencies=18]="Currencies",w[w.Directionality=19]="Directionality",w[w.PluralCase=20]="PluralCase",w[w.ExtraData=21]="ExtraData",w))();const za="en-US";let Ly=za;function Md(n,e,t,r,i){if(n=z(n),Array.isArray(n))for(let s=0;s<n.length;s++)Md(n[s],e,t,r,i);else{const s=te(),o=b();let a=Pi(n)?n:z(n.provide),l=d_(n);const u=je(),c=1048575&u.providerIndexes,d=u.directiveStart,h=u.providerIndexes>>20;if(Pi(n)||!n.multi){const f=new Os(l,i,m),p=Td(a,e,i?c:c+h,d);-1===p?(Ea(Ns(u,o),s,a),Sd(s,n,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=Td(a,e,c+h,d),p=Td(a,e,c,c+h),g=f>=0&&t[f],y=p>=0&&t[p];if(i&&!y||!i&&!g){Ea(Ns(u,o),s,a);const v=function bF(n,e,t,r,i){const s=new Os(n,t,m);return s.multi=[],s.index=e,s.componentProviders=0,av(s,i,r&&!t),s}(i?vF:yF,t.length,i,r,l);!i&&y&&(t[p].providerFactory=v),Sd(s,n,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(v),o.push(v)}else Sd(s,n,f>-1?f:p,av(t[i?p:f],l,!i&&r));!i&&r&&y&&t[p].componentProviders++}}}function Sd(n,e,t,r){const i=Pi(e),s=function qA(n){return!!n.useClass}(e);if(i||s){const l=(s?z(e.useClass):e).prototype.ngOnDestroy;if(l){const u=n.destroyHooks||(n.destroyHooks=[]);if(!i&&e.multi){const c=u.indexOf(t);-1===c?u.push(t,[r,l]):u[c+1].push(r,l)}else u.push(t,l)}}}function av(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function Td(n,e,t,r){for(let i=t;i<r;i++)if(e[i]===n)return i;return-1}function yF(n,e,t,r){return Ad(this.multi,[])}function vF(n,e,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Ps(t,t[1],this.providerFactory.index,r);s=a.slice(0,o),Ad(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Ad(i,s);return s}function Ad(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function ue(n,e=[]){return t=>{t.providersResolver=(r,i)=>function _F(n,e,t){const r=te();if(r.firstCreatePass){const i=cn(n);Md(t,r.data,r.blueprint,i,!0),Md(e,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,e)}}class lv{}class CF{resolveComponentFactory(e){throw function DF(n){const e=Error(`No component factory found for ${ee(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Qr=(()=>{class n{}return n.NULL=new CF,n})();function wF(){return Xi(je(),b())}function Xi(n,e){return new ye(qt(n,e))}let ye=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=wF,n})();function MF(n){return n instanceof ye?n.nativeElement:n}class lo{}let Gn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function TF(){const n=b(),t=It(je().index,n);return function SF(n){return n[G]}(bn(t)?t:n)}(),n})(),AF=(()=>{class n{}return n.\u0275prov=P({token:n,providedIn:"root",factory:()=>null}),n})();class _r{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const IF=new _r("13.1.2"),Id={};function Qa(n,e,t,r,i=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&r.push(Pe(s)),un(s))for(let a=10;a<s.length;a++){const l=s[a],u=l[1].firstChild;null!==u&&Qa(l[1],l,u,r)}const o=t.type;if(8&o)Qa(n,e,t.child,r);else if(32&o){const a=Mc(t,e);let l;for(;l=a();)r.push(l)}else if(16&o){const a=bm(e,t);if(Array.isArray(a))r.push(...a);else{const l=Qs(e[16]);Qa(l[1],l,a,r,!0)}}t=i?t.projectionNext:t.next}return r}class uo{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Qa(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(un(e)){const t=e[8],r=t?t.indexOf(this):-1;r>-1&&(xc(e,r),Ca(t,r))}this._attachedToViewContainer=!1}dm(this._lView[1],this._lView)}onDestroy(e){qm(this._lView[1],this._lView,null,e)}markForCheck(){Jc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){td(this._lView[1],this._lView,this.context)}checkNoChanges(){!function NA(n,e,t){da(!0);try{td(n,e,t)}finally{da(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function FT(n,e){Ys(n,e,e[G],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class xF extends uo{constructor(e){super(e),this._view=e}detectChanges(){t_(this._view)}checkNoChanges(){!function PA(n){da(!0);try{t_(n)}finally{da(!1)}}(this._view)}get context(){return null}}class cv extends Qr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=st(e);return new xd(t,this.ngModule)}}function dv(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}const RF=new x("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>rm});class xd extends lv{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function ZT(n){return n.map(YT).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return dv(this.componentDef.inputs)}get outputs(){return dv(this.componentDef.outputs)}create(e,t,r,i){const s=(i=i||this.ngModule)?function OF(n,e){return{get:(t,r,i)=>{const s=n.get(t,Id,i);return s!==Id||r===Id?s:e.get(t,r,i)}}}(e,i.injector):e,o=s.get(lo,eg),a=s.get(AF,null),l=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function Gm(n,e,t){if(Ie(n))return n.selectRootElement(e,t===an.ShadowDom);let r="string"==typeof e?n.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Ic(o.createRenderer(null,this.componentDef),u,function FF(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,h=function C_(n,e){return{components:[],scheduler:n||rm,clean:LA,playerHandler:e||null,flags:0}}(),f=Pa(0,null,null,1,0,null,null,null,null,null),p=Zs(null,f,h,d,null,null,o,l,a,s);let g,y;ha(p);try{const v=function E_(n,e,t,r,i,s){const o=t[1];t[20]=n;const l=Ri(o,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Va(l,u,!0),null!==n&&(_a(i,n,u),null!==l.classes&&Nc(i,n,l.classes),null!==l.styles&&Cm(i,n,l.styles)));const c=r.createRenderer(n,e),d=Zs(t,$m(e),null,e.onPush?64:16,t[20],l,r,c,s||null,null);return o.firstCreatePass&&(Ea(Ns(l,t),o,e.type),Zm(o,l),Xm(l,t.length,1)),La(t,d),t[20]=d}(c,this.componentDef,p,o,l);if(c)if(r)_a(l,c,["ng-version",IF.full]);else{const{attrs:_,classes:E}=function XT(n){const e=[],t=[];let r=1,i=2;for(;r<n.length;){let s=n[r];if("string"==typeof s)2===i?""!==s&&e.push(s,n[++r]):8===i&&t.push(s);else{if(!dn(i))break;i=s}r++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);_&&_a(l,c,_),E&&E.length>0&&Nc(l,c,E.join(" "))}if(y=zu(f,20),void 0!==t){const _=y.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const T=t[E];_.push(null!=T?Array.from(T):null)}}g=function D_(n,e,t,r,i){const s=t[1],o=function vA(n,e,t){const r=je();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),Jm(n,r,e,Oi(n,e,1,null),t));const i=Ps(e,n,r.directiveStart,r);at(i,e);const s=qt(r,e);return s&&at(s,e),i}(s,t,e);if(r.components.push(o),n[8]=o,i&&i.forEach(l=>l(o,e)),e.contentQueries){const l=je();e.contentQueries(1,o,l.directiveStart)}const a=je();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(cr(a.index),Qm(t[1],a,0,a.directiveStart,a.directiveEnd,e),Ym(e,o)),o}(v,this.componentDef,p,h,[rI]),Xs(f,p,null)}finally{fa()}return new NF(this.componentType,g,Xi(y,p),p,y)}}class NF extends class EF{}{constructor(e,t,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new xF(i),this.componentType=e}get injector(){return new Di(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class qn{}class hv{}const Ji=new Map;class gv extends qn{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new cv(this);const r=$t(e);this._bootstrapComponents=Mn(r.bootstrap),this._r3Injector=c_(e,t,[{provide:qn,useValue:this},{provide:Qr,useValue:this.componentFactoryResolver}],ee(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ze.THROW_IF_NOT_FOUND,r=U.Default){return e===Ze||e===qn||e===rd?this:this._r3Injector.get(e,t,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Fd extends hv{constructor(e){super(),this.moduleType=e,null!==$t(e)&&function LF(n){const e=new Set;!function t(r){const i=$t(r,!0),s=i.id;null!==s&&(function fv(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ee(e)} vs ${ee(e.name)}`)}(s,Ji.get(s),r),Ji.set(s,r));const o=Mn(i.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new gv(this.moduleType,e)}}function Rd(n,e,t,r,i){return function _v(n,e,t,r,i,s,o){const a=e+t;return Ur(n,a,i,s)?function Tn(n,e,t){return n[e]=t}(n,a+2,o?r.call(o,i,s):r(i,s)):function co(n,e){const t=n[e];return t===H?void 0:t}(n,a+2)}(b(),function ht(){const n=B.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),n,e,t,r,i)}function Od(n){return e=>{setTimeout(n,void 0,e)}}const ne=class e1 extends Ge{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){var i,s,o;let a=e,l=t||(()=>null),u=r;if(e&&"object"==typeof e){const d=e;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),u=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Od(l),a&&(a=Od(a)),u&&(u=Od(u)));const c=super.subscribe({next:a,error:l,complete:u});return e instanceof Ye&&e.add(c),c}};function t1(){return this._results[Li()]()}class yr{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Li(),r=yr.prototype;r[t]||(r[t]=t1)}get changes(){return this._changes||(this._changes=new ne)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const r=this;r.dirty=!1;const i=Wt(e);(this._changesDetected=!function oS(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],s=e[r];if(t&&(i=t(i),s=t(s)),s!==i)return!1}return!0}(r._results,i,t))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let kt=(()=>{class n{}return n.__NG_ELEMENT_ID__=s1,n})();const n1=kt,r1=class extends n1{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e){const t=this._declarationTContainer.tViews,r=Zs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(t)),Xs(t,r,e),new uo(r)}};function s1(){return Ya(je(),b())}function Ya(n,e){return 4&n.type?new r1(e,n,Xi(n,e)):null}let Nt=(()=>{class n{}return n.__NG_ELEMENT_ID__=o1,n})();function o1(){return Cv(je(),b())}const a1=Nt,Ev=class extends a1{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return Xi(this._hostTNode,this._hostLView)}get injector(){return new Di(this._hostTNode,this._hostLView)}get parentInjector(){const e=ba(this._hostTNode,this._hostLView);if(mg(e)){const t=Ei(e,this._hostLView),r=bi(e);return new Di(t[1].data[r+8],t)}return new Di(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Dv(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){const i=e.createEmbeddedView(t||{});return this.insert(i,r),i}createComponent(e,t,r,i,s){const o=e&&!function Vs(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,r=d.injector,i=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new xd(st(e)),u=r||this.parentInjector;if(!s&&null==l.ngModule&&u){const d=u.get(qn,null);d&&(s=d)}const c=l.create(u,i,void 0,s);return this.insert(c.hostView,a),c}insert(e,t){const r=e._lView,i=r[1];if(function TM(n){return un(n[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],h=new Ev(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function OT(n,e,t,r){const i=10+r,s=t.length;r>0&&(t[i-1][4]=e),r<s-10?(e[4]=t[i],Sg(t,10+r,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function kT(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(i,r,o,s);const a=Oc(s,o),l=r[G],u=xa(l,o[7]);return null!==u&&function xT(n,e,t,r,i,s){r[0]=i,r[6]=e,Ys(n,r,t,1,i,s)}(i,o[6],l,r,u,a),e.attachToViewContainerRef(),Sg(kd(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Dv(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=xc(this._lContainer,t);r&&(Ca(kd(this._lContainer),t),dm(r[1],r))}detach(e){const t=this._adjustIndex(e,-1),r=xc(this._lContainer,t);return r&&null!=Ca(kd(this._lContainer),t)?new uo(r):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Dv(n){return n[8]}function kd(n){return n[8]||(n[8]=[])}function Cv(n,e){let t;const r=e[n.index];if(un(r))t=r;else{let i;if(8&n.type)i=Pe(r);else{const s=e[G];i=s.createComment("");const o=qt(n,e);Hr(s,xa(s,o),i,function VT(n,e){return Ie(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=e_(r,e,i,n),La(e,t)}return new Ev(t,n,e)}class Nd{constructor(e){this.queryList=e,this.matches=null}clone(){return new Nd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Pd{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let s=0;s<r;s++){const o=t.getByIndex(s);i.push(this.queries[o.indexInDeclarationView].clone())}return new Pd(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Av(e,t).matches&&this.queries[t].setDirty()}}class wv{constructor(e,t,r=null){this.predicate=e,this.flags=t,this.read=r}}class Ld{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let r=0;r<this.length;r++){const i=null!==t?t.length:0,s=this.getByIndex(r).embeddedTView(e,i);s&&(s.indexInDeclarationView=r,null!==t?t.push(s):t=[s])}return null!==t?new Ld(t):null}template(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Vd{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Vd(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==t;)r=r.parent;return t===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(e,t,c1(t,s)),this.matchTNodeWithReadOption(e,t,Da(t,e,s,!1,!1))}else r===kt?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Da(t,e,r,!1,!1))}matchTNodeWithReadOption(e,t,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===ye||i===Nt||i===kt&&4&t.type)this.addMatch(t.index,-2);else{const s=Da(t,e,i,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,r)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function c1(n,e){const t=n.localNames;if(null!==t)for(let r=0;r<t.length;r+=2)if(t[r]===e)return t[r+1];return null}function h1(n,e,t,r){return-1===t?function d1(n,e){return 11&n.type?Xi(n,e):4&n.type?Ya(n,e):null}(e,n):-2===t?function f1(n,e,t){return t===ye?Xi(e,n):t===kt?Ya(e,n):t===Nt?Cv(e,n):void 0}(n,e,r):Ps(n,n[1],t,e)}function Mv(n,e,t,r){const i=e[19].queries[r];if(null===i.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const u=o[l];a.push(u<0?null:h1(e,s[u],o[l+1],t.metadata.read))}i.matches=a}return i.matches}function Bd(n,e,t,r){const i=n.queries.getByIndex(t),s=i.matches;if(null!==s){const o=Mv(n,e,i,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)r.push(o[a/2]);else{const u=s[a+1],c=e[-l];for(let d=10;d<c.length;d++){const h=c[d];h[17]===h[3]&&Bd(h[1],h,u,r)}if(null!==c[9]){const d=c[9];for(let h=0;h<d.length;h++){const f=d[h];Bd(f[1],f,u,r)}}}}}return r}function Je(n){const e=b(),t=te(),r=ag();Zu(r+1);const i=Av(t,r);if(n.dirty&&tg(e)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const s=i.crossesNgTemplate?Bd(t,e,r,[]):Mv(t,e,i,r);n.reset(s,MF),n.notifyOnChanges()}return!0}return!1}function es(n,e,t){const r=te();r.firstCreatePass&&(Tv(r,new wv(n,e,t),-1),2==(2&e)&&(r.staticViewQueries=!0)),Sv(r,b(),e)}function Qt(n,e,t,r){const i=te();if(i.firstCreatePass){const s=je();Tv(i,new wv(e,t,r),s.index),function g1(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(i,n),2==(2&t)&&(i.staticContentQueries=!0)}Sv(i,b(),t)}function et(){return function p1(n,e){return n[19].queries[e].queryList}(b(),ag())}function Sv(n,e,t){const r=new yr(4==(4&t));qm(n,e,r,r.destroy),null===e[19]&&(e[19]=new Pd),e[19].queries.push(new Nd(r))}function Tv(n,e,t){null===n.queries&&(n.queries=new Ld),n.queries.track(new Vd(e,t))}function Av(n,e){return n.queries.getByIndex(e)}function Iv(n,e){return Ya(n,e)}function Ja(...n){}const el=new x("Application Initializer");let ns=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Ja,this.reject=Ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const s=this.appInits[i]();if(no(s))t.push(s);else if(_d(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(D(el,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const po=new x("AppId"),O1={provide:po,useFactory:function R1(){return`${Gd()}${Gd()}${Gd()}`},deps:[]};function Gd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const qv=new x("Platform Initializer"),tl=new x("Platform ID"),Wv=new x("appBootstrapListener");let Kv=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const Wn=new x("LocaleId"),Qv=new x("DefaultCurrencyCode");class k1{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let nl=(()=>{class n{compileModuleSync(t){return new Fd(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),s=Mn($t(t).declarations).reduce((o,a)=>{const l=st(a);return l&&o.push(new xd(l)),o},[]);return new k1(r,s)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const P1=(()=>Promise.resolve(0))();function qd(n){"undefined"==typeof Zone?P1.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ve{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ne(!1),this.onMicrotaskEmpty=new ne(!1),this.onStable=new ne(!1),this.onError=new ne(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function L1(){let n=le.requestAnimationFrame,e=le.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function j1(n){const e=()=>{!function B1(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(le,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Kd(n),n.isCheckStableRunning=!0,Wd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Kd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,s,o,a)=>{try{return Yv(n),t.invokeTask(i,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),Zv(n)}},onInvoke:(t,r,i,s,o,a,l)=>{try{return Yv(n),t.invoke(i,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),Zv(n)}},onHasTask:(t,r,i,s)=>{t.hasTask(i,s),r===i&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Kd(n),Wd(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,r,i,s)=>(t.handleError(i,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ve.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,V1,Ja,Ja);try{return s.runTask(o,t,r)}finally{s.cancelTask(o)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const V1={};function Wd(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Kd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Yv(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Zv(n){n._nesting--,Wd(n)}class H1{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ne,this.onMicrotaskEmpty=new ne,this.onStable=new ne,this.onError=new ne}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}let Qd=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ve.assertNotInAngularZone(),qd(()=>{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())qd(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,r,i){return[]}}return n.\u0275fac=function(t){return new(t||n)(D(ve))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),Xv=(()=>{class n{constructor(){this._applications=new Map,Yd.addToWindow(this)}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Yd.findTestabilityInTree(this,t,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class U1{addToWindow(e){}findTestabilityInTree(e,t,r){return null}}let mn,Yd=new U1;const Jv=new x("AllowMultipleToken");class eb{constructor(e,t){this.name=e,this.token=t}}function tb(n,e,t=[]){const r=`Platform: ${e}`,i=new x(r);return(s=[])=>{let o=nb();if(!o||o.injector.get(Jv,!1))if(n)n(t.concat(s).concat({provide:i,useValue:!0}));else{const a=t.concat(s).concat({provide:i,useValue:!0},{provide:id,useValue:"platform"});!function q1(n){if(mn&&!mn.destroyed&&!mn.injector.get(Jv,!1))throw new it(400,"");mn=n.get(rb);const e=n.get(qv,null);e&&e.forEach(t=>t())}(Ze.create({providers:a,name:r}))}return function W1(n){const e=nb();if(!e)throw new it(401,"");return e}()}}function nb(){return mn&&!mn.destroyed?mn:null}let rb=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const a=function K1(n,e){let t;return t="noop"===n?new H1:("zone.js"===n?void 0:n)||new ve({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:ve,useValue:a}];return a.run(()=>{const u=Ze.create({providers:l,parent:this.injector,name:t.moduleType.name}),c=t.create(u),d=c.injector.get(Un,null);if(!d)throw new it(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});c.onDestroy(()=>{Zd(this._modules,c),h.unsubscribe()})}),function Q1(n,e,t){try{const r=t();return no(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(d,a,()=>{const h=c.injector.get(ns);return h.runInitializers(),h.donePromise.then(()=>(function Sx(n){Tt(n,"Expected localeId to be defined"),"string"==typeof n&&(Ly=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(Wn,za)||za),this._moduleDoBootstrap(c),c))})})}bootstrapModule(t,r=[]){const i=ib({},r);return function z1(n,e,t){const r=new Fd(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(t){const r=t.injector.get(go);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new it(403,"");t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new it(404,"");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(D(Ze))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();function ib(n,e){return Array.isArray(e)?e.reduce(ib,n):Object.assign(Object.assign({},n),e)}let go=(()=>{class n{constructor(t,r,i,s,o){this._zone=t,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new be(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new be(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ve.assertNotInAngularZone(),qd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{ve.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function Y0(...n){const e=Ss(n),t=function $0(n,e){return"number"==typeof Tu(n)?n.pop():e}(n,1/0),r=n;return r.length?1===r.length?sn(r[0]):Ms(t)(We(r,e)):Ln}(a,l.pipe(Lp()))}bootstrap(t,r){if(!this._initStatus.done)throw new it(405,"");let i;i=t instanceof lv?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const s=function G1(n){return n.isBoundToModule}(i)?void 0:this._injector.get(qn),a=i.create(Ze.NULL,[],r||i.selector,s),l=a.location.nativeElement,u=a.injector.get(Qd,null),c=u&&a.injector.get(Xv);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),Zd(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new it(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Zd(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Wv,[]).concat(this._bootstrapListeners).forEach(i=>i(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(D(ve),D(Ze),D(Un),D(Qr),D(ns))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();function Zd(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let ob=!0,Kn=(()=>{class n{}return n.__NG_ELEMENT_ID__=X1,n})();function X1(n){return function J1(n,e,t){if(aa(n)&&!t){const r=It(n.index,e);return new uo(r,r)}return 47&n.type?new uo(e[16],e):null}(je(),b(),16==(16&n))}class fb{constructor(){}supports(e){return eo(e)}create(e){return new sR(e)}}const iR=(n,e)=>e;class sR{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||iR}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,s=null;for(;t||r;){const o=!r||t&&t.currentIndex<gb(r,i,s)?t:r,a=gb(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{s||(s=[]);const u=a-i,c=l-i;if(u!=c){for(let h=0;h<u;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;c<=p&&p<u&&(s[h]=f+1)}s[o.previousIndex]=c-u}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!eo(e))throw new Error(`Error trying to diff '${ee(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i,s,o,t=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),r=!0),t=t._next}else i=0,function fI(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[Li()]();let r;for(;!(r=t.next()).done;)e(r.value)}}(e,a=>{o=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,a,o,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):e=this._addAfter(new oR(t,r),s,i),e}_verifyReinsertion(e,t,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new pb),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pb),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class oR{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aR{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class pb{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new aR,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gb(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r<t.length&&(i=t[r]),r+e+i}class mb{constructor(){}supports(e){return e instanceof Map||cd(e)}create(){return new lR}}class lR{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||cd(e)))throw new Error(`Error trying to diff '${ee(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,i)=>{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,t);const s=i._prev,o=i._next;return s&&(s._next=o),o&&(o._prev=s),i._next=null,i._prev=null,i}const r=new uR(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_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,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,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,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class uR{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 _b(){return new mo([new fb])}let mo=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||_b()),deps:[[n,new fr,new Ct]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function cR(n){return n.name||typeof n}(t)}'`)}}return n.\u0275prov=P({token:n,providedIn:"root",factory:_b}),n})();function yb(){return new rs([new mb])}let rs=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||yb()),deps:[[n,new fr,new Ct]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return n.\u0275prov=P({token:n,providedIn:"root",factory:yb}),n})();const dR=[new mb],fR=new mo([new fb]),pR=new rs(dR),gR=tb(null,"core",[{provide:tl,useValue:"unknown"},{provide:rb,deps:[Ze]},{provide:Xv,deps:[]},{provide:Kv,deps:[]}]),bR=[{provide:go,useClass:go,deps:[ve,Ze,Un,Qr,ns]},{provide:RF,deps:[ve],useFactory:function ER(n){let e=[];return n.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ns,useClass:ns,deps:[[new Ct,el]]},{provide:nl,useClass:nl,deps:[]},O1,{provide:mo,useFactory:function mR(){return fR},deps:[]},{provide:rs,useFactory:function _R(){return pR},deps:[]},{provide:Wn,useFactory:function yR(n){return n||function vR(){return"undefined"!=typeof $localize&&$localize.locale||za}()},deps:[[new $s(Wn),new Ct,new fr]]},{provide:Qv,useValue:"USD"}];let DR=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(D(go))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:bR}),n})(),il=null;function Fn(){return il}const ae=new x("DocumentToken");let Zr=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(){return function SR(){return D(vb)}()},providedIn:"platform"}),n})();const TR=new x("Location Initialized");let vb=(()=>{class n extends Zr{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fn().getBaseHref(this._doc)}onPopState(t){const r=Fn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Fn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,r,i){bb()?this._history.pushState(t,r,i):this.location.hash=i}replaceState(t,r,i){bb()?this._history.replaceState(t,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(D(ae))},n.\u0275prov=P({token:n,factory:function(){return function AR(){return new vb(D(ae))}()},providedIn:"platform"}),n})();function bb(){return!!window.history.pushState}function nh(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Eb(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Qn(n){return n&&"?"!==n[0]?"?"+n:n}let is=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(){return function IR(n){const e=D(ae).location;return new Db(D(Zr),e&&e.origin||"")}()},providedIn:"root"}),n})();const rh=new x("appBaseHref");let Db=(()=>{class n extends is{constructor(t,r){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return nh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Qn(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,s){const o=this.prepareExternalUrl(i+Qn(s));this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){const o=this.prepareExternalUrl(i+Qn(s));this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(D(Zr),D(rh,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),xR=(()=>{class n extends is{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=nh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,s){let o=this.prepareExternalUrl(i+Qn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){let o=this.prepareExternalUrl(i+Qn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(D(Zr),D(rh,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),ih=(()=>{class n{constructor(t,r){this._subject=new ne,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Eb(Cb(i)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Qn(r))}normalize(t){return n.stripTrailingSlash(function RR(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,Cb(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._platformStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Qn(r)),i)}replaceState(t,r="",i=null){this._platformStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Qn(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}}return n.normalizeQueryParams=Qn,n.joinWithSlash=nh,n.stripTrailingSlash=Eb,n.\u0275fac=function(t){return new(t||n)(D(is),D(Zr))},n.\u0275prov=P({token:n,factory:function(){return function FR(){return new ih(D(is),D(Zr))}()},providedIn:"root"}),n})();function Cb(n){return n.replace(/\/index.html$/,"")}var Ve=(()=>((Ve=Ve||{})[Ve.Zero=0]="Zero",Ve[Ve.One=1]="One",Ve[Ve.Two=2]="Two",Ve[Ve.Few=3]="Few",Ve[Ve.Many=4]="Many",Ve[Ve.Other=5]="Other",Ve))();const BR=function Ny(n){return function gt(n){const e=function Dx(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=Py(e);if(t)return t;const r=e.split("-")[0];if(t=Py(r),t)return t;if("en"===r)return Ex;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[w.PluralCase]};class pl{}let pO=(()=>{class n extends pl{constructor(t){super(),this.locale=t}getPluralCategory(t,r){switch(BR(r||this.locale)(t)){case Ve.Zero:return"zero";case Ve.One:return"one";case Ve.Two:return"two";case Ve.Few:return"few";case Ve.Many:return"many";default:return"other"}}}return n.\u0275fac=function(t){return new(t||n)(D(Wn))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class yO{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Rb=(()=>{class n{constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,s,o)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new yO(i.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,o),Ob(a,i)}});for(let i=0,s=r.length;i<s;i++){const a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{Ob(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(m(Nt),m(kt),m(mo))},n.\u0275dir=I({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Ob(n,e){n.context.$implicit=e.item}let gl=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new vO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){kb("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){kb("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(m(Nt),m(kt))},n.\u0275dir=I({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class vO{constructor(){this.$implicit=null,this.ngIf=null}}function kb(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ee(e)}'.`)}class fh{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let vo=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let r=0;r<this._defaultViews.length;r++)this._defaultViews[r].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),ph=(()=>{class n{constructor(t,r,i){this.ngSwitch=i,i._addCase(),this._view=new fh(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(m(Nt),m(kt),m(vo,9))},n.\u0275dir=I({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),Nb=(()=>{class n{constructor(t,r,i){i._addDefault(new fh(t,r))}}return n.\u0275fac=function(t){return new(t||n)(m(Nt),m(kt),m(vo,9))},n.\u0275dir=I({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),gh=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const r=this._viewContainerRef;this._viewRef&&r.remove(r.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?r.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(m(Nt))},n.\u0275dir=I({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Dt]}),n})(),yh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[{provide:pl,useClass:pO}]}),n})();const Bb="browser";let qO=(()=>{class n{}return n.\u0275prov=P({token:n,providedIn:"root",factory:()=>new WO(D(ae),window)}),n})();class WO{constructor(e,t){this.document=e,this.window=t,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 t=function KO(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const s=i.shadowRoot;if(s){const o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}i=r.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(r-s[0],i-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=jb(this.window.history)||jb(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function jb(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class vh extends class YO extends class MR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function wR(n){il||(il=n)}(new vh)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function ZO(){return bo=bo||document.querySelector("base"),bo?bo.getAttribute("href"):null}();return null==t?null:function XO(n){ml=ml||document.createElement("a"),ml.setAttribute("href",n);const e=ml.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){bo=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function gO(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let ml,bo=null;const Hb=new x("TRANSITION_ID"),ek=[{provide:el,useFactory:function JO(n,e,t){return()=>{t.get(ns).donePromise.then(()=>{const r=Fn(),i=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[Hb,ae,Ze],multi:!0}];class bh{static init(){!function $1(n){Yd=n}(new bh)}addToWindow(e){le.getAngularTestability=(r,i=!0)=>{const s=e.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},le.getAllAngularTestabilities=()=>e.getAllTestabilities(),le.getAllAngularRootElements=()=>e.getAllRootElements(),le.frameworkStabilizers||(le.frameworkStabilizers=[]),le.frameworkStabilizers.push(r=>{const i=le.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(l){o=o||l,s--,0==s&&r(o)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,r){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:r?Fn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let tk=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const _l=new x("EventManagerPlugins");let yl=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>i.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let s=0;s<i.length;s++){const o=i[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(D(_l),D(ve))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class Ub{constructor(e){this._doc=e}addGlobalEventListener(e,t,r){const i=Fn().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,r)}}let $b=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),Eo=(()=>{class n extends $b{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,i){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(zb),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(t,i,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(zb))}}return n.\u0275fac=function(t){return new(t||n)(D(ae))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();function zb(n){Fn().remove(n)}const Eh={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/"},Dh=/%COMP%/g;function vl(n,e,t){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?vl(n,i,t):(i=i.replace(Dh,n),t.push(i))}return t}function Wb(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let bl=(()=>{class n{constructor(t,r,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Ch(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case an.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new ak(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(t),i}case 1:case an.ShadowDom:return new lk(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const i=vl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(D(yl),D(Eo),D(po))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class Ch{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Eh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,r){e&&e.insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const s=Eh[i];s?e.setAttributeNS(s,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=Eh[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(Rt.DashCase|Rt.Important)?e.style.setProperty(t,r,i&Rt.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&Rt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Wb(r)):this.eventManager.addEventListener(e,t,Wb(r))}}class ak extends Ch{constructor(e,t,r,i){super(e),this.component=r;const s=vl(i+"-"+r.id,r.styles,[]);t.addStyles(s),this.contentAttr=function ik(n){return"_ngcontent-%COMP%".replace(Dh,n)}(i+"-"+r.id),this.hostAttr=function sk(n){return"_nghost-%COMP%".replace(Dh,n)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class lk extends Ch{constructor(e,t,r,i){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=vl(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let uk=(()=>{class n extends Ub{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return n.\u0275fac=function(t){return new(t||n)(D(ae))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const Qb=["alt","control","meta","shift"],dk={"\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"},Yb={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},hk={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let fk=(()=>{class n extends Ub{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const s=n.parseEventName(r),o=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=n._normalizeKey(r.pop());let o="";if(Qb.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=i,a.fullKey=o,a}static getEventFullKey(t){let r="",i=function pk(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&Yb.hasOwnProperty(e)&&(e=Yb[e]))}return dk[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Qb.forEach(s=>{s!=i&&hk[s](t)&&(r+=s+".")}),r+=i,r}static eventCallback(t,r,i){return s=>{n.getEventFullKey(s)===t&&i.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(D(ae))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const yk=tb(gR,"browser",[{provide:tl,useValue:Bb},{provide:qv,useValue:function gk(){vh.makeCurrent(),bh.init()},multi:!0},{provide:ae,useFactory:function _k(){return function CM(n){Uu=n}(document),document},deps:[]}]),vk=[{provide:id,useValue:"root"},{provide:Un,useFactory:function mk(){return new Un},deps:[]},{provide:_l,useClass:uk,multi:!0,deps:[ae,ve,tl]},{provide:_l,useClass:fk,multi:!0,deps:[ae]},{provide:bl,useClass:bl,deps:[yl,Eo,po]},{provide:lo,useExisting:bl},{provide:$b,useExisting:Eo},{provide:Eo,useClass:Eo,deps:[ae]},{provide:Qd,useClass:Qd,deps:[ve]},{provide:yl,useClass:yl,deps:[_l,ve]},{provide:class QO{},useClass:tk,deps:[]}];let Zb=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:po,useValue:t.appId},{provide:Hb,useExisting:po},ek]}}}return n.\u0275fac=function(t){return new(t||n)(D(n,12))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:vk,imports:[yh,DR]}),n})();"undefined"!=typeof window&&window;let Mh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:function(t){let r=null;return r=t?new(t||n):D(eE),r},providedIn:"root"}),n})(),eE=(()=>{class n extends Mh{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case ie.NONE:return r;case ie.HTML:return Cn(r,"HTML")?Ft(r):Qg(this._doc,String(r)).toString();case ie.STYLE:return Cn(r,"Style")?Ft(r):r;case ie.SCRIPT:if(Cn(r,"Script"))return Ft(r);throw new Error("unsafe value used in a script context");case ie.URL:return Hg(r),Cn(r,"URL")?Ft(r):Gs(String(r));case ie.RESOURCE_URL:if(Cn(r,"ResourceURL"))return Ft(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function LS(n){return new RS(n)}(t)}bypassSecurityTrustStyle(t){return function VS(n){return new OS(n)}(t)}bypassSecurityTrustScript(t){return function BS(n){return new kS(n)}(t)}bypassSecurityTrustUrl(t){return function jS(n){return new NS(n)}(t)}bypassSecurityTrustResourceUrl(t){return function HS(n){return new PS(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(D(ae))},n.\u0275prov=P({token:n,factory:function(t){let r=null;return r=t?new t:function Ik(n){return new eE(n.get(ae))}(D(Ze)),r},providedIn:"root"}),n})();function V(...n){return We(n,Ss(n))}class Xt extends Ge{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}const{isArray:xk}=Array,{getPrototypeOf:Fk,prototype:Rk,keys:Ok}=Object;function tE(n){if(1===n.length){const e=n[0];if(xk(e))return{args:e,keys:null};if(function kk(n){return n&&"object"==typeof n&&Fk(n)===Rk}(e)){const t=Ok(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}const{isArray:Nk}=Array;function nE(n){return Z(e=>function Pk(n,e){return Nk(e)?n(...e):n(e)}(n,e))}function rE(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}function iE(n,e,t){n?Pn(t,n,e):e()}const El=Cs(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function Sh(...n){return function Bk(){return Ms(1)}()(We(n,Ss(n)))}function sE(n){return new be(e=>{sn(n()).subscribe(e)})}function oE(){return Ne((n,e)=>{let t=null;n._refCount++;const r=new Re(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const i=n._connection,s=t;t=null,i&&(!s||i===s)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}class jk extends be{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,vp(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,null==e||e.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ye;const t=this.getSubject();e.add(this.source.subscribe(new Re(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ye.EMPTY)}return e}refCount(){return oE()(this)}}function br(n,e){return Ne((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(new Re(r,l=>{null==i||i.unsubscribe();let u=0;const c=s++;sn(n(l,c)).subscribe(i=new Re(r,d=>r.next(e?e(l,d,c,u++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function Do(...n){const e=Ss(n);return Ne((t,r)=>{(e?Sh(n,t,e):Sh(n,t)).subscribe(r)})}function Hk(n,e,t,r,i){return(s,o)=>{let a=t,l=e,u=0;s.subscribe(new Re(o,c=>{const d=u++;l=a?n(l,c,d):(a=!0,c),r&&o.next(l)},i&&(()=>{a&&o.next(l),o.complete()})))}}function aE(n,e){return Ne(Hk(n,e,arguments.length>=2,!0))}function Zn(n,e){return Ne((t,r)=>{let i=0;t.subscribe(new Re(r,s=>n.call(e,s,i++)&&r.next(s)))})}function Xn(n){return Ne((e,t)=>{let s,r=null,i=!1;r=e.subscribe(new Re(t,void 0,void 0,o=>{s=sn(n(o,Xn(n)(e))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function ss(n,e){return he(e)?qe(n,e,1):qe(n,1)}function Th(n){return n<=0?()=>Ln:Ne((e,t)=>{let r=[];e.subscribe(new Re(t,i=>{r.push(i),n<r.length&&r.shift()},()=>{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function lE(n=Uk){return Ne((e,t)=>{let r=!1;e.subscribe(new Re(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(n())))})}function Uk(){return new El}function uE(n){return Ne((e,t)=>{let r=!1;e.subscribe(new Re(t,i=>{r=!0,t.next(i)},()=>{r||t.next(n),t.complete()}))})}function os(n,e){const t=arguments.length>=2;return r=>r.pipe(n?Zn((i,s)=>n(i,s,r)):ir,Ts(1),t?uE(e):lE(()=>new El))}function tt(n,e,t){const r=he(n)||e||t?{next:n,error:e,complete:t}:n;return r?Ne((i,s)=>{var o;null===(o=r.subscribe)||void 0===o||o.call(r);let a=!0;i.subscribe(new Re(s,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),s.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),s.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),s.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):ir}function cE(n){return Ne((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}class Jn{constructor(e,t){this.id=e,this.url=t}}class Ah extends Jn{constructor(e,t,r="imperative",i=null){super(e,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Co extends Jn{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class dE extends Jn{constructor(e,t,r){super(e,t),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class zk extends Jn{constructor(e,t,r){super(e,t),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gk extends Jn{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qk extends Jn{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wk extends Jn{constructor(e,t,r,i,s){super(e,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Kk extends Jn{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qk extends Jn{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hE{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fE{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yk{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zk{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xk{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jk{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pE{constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Y="primary";class eN{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function as(n){return new eN(n)}const gE="ngNavigationCancelingError";function Ih(n){const e=Error("NavigationCancelingError: "+n);return e[gE]=!0,e}function nN(n,e,t){const r=t.path.split("/");if(r.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||r.length<n.length))return null;const i={};for(let s=0;s<r.length;s++){const o=r[s],a=n[s];if(o.startsWith(":"))i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,r.length),posParams:i}}function Rn(n,e){const t=n?Object.keys(n):void 0,r=e?Object.keys(e):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!mE(n[i],e[i]))return!1;return!0}function mE(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;const t=[...n].sort(),r=[...e].sort();return t.every((i,s)=>r[s]===i)}return n===e}function _E(n){return Array.prototype.concat.apply([],n)}function yE(n){return n.length>0?n[n.length-1]:null}function nt(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function On(n){return _d(n)?n:no(n)?We(Promise.resolve(n)):V(n)}const sN={exact:function EE(n,e,t){if(!Jr(n.segments,e.segments)||!Dl(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!n.children[r]||!EE(n.children[r],e.children[r],t))return!1;return!0},subset:DE},vE={exact:function oN(n,e){return Rn(n,e)},subset:function aN(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>mE(n[t],e[t]))},ignored:()=>!0};function bE(n,e,t){return sN[t.paths](n.root,e.root,t.matrixParams)&&vE[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function DE(n,e,t){return CE(n,e,e.segments,t)}function CE(n,e,t,r){if(n.segments.length>t.length){const i=n.segments.slice(0,t.length);return!(!Jr(i,t)||e.hasChildren()||!Dl(i,t,r))}if(n.segments.length===t.length){if(!Jr(n.segments,t)||!Dl(n.segments,t,r))return!1;for(const i in e.children)if(!n.children[i]||!DE(n.children[i],e.children[i],r))return!1;return!0}{const i=t.slice(0,n.segments.length),s=t.slice(n.segments.length);return!!(Jr(n.segments,i)&&Dl(n.segments,i,r)&&n.children[Y])&&CE(n.children[Y],e,s,r)}}function Dl(n,e,t){return e.every((r,i)=>vE[t](n[i].parameters,r.parameters))}class Xr{constructor(e,t,r){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=as(this.queryParams)),this._queryParamMap}toString(){return cN.serialize(this)}}class J{constructor(e,t){this.segments=e,this.children=t,this.parent=null,nt(t,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cl(this)}}class wo{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=as(this.parameters)),this._parameterMap}toString(){return AE(this)}}function Jr(n,e){return n.length===e.length&&n.every((t,r)=>t.path===e[r].path)}class wE{}class ME{parse(e){const t=new vN(e);return new Xr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Mo(e.root,!0)}`,r=function fN(n){const e=Object.keys(n).map(t=>{const r=n[t];return Array.isArray(r)?r.map(i=>`${wl(t)}=${wl(i)}`).join("&"):`${wl(t)}=${wl(r)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${r}${"string"==typeof e.fragment?`#${function dN(n){return encodeURI(n)}(e.fragment)}`:""}`}}const cN=new ME;function Cl(n){return n.segments.map(e=>AE(e)).join("/")}function Mo(n,e){if(!n.hasChildren())return Cl(n);if(e){const t=n.children[Y]?Mo(n.children[Y],!1):"",r=[];return nt(n.children,(i,s)=>{s!==Y&&r.push(`${s}:${Mo(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function uN(n,e){let t=[];return nt(n.children,(r,i)=>{i===Y&&(t=t.concat(e(r,i)))}),nt(n.children,(r,i)=>{i!==Y&&(t=t.concat(e(r,i)))}),t}(n,(r,i)=>i===Y?[Mo(n.children[Y],!1)]:[`${i}:${Mo(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Y]?`${Cl(n)}/${t[0]}`:`${Cl(n)}/(${t.join("//")})`}}function SE(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wl(n){return SE(n).replace(/%3B/gi,";")}function xh(n){return SE(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ml(n){return decodeURIComponent(n)}function TE(n){return Ml(n.replace(/\+/g,"%20"))}function AE(n){return`${xh(n.path)}${function hN(n){return Object.keys(n).map(e=>`;${xh(e)}=${xh(n[e])}`).join("")}(n.parameters)}`}const pN=/^[^\/()?;=#]+/;function Sl(n){const e=n.match(pN);return e?e[0]:""}const gN=/^[^=?&#]+/,_N=/^[^&#]+/;class vN{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],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 t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[Y]=new J(e,t)),r}parseSegment(){const e=Sl(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new wo(Ml(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Sl(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=Sl(this.remaining);i&&(r=i,this.capture(r))}e[Ml(t)]=Ml(r)}parseQueryParam(e){const t=function mN(n){const e=n.match(gN);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=function yN(n){const e=n.match(_N);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}const i=TE(t),s=TE(r);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Sl(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;r.indexOf(":")>-1?(s=r.substr(0,r.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=Y);const o=this.parseChildren();t[s]=1===Object.keys(o).length?o[Y]:new J([],o),this.consumeOptional("//")}return t}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 Error(`Expected "${e}".`)}}class IE{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Fh(e,this._root);return t?t.children.map(r=>r.value):[]}firstChild(e){const t=Fh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Rh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Rh(e,this._root).map(t=>t.value)}}function Fh(n,e){if(n===e.value)return e;for(const t of e.children){const r=Fh(n,t);if(r)return r}return null}function Rh(n,e){if(n===e.value)return[e];for(const t of e.children){const r=Rh(n,t);if(r.length)return r.unshift(e),r}return[]}class er{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ls(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class xE extends IE{constructor(e,t){super(e),this.snapshot=t,Oh(this,e)}toString(){return this.snapshot.toString()}}function FE(n,e){const t=function bN(n,e){const o=new Tl([],{},{},"",{},Y,e,null,n.root,-1,{});return new OE("",new er(o,[]))}(n,e),r=new Xt([new wo("",{})]),i=new Xt({}),s=new Xt({}),o=new Xt({}),a=new Xt(""),l=new us(r,i,o,a,s,Y,e,t.root);return l.snapshot=t.root,new xE(new er(l,[]),t)}class us{constructor(e,t,r,i,s,o,a,l){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Z(e=>as(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Z(e=>as(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function RE(n,e="emptyOnly"){const t=n.pathFromRoot;let r=0;if("always"!==e)for(r=t.length-1;r>=1;){const i=t[r],s=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function EN(n){return n.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Tl{constructor(e,t,r,i,s,o,a,l,u,c,d){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=as(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=as(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class OE extends IE{constructor(e,t){super(t),this.url=e,Oh(this,t)}toString(){return kE(this._root)}}function Oh(n,e){e.value._routerState=n,e.children.forEach(t=>Oh(n,t))}function kE(n){const e=n.children.length>0?` { ${n.children.map(kE).join(", ")} } `:"";return`${n.value}${e}`}function kh(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Rn(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Rn(e.params,t.params)||n.params.next(t.params),function rN(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;++t)if(!Rn(n[t],e[t]))return!1;return!0}(e.url,t.url)||n.url.next(t.url),Rn(e.data,t.data)||n.data.next(t.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function Nh(n,e){const t=Rn(n.params,e.params)&&function lN(n,e){return Jr(n,e)&&n.every((t,r)=>Rn(t.parameters,e[r].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||Nh(n.parent,e.parent))}function So(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=e.value;const i=function CN(n,e,t){return e.children.map(r=>{for(const i of t.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return So(n,r,i);return So(n,r)})}(n,e,t);return new er(r,i)}{if(n.shouldAttach(e.value)){const s=n.retrieve(e.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>So(n,a)),o}}const r=function wN(n){return new us(new Xt(n.url),new Xt(n.params),new Xt(n.queryParams),new Xt(n.fragment),new Xt(n.data),n.outlet,n.component,n)}(e.value),i=e.children.map(s=>So(n,s));return new er(r,i)}}function Al(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function To(n){return"object"==typeof n&&null!=n&&n.outlets}function Ph(n,e,t,r,i){let s={};return r&&nt(r,(o,a)=>{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Xr(t.root===n?e:NE(t.root,n,e),s,i)}function NE(n,e,t){const r={};return nt(n.children,(i,s)=>{r[s]=i===e?t:NE(i,e,t)}),new J(n.segments,r)}class PE{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&Al(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(To);if(i&&i!==yE(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lh{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function LE(n,e,t){if(n||(n=new J([],{})),0===n.segments.length&&n.hasChildren())return Il(n,e,t);const r=function xN(n,e,t){let r=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(r>=t.length)return s;const o=n.segments[i],a=t[r];if(To(a))break;const l=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!BE(l,u,o))return s;r+=2}else{if(!BE(l,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,e,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<n.segments.length){const s=new J(n.segments.slice(0,r.pathIndex),{});return s.children[Y]=new J(n.segments.slice(r.pathIndex),n.children),Il(s,0,i)}return r.match&&0===i.length?new J(n.segments,{}):r.match&&!n.hasChildren()?Vh(n,e,t):r.match?Il(n,0,i):Vh(n,e,t)}function Il(n,e,t){if(0===t.length)return new J(n.segments,{});{const r=function IN(n){return To(n[0])?n[0].outlets:{[Y]:n}}(t),i={};return nt(r,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=LE(n.children[o],e,s))}),nt(n.children,(s,o)=>{void 0===r[o]&&(i[o]=s)}),new J(n.segments,i)}}function Vh(n,e,t){const r=n.segments.slice(0,e);let i=0;for(;i<t.length;){const s=t[i];if(To(s)){const l=FN(s.outlets);return new J(r,l)}if(0===i&&Al(t[0])){r.push(new wo(n.segments[e].path,VE(t[0]))),i++;continue}const o=To(s)?s.outlets[Y]:`${s}`,a=i<t.length-1?t[i+1]:null;o&&a&&Al(a)?(r.push(new wo(o,VE(a))),i+=2):(r.push(new wo(o,{})),i++)}return new J(r,{})}function FN(n){const e={};return nt(n,(t,r)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[r]=Vh(new J([],{}),0,t))}),e}function VE(n){const e={};return nt(n,(t,r)=>e[r]=`${t}`),e}function BE(n,e,t){return n==t.path&&Rn(e,t.parameters)}class ON{constructor(e,t,r,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=i}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),kh(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const i=ls(t);e.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),nt(i,(s,o)=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(e,t,r){const i=e.value,s=t?t.value:null;if(i===s)if(i.component){const o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,r);else s&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,s=ls(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);if(r&&r.outlet){const o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,s=ls(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,t,r){const i=ls(t);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new Jk(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Zk(e.value.snapshot))}activateRoutes(e,t,r){const i=e.value,s=t?t.value:null;if(kh(i),i===s)if(i.component){const o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,r);else if(i.component){const o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),kh(a.route.value),this.activateChildRoutes(e,null,o.children)}else{const a=function kN(n){for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=l,o.outlet&&o.outlet.activateWith(i,l),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,r)}}class Bh{constructor(e,t){this.routes=e,this.module=t}}function Er(n){return"function"==typeof n}function ei(n){return n instanceof Xr}const Ao=Symbol("INITIAL_VALUE");function Io(){return br(n=>function Lk(...n){const e=Ss(n),t=Op(n),{args:r,keys:i}=tE(n);if(0===r.length)return We([],e);const s=new be(function Vk(n,e,t=ir){return r=>{iE(e,()=>{const{length:i}=n,s=new Array(i);let o=i,a=i;for(let l=0;l<i;l++)iE(e,()=>{const u=We(n[l],e);let c=!1;u.subscribe(new Re(r,d=>{s[l]=d,c||(c=!0,a--),a||r.next(t(s.slice()))},()=>{--o||r.complete()}))},r)},r)}}(r,e,i?o=>rE(i,o):ir));return t?s.pipe(nE(t)):s}(n.map(e=>e.pipe(Ts(1),Do(Ao)))).pipe(aE((e,t)=>{let r=!1;return t.reduce((i,s,o)=>i!==Ao?i:(s===Ao&&(r=!0),r||!1!==s&&o!==t.length-1&&!ei(s)?i:s),e)},Ao),Zn(e=>e!==Ao),Z(e=>ei(e)?e:!0===e),Ts(1)))}class jN{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new xo,this.attachRef=null}}class xo{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new jN,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}let jE=(()=>{class n{constructor(t,r,i,s,o){this.parentContexts=t,this.location=r,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ne,this.deactivateEvents=new ne,this.attachEvents=new ne,this.detachEvents=new ne,this.name=s||Y,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const o=(r=r||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new HN(t,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(m(xo),m(Nt),m(Qr),hr("name"),m(Kn))},n.\u0275dir=I({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class HN{constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===us?this.route:e===xo?this.childContexts:this.parent.get(e,t)}}let HE=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=vt({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,r){1&t&&oe(0,"router-outlet")},directives:[jE],encapsulation:2}),n})();function UE(n,e=""){for(let t=0;t<n.length;t++){const r=n[t];UN(r,$N(e,r))}}function UN(n,e){n.children&&UE(n.children,e)}function $N(n,e){return e?n||e.path?n&&!e.path?`${n}/`:!n&&e.path?e.path:`${n}/${e.path}`:"":n}function jh(n){const e=n.children&&n.children.map(jh),t=e?Object.assign(Object.assign({},n),{children:e}):Object.assign({},n);return!t.component&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Y&&(t.component=HE),t}function Jt(n){return n.outlet||Y}function $E(n,e){const t=n.filter(r=>Jt(r)===e);return t.push(...n.filter(r=>Jt(r)!==e)),t}const zE={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function xl(n,e,t){var r;if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?Object.assign({},zE):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||nN)(t,n,e);if(!s)return Object.assign({},zE);const o={};nt(s.posParams,(l,u)=>{o[u]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function Fl(n,e,t,r,i="corrected"){if(t.length>0&&function qN(n,e,t){return t.some(r=>Rl(n,e,r)&&Jt(r)!==Y)}(n,t,r)){const o=new J(e,function GN(n,e,t,r){const i={};i[Y]=r,r._sourceSegment=n,r._segmentIndexShift=e.length;for(const s of t)if(""===s.path&&Jt(s)!==Y){const o=new J([],{});o._sourceSegment=n,o._segmentIndexShift=e.length,i[Jt(s)]=o}return i}(n,e,r,new J(t,n.children)));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function WN(n,e,t){return t.some(r=>Rl(n,e,r))}(n,t,r)){const o=new J(n.segments,function zN(n,e,t,r,i,s){const o={};for(const a of r)if(Rl(n,t,a)&&!i[Jt(a)]){const l=new J([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===s?n.segments.length:e.length,o[Jt(a)]=l}return Object.assign(Object.assign({},i),o)}(n,e,t,r,n.children,i));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}const s=new J(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}function Rl(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function GE(n,e,t,r){return!!(Jt(n)===r||r!==Y&&Rl(e,t,n))&&("**"===n.path||xl(e,n,t).matched)}function qE(n,e,t){return 0===e.length&&!n.children[t]}class Fo{constructor(e){this.segmentGroup=e||null}}class WE{constructor(e){this.urlTree=e}}function Ol(n){return new be(e=>e.error(new Fo(n)))}function KE(n){return new be(e=>e.error(new WE(n)))}function KN(n){return new be(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class ZN{constructor(e,t,r,i,s){this.configLoader=t,this.urlSerializer=r,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(qn)}apply(){const e=Fl(this.urlTree.root,[],[],this.config).segmentGroup,t=new J(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,Y).pipe(Z(s=>this.createUrlTree(Hh(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Xn(s=>{if(s instanceof WE)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Fo?this.noMatchError(s):s}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,Y).pipe(Z(i=>this.createUrlTree(Hh(i),e.queryParams,e.fragment))).pipe(Xn(i=>{throw i instanceof Fo?this.noMatchError(i):i}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,r){const i=e.segments.length>0?new J([],{[Y]:e}):e;return new Xr(i,t,r)}expandSegmentGroup(e,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,t,r).pipe(Z(s=>new J([],s))):this.expandSegment(e,r,t,r.segments,i,!0)}expandChildren(e,t,r){const i=[];for(const s of Object.keys(r.children))"primary"===s?i.unshift(s):i.push(s);return We(i).pipe(ss(s=>{const o=r.children[s],a=$E(t,s);return this.expandSegmentGroup(e,a,o,s).pipe(Z(l=>({segment:l,outlet:s})))}),aE((s,o)=>(s[o.outlet]=o.segment,s),{}),function $k(n,e){const t=arguments.length>=2;return r=>r.pipe(n?Zn((i,s)=>n(i,s,r)):ir,Th(1),t?uE(e):lE(()=>new El))}())}expandSegment(e,t,r,i,s,o){return We(r).pipe(ss(a=>this.expandSegmentAgainstRoute(e,t,r,a,i,s,o).pipe(Xn(u=>{if(u instanceof Fo)return V(null);throw u}))),os(a=>!!a),Xn((a,l)=>{if(a instanceof El||"EmptyError"===a.name){if(qE(t,i,s))return V(new J([],{}));throw new Fo(t)}throw a}))}expandSegmentAgainstRoute(e,t,r,i,s,o,a){return GE(i,t,s,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o):Ol(t):Ol(t)}expandSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,r,i){const s=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?KE(s):this.lineralizeSegments(r,s).pipe(qe(o=>{const a=new J(o,{});return this.expandSegment(e,a,t,o,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o){const{matched:a,consumedSegments:l,lastChild:u,positionalParamSegments:c}=xl(t,i,s);if(!a)return Ol(t);const d=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?KE(d):this.lineralizeSegments(i,d).pipe(qe(h=>this.expandSegment(e,t,r,h.concat(s.slice(u)),o,!1)))}matchSegmentAgainstRoute(e,t,r,i,s){if("**"===r.path)return r.loadChildren?(r._loadedConfig?V(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(Z(h=>(r._loadedConfig=h,new J(i,{})))):V(new J(i,{}));const{matched:o,consumedSegments:a,lastChild:l}=xl(t,r,i);if(!o)return Ol(t);const u=i.slice(l);return this.getChildConfig(e,r,i).pipe(qe(d=>{const h=d.module,f=d.routes,{segmentGroup:p,slicedSegments:g}=Fl(t,a,u,f),y=new J(p.segments,p.children);if(0===g.length&&y.hasChildren())return this.expandChildren(h,f,y).pipe(Z(T=>new J(a,T)));if(0===f.length&&0===g.length)return V(new J(a,{}));const v=Jt(r)===s;return this.expandSegment(h,y,f,g,v?Y:s,!0).pipe(Z(E=>new J(a.concat(E.segments),E.children)))}))}getChildConfig(e,t,r){return t.children?V(new Bh(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?V(t._loadedConfig):this.runCanLoadGuards(e.injector,t,r).pipe(qe(i=>i?this.configLoader.load(e.injector,t).pipe(Z(s=>(t._loadedConfig=s,s))):function QN(n){return new be(e=>e.error(Ih(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(t))):V(new Bh([],e))}runCanLoadGuards(e,t,r){const i=t.canLoad;return i&&0!==i.length?V(i.map(o=>{const a=e.get(o);let l;if(function PN(n){return n&&Er(n.canLoad)}(a))l=a.canLoad(t,r);else{if(!Er(a))throw new Error("Invalid CanLoad guard");l=a(t,r)}return On(l)})).pipe(Io(),tt(o=>{if(!ei(o))return;const a=Ih(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),Z(o=>!0===o)):V(!0)}lineralizeSegments(e,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return V(r);if(i.numberOfChildren>1||!i.children[Y])return KN(e.redirectTo);i=i.children[Y]}}applyRedirectCommands(e,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,r)}applyRedirectCreatreUrlTree(e,t,r,i){const s=this.createSegmentGroup(e,t.root,r,i);return new Xr(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return nt(e,(i,s)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[s]=t[a]}else r[s]=i}),r}createSegmentGroup(e,t,r,i){const s=this.createSegments(e,t.segments,r,i);let o={};return nt(t.children,(a,l)=>{o[l]=this.createSegmentGroup(e,a,r,i)}),new J(s,o)}createSegments(e,t,r,i){return t.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,r))}findPosParam(e,t,r){const i=r[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let r=0;for(const i of t){if(i.path===e.path)return t.splice(r),i;r++}return e}}function Hh(n){const e={};for(const r of Object.keys(n.children)){const s=Hh(n.children[r]);(s.segments.length>0||s.hasChildren())&&(e[r]=s)}return function XN(n){if(1===n.numberOfChildren&&n.children[Y]){const e=n.children[Y];return new J(n.segments.concat(e.segments),e.children)}return n}(new J(n.segments,e))}class QE{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class kl{constructor(e,t){this.component=e,this.route=t}}function eP(n,e,t){const r=n._root;return Ro(r,e?e._root:null,t,[r.value])}function Nl(n,e,t){const r=function nP(n){if(!n)return null;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:t).get(n)}function Ro(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=ls(e);return n.children.forEach(o=>{(function rP(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function iP(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!Jr(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Jr(n.url,e.url)||!Rn(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nh(n,e)||!Rn(n.queryParams,e.queryParams);default:return!Nh(n,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new QE(r)):(s.data=o.data,s._resolvedData=o._resolvedData),Ro(n,e,s.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new kl(a.outlet.component,o))}else o&&Oo(e,a,i),i.canActivateChecks.push(new QE(r)),Ro(n,null,s.component?a?a.children:null:t,r,i)})(o,s[o.value.outlet],t,r.concat([o.value]),i),delete s[o.value.outlet]}),nt(s,(o,a)=>Oo(o,t.getContext(a),i)),i}function Oo(n,e,t){const r=ls(n),i=n.value;nt(r,(s,o)=>{Oo(s,i.component?e?e.children.getContext(o):null:e,t)}),t.canDeactivateChecks.push(new kl(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class fP{}function YE(n){return new be(e=>e.error(n))}class gP{constructor(e,t,r,i,s,o){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const e=Fl(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Y);if(null===t)return null;const r=new Tl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Y,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new er(r,t),s=new OE(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const t=e.value,r=RE(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,r)}processChildren(e,t){const r=[];for(const s of Object.keys(t.children)){const o=t.children[s],a=$E(e,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;r.push(...l)}const i=ZE(r);return function mP(n){n.sort((e,t)=>e.value.outlet===Y?-1:t.value.outlet===Y?1:e.value.outlet.localeCompare(t.value.outlet))}(i),i}processSegment(e,t,r,i){for(const s of e){const o=this.processSegmentAgainstRoute(s,t,r,i);if(null!==o)return o}return qE(t,r,i)?[]:null}processSegmentAgainstRoute(e,t,r,i){if(e.redirectTo||!GE(e,t,r,i))return null;let s,o=[],a=[];if("**"===e.path){const f=r.length>0?yE(r).parameters:{};s=new Tl(r,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,eD(e),Jt(e),e.component,e,XE(t),JE(t)+r.length,tD(e))}else{const f=xl(t,e,r);if(!f.matched)return null;o=f.consumedSegments,a=r.slice(f.lastChild),s=new Tl(o,f.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,eD(e),Jt(e),e.component,e,XE(t),JE(t)+o.length,tD(e))}const l=function _P(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(e),{segmentGroup:u,slicedSegments:c}=Fl(t,o,a,l.filter(f=>void 0===f.redirectTo),this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const f=this.processChildren(l,u);return null===f?null:[new er(s,f)]}if(0===l.length&&0===c.length)return[new er(s,[])];const d=Jt(e)===i,h=this.processSegment(l,u,c,d?Y:i);return null===h?null:[new er(s,h)]}}function yP(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function ZE(n){const e=[],t=new Set;for(const r of n){if(!yP(r)){e.push(r);continue}const i=e.find(s=>r.value.routeConfig===s.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):e.push(r)}for(const r of t){const i=ZE(r.children);e.push(new er(r.value,i))}return e.filter(r=>!t.has(r))}function XE(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function JE(n){let e=n,t=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift?e._segmentIndexShift:0;return t-1}function eD(n){return n.data||{}}function tD(n){return n.resolve||{}}function Uh(n){return br(e=>{const t=n(e);return t?We(t).pipe(Z(()=>e)):V(e)})}class SP extends class MP{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const $h=new x("ROUTES");class nD{constructor(e,t,r,i){this.injector=e,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const i=this.loadModuleFactory(t.loadChildren).pipe(Z(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);const o=s.create(e);return new Bh(_E(o.injector.get($h,void 0,U.Self|U.Optional)).map(jh),o)}),Xn(s=>{throw t._loader$=void 0,s}));return t._loader$=new jk(i,()=>new Ge).pipe(oE()),t._loader$}loadModuleFactory(e){return On(e()).pipe(qe(t=>t instanceof hv?V(t):We(this.compiler.compileModuleAsync(t))))}}class AP{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function IP(n){throw n}function xP(n,e,t){return e.parse("/")}function rD(n,e){return V(null)}const FP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pt=(()=>{class n{constructor(t,r,i,s,o,a,l){this.rootComponentType=t,this.urlSerializer=r,this.rootContexts=i,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ge,this.errorHandler=IP,this.malformedUriErrorHandler=xP,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rD,afterPreactivation:rD},this.urlHandlingStrategy=new AP,this.routeReuseStrategy=new SP,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(qn),this.console=o.get(Kv);const d=o.get(ve);this.isNgZoneEnabled=d instanceof ve&&ve.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function iN(){return new Xr(new J([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new nD(o,a,h=>this.triggerEvent(new hE(h)),h=>this.triggerEvent(new fE(h))),this.routerState=FE(this.currentUrlTree,this.rootComponentType),this.transitions=new Xt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const r=this.events;return t.pipe(Zn(i=>0!==i.id),Z(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),br(i=>{let s=!1,o=!1;return V(i).pipe(tt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),br(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Pl(a.source)&&(this.browserUrlTree=a.extractedUrl),V(a).pipe(br(d=>{const h=this.transitions.getValue();return r.next(new Ah(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Ln:Promise.resolve(d)}),function JN(n,e,t,r){return br(i=>function YN(n,e,t,r,i){return new ZN(n,e,t,r,i).apply()}(n,e,t,i.extractedUrl,r).pipe(Z(s=>Object.assign(Object.assign({},i),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),tt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function vP(n,e,t,r,i){return qe(s=>function pP(n,e,t,r,i="emptyOnly",s="legacy"){try{const o=new gP(n,e,t,r,i,s).recognize();return null===o?YE(new fP):V(o)}catch(o){return YE(o)}}(n,e,s.urlAfterRedirects,t(s.urlAfterRedirects),r,i).pipe(Z(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),tt(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new Gk(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(h)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:g,extras:y}=a,v=new Ah(h,this.serializeUrl(f),p,g);r.next(v);const _=FE(f,this.rootComponentType).snapshot;return V(Object.assign(Object.assign({},a),{targetSnapshot:_,urlAfterRedirects:f,extras:Object.assign(Object.assign({},y),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ln}),Uh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!f})}),tt(a=>{const l=new qk(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),Z(a=>Object.assign(Object.assign({},a),{guards:eP(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function sP(n,e){return qe(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return 0===o.length&&0===s.length?V(Object.assign(Object.assign({},t),{guardsResult:!0})):function oP(n,e,t,r){return We(n).pipe(qe(i=>function hP(n,e,t,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?V(s.map(a=>{const l=Nl(a,e,i);let u;if(function BN(n){return n&&Er(n.canDeactivate)}(l))u=On(l.canDeactivate(n,e,t,r));else{if(!Er(l))throw new Error("Invalid CanDeactivate guard");u=On(l(n,e,t,r))}return u.pipe(os())})).pipe(Io()):V(!0)}(i.component,i.route,t,e,r)),os(i=>!0!==i,!0))}(o,r,i,n).pipe(qe(a=>a&&function NN(n){return"boolean"==typeof n}(a)?function aP(n,e,t,r){return We(e).pipe(ss(i=>Sh(function uP(n,e){return null!==n&&e&&e(new Yk(n)),V(!0)}(i.route.parent,r),function lP(n,e){return null!==n&&e&&e(new Xk(n)),V(!0)}(i.route,r),function dP(n,e,t){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>function tP(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(o)).filter(o=>null!==o).map(o=>sE(()=>V(o.guards.map(l=>{const u=Nl(l,o.node,t);let c;if(function VN(n){return n&&Er(n.canActivateChild)}(u))c=On(u.canActivateChild(r,n));else{if(!Er(u))throw new Error("Invalid CanActivateChild guard");c=On(u(r,n))}return c.pipe(os())})).pipe(Io())));return V(s).pipe(Io())}(n,i.path,t),function cP(n,e,t){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return V(!0);const i=r.map(s=>sE(()=>{const o=Nl(s,e,t);let a;if(function LN(n){return n&&Er(n.canActivate)}(o))a=On(o.canActivate(e,n));else{if(!Er(o))throw new Error("Invalid CanActivate guard");a=On(o(e,n))}return a.pipe(os())}));return V(i).pipe(Io())}(n,i.route,t))),os(i=>!0!==i,!0))}(r,s,n,e):V(a)),Z(a=>Object.assign(Object.assign({},t),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),tt(a=>{if(ei(a.guardsResult)){const u=Ih(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new Wk(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Zn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Uh(a=>{if(a.guards.canActivateChecks.length)return V(a).pipe(tt(l=>{const u=new Kk(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),br(l=>{let u=!1;return V(l).pipe(function bP(n,e){return qe(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return V(t);let s=0;return We(i).pipe(ss(o=>function EP(n,e,t,r){return function DP(n,e,t,r){const i=Object.keys(n);if(0===i.length)return V({});const s={};return We(i).pipe(qe(o=>function CP(n,e,t,r){const i=Nl(n,e,r);return On(i.resolve?i.resolve(e,t):i(e,t))}(n[o],e,t,r).pipe(tt(a=>{s[o]=a}))),Th(1),qe(()=>Object.keys(s).length===i.length?V(s):Ln))}(n._resolve,n,e,r).pipe(Z(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),RE(n,t).resolve),null)))}(o.route,r,n,e)),tt(()=>s++),Th(1),qe(o=>s===i.length?V(t):Ln))})}(this.paramsInheritanceStrategy,this.ngModule.injector),tt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),tt(l=>{const u=new Qk(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),Uh(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!f})}),Z(a=>{const l=function DN(n,e,t){const r=So(n,e._root,t?t._root:void 0);return new xE(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),tt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>Z(r=>(new ON(e,r.targetRouterState,r.currentRouterState,t).activate(n),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),tt({next(){s=!0},complete(){s=!0}}),cE(()=>{var a;s||o||this.cancelNavigationTransition(i,`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===i.id&&(this.currentNavigation=null)}),Xn(a=>{if(o=!0,function tN(n){return n&&n[gE]}(a)){const l=ei(a.url);l||(this.navigated=!0,this.restoreHistory(i,!0));const u=new dE(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Pl(i.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new zk(i.id,this.serializeUrl(i.extractedUrl),a);r.next(l);try{i.resolve(this.errorHandler(a))}catch(u){i.reject(u)}}return Ln}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var i;const s={replaceUrl:!0},o=(null===(i=t.state)||void 0===i?void 0:i.navigationId)?t.state:null;if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(t.url);this.scheduleNavigation(a,r,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){UE(t),this.config=t.map(jh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=r,u=i||this.routerState.root,c=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function MN(n,e,t,r,i){if(0===t.length)return Ph(e.root,e.root,e,r,i);const s=function SN(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new PE(!0,0,n);let e=0,t=!1;const r=n.reduce((i,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return nt(s.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return"string"!=typeof s?[...i,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&i.push(a))}),i):[...i,s]},[]);return new PE(t,e,r)}(t);if(s.toRoot())return Ph(e.root,new J([],{}),e,r,i);const o=function TN(n,e,t){if(n.isAbsolute)return new Lh(e.root,!0,0);if(-1===t.snapshot._lastPathIndex){const s=t.snapshot._urlSegment;return new Lh(s,s===e.root,0)}const r=Al(n.commands[0])?0:1;return function AN(n,e,t){let r=n,i=e,s=t;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Lh(r,!1,i-s)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+r,n.numberOfDoubleDots)}(s,e,n),a=o.processChildren?Il(o.segmentGroup,o.index,s.commands):LE(o.segmentGroup,o.index,s.commands);return Ph(o.segmentGroup,a,e,r,i)}(u,this.currentUrlTree,t,d,null!=c?c:null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=ei(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,r)}navigate(t,r={skipLocationChange:!1}){return function OP(n){for(let e=0;e<n.length;e++){const t=n[e];if(null==t)throw new Error(`The requested path contains ${t} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let r;try{r=this.urlSerializer.parse(t)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return r}isActive(t,r){let i;if(i=!0===r?Object.assign({},FP):!1===r?Object.assign({},RP):r,ei(t))return bE(this.currentUrlTree,t,i);const s=this.parseUrl(t);return bE(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.keys(t).reduce((r,i)=>{const s=t[i];return null!=s&&(r[i]=s),r},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Co(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,r,i,s,o){var a,l,u;if(this.disposed)return Promise.resolve(!1);const c=this.transitions.value,d=Pl(r)&&c&&!Pl(c.source),h=c.rawUrl.toString()===t.toString(),f=c.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&h&&f)return Promise.resolve(!0);let g,y,v;o?(g=o.resolve,y=o.reject,v=o.promise):v=new Promise((T,$)=>{g=T,y=$});const _=++this.navigationId;let E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),E=i&&i.\u0275routerPageId?i.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):E=0,this.setTransition({id:_,targetPageId:E,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:s,resolve:g,reject:y,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.catch(T=>Promise.reject(T))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t),s=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",s):this.location.go(i,"",s)}restoreHistory(t,r=!1){var i,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,r){const i=new dE(t.id,this.serializeUrl(t.extractedUrl),r);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return n.\u0275fac=function(t){gd()},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();function Pl(n){return"imperative"!==n}class iD{}class sD{preload(e,t){return V(null)}}let oD=(()=>{class n{constructor(t,r,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new nD(i,r,l=>t.triggerEvent(new hE(l)),l=>t.triggerEvent(new fE(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Zn(t=>t instanceof Co),ss(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(qn);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const s of r)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;i.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(t,s)):s.children&&i.push(this.processRoutes(t,s.children));return We(i).pipe(Ms(),Z(s=>{}))}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?V(r._loadedConfig):this.loader.load(t.injector,r)).pipe(qe(s=>(r._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(t){return new(t||n)(D(Pt),D(nl),D(Ze),D(iD))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),qh=(()=>{class n{constructor(t,r,i={}){this.router=t,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ah?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Co&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof pE&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.router.triggerEvent(new pE(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){gd()},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const ti=new x("ROUTER_CONFIGURATION"),aD=new x("ROUTER_FORROOT_GUARD"),LP=[ih,{provide:wE,useClass:ME},{provide:Pt,useFactory:function UP(n,e,t,r,i,s,o={},a,l){const u=new Pt(null,n,e,t,r,i,_E(s));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),function $P(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(e.canceledNavigationResolution=n.canceledNavigationResolution)}(o,u),o.enableTracing&&u.events.subscribe(c=>{var d,h;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(h=console.groupEnd)||void 0===h||h.call(console)}),u},deps:[wE,xo,ih,Ze,nl,$h,ti,[class TP{},new Ct],[class wP{},new Ct]]},xo,{provide:us,useFactory:function zP(n){return n.routerState.root},deps:[Pt]},oD,sD,class PP{preload(e,t){return t().pipe(Xn(()=>V(null)))}},{provide:ti,useValue:{enableTracing:!1}}];function VP(){return new eb("Router",Pt)}let lD=(()=>{class n{constructor(t,r){}static forRoot(t,r){return{ngModule:n,providers:[LP,uD(t),{provide:aD,useFactory:HP,deps:[[Pt,new Ct,new fr]]},{provide:ti,useValue:r||{}},{provide:is,useFactory:jP,deps:[Zr,[new $s(rh),new Ct],ti]},{provide:qh,useFactory:BP,deps:[Pt,qO,ti]},{provide:iD,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:sD},{provide:eb,multi:!0,useFactory:VP},[Wh,{provide:el,multi:!0,useFactory:GP,deps:[Wh]},{provide:cD,useFactory:qP,deps:[Wh]},{provide:Wv,multi:!0,useExisting:cD}]]}}static forChild(t){return{ngModule:n,providers:[uD(t)]}}}return n.\u0275fac=function(t){return new(t||n)(D(aD,8),D(Pt,8))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})();function BP(n,e,t){return t.scrollOffset&&e.setOffset(t.scrollOffset),new qh(n,e,t)}function jP(n,e,t={}){return t.useHash?new xR(n,e):new Db(n,e)}function HP(n){return"guarded"}function uD(n){return[{provide:sS,multi:!0,useValue:n},{provide:$h,multi:!0,useValue:n}]}let Wh=(()=>{class n{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ge}appInitializer(){return this.injector.get(TR,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),s=this.injector.get(Pt),o=this.injector.get(ti);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),r(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?V(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),s.initialNavigation()):r(!0),i})}bootstrapListener(t){const r=this.injector.get(ti),i=this.injector.get(oD),s=this.injector.get(qh),o=this.injector.get(Pt),a=this.injector.get(go);t===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&o.initialNavigation(),i.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(t){return new(t||n)(D(Ze))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();function GP(n){return n.appInitializer.bind(n)}function qP(n){return n.bootstrapListener.bind(n)}const cD=new x("Router Initializer"),KP=[];let QP=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[lD.forRoot(KP)],lD]}),n})();const YP=new x("cdk-dir-doc",{providedIn:"root",factory:function ZP(){return cc(ae)}}),XP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Yh,Kh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new ne,t){const i=t.documentElement?t.documentElement.dir:null;this.value=function JP(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?XP.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||i||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(D(YP,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})();try{Yh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Yh=!1}let No,Zh,ko=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function GO(n){return n===Bb}(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&&!Yh)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(D(tl))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})();function Ll(n){return function tL(){if(null==No&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>No=!0}))}finally{No=No||!1}return No}()?n:!!n.capture}function Po(n){return n.composedPath?n.composedPath()[0]:n.target}function Xh(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}class bL extends Ye{constructor(e,t){super()}schedule(e,t=0){return this}}const Bl={setInterval(...n){const{delegate:e}=Bl;return((null==e?void 0:e.setInterval)||setInterval)(...n)},clearInterval(n){const{delegate:e}=Bl;return((null==e?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},vD={now:()=>(vD.delegate||Date).now(),delegate:void 0};class Lo{constructor(e,t=Lo.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,r){return new this.schedulerActionCtor(this,e).schedule(r,t)}}Lo.now=vD.now;const CL=new class DL extends Lo{constructor(e,t=Lo.now){super(e,t),this.actions=[],this._active=!1,this._scheduled=void 0}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}(class EL extends bL{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,r=0){return Bl.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;Bl.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}catch(s){r=!0,i=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,hi(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}});function bD(n,e=ir){return n=null!=n?n:SL,Ne((t,r)=>{let i,s=!0;t.subscribe(new Re(r,o=>{const a=e(o);(s||!n(i,a))&&(s=!1,i=a,r.next(o))}))})}function SL(n,e){return n===e}function hs(n){return Ne((e,t)=>{sn(n).subscribe(new Re(t,()=>t.complete(),ws)),!t.closed&&e.subscribe(t)})}function ut(n){return null!=n&&"false"!=`${n}`}function Vo(n){return n instanceof ye?n.nativeElement:n}class FL extends class xL{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ge,this._typeaheadSubscription=Ye.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Ge,this.change=new Ge,e instanceof yr&&e.changes.subscribe(t=>{if(this._activeItem){const i=t.toArray().indexOf(this._activeItem);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i)}})}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(tt(t=>this._pressedLetters.push(t)),function wL(n,e=CL){return Ne((t,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const u=s;s=null,r.next(u)}};function l(){const u=o+n,c=e.now();if(c<u)return i=this.schedule(void 0,u-c),void r.add(i);a()}t.subscribe(new Re(r,u=>{s=u,o=e.now(),i||(i=e.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}(e),Zn(()=>this._pressedLetters.length>0),Z(()=>this._pressedLetters.join(""))).subscribe(t=>{const r=this._getItemsArray();for(let i=1;i<r.length+1;i++){const s=(this._activeItemIndex+i)%r.length,o=r[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Xh(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}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 t=this._getItemsArray(),r="number"==typeof e?e:t.indexOf(e),i=t[r];this._activeItem=null==i?null:i,this._activeItemIndex=r}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let r=1;r<=t.length;r++){const i=(this._activeItemIndex+e*r+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const r=this._getItemsArray();if(r[e]){for(;this._skipPredicateFn(r[e]);)if(!r[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof yr?this._items.toArray():this._items}}{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 wD(n){return 0===n.offsetX&&0===n.offsetY}function MD(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const LL=new x("cdk-input-modality-detector-options"),VL={ignoreKeys:[18,17,224,91,16]},fs=Ll({passive:!0,capture:!0});let BL=(()=>{class n{constructor(t,r,i,s){this._platform=t,this._mostRecentTarget=null,this._modality=new Xt(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(u=>u===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Po(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(wD(o)?"keyboard":"mouse"),this._mostRecentTarget=Po(o))},this._onTouchstart=o=>{MD(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Po(o))},this._options=Object.assign(Object.assign({},VL),s),this.modalityDetected=this._modality.pipe(function ML(n){return Zn((e,t)=>n<=t)}(1)),this.modalityChanged=this.modalityDetected.pipe(bD()),t.isBrowser&&r.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,fs),i.addEventListener("mousedown",this._onMousedown,fs),i.addEventListener("touchstart",this._onTouchstart,fs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fs),document.removeEventListener("mousedown",this._onMousedown,fs),document.removeEventListener("touchstart",this._onTouchstart,fs))}}return n.\u0275fac=function(t){return new(t||n)(D(ko),D(ve),D(ae),D(LL,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const HL=new x("cdk-focus-monitor-default-options"),jl=Ll({passive:!0,capture:!0});let Hl=(()=>{class n{constructor(t,r,i,s,o){this._ngZone=t,this._platform=r,this._inputModalityDetector=i,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 Ge,this._rootNodeFocusAndBlurListener=a=>{const l=Po(a),u="focus"===a.type?this._onFocus:this._onBlur;for(let c=l;c;c=c.parentElement)u.call(this,a,c)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,r=!1){const i=Vo(t);if(!this._platform.isBrowser||1!==i.nodeType)return V(null);const s=function rL(n){if(function nL(){if(null==Zh){const n="undefined"!=typeof document?document.head:null;Zh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Zh}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(i)||this._getDocument(),o=this._elementInfo.get(i);if(o)return r&&(o.checkChildren=!0),o.subject;const a={checkChildren:r,subject:new Ge,rootNode:s};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const r=Vo(t),i=this._elementInfo.get(r);i&&(i.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(i))}focusVia(t,r,i){const s=Vo(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,r,l)):(this._setOrigin(r),"function"==typeof s.focus&&s.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,r){t.classList.toggle("cdk-focused",!!r),t.classList.toggle("cdk-touch-focused","touch"===r),t.classList.toggle("cdk-keyboard-focused","keyboard"===r),t.classList.toggle("cdk-mouse-focused","mouse"===r),t.classList.toggle("cdk-program-focused","program"===r)}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,r){const i=this._elementInfo.get(r),s=Po(t);!i||!i.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),i)}_onBlur(t,r){const i=this._elementInfo.get(r);!i||i.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(i.subject,null))}_emitOrigin(t,r){this._ngZone.run(()=>t.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const r=t.rootNode,i=this._rootNodeFocusListenerCount.get(r)||0;i||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,jl),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,jl)}),this._rootNodeFocusListenerCount.set(r,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(hs(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const i=this._rootNodeFocusListenerCount.get(r);i>1?this._rootNodeFocusListenerCount.set(r,i-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jl),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jl),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,i){this._setClasses(t,r),this._emitOrigin(i.subject,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){const r=[];return this._elementInfo.forEach((i,s)=>{(s===t||i.checkChildren&&s.contains(t))&&r.push([s,i])}),r}}return n.\u0275fac=function(t){return new(t||n)(D(ve),D(ko),D(BL),D(ae,8),D(HL,8))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const TD="cdk-high-contrast-black-on-white",AD="cdk-high-contrast-white-on-black",Jh="cdk-high-contrast-active";let UL=(()=>{class n{constructor(t,r){this._platform=t,this._document=r}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,i=r&&r.getComputedStyle?r.getComputedStyle(t):null,s=(i&&i.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Jh),t.remove(TD),t.remove(AD),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?(t.add(Jh),t.add(TD)):2===r&&(t.add(Jh),t.add(AD))}}}return n.\u0275fac=function(t){return new(t||n)(D(ko),D(ae))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ID{}const tr="*";function xD(n,e){return{type:7,name:n,definitions:e,options:{}}}function FD(n,e=null){return{type:4,styles:e,timings:n}}function RD(n,e=null){return{type:2,steps:n,options:e}}function Dr(n){return{type:6,styles:n,offset:null}}function ps(n,e,t){return{type:0,name:n,styles:e,options:t}}function OD(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function kD(n){Promise.resolve(null).then(n)}class gs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){kD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class ND{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,i=0;const s=this.players.length;0==s?kD(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}function PD(){return"undefined"!=typeof window&&void 0!==window.document}function tf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Cr(n){switch(n.length){case 0:return new gs;case 1:return n[0];default:return new ND(n)}}function LD(n,e,t,r,i={},s={}){const o=[],a=[];let l=-1,u=null;if(r.forEach(c=>{const d=c.offset,h=d==l,f=h&&u||{};Object.keys(c).forEach(p=>{let g=p,y=c[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),y){case"!":y=i[p];break;case tr:y=s[p];break;default:y=e.normalizeStyleValue(p,g,y,o)}f[g]=y}),h||a.push(f),u=f,l=d}),o.length){const c="\n - ";throw new Error(`Unable to animate due to the following errors:${c}${o.join(c)}`)}return a}function nf(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&rf(t,"start",n)));break;case"done":n.onDone(()=>r(t&&rf(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&rf(t,"destroy",n)))}}function rf(n,e,t){const r=t.totalTime,s=sf(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==r?n.totalTime:r,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function sf(n,e,t,r,i="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Lt(n,e,t){let r;return n instanceof Map?(r=n.get(e),r||n.set(e,r=t)):(r=n[e],r||(r=n[e]=t)),r}function VD(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let af=(n,e)=>!1,BD=(n,e,t)=>[];(tf()||"undefined"!=typeof Element)&&(af=PD()?(n,e)=>{for(;e&&e!==document.documentElement;){if(e===n)return!0;e=e.parentNode||e.host}return!1}:(n,e)=>n.contains(e),BD=(n,e,t)=>{let r=[];if(t){const i=n.querySelectorAll(e);for(let s=0;s<i.length;s++)r.push(i[s])}else{const i=n.querySelector(e);i&&r.push(i)}return r});let ii=null,jD=!1;function lf(n){ii||(ii=function GL(){return"undefined"!=typeof document?document.body:null}()||{},jD=!!ii.style&&"WebkitAppearance"in ii.style);let e=!0;return ii.style&&!function zL(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in ii.style,!e&&jD&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in ii.style)),e}const uf=af,cf=BD;function HD(n){const e={};return Object.keys(n).forEach(t=>{const r=t.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=n[t]}),e}let UD=(()=>{class n{validateStyleProperty(t){return lf(t)}matchesElement(t,r){return!1}containsElement(t,r){return uf(t,r)}query(t,r,i){return cf(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],l){return new gs(i,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})(),df=(()=>{class n{}return n.NOOP=new UD,n})();const hf="ng-enter",Ul="ng-leave",$l="ng-trigger",zl=".ng-trigger",zD="ng-animating",ff=".ng-animating";function si(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:pf(parseFloat(e[1]),e[2])}function pf(n,e){return"s"===e?1e3*n:n}function Gl(n,e,t){return n.hasOwnProperty("duration")?n:function KL(n,e,t){let i,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};i=pf(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=pf(parseFloat(l),a[4]));const u=a[5];u&&(o=u)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&e.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:i,delay:s,easing:o}}(n,e,t)}function ms(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function wr(n,e,t={}){if(e)for(let r in n)t[r]=n[r];else ms(n,t);return t}function qD(n,e,t){return t?e+":"+t+";":""}function WD(n){let e="";for(let t=0;t<n.style.length;t++){const r=n.style.item(t);e+=qD(0,r,n.style.getPropertyValue(r))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=qD(0,ZL(t),n.style[t]));n.setAttribute("style",e)}function kn(n,e,t){n.style&&(Object.keys(e).forEach(r=>{const i=mf(r);t&&!t.hasOwnProperty(r)&&(t[r]=n.style[i]),n.style[i]=e[r]}),tf()&&WD(n))}function oi(n,e){n.style&&(Object.keys(e).forEach(t=>{const r=mf(t);n.style[r]=""}),tf()&&WD(n))}function Bo(n){return Array.isArray(n)?1==n.length?n[0]:RD(n):n}const gf=new RegExp("{{\\s*(.+?)\\s*}}","g");function KD(n){let e=[];if("string"==typeof n){let t;for(;t=gf.exec(n);)e.push(t[1]);gf.lastIndex=0}return e}function ql(n,e,t){const r=n.toString(),i=r.replace(gf,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return i==r?n:i}function Wl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const YL=/-+([a-z0-9])/g;function mf(n){return n.replace(YL,(...e)=>e[1].toUpperCase())}function ZL(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function QD(n,e){return 0===n||0===e}function YD(n,e,t){const r=Object.keys(t);if(r.length&&e.length){let s=e[0],o=[];if(r.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var i=1;i<e.length;i++){let a=e[i];o.forEach(function(l){a[l]=_f(n,l)})}}return e}function Vt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function _f(n,e){return window.getComputedStyle(n)[e]}function XL(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function JL(n,e,t){if(":"==n[0]){const l=function eV(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return e.push(`The transition alias value "${n}" is not supported`),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(`The provided transition expression "${n}" is not supported`),e;const i=r[1],s=r[2],o=r[3];e.push(ZD(i,o));"<"==s[0]&&!("*"==i&&"*"==o)&&e.push(ZD(o,i))}(r,t,e)):t.push(n),t}const Ql=new Set(["true","1"]),Yl=new Set(["false","0"]);function ZD(n,e){const t=Ql.has(n)||Yl.has(n),r=Ql.has(e)||Yl.has(e);return(i,s)=>{let o="*"==n||n==i,a="*"==e||e==s;return!o&&t&&"boolean"==typeof i&&(o=i?Ql.has(n):Yl.has(n)),!a&&r&&"boolean"==typeof s&&(a=s?Ql.has(e):Yl.has(e)),o&&a}}const tV=new RegExp("s*:selfs*,?","g");function yf(n,e,t){return new nV(n).build(e,t)}class nV{constructor(e){this._driver=e}build(e,t){const r=new sV(t);return this._resetContextStyleTimingState(r),Vt(this,Bo(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,s.push(this.visitState(l,t))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};if(r.styles.forEach(a=>{if(Zl(a)){const l=a;Object.keys(l).forEach(u=>{KD(l[u]).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}}),s.size){const a=Wl(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Vt(this,Bo(e.animation),t);return{type:1,matchers:XL(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ai(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>Vt(this,r,t)),options:ai(e.options)}}visitGroup(e,t){const r=t.currentTime;let i=0;const s=e.steps.map(o=>{t.currentTime=r;const a=Vt(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:s,options:ai(e.options)}}visitAnimate(e,t){const r=function aV(n,e){let t=null;if(n.hasOwnProperty("duration"))t=n;else if("number"==typeof n)return vf(Gl(n,e).duration,0,"");const r=n;if(r.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=vf(0,0,"");return s.dynamic=!0,s.strValue=r,s}return t=t||Gl(r,e),vf(t.duration,t.delay,t.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let i,s=e.styles?e.styles:Dr({});if(5==s.type)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const u={};r.easing&&(u.easing=r.easing),o=Dr(u)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==tr?r.push(o):t.errors.push(`The provided style string value ${o} is not allowed.`):r.push(o)}):r.push(e.styles);let i=!1,s=null;return r.forEach(o=>{if(Zl(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!i)for(let u in a)if(a[u].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void t.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=t.collectedStyles[t.currentQuerySelector],u=l[a];let c=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(`The CSS property "${a}" that exists between the times of "${u.startTime}ms" and "${u.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),c=!1),s=u.startTime),c&&(l[a]={startTime:s,endTime:i}),t.options&&function QL(n,e,t){const r=e.params||{},i=KD(n);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;let s=0;const o=[];let a=!1,l=!1,u=0;const c=e.steps.map(v=>{const _=this._makeStyleAst(v,t);let E=null!=_.offset?_.offset:function oV(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Zl(t)&&t.hasOwnProperty("offset")){const r=t;e=parseFloat(r.offset),delete r.offset}});else if(Zl(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(_.styles),T=0;return null!=E&&(s++,T=_.offset=E),l=l||T<0||T>1,a=a||T<u,u=T,o.push(T),_});l&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,g=t.currentAnimateTimings,y=g.duration;return c.forEach((v,_)=>{const E=h>0?_==f?1:h*_:o[_],T=E*y;t.currentTime=p+g.delay+T,g.duration=T,this._validateStyleAst(v,t),v.offset=E,r.styles.push(v)}),r}visitReference(e,t){return{type:8,animation:Vt(this,Bo(e.animation),t),options:ai(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ai(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ai(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function rV(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(tV,"")),n=n.replace(/@\*/g,zl).replace(/@\w+/g,t=>zl+"-"+t.substr(1)).replace(/:animating/g,ff),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+s:s,Lt(t.collectedStyles,t.currentQuerySelector,{});const a=Vt(this,Bo(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:ai(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:Gl(e.timings,t.errors,!0);return{type:12,animation:Vt(this,Bo(e.animation),t),timings:r,options:null}}}class sV{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Zl(n){return!Array.isArray(n)&&"object"==typeof n}function ai(n){return n?(n=ms(n)).params&&(n.params=function iV(n){return n?ms(n):null}(n.params)):n={},n}function vf(n,e,t){return{duration:n,delay:e,easing:t}}function bf(n,e,t,r,i,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class Xl{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const cV=new RegExp(":enter","g"),hV=new RegExp(":leave","g");function Ef(n,e,t,r,i,s={},o={},a,l,u=[]){return(new fV).buildKeyframes(n,e,t,r,i,s,o,a,l,u)}class fV{buildKeyframes(e,t,r,i,s,o,a,l,u,c=[]){u=u||new Xl;const d=new Df(e,t,u,i,s,c,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Vt(this,r,d);const h=d.timelines.filter(f=>f.containsAnimation());if(h.length&&Object.keys(a).length){const f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[bf(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?si(r.duration):null,a=null!=r.delay?si(r.delay):null;return 0!==o&&e.forEach(l=>{const u=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,u.duration+u.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Vt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Jl);const o=si(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Vt(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?si(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Vt(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return Gl(t.params?ql(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(r.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(s):r.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,s=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?si(i.delay):0;s&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Jl);let o=r;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{t.currentQueryIndex=c;const d=t.createSubContext(e.options,u);s&&d.delayNextStep(s),u===t.element&&(l=d.currentTimeline),Vt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const c=t.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;Vt(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Jl={};class Df{constructor(e,t,r,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new eu(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=si(r.duration)),null!=r.delay&&(i.delay=si(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ql(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return e}createSubContext(e=null,t,r){const i=t||this.element,s=new Df(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Jl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},s=new pV(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(cV,"."+this._enterClassName)).replace(hV,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!s&&0==a.length&&o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),a}}class eu{constructor(e,t,r,i){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new eu(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||tr,this._currentKeyframe[t]=tr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},o=function gV(n,e){const t={};let r;return n.forEach(i=>{"*"===i?(r=r||Object.keys(e),r.forEach(s=>{t[s]=tr})):wr(i,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=ql(o[a],s,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:tr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const r=this._styleSummary[t],i=e._styleSummary[t];(!r||i.time>r.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const u=wr(a,!0);Object.keys(u).forEach(c=>{const d=u[c];"!"==d?e.add(c):d==tr&&t.add(c)}),r||(u.offset=l/this.duration),i.push(u)});const s=e.size?Wl(e.values()):[],o=t.size?Wl(t.values()):[];if(r){const a=i[0],l=ms(a);a.offset=0,l.offset=1,i=[a,l]}return bf(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class pV extends eu{constructor(e,t,r,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=r+t,a=t/o,l=wr(e[0],!1);l.offset=0,s.push(l);const u=wr(e[0],!1);u.offset=eC(a),s.push(u);const c=e.length-1;for(let d=1;d<=c;d++){let h=wr(e[d],!1);h.offset=eC((t+h.offset*r)/o),s.push(h)}r=o,t=0,i="",e=s}return bf(this.element,e,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function eC(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Cf{}class mV extends Cf{normalizePropertyName(e,t){return mf(e)}normalizeStyleValue(e,t,r,i){let s="";const o=r.toString().trim();if(_V[t]&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(`Please provide a CSS unit value for ${e}:${r}`)}return o+s}}const _V=(()=>function yV(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function tC(n,e,t,r,i,s,o,a,l,u,c,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}const wf={};class nC{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,i){return function vV(n,e,t,r,i){return n.some(s=>s(e,t,r,i))}(this.ast.matchers,e,t,r,i)}buildStyles(e,t,r){const i=this._stateStyles["*"],s=this._stateStyles[e],o=i?i.buildStyles(t,r):{};return s?s.buildStyles(t,r):o}build(e,t,r,i,s,o,a,l,u,c){const d=[],h=this.ast.options&&this.ast.options.params||wf,p=this.buildStyles(r,a&&a.params||wf,d),g=l&&l.params||wf,y=this.buildStyles(i,g,d),v=new Set,_=new Map,E=new Map,T="void"===i,$={params:Object.assign(Object.assign({},h),g)},we=c?[]:Ef(e,t,this.ast.animation,s,o,p,y,$,u,d);let Te=0;if(we.forEach(jt=>{Te=Math.max(jt.duration+jt.delay,Te)}),d.length)return tC(t,this._triggerName,r,i,T,p,y,[],[],_,E,Te,d);we.forEach(jt=>{const Ht=jt.element,bs=Lt(_,Ht,{});jt.preStyleProps.forEach(vn=>bs[vn]=!0);const rr=Lt(E,Ht,{});jt.postStyleProps.forEach(vn=>rr[vn]=!0),Ht!==t&&v.add(Ht)});const Bt=Wl(v.values());return tC(t,this._triggerName,r,i,T,p,y,we,Bt,_,E,Te)}}class bV{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r={},i=ms(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(i[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=ql(l,i,t));const u=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,u,l,t),r[u]=l})}}),r}}class DV{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states={},t.states.forEach(i=>{this.states[i.name]=new bV(i.style,i.options&&i.options.params||{},r)}),rC(this.states,"true","1"),rC(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new nC(e,i,this.states))}),this.fallbackTransition=function CV(n,e,t){return new nC(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,i){return this.transitionFactories.find(o=>o.match(e,t,r,i))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function rC(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const wV=new Xl;class MV{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,t){const r=[],i=yf(this._driver,t,r);if(r.length)throw new Error(`Unable to build the animation due to the following errors: ${r.join("\n")}`);this._animations[e]=i}_buildPlayer(e,t,r){const i=e.element,s=LD(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const i=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Ef(this._driver,t,s,hf,Ul,{},{},r,wV,i),o.forEach(c=>{const d=Lt(a,c.element,{});c.postStyleProps.forEach(h=>d[h]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((c,d)=>{Object.keys(c).forEach(h=>{c[h]=this._driver.computeStyle(d,h,tr)})});const u=Cr(o.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,{},d)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,r,i){const s=sf(t,"","","");return nf(this._getPlayer(e),r,s,i),()=>{}}command(e,t,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const iC="ng-animate-queued",Mf="ng-animate-disabled",xV=[],sC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},en="__ng_removed";class Sf{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function NV(n){return null!=n?n:null}(r?e.value:e),r){const s=ms(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const jo="void",Tf=new Sf(jo);class RV{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,tn(t,this._hostClassName)}listen(e,t,r,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${r}" because the animation trigger "${t}" doesn't exist!`);if(null==r||0==r.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if(!function PV(n){return"start"==n||"done"==n}(r))throw new Error(`The provided animation trigger event "${r}" for the animation trigger "${t}" is not supported!`);const s=Lt(this._elementListeners,e,[]),o={name:t,phase:r,callback:i};s.push(o);const a=Lt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(tn(e,$l),tn(e,$l+"-"+t),a[t]=Tf),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,r,i=!0){const s=this._getTrigger(t),o=new Af(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(tn(e,$l),tn(e,$l+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const u=new Sf(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[t]=u,l||(l=Tf),u.value!==jo&&l.value===u.value){if(!function BV(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const s=t[i];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,u.params)){const g=[],y=s.matchStyles(l.value,l.params,g),v=s.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{oi(e,y),kn(e,v)})}return}const h=Lt(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,u.value,e,u.params),p=!1;if(!f){if(!i)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:u,player:o,isFallbackTransition:p}),p||(tn(e,iC),o.onStart(()=>{_s(e,iC)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(e);if(y){let v=y.indexOf(o);v>=0&&y.splice(v,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,r)=>{delete t[e]}),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,zl,!0);r.forEach(i=>{if(i[en])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,r,i){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const u=this.trigger(e,l,jo,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),r&&Cr(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const i=new Set;t.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers[o].fallbackTransition,u=r[o]||Tf,c=new Sf(jo),d=new Af(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{const s=e[en];(!s||s===sC)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){tn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const l=sf(s,r.triggerName,r.fromState.value,r.toState.value);l._data=e,nf(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class OV{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new RV(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList.length-1;if(r>=0){let i=!1;for(let s=r;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let i=this._namespaceLookup[e];i&&i.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r){const i=Object.keys(r);for(let s=0;s<i.length;s++){const o=r[i[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,r,i){if(tu(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(e,t,r,i){if(!tu(t))return;const s=t[en];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),tn(e,Mf)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),_s(e,Mf))}removeNode(e,t,r,i){if(tu(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),r){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,r,i,s){this.collectedLeaveElements.push(t),t[en]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,r,i,s){return tu(t)?this._fetchNamespace(e).listen(t,r,i,s):()=>{}}_buildInstruction(e,t,r,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,zl,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,ff,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Cr(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const r=e[en];if(r&&r.setForRemoval){if(e[en]=sC,r.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(Mf))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)tn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Cr(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const r=new Xl,i=[],s=new Map,o=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(A=>{c.add(A);const O=this.driver.query(A,".ng-animate-queued",!0);for(let N=0;N<O.length;N++)c.add(O[N])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=lC(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((A,O)=>{const N=hf+g++;p.set(O,N),A.forEach(re=>tn(re,N))});const y=[],v=new Set,_=new Set;for(let A=0;A<this.collectedLeaveElements.length;A++){const O=this.collectedLeaveElements[A],N=O[en];N&&N.setForRemoval&&(y.push(O),v.add(O),N.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(re=>v.add(re)):_.add(O))}const E=new Map,T=lC(h,Array.from(v));T.forEach((A,O)=>{const N=Ul+g++;E.set(O,N),A.forEach(re=>tn(re,N))}),e.push(()=>{f.forEach((A,O)=>{const N=p.get(O);A.forEach(re=>_s(re,N))}),T.forEach((A,O)=>{const N=E.get(O);A.forEach(re=>_s(re,N))}),y.forEach(A=>{this.processLeaveNode(A)})});const $=[],we=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(N=>{const re=N.player,Qe=N.element;if($.push(re),this.collectedEnterElements.length){const yt=Qe[en];if(yt&&yt.setForMove){if(yt.previousTriggersValues&&yt.previousTriggersValues.has(N.triggerName)){const ci=yt.previousTriggersValues.get(N.triggerName),Fr=this.statesByElement.get(N.element);Fr&&Fr[N.triggerName]&&(Fr[N.triggerName].value=ci)}return void re.destroy()}}const Nn=!d||!this.driver.containsElement(d,Qe),Ut=E.get(Qe),xr=p.get(Qe),Ae=this._buildInstruction(N,r,xr,Ut,Nn);if(Ae.errors&&Ae.errors.length)return void we.push(Ae);if(Nn)return re.onStart(()=>oi(Qe,Ae.fromStyles)),re.onDestroy(()=>kn(Qe,Ae.toStyles)),void i.push(re);if(N.isFallbackTransition)return re.onStart(()=>oi(Qe,Ae.fromStyles)),re.onDestroy(()=>kn(Qe,Ae.toStyles)),void i.push(re);const v0=[];Ae.timelines.forEach(yt=>{yt.stretchStartingKeyframe=!0,this.disabledNodes.has(yt.element)||v0.push(yt)}),Ae.timelines=v0,r.append(Qe,Ae.timelines),o.push({instruction:Ae,player:re,element:Qe}),Ae.queriedElements.forEach(yt=>Lt(a,yt,[]).push(re)),Ae.preStyleProps.forEach((yt,ci)=>{const Fr=Object.keys(yt);if(Fr.length){let di=l.get(ci);di||l.set(ci,di=new Set),Fr.forEach(cp=>di.add(cp))}}),Ae.postStyleProps.forEach((yt,ci)=>{const Fr=Object.keys(yt);let di=u.get(ci);di||u.set(ci,di=new Set),Fr.forEach(cp=>di.add(cp))})});if(we.length){const A=[];we.forEach(O=>{A.push(`@${O.triggerName} has failed due to:\n`),O.errors.forEach(N=>A.push(`- ${N}\n`))}),$.forEach(O=>O.destroy()),this.reportError(A)}const Te=new Map,Bt=new Map;o.forEach(A=>{const O=A.element;r.has(O)&&(Bt.set(O,O),this._beforeAnimationBuild(A.player.namespaceId,A.instruction,Te))}),i.forEach(A=>{const O=A.element;this._getPreviousPlayers(O,!1,A.namespaceId,A.triggerName,null).forEach(re=>{Lt(Te,O,[]).push(re),re.destroy()})});const jt=y.filter(A=>cC(A,l,u)),Ht=new Map;aC(Ht,this.driver,_,u,tr).forEach(A=>{cC(A,l,u)&&jt.push(A)});const rr=new Map;f.forEach((A,O)=>{aC(rr,this.driver,new Set(A),l,"!")}),jt.forEach(A=>{const O=Ht.get(A),N=rr.get(A);Ht.set(A,Object.assign(Object.assign({},O),N))});const vn=[],Es=[],Ds={};o.forEach(A=>{const{element:O,player:N,instruction:re}=A;if(r.has(O)){if(c.has(O))return N.onDestroy(()=>kn(O,re.toStyles)),N.disabled=!0,N.overrideTotalTime(re.totalTime),void i.push(N);let Qe=Ds;if(Bt.size>1){let Ut=O;const xr=[];for(;Ut=Ut.parentNode;){const Ae=Bt.get(Ut);if(Ae){Qe=Ae;break}xr.push(Ut)}xr.forEach(Ae=>Bt.set(Ae,Qe))}const Nn=this._buildAnimation(N.namespaceId,re,Te,s,rr,Ht);if(N.setRealPlayer(Nn),Qe===Ds)vn.push(N);else{const Ut=this.playersByElement.get(Qe);Ut&&Ut.length&&(N.parentPlayer=Cr(Ut)),i.push(N)}}else oi(O,re.fromStyles),N.onDestroy(()=>kn(O,re.toStyles)),Es.push(N),c.has(O)&&i.push(N)}),Es.forEach(A=>{const O=s.get(A.element);if(O&&O.length){const N=Cr(O);A.setRealPlayer(N)}}),i.forEach(A=>{A.parentPlayer?A.syncPlayerEvents(A.parentPlayer):A.destroy()});for(let A=0;A<y.length;A++){const O=y[A],N=O[en];if(_s(O,Ul),N&&N.hasAnimation)continue;let re=[];if(a.size){let Nn=a.get(O);Nn&&Nn.length&&re.push(...Nn);let Ut=this.driver.query(O,ff,!0);for(let xr=0;xr<Ut.length;xr++){let Ae=a.get(Ut[xr]);Ae&&Ae.length&&re.push(...Ae)}}const Qe=re.filter(Nn=>!Nn.destroyed);Qe.length?LV(this,O,Qe):this.processLeaveNode(O)}return y.length=0,vn.forEach(A=>{this.players.push(A),A.onDone(()=>{A.destroy();const O=this.players.indexOf(A);this.players.splice(O,1)}),A.play()}),vn}elementContainsData(e,t){let r=!1;const i=t[en];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,i,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==jo;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||o.push(u)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const u=l.element,c=u!==s,d=Lt(r,u,[]);this._getPreviousPlayers(u,c,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}oi(s,t.fromStyles)}_buildAnimation(e,t,r,i,s,o){const a=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,h=t.timelines.map(p=>{const g=p.element;c.add(g);const y=g[en];if(y&&y.removedBeforeQueried)return new gs(p.duration,p.delay);const v=g!==l,_=function VV(n){const e=[];return uC(n,e),e}((r.get(g)||xV).map(Te=>Te.getRealPlayer())).filter(Te=>!!Te.element&&Te.element===g),E=s.get(g),T=o.get(g),$=LD(0,this._normalizer,0,p.keyframes,E,T),we=this._buildPlayer(p,$,_);if(p.subTimeline&&i&&d.add(g),v){const Te=new Af(e,a,g);Te.setRealPlayer(we),u.push(Te)}return we});u.forEach(p=>{Lt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function kV(n,e,t){let r;if(n instanceof Map){if(r=n.get(e),r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&n.delete(e)}}else if(r=n[e],r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&delete n[e]}return r}(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>tn(p,zD));const f=Cr(h);return f.onDestroy(()=>{c.forEach(p=>_s(p,zD)),kn(l,t.toStyles)}),d.forEach(p=>{Lt(i,p,[]).push(f)}),f}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new gs(e.duration,e.delay)}}class Af{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new gs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(r=>nf(e,t,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Lt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function tu(n){return n&&1===n.nodeType}function oC(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function aC(n,e,t,r,i){const s=[];t.forEach(l=>s.push(oC(l)));const o=[];r.forEach((l,u)=>{const c={};l.forEach(d=>{const h=c[d]=e.computeStyle(u,d,i);(!h||0==h.length)&&(u[en]=FV,o.push(u))}),n.set(u,c)});let a=0;return t.forEach(l=>oC(l,s[a++])),o}function lC(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const i=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const u=a.parentNode;return l=t.has(u)?u:i.has(u)?1:o(u),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function tn(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function _s(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function LV(n,e,t){Cr(t).onDone(()=>n.processLeaveNode(e))}function uC(n,e){for(let t=0;t<n.length;t++){const r=n[t];r instanceof ND?uC(r.players,e):e.push(r)}}function cC(n,e,t){const r=t.get(n);if(!r)return!1;let i=e.get(n);return i?r.forEach(s=>i.add(s)):e.set(n,r),t.delete(n),!0}class nu{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new OV(e,t,r),this._timelineEngine=new MV(e,t,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,r,i,s){const o=e+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],u=yf(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function EV(n,e,t){return new DV(n,e,t)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,i){this._transitionEngine.insertNode(e,t,r,i)}onRemove(e,t,r,i){this._transitionEngine.removeNode(e,t,i||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,i){if("@"==r.charAt(0)){const[s,o]=VD(r);this._timelineEngine.command(s,t,o,i)}else this._transitionEngine.trigger(e,t,r,i)}listen(e,t,r,i,s){if("@"==r.charAt(0)){const[o,a]=VD(r);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,r,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function dC(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=If(e[0]),e.length>1&&(r=If(e[e.length-1]))):e&&(t=If(e)),t||r?new jV(n,t,r):null}let jV=(()=>{class n{constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&kn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(kn(this._element,this._initialStyles),this._endStyles&&(kn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(oi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(oi(this._element,this._endStyles),this._endStyles=null),kn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function If(n){let e=null;const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=t[r];HV(i)&&(e=e||{},e[i]=n[i])}return e}function HV(n){return"display"===n||"position"===n}const hC="animation",fC="animationend";class zV{constructor(e,t,r,i,s,o,a){this._element=e,this._name=t,this._duration=r,this._delay=i,this._easing=s,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=l=>this._handleCallback(l)}apply(){(function GV(n,e){const t=Ff(n,"").trim();let r=0;t.length&&(r=function WV(n,e){let t=0;for(let r=0;r<n.length;r++)n.charAt(r)===e&&t++;return t}(t,",")+1,e=`${t}, ${e}`),ru(n,"",e)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),mC(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){pC(this._element,this._name,"paused")}resume(){pC(this._element,this._name,"running")}setPosition(e){const t=gC(this._element,this._name);this._position=e*this._duration,ru(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),r=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&r>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),mC(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function qV(n,e){const r=Ff(n,"").split(","),i=xf(r,e);i>=0&&(r.splice(i,1),ru(n,"",r.join(",")))}(this._element,this._name))}}function pC(n,e,t){ru(n,"PlayState",t,gC(n,e))}function gC(n,e){const t=Ff(n,"");return t.indexOf(",")>0?xf(t.split(","),e):xf([t],e)}function xf(n,e){for(let t=0;t<n.length;t++)if(n[t].indexOf(e)>=0)return t;return-1}function mC(n,e,t){t?n.removeEventListener(fC,e):n.addEventListener(fC,e)}function ru(n,e,t,r){const i=hC+e;if(null!=r){const s=n.style[i];if(s.length){const o=s.split(",");o[r]=t,t=o.join(",")}}n.style[i]=t}function Ff(n,e){return n.style[hC+e]||""}class _C{constructor(e,t,r,i,s,o,a,l){this.element=e,this.keyframes=t,this.animationName=r,this._duration=i,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new zV(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(r=>{"offset"!=r&&(e[r]=t?this._finalStyles[r]:_f(this.element,r))})}this.currentSnapshot=e}}class YV extends gs{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=HD(t)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class vC{constructor(){this._count=0}validateStyleProperty(e){return lf(e)}matchesElement(e,t){return!1}containsElement(e,t){return uf(e,t)}query(e,t,r){return cf(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,r){r=r.map(a=>HD(a));let i=`@keyframes ${t} {\n`,s="";r.forEach(a=>{s=" ";const l=parseFloat(a.offset);i+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(u=>{const c=a[u];switch(u){case"offset":return;case"easing":return void(c&&(i+=`${s}animation-timing-function: ${c};\n`));default:return void(i+=`${s}${u}: ${c};\n`)}}),i+=`${s}}\n`}),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(e,t,r,i,s,o=[],a){const l=o.filter(y=>y instanceof _C),u={};QD(r,i)&&l.forEach(y=>{let v=y.currentSnapshot;Object.keys(v).forEach(_=>u[_]=v[_])});const c=function JV(n){let e={};return n&&(Array.isArray(n)?n:[n]).forEach(r=>{Object.keys(r).forEach(i=>{"offset"==i||"easing"==i||(e[i]=r[i])})}),e}(t=YD(e,t,u));if(0==r)return new YV(e,c);const d="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,d,t);(function XV(n){var e;const t=null===(e=n.getRootNode)||void 0===e?void 0:e.call(n);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head})(e).appendChild(h);const p=dC(e,t),g=new _C(e,t,d,r,i,s,c,p);return g.onDestroy(()=>function e2(n){n.parentNode.removeChild(n)}(h)),g}}class EC{constructor(e,t,r,i){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,r){return e.animate(t,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(r=>{"offset"!=r&&(e[r]=this._finished?t[r]:_f(this.element,r))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class t2{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(DC().toString()),this._cssKeyframesDriver=new vC}validateStyleProperty(e){return lf(e)}matchesElement(e,t){return!1}containsElement(e,t){return uf(e,t)}query(e,t,r){return cf(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,r,i,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,r,i,s,o);const c={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(c.easing=s);const d={},h=o.filter(p=>p instanceof EC);QD(r,i)&&h.forEach(p=>{let g=p.currentSnapshot;Object.keys(g).forEach(y=>d[y]=g[y])});const f=dC(e,t=YD(e,t=t.map(p=>wr(p,!1)),d));return new EC(e,t,c,f)}}function DC(){return PD()&&Element.prototype.animate||{}}let r2=(()=>{class n extends ID{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:an.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?RD(t):t;return CC(this._renderer,null,r,"register",[i]),new s2(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(D(lo),D(ae))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class s2 extends class $L{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new o2(this._id,e,t||{},this._renderer)}}class o2{constructor(e,t,r,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return CC(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function CC(n,e,t,r,i){return n.setProperty(e,`@@${t}:${r}`,i)}const wC="@.disabled";let a2=(()=>{class n{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,r){const s=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let c=this._rendererCache.get(s);return c||(c=new MC("",s,this.engine),this._rendererCache.set(s,c)),c}const o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(o,a,t,c.name,c)};return r.data.animation.forEach(l),new l2(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&t<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(D(lo),D(nu),D(ve))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();class MC{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>t.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,i=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,i){this.delegate.setAttribute(e,t,r,i)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,i){this.delegate.setStyle(e,t,r,i)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==wC?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class l2 extends MC{constructor(e,t,r,i){super(t,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==wC?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.substr(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const i=function u2(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function c2(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,t,r)}}let d2=(()=>{class n extends nu{constructor(t,r,i){super(t.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(D(ae),D(df),D(Cf))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const Ho=new x("AnimationModuleType"),SC=[{provide:ID,useClass:r2},{provide:Cf,useFactory:function f2(){return new mV}},{provide:nu,useClass:d2},{provide:lo,useFactory:function p2(n,e,t){return new a2(n,e,t)},deps:[bl,nu,ve]}],TC=[{provide:df,useFactory:function h2(){return function n2(){return"function"==typeof DC()}()?new t2:new vC}},{provide:Ho,useValue:"BrowserAnimations"},...SC],g2=[{provide:df,useClass:UD},{provide:Ho,useValue:"NoopAnimations"},...SC];let m2=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?g2:TC}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:TC,imports:[Zb]}),n})();const y2=new x("mat-sanity-checks",{providedIn:"root",factory:function _2(){return!0}});let Mt=(()=>{class n{constructor(t,r,i){this._sanityChecks=r,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!function sL(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(D(UL),D(y2,8),D(ae))},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Qh],Qh]}),n})();function IC(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e)}}}function Uo(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const r=t||this.defaultColor;r!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),r&&this._elementRef.nativeElement.classList.add(`mat-${r}`),this._color=r)}}}function xC(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ut(e)}}}let Rf=(()=>{class n{isErrorState(t,r){return!!(t&&t.invalid&&(t.touched||r&&r.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class E2{constructor(e,t,r){this._renderer=e,this.element=t,this.config=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const FC={enterDuration:225,exitDuration:150},Of=Ll({passive:!0}),RC=["mousedown","touchstart"],OC=["mouseup","mouseleave","touchend","touchcancel"];class C2{constructor(e,t,r,i){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Vo(r))}fadeInRipple(e,t,r={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},FC),r.animation);r.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const o=r.radius||function M2(n,e,t){const r=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),i=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(r*r+i*i)}(e,t,i),a=e-i.left,l=t-i.top,u=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=a-o+"px",c.style.top=l-o+"px",c.style.height=2*o+"px",c.style.width=2*o+"px",null!=r.color&&(c.style.backgroundColor=r.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c),function w2(n){window.getComputedStyle(n).getPropertyValue("opacity")}(c),c.style.transform="scale(1)";const d=new E2(this,c,r);return d.state=0,this._activeRipples.add(d),r.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!r.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},u),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const r=e.element,i=Object.assign(Object.assign({},FC),e.config.animation);r.style.transitionDuration=`${i.exitDuration}ms`,r.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,r.remove()},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Vo(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(RC))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(OC),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=wD(e),r=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!r&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!MD(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let r=0;r<t.length;r++)this.fadeInRipple(t[r].clientX,t[r].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Of)})})}_removeTriggerEvents(){this._triggerElement&&(RC.forEach(e=>{this._triggerElement.removeEventListener(e,this,Of)}),this._pointerUpEventsRegistered&&OC.forEach(e=>{this._triggerElement.removeEventListener(e,this,Of)}))}}const S2=new x("mat-ripple-global-options");let su=(()=>{class n{constructor(t,r,i,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new C2(this,r,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,r=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,r,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(m(ye),m(ve),m(ko),m(S2,8),m(Ho,8))},n.\u0275dir=I({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,r){2&t&&Xe("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"]}),n})(),kf=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Mt,eL],Mt]}),n})();const T2=["*",[["mat-toolbar-row"]]],A2=["*","mat-toolbar-row"],I2=Uo(class{constructor(n){this._elementRef=n}});let kC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),x2=(()=>{class n extends I2{constructor(t,r,i){super(t),this._platform=r,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(t){return new(t||n)(m(ye),m(ko),m(ae))},n.\u0275cmp=vt({type:n,selectors:[["mat-toolbar"]],contentQueries:function(t,r,i){if(1&t&&Qt(i,kC,5),2&t){let s;Je(s=et())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,r){2&t&&Xe("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[q],ngContentSelectors:A2,decls:2,vars:0,template:function(t,r){1&t&&(qr(T2),mr(0),mr(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),F2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Mt],Mt]}),n})();class Nf{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 R2 extends Nf{constructor(e,t,r,i){super(),this.component=e,this.viewContainerRef=t,this.injector=r,this.componentFactoryResolver=i}}class NC extends Nf{constructor(e,t,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class O2 extends Nf{constructor(e){super(),this.element=e instanceof ye?e.nativeElement:e}}let N2=(()=>{class n extends class k2{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof R2?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof NC?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof O2?(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)}}{constructor(t,r,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new ne,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const r=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,s=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=r.createComponent(s,r.length,t.injector||r.injector);return r!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return n.\u0275fac=function(t){return new(t||n)(m(Qr),m(Nt),m(ae))},n.\u0275dir=I({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[q]}),n})(),P2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})();function L2(n,e){1&n&&mr(0)}const V2=["*"];let PC=(()=>{class n{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(t){return new(t||n)(m(ye))},n.\u0275dir=I({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),LC=(()=>{class n{constructor(t){this.template=t}}return n.\u0275fac=function(t){return new(t||n)(m(kt))},n.\u0275dir=I({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),B2=0;const VC=new x("STEPPER_GLOBAL_OPTIONS");let Pf=(()=>{class n{constructor(t,r){this._stepper=t,this.interacted=!1,this.interactedStream=new ne,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=r||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(t){this._editable=ut(t)}get optional(){return this._optional}set optional(t){this._optional=ut(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=ut(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=ut(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var t;return null!==(t=this._stepperOptions.showError)&&void 0!==t?t:null!=this._customError}}return n.\u0275fac=function(t){return new(t||n)(m(se(()=>ys)),m(VC,8))},n.\u0275cmp=vt({type:n,selectors:[["cdk-step"]],contentQueries:function(t,r,i){if(1&t&&Qt(i,LC,5),2&t){let s;Je(s=et())&&(r.stepLabel=s.first)}},viewQuery:function(t,r){if(1&t&&es(kt,7),2&t){let i;Je(i=et())&&(r.content=i.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Dt],ngContentSelectors:V2,decls:1,vars:0,template:function(t,r){1&t&&(qr(),W(0,L2,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),ys=(()=>{class n{constructor(t,r,i,s){this._dir=t,this._changeDetectorRef=r,this._elementRef=i,this._destroyed=new Ge,this.steps=new yr,this._sortedHeaders=new yr,this._linear=!1,this._selectedIndex=0,this.selectionChange=new ne,this._orientation="horizontal",this._groupId=B2++}get linear(){return this._linear}set linear(t){this._linear=ut(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var r;const i=function ri(n,e=0){return function TL(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}(t);this.steps&&this._steps?(this._isValidIndex(i),null===(r=this.selected)||void 0===r||r._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe(Do(this._steps),hs(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(r=>r._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Do(this._stepHeader),hs(this._destroyed)).subscribe(t=>{this._sortedHeaders.reset(t.toArray().sort((r,i)=>r._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new FL(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:V()).pipe(Do(this._layoutDirection()),hs(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const r=t-this._selectedIndex;return r<0?"rtl"===this._layoutDirection()?"next":"previous":r>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,r="number"){const i=this.steps.toArray()[t],s=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,s):this._getGuidelineLogic(i,s,r)}_getDefaultIndicatorLogic(t,r){return t._showError()&&t.hasError&&!r?"error":!t.completed||r?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,r,i="number"){return t._showError()&&t.hasError&&!r?"error":t.completed&&!r?"done":t.completed&&r?i:t.editable&&r?"edit":i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const r=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:r[t],previouslySelectedStep:r[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const r=Xh(t),i=t.keyCode,s=this._keyManager;null==s.activeItemIndex||r||32!==i&&13!==i?s.onKeydown(t):(this.selectedIndex=s.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(r=>{const i=r.stepControl;return(i?i.invalid||i.pending||!r.interacted:!r.completed)&&!r.optional&&!r._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,r=function iL(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}();return t===r||t.contains(r)}_isValidIndex(t){return t>-1&&(!this.steps||t<this.steps.length)}}return n.\u0275fac=function(t){return new(t||n)(m(Kh,8),m(Kn),m(ye),m(ae))},n.\u0275dir=I({type:n,selectors:[["","cdkStepper",""]],contentQueries:function(t,r,i){if(1&t&&(Qt(i,Pf,5),Qt(i,PC,5)),2&t){let s;Je(s=et())&&(r._steps=s),Je(s=et())&&(r._stepHeader=s)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),n})(),j2=(()=>{class n{constructor(t){this._stepper=t,this.type="submit"}}return n.\u0275fac=function(t){return new(t||n)(m(ys))},n.\u0275dir=I({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,r){1&t&&Ce("click",function(){return r._stepper.next()}),2&t&&Wr("type",r.type)},inputs:{type:"type"}}),n})(),H2=(()=>{class n{constructor(t){this._stepper=t,this.type="button"}}return n.\u0275fac=function(t){return new(t||n)(m(ys))},n.\u0275dir=I({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,r){1&t&&Ce("click",function(){return r._stepper.previous()}),2&t&&Wr("type",r.type)},inputs:{type:"type"}}),n})(),U2=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Qh]]}),n})();const $2=["mat-button",""],z2=["*"],q2=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],W2=Uo(IC(xC(class{constructor(n){this._elementRef=n}})));let K2=(()=>{class n extends W2{constructor(t,r,i){super(t),this._focusMonitor=r,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of q2)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,r){t?this._focusMonitor.focusVia(this._getHostElement(),t,r):this._getHostElement().focus(r)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(r=>this._getHostElement().hasAttribute(r))}}return n.\u0275fac=function(t){return new(t||n)(m(ye),m(Hl),m(Ho,8))},n.\u0275cmp=vt({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,r){if(1&t&&es(su,5),2&t){let i;Je(i=et())&&(r.ripple=i.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,r){2&t&&(Le("disabled",r.disabled||null),Xe("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-button-disabled",r.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[q],attrs:$2,ngContentSelectors:z2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,r){1&t&&(qr(),M(0,"span",0),mr(1),S(),oe(2,"span",1),oe(3,"span",2)),2&t&&(F(2),Xe("mat-button-ripple-round",r.isRoundButton||r.isIconButton),R("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",r.isIconButton)("matRippleTrigger",r._getHostElement()))},directives:[su],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),BC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[kf,Mt],Mt]}),n})();function jC(...n){const e=Op(n),{args:t,keys:r}=tE(n),i=new be(s=>{const{length:o}=t;if(!o)return void s.complete();const a=new Array(o);let l=o,u=o;for(let c=0;c<o;c++){let d=!1;sn(t[c]).subscribe(new Re(s,h=>{d||(d=!0,u--),a[c]=h},()=>l--,void 0,()=>{(!l||!d)&&(u||s.next(r?rE(r,a):a),s.complete())}))}});return e?i.pipe(nE(e)):i}class Y2{}class Mr{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),s=i.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let r=e[t];const i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Mr?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(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Mr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Mr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Z2{encodeKey(e){return HC(e)}encodeValue(e){return HC(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const J2=/%(\d[a-f0-9])/gi,eB={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function HC(n){return encodeURIComponent(n).replace(J2,(e,t)=>{var r;return null!==(r=eB[t])&&void 0!==r?r:e})}function UC(n){return`${n}`}class Sr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Z2,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X2(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,s)),e.decodeValue(i.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t];this.map.set(t,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Sr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}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 t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(UC(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(UC(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class tB{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),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 $C(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function zC(n){return"undefined"!=typeof Blob&&n instanceof Blob}function GC(n){return"undefined"!=typeof FormData&&n instanceof FormData}class zo{constructor(e,t,r,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function nB(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Mr),this.context||(this.context=new tB),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Sr,this.urlWithParams=t}serializeBody(){return null===this.body?null:$C(this.body)||zC(this.body)||GC(this.body)||function rB(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Sr?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||GC(this.body)?null:zC(this.body)?this.body.type||null:$C(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Sr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const r=e.method||this.method,i=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let u=e.headers||this.headers,c=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),c)),new zo(r,i,o,{params:c,headers:u,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var rt=(()=>((rt=rt||{})[rt.Sent=0]="Sent",rt[rt.UploadProgress=1]="UploadProgress",rt[rt.ResponseHeader=2]="ResponseHeader",rt[rt.DownloadProgress=3]="DownloadProgress",rt[rt.Response=4]="Response",rt[rt.User=5]="User",rt))();class Lf extends class iB{constructor(e,t=200,r="OK"){this.headers=e.headers||new Mr,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=rt.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Lf({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 Vf(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let WC=(()=>{class n{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof zo)s=t;else{let l,u;l=i.headers instanceof Mr?i.headers:new Mr(i.headers),i.params&&(u=i.params instanceof Sr?i.params:new Sr({fromObject:i.params})),s=new zo(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const o=V(s).pipe(ss(l=>this.handler.handle(l)));if(t instanceof zo||"events"===i.observe)return o;const a=o.pipe(Zn(l=>l instanceof Lf));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Z(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Z(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Sr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Vf(i,r))}post(t,r,i={}){return this.request("POST",t,Vf(i,r))}put(t,r,i={}){return this.request("PUT",t,Vf(i,r))}}return n.\u0275fac=function(t){return new(t||n)(D(Y2))},n.\u0275prov=P({token:n,factory:n.\u0275fac}),n})();const oB=["*"];let ou;function Go(n){var e;return(null===(e=function aB(){if(void 0===ou&&(ou=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(ou=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return ou}())||void 0===e?void 0:e.createHTML(n))||n}function KC(n){return Error(`Unable to find icon with the name "${n}"`)}function QC(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function YC(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class li{constructor(e,t,r){this.url=e,this.svgText=t,this.options=r}}let au=(()=>{class n{constructor(t,r,i,s){this._httpClient=t,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",this._document=i}addSvgIcon(t,r,i){return this.addSvgIconInNamespace("",t,r,i)}addSvgIconLiteral(t,r,i){return this.addSvgIconLiteralInNamespace("",t,r,i)}addSvgIconInNamespace(t,r,i,s){return this._addSvgIconConfig(t,r,new li(i,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,i,s){const o=this._sanitizer.sanitize(ie.HTML,i);if(!o)throw YC(i);const a=Go(o);return this._addSvgIconConfig(t,r,new li("",a,s))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,i){return this._addSvgIconSetConfig(t,new li(r,null,i))}addSvgIconSetLiteralInNamespace(t,r,i){const s=this._sanitizer.sanitize(ie.HTML,r);if(!s)throw YC(r);const o=Go(s);return this._addSvgIconSetConfig(t,new li("",o,i))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const r=this._sanitizer.sanitize(ie.RESOURCE_URL,t);if(!r)throw QC(t);const i=this._cachedIconsByUrl.get(r);return i?V(lu(i)):this._loadSvgIconFromConfig(new li(t,null)).pipe(tt(s=>this._cachedIconsByUrl.set(r,s)),Z(s=>lu(s)))}getNamedSvgIcon(t,r=""){const i=ZC(r,t);let s=this._svgIconConfigs.get(i);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,t),s)return this._svgIconConfigs.set(i,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(r);return o?this._getSvgFromIconSetConfigs(t,o):function Q2(n,e){const t=he(n)?n:()=>n,r=i=>i.error(t());return new be(e?i=>e.schedule(r,0,i):r)}(KC(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?V(lu(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Z(r=>lu(r)))}_getSvgFromIconSetConfigs(t,r){const i=this._extractIconWithNameFromAnySet(t,r);return i?V(i):jC(r.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Xn(a=>{const u=`Loading icon set URL: ${this._sanitizer.sanitize(ie.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(u)),V(null)})))).pipe(Z(()=>{const o=this._extractIconWithNameFromAnySet(t,r);if(!o)throw KC(t);return o}))}_extractIconWithNameFromAnySet(t,r){for(let i=r.length-1;i>=0;i--){const s=r[i];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(tt(r=>t.svgText=r),Z(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?V(null):this._fetchIcon(t).pipe(tt(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,i){const s=t.querySelector(`[id="${r}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,i);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),i);const a=this._svgElementFromString(Go("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,i)}_svgElementFromString(t){const r=this._document.createElement("DIV");r.innerHTML=t;const i=r.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(t){const r=this._svgElementFromString(Go("<svg></svg>")),i=t.attributes;for(let s=0;s<i.length;s++){const{name:o,value:a}=i[s];"id"!==o&&r.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&r.appendChild(t.childNodes[s].cloneNode(!0));return r}_setSvgAttributes(t,r){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),r&&r.viewBox&&t.setAttribute("viewBox",r.viewBox),t}_fetchIcon(t){var r;const{url:i,options:s}=t,o=null!==(r=null==s?void 0:s.withCredentials)&&void 0!==r&&r;if(!this._httpClient)throw function lB(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==i)throw Error(`Cannot fetch icon from URL "${i}".`);const a=this._sanitizer.sanitize(ie.RESOURCE_URL,i);if(!a)throw QC(i);const l=this._inProgressUrlFetches.get(a);if(l)return l;const u=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Z(c=>Go(c)),cE(()=>this._inProgressUrlFetches.delete(a)),Lp());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(t,r,i){return this._svgIconConfigs.set(ZC(t,r),i),this}_addSvgIconSetConfig(t,r){const i=this._iconSetConfigs.get(t);return i?i.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){const r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let i=0;i<this._resolvers.length;i++){const s=this._resolvers[i](r,t);if(s)return cB(s)?new li(s.url,null,s.options):new li(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(D(WC,8),D(Mh),D(ae,8),D(Un))},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lu(n){return n.cloneNode(!0)}function ZC(n,e){return n+":"+e}function cB(n){return!(!n.url||!n.options)}const dB=Uo(class{constructor(n){this._elementRef=n}}),hB=new x("mat-icon-location",{providedIn:"root",factory:function fB(){const n=cc(ae),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),XC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pB=XC.map(n=>`[${n}]`).join(", "),gB=/^url\(['"]?#(.*?)['"]?\)$/;let mB=(()=>{class n extends dB{constructor(t,r,i,s,o){super(t),this._iconRegistry=r,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Ye.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ut(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const r=t.querySelectorAll("style");for(let s=0;s<r.length;s++)r[s].textContent+=" ";const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let r=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){const i=t.childNodes[r];(1!==i.nodeType||"svg"===i.nodeName.toLowerCase())&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,r=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();r!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),r&&t.classList.add(r),this._previousFontSetClass=r),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const r=this._elementsWithExternalReferences;r&&r.forEach((i,s)=>{i.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const r=t.querySelectorAll(pB),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<r.length;s++)XC.forEach(o=>{const a=r[s],l=a.getAttribute(o),u=l?l.match(gB):null;if(u){let c=i.get(a);c||(c=[],i.set(a,c)),c.push({name:o,value:u[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[r,i]=this._splitIconName(t);r&&(this._svgNamespace=r),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,r).pipe(Ts(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${i}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(m(ye),m(au),hr("aria-hidden"),m(hB),m(Un))},n.\u0275cmp=vt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,r){2&t&&(Le("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet),Xe("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:[q],ngContentSelectors:oB,decls:1,vars:0,template:function(t,r){1&t&&(qr(),mr(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),_B=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Mt],Mt]}),n})();function yB(n,e){if(1&n&&Gr(0,8),2&n){const t=pe();R("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function vB(n,e){if(1&n&&(M(0,"span",13),ge(1),S()),2&n){const t=pe(2);F(1),xn(t._getDefaultTextForState(t.state))}}function bB(n,e){if(1&n&&(M(0,"span",14),ge(1),S()),2&n){const t=pe(2);F(1),xn(t._intl.completedLabel)}}function EB(n,e){if(1&n&&(M(0,"span",14),ge(1),S()),2&n){const t=pe(2);F(1),xn(t._intl.editableLabel)}}function DB(n,e){if(1&n&&(M(0,"mat-icon",13),ge(1),S()),2&n){const t=pe(2);F(1),xn(t._getDefaultTextForState(t.state))}}function CB(n,e){if(1&n&&($r(0,9),W(1,vB,2,1,"span",10),W(2,bB,2,1,"span",11),W(3,EB,2,1,"span",11),W(4,DB,2,1,"mat-icon",12),zr()),2&n){const t=pe();R("ngSwitch",t.state),F(1),R("ngSwitchCase","number"),F(1),R("ngIf","done"===t.state),F(1),R("ngIf","edit"===t.state)}}function wB(n,e){if(1&n&&(M(0,"div",15),Gr(1,16),S()),2&n){const t=pe();F(1),R("ngTemplateOutlet",t._templateLabel().template)}}function MB(n,e){if(1&n&&(M(0,"div",15),ge(1),S()),2&n){const t=pe();F(1),xn(t.label)}}function SB(n,e){if(1&n&&(M(0,"div",17),ge(1),S()),2&n){const t=pe();F(1),xn(t._intl.optionalLabel)}}function TB(n,e){if(1&n&&(M(0,"div",18),ge(1),S()),2&n){const t=pe();F(1),xn(t.errorMessage)}}function AB(n,e){}function IB(n,e){if(1&n&&(mr(0),W(1,AB,0,0,"ng-template",0)),2&n){const t=pe();F(1),R("cdkPortalOutlet",t._portal)}}const xB=["*"];function FB(n,e){1&n&&oe(0,"div",9)}const JC=function(n,e){return{step:n,i:e}};function RB(n,e){if(1&n&&($r(0),Gr(1,7),W(2,FB,1,0,"div",8),zr()),2&n){const t=e.$implicit,r=e.index,i=e.last;pe(2);const s=Ha(4);F(1),R("ngTemplateOutlet",s)("ngTemplateOutletContext",Rd(3,JC,t,r)),F(1),R("ngIf",!i)}}function OB(n,e){if(1&n){const t=Ki();M(0,"div",10),Ce("@horizontalStepTransition.done",function(i){return ur(t),pe(2)._animationDone.next(i)}),Gr(1,11),S()}if(2&n){const t=e.$implicit,r=e.index,i=pe(2);R("@horizontalStepTransition",i._getAnimationDirection(r))("id",i._getStepContentId(r)),Le("aria-labelledby",i._getStepLabelId(r))("aria-expanded",i.selectedIndex===r),F(1),R("ngTemplateOutlet",t.content)}}function kB(n,e){if(1&n&&($r(0),M(1,"div",3),W(2,RB,3,6,"ng-container",4),S(),M(3,"div",5),W(4,OB,2,5,"div",6),S(),zr()),2&n){const t=pe();F(2),R("ngForOf",t.steps),F(2),R("ngForOf",t.steps)}}function NB(n,e){if(1&n){const t=Ki();M(0,"div",13),Gr(1,7),M(2,"div",14),M(3,"div",15),Ce("@verticalStepTransition.done",function(i){return ur(t),pe(2)._animationDone.next(i)}),M(4,"div",16),Gr(5,11),S(),S(),S(),S()}if(2&n){const t=e.$implicit,r=e.index,i=e.last,s=pe(2),o=Ha(4);F(1),R("ngTemplateOutlet",o)("ngTemplateOutletContext",Rd(9,JC,t,r)),F(1),Xe("mat-stepper-vertical-line",!i),F(1),R("@verticalStepTransition",s._getAnimationDirection(r))("id",s._getStepContentId(r)),Le("aria-labelledby",s._getStepLabelId(r))("aria-expanded",s.selectedIndex===r),F(2),R("ngTemplateOutlet",t.content)}}function PB(n,e){if(1&n&&($r(0),W(1,NB,6,12,"div",12),zr()),2&n){const t=pe();F(1),R("ngForOf",t.steps)}}function LB(n,e){if(1&n){const t=Ki();M(0,"mat-step-header",17),Ce("click",function(){return ur(t).step.select()})("keydown",function(i){return ur(t),pe()._onKeydown(i)}),S()}if(2&n){const t=e.step,r=e.i,i=pe();Xe("mat-horizontal-stepper-header","horizontal"===i.orientation)("mat-vertical-stepper-header","vertical"===i.orientation),R("tabIndex",i._getFocusIndex()===r?0:-1)("id",i._getStepLabelId(r))("index",r)("state",i._getIndicatorType(r,t.state))("label",t.stepLabel||t.label)("selected",i.selectedIndex===r)("active",i._stepIsNavigable(r,t))("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!i._stepIsNavigable(r,t))("color",t.color||i.color),Le("aria-posinset",r+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(r))("aria-selected",i.selectedIndex==r)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)("aria-disabled",!i._stepIsNavigable(r,t)||null)}}let uu=(()=>{class n extends LC{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=He(n)))(r||n)}}(),n.\u0275dir=I({type:n,selectors:[["","matStepLabel",""]],features:[q]}),n})(),cu=(()=>{class n{constructor(){this.changes=new Ge,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=P({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const BB={provide:cu,deps:[[new Ct,new fr,cu]],useFactory:function VB(n){return n||new cu}},jB=Uo(class extends PC{constructor(e){super(e)}},"primary");let ew=(()=>{class n extends jB{constructor(t,r,i,s){super(i),this._intl=t,this._focusMonitor=r,this._intlSubscription=t.changes.subscribe(()=>s.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,r){t?this._focusMonitor.focusVia(this._elementRef,t,r):this._elementRef.nativeElement.focus(r)}_stringLabel(){return this.label instanceof uu?null:this.label}_templateLabel(){return this.label instanceof uu?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return n.\u0275fac=function(t){return new(t||n)(m(cu),m(Hl),m(ye),m(Kn))},n.\u0275cmp=vt({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[q],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,r){1&t&&(oe(0,"div",0),M(1,"div"),M(2,"div",1),W(3,yB,1,2,"ng-container",2),W(4,CB,5,4,"ng-container",3),S(),S(),M(5,"div",4),W(6,wB,2,1,"div",5),W(7,MB,2,1,"div",5),W(8,SB,2,1,"div",6),W(9,TB,2,1,"div",7),S()),2&t&&(R("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),F(1),wy("mat-step-icon-state-",r.state," mat-step-icon"),Xe("mat-step-icon-selected",r.selected),F(1),R("ngSwitch",!(!r.iconOverrides||!r.iconOverrides[r.state])),F(1),R("ngSwitchCase",!0),F(2),Xe("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error","error"==r.state),F(1),R("ngIf",r._templateLabel()),F(1),R("ngIf",r._stringLabel()),F(1),R("ngIf",r.optional&&"error"!=r.state),F(1),R("ngIf","error"==r.state))},directives:[su,vo,ph,Nb,gl,gh,mB],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),n})();const tw={horizontalStepTransition:xD("horizontalStepTransition",[ps("previous",Dr({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),ps("current",Dr({transform:"none",visibility:"inherit"})),ps("next",Dr({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),OD("* => *",FD("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:xD("verticalStepTransition",[ps("previous",Dr({height:"0px",visibility:"hidden"})),ps("next",Dr({height:"0px",visibility:"hidden"})),ps("current",Dr({height:"*",visibility:"inherit"})),OD("* <=> current",FD("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let HB=(()=>{class n{constructor(t){this.templateRef=t}}return n.\u0275fac=function(t){return new(t||n)(m(kt))},n.\u0275dir=I({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),nw=(()=>{class n{constructor(t){this._template=t}}return n.\u0275fac=function(t){return new(t||n)(m(kt))},n.\u0275dir=I({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),rw=(()=>{class n extends Pf{constructor(t,r,i,s){super(t,s),this._errorStateMatcher=r,this._viewContainerRef=i,this._isSelected=Ye.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(br(()=>this._stepper.selectionChange.pipe(Z(t=>t.selectedStep===this),Do(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new NC(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,r){return this._errorStateMatcher.isErrorState(t,r)||!!(t&&t.invalid&&this.interacted)}}return n.\u0275fac=function(t){return new(t||n)(m(se(()=>sw)),m(Rf,4),m(Nt),m(VC,8))},n.\u0275cmp=vt({type:n,selectors:[["mat-step"]],contentQueries:function(t,r,i){if(1&t&&(Qt(i,uu,5),Qt(i,nw,5)),2&t){let s;Je(s=et())&&(r.stepLabel=s.first),Je(s=et())&&(r._lazyContent=s.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[ue([{provide:Rf,useExisting:n},{provide:Pf,useExisting:n}]),q],ngContentSelectors:xB,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,r){1&t&&(qr(),W(0,IB,2,1,"ng-template"))},directives:[N2],encapsulation:2,changeDetection:0}),n})(),iw=(()=>{class n extends ys{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=He(n)))(r||n)}}(),n.\u0275dir=I({type:n,features:[q]}),n})(),UB=(()=>{class n extends iw{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=He(n)))(r||n)}}(),n.\u0275dir=I({type:n,selectors:[["mat-horizontal-stepper"]],features:[q]}),n})(),$B=(()=>{class n extends iw{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=He(n)))(r||n)}}(),n.\u0275dir=I({type:n,selectors:[["mat-vertical-stepper"]],features:[q]}),n})(),sw=(()=>{class n extends ys{constructor(t,r,i,s){super(t,r,i,s),this.steps=new yr,this.animationDone=new ne,this.labelPosition="end",this._iconOverrides={},this._animationDone=new Ge;const o=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===o?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:r})=>this._iconOverrides[t]=r),this.steps.changes.pipe(hs(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(bD((t,r)=>t.fromState===r.fromState&&t.toState===r.toState),hs(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}_stepIsNavigable(t,r){return r.completed||this.selectedIndex===t||!this.linear}}return n.\u0275fac=function(t){return new(t||n)(m(Kh,8),m(Kn),m(ye),m(ae))},n.\u0275cmp=vt({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,r,i){if(1&t&&(Qt(i,rw,5),Qt(i,HB,5)),2&t){let s;Je(s=et())&&(r._steps=s),Je(s=et())&&(r._icons=s)}},viewQuery:function(t,r){if(1&t&&es(ew,5),2&t){let i;Je(i=et())&&(r._stepHeader=i)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,r){2&t&&(Le("aria-orientation",r.orientation),Xe("mat-stepper-horizontal","horizontal"===r.orientation)("mat-stepper-vertical","vertical"===r.orientation)("mat-stepper-label-position-end","horizontal"===r.orientation&&"end"==r.labelPosition)("mat-stepper-label-position-bottom","horizontal"===r.orientation&&"bottom"==r.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ue([{provide:ys,useExisting:n},{provide:UB,useExisting:n},{provide:$B,useExisting:n}]),q],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,r){1&t&&($r(0,0),W(1,kB,5,2,"ng-container",1),W(2,PB,2,1,"ng-container",1),zr(),W(3,LB,1,23,"ng-template",null,2,Iv)),2&t&&(R("ngSwitch",r.orientation),F(1),R("ngSwitchCase","horizontal"),F(1),R("ngSwitchCase","vertical"))},directives:[vo,ph,Rb,gh,gl,ew],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[tw.horizontalStepTransition,tw.verticalStepTransition]},changeDetection:0}),n})(),zB=(()=>{class n extends j2{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=He(n)))(r||n)}}(),n.\u0275dir=I({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,r){2&t&&Wr("type",r.type)},inputs:{type:"type"},features:[q]}),n})(),GB=(()=>{class n extends H2{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=He(n)))(r||n)}}(),n.\u0275dir=I({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,r){2&t&&Wr("type",r.type)},inputs:{type:"type"},features:[q]}),n})(),qB=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({providers:[BB,Rf],imports:[[Mt,yh,P2,BC,U2,_B,kf],Mt]}),n})();class WB{constructor(e=!1,t,r=!0){this._multiple=e,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ge,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){}}let ow=(()=>{class n{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(m(Gn),m(ye))},n.\u0275dir=I({type:n}),n})(),ui=(()=>{class n extends ow{}return n.\u0275fac=function(){let e;return function(r){return(e||(e=He(n)))(r||n)}}(),n.\u0275dir=I({type:n,features:[q]}),n})();const nn=new x("NgValueAccessor"),QB={provide:nn,useExisting:se(()=>Bf),multi:!0},ZB=new x("CompositionEventMode");let Bf=(()=>{class n extends ow{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function YB(){const n=Fn()?Fn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(m(Gn),m(ye),m(ZB,8))},n.\u0275dir=I({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,r){1&t&&Ce("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[ue([QB]),q]}),n})();const ct=new x("NgValidators"),Ar=new x("NgAsyncValidators");function _w(n){return null!=n}function yw(n){const e=no(n)?We(n):n;return _d(e),e}function vw(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function bw(n,e){return e.map(t=>t(n))}function Ew(n){return n.map(e=>function JB(n){return!n.validate}(e)?e:t=>e.validate(t))}function jf(n){return null!=n?function Dw(n){if(!n)return null;const e=n.filter(_w);return 0==e.length?null:function(t){return vw(bw(t,e))}}(Ew(n)):null}function Hf(n){return null!=n?function Cw(n){if(!n)return null;const e=n.filter(_w);return 0==e.length?null:function(t){return jC(bw(t,e).map(yw)).pipe(Z(vw))}}(Ew(n)):null}function ww(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Uf(n){return n?Array.isArray(n)?n:[n]:[]}function du(n,e){return Array.isArray(n)?n.includes(e):n===e}function Tw(n,e){const t=Uf(e);return Uf(n).forEach(i=>{du(t,i)||t.push(i)}),t}function Aw(n,e){return Uf(e).filter(t=>!du(n,t))}class Iw{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=jf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Hf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Ir extends Iw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _t extends Iw{get formDirective(){return null}get path(){return null}}let Fw=(()=>{class n extends class xw{constructor(e){this._cd=e}is(e){var t,r,i;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(i=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===i?void 0:i[e])}}{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(m(Ir,2))},n.\u0275dir=I({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Xe("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[q]}),n})();function Wo(n,e){(function Gf(n,e){const t=function Mw(n){return n._rawValidators}(n);null!==e.validator?n.setValidators(ww(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const r=function Sw(n){return n._rawAsyncValidators}(n);null!==e.asyncValidator?n.setAsyncValidators(ww(r,e.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();gu(e._rawValidators,i),gu(e._rawAsyncValidators,i)})(n,e),e.valueAccessor.writeValue(n.value),function lj(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Ow(n,e)})}(n,e),function cj(n,e){const t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function uj(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Ow(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function aj(n,e){if(e.valueAccessor.setDisabledState){const t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function gu(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Ow(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function _u(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Ko="VALID",yu="INVALID",vs="PENDING",Qo="DISABLED";function Qf(n){return(Zf(n)?n.validators:n)||null}function Pw(n){return Array.isArray(n)?jf(n):n||null}function Yf(n,e){return(Zf(e)?e.asyncValidators:n)||null}function Lw(n){return Array.isArray(n)?Hf(n):n||null}function Zf(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Xf=n=>n instanceof ep;function Bw(n){return(n=>n instanceof Uw)(n)?n.value:n.getRawValue()}function jw(n,e){const t=Xf(n),r=n.controls;if(!(t?Object.keys(r):r).length)throw new it(1e3,"");if(!r[e])throw new it(1001,"")}function Hw(n,e){Xf(n),n._forEachChild((r,i)=>{if(void 0===e[i])throw new it(1002,"")})}class Jf{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Pw(this._rawValidators),this._composedAsyncValidatorFn=Lw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Ko}get invalid(){return this.status===yu}get pending(){return this.status==vs}get disabled(){return this.status===Qo}get enabled(){return this.status!==Qo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Pw(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Lw(e)}addValidators(e){this.setValidators(Tw(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Tw(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Aw(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Aw(e,this._rawAsyncValidators))}hasValidator(e){return du(this._rawValidators,e)}hasAsyncValidator(e){return du(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=vs,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Qo,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Ko,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ko||this.status===vs)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qo:Ko}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=vs,this._hasOwnPendingAsyncValidator=!0;const t=yw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function pj(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let r=n;return e.forEach(i=>{r=Xf(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:(n=>n instanceof mj)(r)&&r.at(i)||null}),r}(this,e,".")}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ne,this.statusChanges=new ne}_calculateStatus(){return this._allControlsDisabled()?Qo:this.errors?yu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vs)?vs:this._anyControlsHaveStatus(yu)?yu:Ko}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Zf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Uw extends Jf{constructor(e=null,t,r){super(Qf(t),Yf(r,t)),this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){_u(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){_u(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class ep extends Jf{constructor(e,t,r){super(Qf(t),Yf(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Hw(this,e),Object.keys(e).forEach(r=>{jw(this,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=Bw(t),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const r=this.controls[t];if(this.contains(t)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,s)=>{r=t(r,i,s)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class mj extends Jf{constructor(e,t,r){super(Qf(t),Yf(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,r={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Hw(this,e),e.forEach((r,i)=>{jw(this,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>Bw(e))}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const vj={provide:Ir,useExisting:se(()=>np)},Gw=(()=>Promise.resolve(null))();let np=(()=>{class n extends Ir{constructor(t,r,i,s){super(),this.control=new Uw,this._registered=!1,this.update=new ne,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function Wf(n,e){if(!e)return null;let t,r,i;return Array.isArray(e),e.forEach(s=>{s.constructor===Bf?t=s:function fj(n){return Object.getPrototypeOf(n.constructor)===ui}(s)?r=s:i=s}),i||r||t||null}(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function qf(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function fu(n,e){return[...e.path,n]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Wo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Gw.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=""===r||r&&"false"!==r;Gw.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return n.\u0275fac=function(t){return new(t||n)(m(_t,9),m(ct,10),m(Ar,10),m(nn,10))},n.\u0275dir=I({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ue([vj]),q,Dt]}),n})(),Ww=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({}),n})(),zj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Ww]]}),n})(),Gj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[zj]}),n})();const qj=["button"],Wj=["*"],h0=new x("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),f0=new x("MatButtonToggleGroup"),Kj={provide:nn,useExisting:se(()=>m0),multi:!0};let p0=0;class g0{constructor(e,t){this.source=e,this.value=t}}let m0=(()=>{class n{constructor(t,r){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+p0++,this.valueChange=new ne,this.change=new ne,this.appearance=r&&r.appearance?r.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(r=>{r.name=this._name,r._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=ut(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(r=>r.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=ut(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=ut(t),this._buttonToggles&&this._buttonToggles.forEach(r=>r._markForCheck())}ngOnInit(){this._selectionModel=new WB(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,r=Array.isArray(t)?t[t.length-1]:t,i=new g0(r,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,r,i=!1,s=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?r?this._selectionModel.select(t):this._selectionModel.deselect(t):s=!0,s?Promise.resolve().then(()=>this._updateModelValue(i)):this._updateModelValue(i)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(r=>null!=t.value&&r===t.value):t.value===this._rawValue)}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(r=>this._selectValue(r))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const r=this._buttonToggles.find(i=>null!=i.value&&i.value===t);r&&(r.checked=!0,this._selectionModel.select(r))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return n.\u0275fac=function(t){return new(t||n)(m(Kn),m(h0,8))},n.\u0275dir=I({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,r,i){if(1&t&&Qt(i,_0,5),2&t){let s;Je(s=et())&&(r._buttonToggles=s)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,r){2&t&&(Le("aria-disabled",r.disabled),Xe("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard","standard"===r.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[ue([Kj,{provide:f0,useExisting:n}])]}),n})();const Qj=xC(class{});let _0=(()=>{class n extends Qj{constructor(t,r,i,s,o,a){super(),this._changeDetectorRef=r,this._elementRef=i,this._focusMonitor=s,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new ne;const l=Number(o);this.tabIndex=l||0===l?l:null,this.buttonToggleGroup=t,this.appearance=a&&a.appearance?a.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const r=ut(t);r!==this._checked&&(this._checked=r,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=ut(t)}ngOnInit(){const t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-"+p0++,this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new g0(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(m(f0,8),m(Kn),m(ye),m(Hl),hr("tabindex"),m(h0,8))},n.\u0275cmp=vt({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(t,r){if(1&t&&es(qj,5),2&t){let i;Je(i=et())&&(r._buttonElement=i.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,r){1&t&&Ce("focus",function(){return r.focus()}),2&t&&(Le("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),Xe("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-appearance-standard","standard"===r.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[q],ngContentSelectors:Wj,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,r){if(1&t&&(qr(),M(0,"button",0,1),Ce("click",function(){return r._onButtonClick()}),M(2,"span",2),mr(3),S(),S(),oe(4,"span",3),oe(5,"span",4)),2&t){const i=Ha(1);R("id",r.buttonId)("disabled",r.disabled||null),Le("tabindex",r.disabled?-1:r.tabIndex)("aria-pressed",r.checked)("name",r.name||null)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),F(5),R("matRippleTrigger",i)("matRippleDisabled",r.disableRipple||r.disabled)}},directives:[su],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),n})(),Yj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[Mt,kf],Mt]}),n})();function Zj(n,e){1&n&&(M(0,"b"),ge(1,"Step 1: \u9009\u62e9\u5b66\u9662"),S())}function Xj(n,e){if(1&n){const t=Ki();M(0,"p"),ge(1,"\u540c\u5b66\u60a8\u597d\uff0c\u8bf7\u9009\u62e9\u7b2c\u4e8c\u5b66\u671f\uff085\u670827\u53f7~9\u670827\u53f7\uff09\u60a8\u7684\u9996\u9009\u5b66\u9662\uff0c\u8bf7\u52ff\u91cd\u590d\u9009\u62e9\u7b2c\u4e00\u5b66\u671f\u6240\u9009\u5b66\u9662\u3002"),S(),M(2,"p"),ge(3,"\u63a5\u4e0b\u6765\u7684\u56db\u4e2a\u6708\uff0c\u4e00\u8d77\u643a\u624b\u73ed\u957f\u4e0e\u540c\u7a97\uff0c\u7ee7\u7eed\u6211\u4eec\u7684\u5b66\u4e60\u4e4b\u65c5\uff01"),S(),oe(4,"br"),M(5,"p"),ge(6,"\u5404\u5b66\u9662\u4e3b\u8981\u8bfe\u7a0b\u5982\u4e0b\uff1a"),S(),M(7,"p"),ge(8,"\u5546\u9662 - \u300a\u5218\u6da6-\u5546\u4e1a\u901a\u8bc6\u300b\u7b498\u95e8"),S(),M(9,"p"),ge(10,"\u8d22\u9662 - \u300a\u859b\u5146\u4e30-\u7ecf\u6d4e\u5b66\u300b\u7b496\u95e8"),S(),M(11,"p"),ge(12,"\u7ba1\u9662 - \u300a\u5b81\u5411\u4e1c-\u7ba1\u7406\u5b66\u300b\u7b496\u95e8"),S(),M(13,"p"),M(14,"mat-button-toggle-group",4),Ce("ngModelChange",function(i){return ur(t),pe().school=i}),M(15,"mat-button-toggle",5),ge(16,"\u5546\u9662"),S(),M(17,"mat-button-toggle",6),ge(18,"\u8d22\u9662"),S(),M(19,"mat-button-toggle",7),ge(20,"\u7ba1\u9662"),S(),S(),S(),M(21,"button",8),Ce("click",function(){return ur(t),pe().random_func()}),ge(22,"\u4e0b\u4e00\u6b65"),S()}if(2&n){const t=pe();F(14),R("ngModel",t.school)}}function Jj(n,e){1&n&&(M(0,"b"),ge(1,"Step 2\uff1a\u626b\u7801\u52a0\u5165\u73ed\u7ea7"),S())}function eH(n,e){1&n&&oe(0,"img",25)}function tH(n,e){1&n&&oe(0,"img",26)}function nH(n,e){1&n&&oe(0,"img",27)}function rH(n,e){1&n&&oe(0,"img",28)}function iH(n,e){1&n&&oe(0,"img",29)}function sH(n,e){1&n&&oe(0,"img",30)}function oH(n,e){1&n&&oe(0,"img",31)}function aH(n,e){1&n&&oe(0,"img",32)}function lH(n,e){1&n&&oe(0,"img",33)}function uH(n,e){1&n&&oe(0,"img",34)}function cH(n,e){1&n&&oe(0,"img",35)}function dH(n,e){1&n&&oe(0,"img",36)}function hH(n,e){1&n&&oe(0,"img",37)}function fH(n,e){1&n&&oe(0,"img",38)}function pH(n,e){1&n&&oe(0,"img",39)}function gH(n,e){if(1&n){const t=Ki();M(0,"p"),ge(1),S(),M(2,"p"),W(3,eH,1,0,"img",9),S(),M(4,"p"),W(5,tH,1,0,"img",10),S(),M(6,"p"),W(7,nH,1,0,"img",11),S(),M(8,"p"),W(9,rH,1,0,"img",12),S(),M(10,"p"),W(11,iH,1,0,"img",13),S(),M(12,"p"),W(13,sH,1,0,"img",14),S(),M(14,"p"),W(15,oH,1,0,"img",15),S(),M(16,"p"),W(17,aH,1,0,"img",16),S(),M(18,"p"),W(19,lH,1,0,"img",17),S(),M(20,"p"),W(21,uH,1,0,"img",18),S(),M(22,"p"),W(23,cH,1,0,"img",19),S(),M(24,"p"),W(25,dH,1,0,"img",20),S(),M(26,"p"),W(27,hH,1,0,"img",21),S(),M(28,"p"),W(29,fH,1,0,"img",22),S(),M(30,"p"),W(31,pH,1,0,"img",23),S(),M(32,"button",24),Ce("click",function(){return ur(t),pe().random_func()}),ge(33,"\u91cd\u65b0\u9009\u62e9\u5b66\u9662"),S()}if(2&n){const t=pe();F(1),Dd("\u8bf7\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801\uff0c\u52a0\u5165\u60a8\u7684\u73ed\u7ea7 [ ",t.school," - \u73ed\u7ea7 ",t.class_name," ]"),F(2),R("ngIf",1==t.random_value&&"\u5546\u9662"==t.school),F(2),R("ngIf",2==t.random_value&&"\u5546\u9662"==t.school),F(2),R("ngIf",3==t.random_value&&"\u5546\u9662"==t.school),F(2),R("ngIf",4==t.random_value&&"\u5546\u9662"==t.school),F(2),R("ngIf",5==t.random_value&&"\u5546\u9662"==t.school),F(2),R("ngIf",1==t.random_value&&"\u8d22\u9662"==t.school),F(2),R("ngIf",2==t.random_value&&"\u8d22\u9662"==t.school),F(2),R("ngIf",3==t.random_value&&"\u8d22\u9662"==t.school),F(2),R("ngIf",4==t.random_value&&"\u8d22\u9662"==t.school),F(2),R("ngIf",5==t.random_value&&"\u8d22\u9662"==t.school),F(2),R("ngIf",1==t.random_value&&"\u7ba1\u9662"==t.school),F(2),R("ngIf",2==t.random_value&&"\u7ba1\u9662"==t.school),F(2),R("ngIf",3==t.random_value&&"\u7ba1\u9662"==t.school),F(2),R("ngIf",4==t.random_value&&"\u7ba1\u9662"==t.school),F(2),R("ngIf",5==t.random_value&&"\u7ba1\u9662"==t.school)}}function mH(n,e){1&n&&(M(0,"b"),ge(1,"Step 3\uff1a\u5b8c\u6210"),S())}let _H=(()=>{class n{constructor(){this.random_value=Math.round(4*Math.random())+1,this.class_name_list=["A","B","C","D","E"],this.class_name=this.class_name_list[this.random_value-1]}random_func(){this.random_value=Math.round(4*Math.random())+1,this.class_name=this.class_name_list[this.random_value-1]}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=vt({type:n,selectors:[["app-core"]],decls:15,vars:0,consts:[["color","primary"],["orientation","vertical"],["matStepLabel",""],["matStepContent",""],["aria-label","Font Style",3,"ngModel","ngModelChange"],["value","\u5546\u9662"],["value","\u8d22\u9662"],["value","\u7ba1\u9662"],["mat-stroked-button","","mat-button","","matStepperNext","","color","primary",3,"click"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662A\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662B\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662C\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662D\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662E\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662A\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662B\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662C\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662D\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662E\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662A\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662B\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662C\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662D\u73ed.jpg","style","width:200px",4,"ngIf"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662E\u73ed.jpg","style","width:200px",4,"ngIf"],["mat-stroked-button","","mat-button","","matStepperPrevious","","color","primary",3,"click"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662A\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662B\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662C\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662D\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u5546\u9662E\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662A\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662B\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662C\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662D\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u8d22\u9662E\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662A\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662B\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662C\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662D\u73ed.jpg",2,"width","200px"],["src","https://ericwu021.github.io/FUEL/assets/\u7ba1\u9662E\u73ed.jpg",2,"width","200px"]],template:function(t,r){1&t&&(M(0,"mat-toolbar",0),M(1,"mat-toolbar-row"),M(2,"span"),ge(3,"\u62dc\u8033\u5065\u5eb7\u6d88\u8d39\u54c1\u4e2d\u56fd - FUEL2022\uff08\u7b2c2\u5b66\u671f\uff09"),S(),S(),S(),M(4,"mat-stepper",1),M(5,"mat-step"),W(6,Zj,2,0,"ng-template",2),W(7,Xj,23,1,"ng-template",3),S(),M(8,"mat-step"),W(9,Jj,2,0,"ng-template",2),W(10,gH,34,17,"ng-template",3),S(),M(11,"mat-step"),W(12,mH,2,0,"ng-template",2),M(13,"p"),ge(14,"\u606d\u559c\u60a8\u6210\u529f\u52a0\u5165\u73ed\u7ea7\uff0cBCH\u4e2d\u56fd\u671f\u5f85\u4e0e\u60a8\u5171\u6210\u957f\uff01"),S(),S(),S())},directives:[x2,kC,sw,rw,uu,nw,m0,Fw,np,_0,K2,zB,gl,GB],styles:[".example-icon[_ngcontent-%COMP%]{padding:0 14px}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),n})(),yH=(()=>{class n{constructor(){this.title="FUEL"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=vt({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){1&t&&oe(0,"app-core")},directives:[_H],styles:[""]}),n})(),IH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n}),n.\u0275inj=Ee({imports:[[yh,Mt],Mt]}),n})(),xH=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Me({type:n,bootstrap:[yH]}),n.\u0275inj=Ee({providers:[],imports:[[Zb,QP,m2,IH,qB,Yj,F2,BC,Gj]]}),n})();(function Z1(){ob=!1})(),yk().bootstrapModule(xH).catch(n=>console.error(n))}},he=>{he(he.s=699)}]);