diff --git a/index.html b/index.html index 31100d9..72a01cc 100644 --- a/index.html +++ b/index.html @@ -5,13 +5,13 @@ - - + +
- + \ No newline at end of file diff --git a/main.693f6ba38692b164.js b/main.6416746574cd2b60.js similarity index 96% rename from main.693f6ba38692b164.js rename to main.6416746574cd2b60.js index ea08365..a5346f0 100644 --- a/main.693f6ba38692b164.js +++ b/main.6416746574cd2b60.js @@ -1 +1 @@ -var _G=Object.defineProperty,yG=(Rn,On,Ht)=>On in Rn?_G(Rn,On,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Rn[On]=Ht,wx=(Rn,On,Ht)=>(yG(Rn,"symbol"!=typeof On?On+"":On,Ht),Ht);(self.webpackChunknovex_dataset_app=self.webpackChunknovex_dataset_app||[]).push([[179],{483:(Rn,On,Ht)=>{"use strict";function Se(n){return"function"==typeof n}function vi(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const sr=vi(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Ue(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Be{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Se(i))try{i()}catch(o){t=o instanceof sr?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{_o(o)}catch(s){t=t??[],s instanceof sr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new sr(t)}}add(t){var e;if(t&&t!==this)if(this.closed)_o(t);else{if(t instanceof Be){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Ue(e,t)}remove(t){const{_finalizers:e}=this;e&&Ue(e,t),t instanceof Be&&t._removeParent(this)}}Be.EMPTY=(()=>{const n=new Be;return n.closed=!0,n})();const bi=Be.EMPTY;function Qt(n){return n instanceof Be||n&&"closed"in n&&Se(n.remove)&&Se(n.add)&&Se(n.unsubscribe)}function _o(n){Se(n)?n():n.unsubscribe()}const K={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},be={setTimeout(n,t,...e){const{delegate:i}=be;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=be;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function we(n){be.setTimeout(()=>{const{onUnhandledError:t}=K;if(!t)throw n;t(n)})}function jt(){}const ze=ar("C",void 0,void 0);function ar(n,t,e){return{kind:n,value:t,error:e}}let sn=null;function wi(n){if(K.useDeprecatedSynchronousErrorHandling){const t=!sn;if(t&&(sn={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=sn;if(sn=null,e)throw i}}else n()}class ai extends Be{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Qt(t)&&t.add(this)):this.destination=z}static create(t,e,i){return new qe(t,e,i)}next(t){this.isStopped?A(function Ur(n){return ar("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?A(function St(n){return ar("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?A(ze,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ac=Function.prototype.bind;function vo(n,t){return ac.call(n,t)}class Bi{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){w(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){w(i)}else w(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){w(e)}}}class qe extends ai{constructor(t,e,i){let r;if(super(),Se(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&K.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&vo(t.next,o),error:t.error&&vo(t.error,o),complete:t.complete&&vo(t.complete,o)}):r=t}this.destination=new Bi(r)}}function w(n){K.useDeprecatedSynchronousErrorHandling?function yo(n){K.useDeprecatedSynchronousErrorHandling&&sn&&(sn.errorThrown=!0,sn.error=n)}(n):we(n)}function A(n,t){const{onStoppedNotification:e}=K;e&&be.setTimeout(()=>e(n,t))}const z={closed:!0,next:jt,error:function v(n){throw n},complete:jt},G="function"==typeof Symbol&&Symbol.observable||"@@observable";function ie(n){return n}function xt(n){return 0===n.length?ie:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let ne=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function ue(n){return n&&n instanceof ai||function ft(n){return n&&Se(n.next)&&Se(n.error)&&Se(n.complete)}(n)&&Qt(n)}(e)?e:new qe(e,i,r);return wi(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=q(i))((r,o)=>{const s=new qe({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[G](){return this}pipe(...e){return xt(e)(this)}toPromise(e){return new(e=q(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function q(n){var t;return null!==(t=n??K.Promise)&&void 0!==t?t:Promise}const li=vi(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let H=(()=>{class n extends ne{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new U(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new li}next(e){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?bi:(this.currentObservers=null,o.push(e),new Be(()=>{this.currentObservers=null,Ue(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ne;return e.source=this,e}}return n.create=(t,e)=>new U(t,e),n})();class U extends H{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:bi}}function tt(n){return Se(n?.lift)}function Ae(n){return t=>{if(tt(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ce(n,t,e,i,r){return new $t(n,t,e,i,r)}class $t extends ai{constructor(t,e,i,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function L(n,t){return Ae((e,i)=>{let r=0;e.subscribe(ce(i,o=>{i.next(n.call(t,o,r++))}))})}function xe(n,t){return function(e,i){t(e,i,n)}}function Hn(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function $i(n){return this instanceof $i?(this.v=n,this):new $i(n)}function wo(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(f){return new Promise(function(p,g){o.push([h,f,p,g])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof $i?Promise.resolve(h.value.v).then(c,u):d(o[0][2],h)}(i[h](f))}catch(p){d(o[0][3],p)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Co(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Ut(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}const Ch=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function sy(n){return Se(n?.then)}function ay(n){return Se(n[G])}function ly(n){return Symbol.asyncIterator&&Se(n?.[Symbol.asyncIterator])}function cy(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 uy=function Dx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function dy(n){return Se(n?.[uy])}function hy(n){return wo(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield $i(e.read());if(r)return yield $i(void 0);yield yield $i(i)}}finally{e.releaseLock()}})}function fy(n){return Se(n?.getReader)}function Nn(n){if(n instanceof ne)return n;if(null!=n){if(ay(n))return function Ex(n){return new ne(t=>{const e=n[G]();if(Se(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Ch(n))return function Sx(n){return new ne(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,we)})}(n);if(ly(n))return py(n);if(dy(n))return function kx(n){return new ne(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(fy(n))return function Ax(n){return py(hy(n))}(n)}throw cy(n)}function py(n){return new ne(t=>{(function xx(n,t){var e,i,r,o;return function Fn(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Co(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ur(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Xt(n,t,e=1/0){return Se(t)?Xt((i,r)=>L((o,s)=>t(i,o,r,s))(Nn(n(i,r))),e):("number"==typeof t&&(e=t),Ae((i,r)=>function Tx(n,t,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},f=g=>c{o&&t.next(g),c++;let _=!1;Nn(e(g,u++)).subscribe(ce(t,y=>{r?.(y),o?f(y):t.next(y)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(y)):p(y)}h()}catch(y){t.error(y)}}))};return n.subscribe(ce(t,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,e)))}function cs(n=1/0){return Xt(ie,n)}const dr=new ne(n=>n.complete());function my(n){return n&&Se(n.schedule)}function Dh(n){return n[n.length-1]}function gy(n){return Se(Dh(n))?n.pop():void 0}function Ca(n){return my(Dh(n))?n.pop():void 0}function _y(n,t=0){return Ae((e,i)=>{e.subscribe(ce(i,r=>ur(i,n,()=>i.next(r),t),()=>ur(i,n,()=>i.complete(),t),r=>ur(i,n,()=>i.error(r),t)))})}function yy(n,t=0){return Ae((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function vy(n,t){if(!n)throw new Error("Iterable cannot be null");return new ne(e=>{ur(e,t,()=>{const i=n[Symbol.asyncIterator]();ur(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Mt(n,t){return t?function Vx(n,t){if(null!=n){if(ay(n))return function Ox(n,t){return Nn(n).pipe(yy(t),_y(t))}(n,t);if(Ch(n))return function Nx(n,t){return new ne(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(sy(n))return function Fx(n,t){return Nn(n).pipe(yy(t),_y(t))}(n,t);if(ly(n))return vy(n,t);if(dy(n))return function Px(n,t){return new ne(e=>{let i;return ur(e,t,()=>{i=n[uy](),ur(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>Se(i?.return)&&i.return()})}(n,t);if(fy(n))return function Lx(n,t){return vy(hy(n),t)}(n,t)}throw cy(n)}(n,t):Nn(n)}function Do(...n){const t=Ca(n),e=function Rx(n,t){return"number"==typeof Dh(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Nn(i[0]):cs(e)(Mt(i,t)):dr}function Eh(n={}){const{connector:t=(()=>new H),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const g=s;f(),g?.unsubscribe()};return Ae((g,_)=>{c++,!d&&!u&&h();const y=l=l??t();_.add(()=>{c--,0===c&&!d&&!u&&(a=Sh(p,r))}),y.subscribe(_),!s&&c>0&&(s=new qe({next:D=>y.next(D),error:D=>{d=!0,h(),a=Sh(f,e,D),y.error(D)},complete:()=>{u=!0,h(),a=Sh(f,i),y.complete()}}),Nn(g).subscribe(s))})(o)}}function Sh(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new qe({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function nt(n){for(let t in n)if(n[t]===nt)return t;throw Error("Could not find renamed property on target object.")}function Mh(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function it(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(it).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function kh(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Bx=nt({__forward_ref__:nt});function ot(n){return n.__forward_ref__=ot,n.toString=function(){return it(this())},n}function ae(n){return Ah(n)?n():n}function Ah(n){return"function"==typeof n&&n.hasOwnProperty(Bx)&&n.__forward_ref__===ot}class E extends Error{constructor(t,e){super(function lc(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function pe(n){return"string"==typeof n?n:null==n?"":String(n)}function cc(n,t){throw new E(-201,!1)}function zn(n,t){null==n&&function Xe(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function I(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Oe(n){return{providers:n.providers||[],imports:n.imports||[]}}function uc(n){return by(n,dc)||by(n,Cy)}function by(n,t){return n.hasOwnProperty(t)?n[t]:null}function wy(n){return n&&(n.hasOwnProperty(xh)||n.hasOwnProperty(Kx))?n[xh]:null}const dc=nt({\u0275prov:nt}),xh=nt({\u0275inj:nt}),Cy=nt({ngInjectableDef:nt}),Kx=nt({ngInjectorDef:nt});var ee=(()=>((ee=ee||{})[ee.Default=0]="Default",ee[ee.Host=1]="Host",ee[ee.Self=2]="Self",ee[ee.SkipSelf=4]="SkipSelf",ee[ee.Optional=8]="Optional",ee))();let Th;function ci(n){const t=Th;return Th=n,t}function Dy(n,t,e){const i=uc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ee.Optional?null:void 0!==t?t:void cc(it(n))}function zr(n){return{toString:n}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),Di=(()=>{return(n=Di||(Di={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Di;var n})();const st=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),us={},Ze=[],hc=nt({\u0275cmp:nt}),Ih=nt({\u0275dir:nt}),Rh=nt({\u0275pipe:nt}),Ey=nt({\u0275mod:nt}),fr=nt({\u0275fac:nt}),Da=nt({__NG_ELEMENT_ID__:nt});let Zx=0;function He(n){return zr(()=>{const e=!0===n.standalone,i={},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:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Ze,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Di.Emulated,id:"c"+Zx++,styles:n.styles||Ze,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=ky(n.inputs,i),r.outputs=ky(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Sy).filter(My):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Cn).filter(My):null,r})}function Sy(n){return Je(n)||wn(n)}function My(n){return null!==n}function Pe(n){return zr(()=>({type:n.type,bootstrap:n.bootstrap||Ze,declarations:n.declarations||Ze,imports:n.imports||Ze,exports:n.exports||Ze,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function ky(n,t){if(null==n)return us;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const M=He;function hn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Je(n){return n[hc]||null}function wn(n){return n[Ih]||null}function Cn(n){return n[Rh]||null}function Wn(n,t){const e=n[Ey]||null;if(!e&&!0===t)throw new Error(`Type ${it(n)} does not have '\u0275mod' property.`);return e}function Pn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Si(n){return Array.isArray(n)&&!0===n[1]}function Nh(n){return 0!=(8&n.flags)}function gc(n){return 2==(2&n.flags)}function _c(n){return 1==(1&n.flags)}function Mi(n){return null!==n.template}function nT(n){return 0!=(256&n[2])}function Ao(n,t){return n.hasOwnProperty(fr)?n[fr]:null}class oT{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function zt(){return Ty}function Ty(n){return n.type.prototype.ngOnChanges&&(n.setInput=aT),sT}function sT(){const n=Ry(this),t=n?.current;if(t){const e=n.previous;if(e===us)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function aT(n,t,e,i){const r=Ry(n)||function lT(n,t){return n[Iy]=t}(n,{previous:us,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new oT(l&&l.currentValue,t,s===us),n[i]=t}zt.ngInherit=!0;const Iy="__ngSimpleChanges__";function Ry(n){return n[Iy]||null}function Tt(n){for(;Array.isArray(n);)n=n[0];return n}function yc(n,t){return Tt(t[n])}function qn(n,t){return Tt(t[n.index])}function Hh(n,t){return n.data[t]}function ms(n,t){return n[t]}function Kn(n,t){const e=t[n];return Pn(e)?e:e[0]}function vc(n){return 64==(64&n[2])}function Wr(n,t){return null==t?null:n[t]}function Oy(n){n[18]=0}function jh(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const de={lFrame:Uy(null),bindingsEnabled:!0};function Ny(){return de.bindingsEnabled}function S(){return de.lFrame.lView}function Le(){return de.lFrame.tView}function ki(n){return de.lFrame.contextLView=n,n[8]}function Ai(n){return de.lFrame.contextLView=null,n}function Wt(){let n=Py();for(;null!==n&&64===n.type;)n=n.parent;return n}function Py(){return de.lFrame.currentTNode}function Ui(n,t){const e=de.lFrame;e.currentTNode=n,e.isParent=t}function $h(){return de.lFrame.isParent}function Uh(){de.lFrame.isParent=!1}function Dn(){const n=de.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function gs(){return de.lFrame.bindingIndex++}function mr(n){const t=de.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function DT(n,t){const e=de.lFrame;e.bindingIndex=e.bindingRootIndex=n,zh(t)}function zh(n){de.lFrame.currentDirectiveIndex=n}function Wh(n){const t=de.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Hy(){return de.lFrame.currentQueryIndex}function Gh(n){de.lFrame.currentQueryIndex=n}function ST(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function jy(n,t,e){if(e&ee.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&ee.Host||(r=ST(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=de.lFrame=$y();return i.currentTNode=t,i.lView=n,!0}function qh(n){const t=$y(),e=n[1];de.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function $y(){const n=de.lFrame,t=null===n?null:n.child;return null===t?Uy(n):t}function Uy(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function zy(){const n=de.lFrame;return de.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Wy=zy;function Kh(){const n=zy();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 En(){return de.lFrame.selectedIndex}function Gr(n){de.lFrame.selectedIndex=n}function gt(){const n=de.lFrame;return Hh(n.tView,n.selectedIndex)}function xo(){de.lFrame.currentNamespace="svg"}function bc(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class xa{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Dc(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Qh=!0;function Sc(n){const t=Qh;return Qh=n,t}let BT=0;const zi={};function Ia(n,t){const e=Jh(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Xh(i.data,n),Xh(t,null),Xh(i.blueprint,null));const r=Mc(n,t),o=n.injectorIndex;if(Zy(r)){const s=_s(r),a=ys(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Xh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Jh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Mc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=ov(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function kc(n,t,e){!function HT(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Da)&&(i=e[Da]),null==i&&(i=e[Da]=BT++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:zT:t}(e);if("function"==typeof o){if(!jy(t,n,i))return i&ee.Host?Jy(r,0,i):ev(t,e,i,r);try{const s=o(i);if(null!=s||i&ee.Optional)return s;cc()}finally{Wy()}}else if("number"==typeof o){let s=null,a=Jh(n,t),l=-1,c=i&ee.Host?t[16][6]:null;for((-1===a||i&ee.SkipSelf)&&(l=-1===a?Mc(n,t):t[a+8],-1!==l&&rv(i,!1)?(s=t[1],a=_s(l),t=ys(l,t)):a=-1);-1!==a;){const u=t[1];if(iv(o,a,u.data)){const d=$T(a,t,e,s,i,c);if(d!==zi)return d}l=t[a+8],-1!==l&&rv(i,t[1].data[a+8]===c)&&iv(o,a,t)?(s=u,a=_s(l),t=ys(l,t)):a=-1}}return r}function $T(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Ac(a,s,e,null==i?gc(a)&&Qh:i!=s&&0!=(3&a.type),r&ee.Host&&o===a);return null!==u?Ra(t,s,u,a):zi}function Ac(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&Mi(f)&&f.type===e)return l}return null}function Ra(n,t,e,i){let r=n[e];const o=t.data;if(function FT(n){return n instanceof xa}(r)){const s=r;s.resolving&&function Hx(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new E(-200,`Circular dependency in DI detected for ${n}${e}`)}(function Ye(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():pe(n)}(o[e]));const a=Sc(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ci(s.injectImpl):null;jy(n,i,ee.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function RT(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Ty(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&ci(l),Sc(a),s.resolving=!1,Wy()}}return r}function iv(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[fr]||ef(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[fr]||ef(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ef(n){return Ah(n)?()=>{const t=ef(ae(n));return t&&t()}:Ao(n)}function ov(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Kr(n){return function jT(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function tf(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(ws)?l[ws]:Object.defineProperty(l,ws,{value:[]})[ws];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class k{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=I({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Yn(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?gr(e,t):t(e))}function av(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function xc(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Na(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function YT(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function rf(n,t){const e=Es(n,t);if(e>=0)return n[1|e]}function Es(n,t){return function uv(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<((Ln=Ln||{})[Ln.Important=1]="Important",Ln[Ln.DashCase=2]="DashCase",Ln))();const ff=new Map;let EI=0;const mf="__ngContext__";function mn(n,t){Pn(t)?(n[mf]=t[20],function MI(n){ff.set(n[20],n)}(t)):n[mf]=t}function _f(n,t){return undefined(n,t)}function $a(n){const t=n[3];return Si(t)?t[3]:t}function yf(n){return Rv(n[13])}function vf(n){return Rv(n[4])}function Rv(n){for(;null!==n&&!Si(n);)n=n[4];return n}function As(n,t,e,i,r){if(null!=i){let o,s=!1;Si(i)?o=i:Pn(i)&&(s=!0,i=i[0]);const a=Tt(i);0===n&&null!==e?null==r?Vv(t,e,a):To(t,e,a,r||null,!0):1===n&&null!==e?To(t,e,a,r||null,!0):2===n?function Mf(n,t,e){const i=Fc(n,t);i&&function KI(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function QI(n,t,e,i,r){const o=e[7];o!==Tt(e)&&As(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=xc(n,10+t);!function HI(n,t){Ua(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Nv(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Ua(n,t,e,3,null,null),function UI(n){let t=n[13];if(!t)return Df(n[1],n);for(;t;){let e=null;if(Pn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Pn(t)&&Df(t[1],t),t=t[3];null===t&&(t=n),Pn(t)&&Df(t[1],t),e=t&&t[4]}t=e}}(t)}}function Df(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function qI(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;on,createScript:n=>n,createScriptURL:n=>n})}catch{}return Lc}()?.createHTML(n)||n}function Kv(n){return function If(){if(void 0===Vc&&(Vc=null,st.trustedTypes))try{Vc=st.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Vc}()?.createHTML(n)||n}class Ro{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class iR extends Ro{getTypeName(){return"HTML"}}class rR extends Ro{getTypeName(){return"Style"}}class oR extends Ro{getTypeName(){return"Script"}}class sR extends Ro{getTypeName(){return"URL"}}class aR extends Ro{getTypeName(){return"ResourceURL"}}function Qn(n){return n instanceof Ro?n.changingThisBreaksApplicationSecurity:n}function Wi(n,t){const e=function lR(n){return n instanceof Ro&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class pR{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Io(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class mR{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Io(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Io(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();Rf.hasOwnProperty(e)&&!Xv.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(nb(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const bR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wR=/([^\#-~ |!])/g;function nb(n){return n.replace(/&/g,"&").replace(bR,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wR,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Hc;function ib(n,t){let e=null;try{Hc=Hc||function Qv(n){const t=new mR(n);return function gR(){try{return!!(new window.DOMParser).parseFromString(Io(""),"text/html")}catch{return!1}}()?new pR(t):t}(n);let i=t?String(t):"";e=Hc.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Hc.getInertBodyElement(i)}while(i!==o);return Io((new vR).sanitizeChildren(Ff(e)||e))}finally{if(e){const i=Ff(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Ff(n){return"content"in n&&function CR(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var je=(()=>((je=je||{})[je.NONE=0]="NONE",je[je.HTML=1]="HTML",je[je.STYLE=2]="STYLE",je[je.SCRIPT=3]="SCRIPT",je[je.URL=4]="URL",je[je.RESOURCE_URL=5]="RESOURCE_URL",je))();function rb(n){const t=Wa();return t?Kv(t.sanitize(je.HTML,n)||""):Wi(n,"HTML")?Kv(Qn(n)):ib(function qv(){return void 0!==Tf?Tf:typeof document<"u"?document:void 0}(),pe(n))}function Oo(n){const t=Wa();return t?t.sanitize(je.URL,n)||"":Wi(n,"URL")?Qn(n):Bc(pe(n))}function Wa(){const n=S();return n&&n[12]}const Nf=new k("ENVIRONMENT_INITIALIZER"),sb=new k("INJECTOR",-1),ab=new k("INJECTOR_DEF_TYPES");class lb{get(t,e=Pa){if(e===Pa){const i=new Error(`NullInjectorError: No provider for ${it(t)}!`);throw i.name="NullInjectorError",i}return e}}function xR(...n){return{\u0275providers:cb(0,n)}}function cb(n,...t){const e=[],i=new Set;let r;return gr(t,o=>{const s=o;Pf(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&ub(r,e),e}function ub(n,t){for(let e=0;e{t.push(o)})}}function Pf(n,t,e,i){if(!(n=ae(n)))return!1;let r=null,o=wy(n);const s=!o&&Je(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=wy(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Pf(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{gr(o.imports,u=>{Pf(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&ub(c,t)}if(!a){const c=Ao(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:Ze},{provide:ab,useValue:r,multi:!0},{provide:Nf,useValue:()=>b(r),multi:!0})}const l=o.providers;null==l||a||gr(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const TR=nt({provide:String,useValue:nt});function Lf(n){return null!==n&&"object"==typeof n&&TR in n}function Fo(n){return"function"==typeof n}const Vf=new k("Set Injector scope."),jc={},RR={};let Bf;function $c(){return void 0===Bf&&(Bf=new lb),Bf}class Yr{}class fb extends Yr{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jf(t,s=>this.processProvider(s)),this.records.set(sb,xs(void 0,this)),r.has("environment")&&this.records.set(Yr,xs(void 0,this));const o=this.records.get(Vf);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ab.multi,Ze,ee.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Ss(this),i=ci(void 0);try{return t()}finally{Ss(e),ci(i)}}get(t,e=Pa,i=ee.Default){this.assertNotDestroyed();const r=Ss(this),o=ci(void 0);try{if(!(i&ee.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function LR(n){return"function"==typeof n||"object"==typeof n&&n instanceof k}(t)&&uc(t);a=l&&this.injectableDefInScope(l)?xs(Hf(t),jc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&ee.Self?$c():this.parent).get(t,e=i&ee.Optional&&e===Pa?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Ic]=s[Ic]||[]).unshift(it(t)),r)throw s;return function aI(n,t,e,i){const r=n[Ic];throw t[dv]&&r.unshift(t[dv]),n.message=function lI(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=it(t);if(Array.isArray(t))r=t.map(it).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):it(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(iI,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Ic]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{ci(o),Ss(r)}}resolveInjectorInitializers(){const t=Ss(this),e=ci(void 0);try{const i=this.get(Nf.multi,Ze,ee.Self);for(const r of i)r()}finally{Ss(t),ci(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(it(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(t){let e=Fo(t=ae(t))?t:ae(t&&t.provide);const i=function FR(n){return Lf(n)?xs(void 0,n.useValue):xs(pb(n),jc)}(t);if(Fo(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=xs(void 0,jc,!0),r.factory=()=>lf(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===jc&&(e.value=RR,e.value=e.factory()),"object"==typeof e.value&&e.value&&function PR(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=ae(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Hf(n){const t=uc(n),e=null!==t?t.factory:Ao(n);if(null!==e)return e;if(n instanceof k)throw new E(204,!1);if(n instanceof Function)return function OR(n){const t=n.length;if(t>0)throw Na(t,"?"),new E(204,!1);const e=function Gx(n){const t=n&&(n[dc]||n[Cy]);if(t){const e=function qx(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new E(204,!1)}function pb(n,t,e){let i;if(Fo(n)){const r=ae(n);return Ao(r)||Hf(r)}if(Lf(n))i=()=>ae(n.useValue);else if(function hb(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...lf(n.deps||[]));else if(function db(n){return!(!n||!n.useExisting)}(n))i=()=>b(ae(n.useExisting));else{const r=ae(n&&(n.useClass||n.provide));if(!function NR(n){return!!n.deps}(n))return Ao(r)||Hf(r);i=()=>new r(...lf(n.deps))}return i}function xs(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function VR(n){return!!n.\u0275providers}function jf(n,t){for(const e of n)Array.isArray(e)?jf(e,t):VR(e)?jf(e.\u0275providers,t):t(e)}class mb{}class jR{resolveComponentFactory(t){throw function HR(n){const t=Error(`No component factory found for ${it(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let No=(()=>{class n{}return n.NULL=new jR,n})();function $R(){return Ts(Wt(),S())}function Ts(n,t){return new De(qn(n,t))}let De=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=$R,n})();function UR(n){return n instanceof De?n.nativeElement:n}class Ga{}let yr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function zR(){const n=S(),e=Kn(Wt().index,n);return(Pn(e)?e:n)[11]}(),n})(),WR=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>null}),n})();class Zr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const GR=new Zr("14.2.12"),$f={};function zf(n){return n.ngOriginalError}class vr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&zf(t);for(;e&&zf(e);)e=zf(e);return e||null}}function br(n){return n instanceof Function?n():n}function yb(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const vb="ng-template";function iO(n,t,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==yb(f,c,0)||2&i&&c!==h){if(Ti(i))return!1;s=!0}}}}else{if(!s&&!Ti(i)&&!Ti(l))return!1;if(s&&Ti(l))continue;s=!1,i=l|1&i}}return Ti(i)||s}function Ti(n){return 0==(1&n)}function sO(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Ti(s)&&(t+=Cb(o,r),r=""),i=s,o=o||!Ti(i);e++}return""!==r&&(t+=Cb(o,r)),t}const me={};function O(n){Db(Le(),S(),En()+n,!1)}function Db(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&wc(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Cc(t,o,0,e)}Gr(e)}function kb(n,t=null,e=null,i){const r=Ab(n,t,e,i);return r.resolveInjectorInitializers(),r}function Ab(n,t=null,e=null,i,r=new Set){const o=[e||Ze,xR(n)];return i=i||("object"==typeof n?void 0:it(n)),new fb(o,t||$c(),i||null,r)}let Dt=(()=>{class n{static create(e,i){if(Array.isArray(e))return kb({name:""},i,e,"");{const r=e.name??"";return kb({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Pa,n.NULL=new lb,n.\u0275prov=I({token:n,providedIn:"any",factory:()=>b(sb)}),n.__NG_ELEMENT_ID__=-1,n})();function m(n,t=ee.Default){const e=S();return null===e?b(n,t):tv(Wt(),e,ae(n),t)}function qa(){throw new Error("invalid")}function zc(n,t){return n<<17|t<<2}function Ii(n){return n>>17&32767}function Yf(n){return 2|n}function wr(n){return(131068&n)>>2}function Zf(n,t){return-131069&n|t<<2}function Qf(n){return 1|n}function Wb(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&Db(n,t,22,!1),e(i,r)}finally{Gr(o)}}function qb(n,t,e){if(Nh(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function ew(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function tw(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function n1(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&hp(e)}}function hp(n){for(let i=yf(n);null!==i;i=vf(i))for(let r=10;r0&&hp(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&hp(r)}}function u1(n,t){const e=Kn(t,n),i=e[1];(function d1(n,t){for(let e=t.length;e-1&&(Cf(t,i),xc(e,i))}this._attachedToViewContainer=!1}Nv(this._lView[1],this._lView)}onDestroy(t){Yb(this._lView[1],this._lView,null,t)}markForCheck(){fp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Zc(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $I(n,t){Ua(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t}}class h1 extends Ka{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Zc(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class gp extends No{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Je(t);return new Ya(e,this.ngModule)}}function cw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class p1{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,$f,i);return r!==$f||e===$f?r:this.parentInjector.get(t,e,i)}}class Ya extends mb{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function hO(n){return n.map(dO).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return cw(this.componentDef.inputs)}get outputs(){return cw(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Yr?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new p1(t,o):t,a=s.get(Ga,null);if(null===a)throw new E(407,!1);const l=s.get(WR,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function GO(n,t,e){return n.selectRootElement(t,e===Di.ShadowDom)}(c,i,this.componentDef.encapsulation):wf(c,u,function f1(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,f=cp(0,null,null,1,0,null,null,null,null,null),p=qc(null,f,null,h,null,null,a,c,l,s,null);let g,_;qh(p);try{const y=function _1(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=Os(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Qc(l,c,!0),null!==n&&(Dc(r,n,c),null!==l.classes&&Af(r,n,l.classes),null!==l.styles&&Gv(r,n,l.styles)));const u=i.createRenderer(n,t),d=qc(e,Kb(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(kc(Ia(l,e),s,t.type),tw(s,l),nw(l,e.length,1)),Yc(e,d),e[22]=d}(d,this.componentDef,p,a,c);if(d)if(i)Dc(c,d,["ng-version",GR.full]);else{const{attrs:D,classes:C}=function fO(n){const t=[],e=[];let i=1,r=2;for(;i0&&Af(c,d,C.join(" "))}if(_=Hh(f,22),void 0!==e){const D=_.projection=[];for(let C=0;C=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ec(r.hostAttrs,e=Ec(e,r.hostAttrs))}}(i)}function _p(n){return n===us?{}:n===Ze?[]:n}function w1(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function C1(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function D1(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let Jc=null;function Po(){if(!Jc){const n=st.Symbol;if(n&&n.iterator)Jc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Tt(Y[i.index])):i.index;let T=null;if(!a&&l&&(T=function N1(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=o,T.__ngLastListenerFn__=o,f=!1;else{o=Dw(i,t,d,o,!1);const Y=e.listen(y,r,o);h.push(o,Y),u&&u.push(r,C,D,D+1)}}else o=Dw(i,t,d,o,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const _=g.length;if(_)for(let y=0;y<_;y+=2){const le=t[g[y]][g[y+1]].subscribe(o),Qe=h.length;h.push(o,le),u&&u.push(r,i.index,Qe,-(Qe+1))}}}function Cw(n,t,e,i){try{return!1!==e(i)}catch(r){return lw(n,r),!1}}function Dw(n,t,e,i,r){return function o(s){if(s===Function)return i;fp(2&n.flags?Kn(n.index,t):t);let l=Cw(t,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=Cw(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function he(n=1){return function MT(n){return(de.lFrame.contextLView=function kT(n,t){for(;n>0;)t=t[15],n--;return t}(n,de.lFrame.contextLView))[8]}(n)}function P1(n,t){let e=null;const i=function aO(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const qt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fw(n){return n.substring(qt.key,qt.keyEnd)}function Nw(n,t){const e=qt.textEnd;return e===t?-1:(t=qt.keyEnd=function U1(n,t,e){for(;t32;)t++;return t}(n,qt.key=t,e),zs(n,t,e))}function zs(n,t,e){for(;t=0;e=Nw(t,e))Zn(n,Fw(t),!0)}function Ri(n,t,e,i){const r=S(),o=Le(),s=mr(2);o.firstUpdatePass&&jw(o,n,s,i),t!==me&&gn(r,s,t)&&Uw(o,o.data[En()],r,r[11],n,r[s+1]=function eF(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=it(Qn(n)))),n}(t,e),i,s)}function Hw(n,t){return t>=n.expandoStartIndex}function jw(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[En()],s=Hw(n,e);Ww(o,i)&&null===t&&!s&&(t=!1),t=function K1(n,t,e,i){const r=Wh(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Ja(e=wp(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=wp(r,n,t,e,i),null===o){let l=function Y1(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==wr(i))return n[Ii(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=wp(null,n,t,l[1],i),l=Ja(l,t.attrs,i),function Z1(n,t,e,i){n[Ii(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function Q1(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Ii(n[a+1]);n[i+1]=zc(h,a),0!==h&&(n[h+1]=Zf(n[h+1],i)),n[a+1]=function RO(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=zc(a,0),0!==a&&(n[a+1]=Zf(n[a+1],i)),a=i;else n[i+1]=zc(l,0),0===a?a=i:n[l+1]=Zf(n[l+1],i),l=i;c&&(n[i+1]=Yf(n[i+1])),Ow(n,u,i,!0),Ow(n,u,i,!1),function V1(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Es(o,t)>=0&&(e[i+1]=Qf(e[i+1]))}(t,u,n,i,o),s=zc(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function wp(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===me&&(h=d?Ze:void 0);let f=d?rf(h,i):u===i?h:void 0;if(c&&!ru(f)&&(f=rf(l,i)),ru(f)&&(a=f,s))return a;const p=n[r+1];r=s?Ii(p):wr(p)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=rf(l,i))}return a}function ru(n){return void 0!==n}function Ww(n,t){return 0!=(n.flags&(t?16:32))}function re(n,t=""){const e=S(),i=Le(),r=n+22,o=i.firstCreatePass?Os(i,r,1,t,null):i.data[r],s=e[r]=function bf(n,t){return n.createText(t)}(e[11],t);Nc(i,e,s,o),Ui(o,!1)}function Vn(n){return ti("",n,""),Vn}function ti(n,t,e){const i=S(),r=Ps(i,n,t,e);return r!==me&&function Cr(n,t,e){const i=yc(t,n);!function Ov(n,t,e){n.setValue(t,e)}(n[11],i,e)}(i,En(),r),ti}function eC(n,t,e){!function Oi(n,t,e,i){const r=Le(),o=mr(2);r.firstUpdatePass&&jw(r,null,o,i);const s=S();if(e!==me&&gn(s,o,e)){const a=r.data[En()];if(Ww(a,i)&&!Hw(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=kh(l,e||"")),vp(r,a,s,e,i)}else!function J1(n,t,e,i,r,o,s,a){r===me&&(r=Ze);let l=0,c=0,u=0>20;if(Fo(n)||!n.multi){const f=new xa(l,r,m),p=Mp(a,t,r?u:u+h,d);-1===p?(kc(Ia(c,s),o,a),Sp(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=Mp(a,t,u+h,d),p=Mp(a,t,u,u+h),g=f>=0&&e[f],_=p>=0&&e[p];if(r&&!_||!r&&!g){kc(Ia(c,s),o,a);const y=function _N(n,t,e,i,r){const o=new xa(n,e,m);return o.multi=[],o.index=t,o.componentProviders=0,LC(o,r,i&&!e),o}(r?gN:mN,e.length,r,i,l);!r&&_&&(e[p].providerFactory=y),Sp(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(y),s.push(y)}else Sp(o,n,f>-1?f:p,LC(e[r?p:f],l,!r&&i));!r&&i&&_&&e[p].componentProviders++}}}function Sp(n,t,e,i){const r=Fo(t),o=function IR(n){return!!n.useClass}(t);if(r||o){const l=(o?ae(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function LC(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Mp(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function pN(n,t,e){const i=Le();if(i.firstCreatePass){const r=Mi(n);Ep(e,i.data,i.blueprint,r,!0),Ep(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Bo{}class VC{}class BC extends Bo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new gp(this);const i=Wn(t);this._bootstrapComponents=br(i.bootstrap),this._r3Injector=Ab(t,e,[{provide:Bo,useValue:this},{provide:No,useValue:this.componentFactoryResolver}],it(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ap extends VC{constructor(t){super(),this.moduleType=t}create(t){return new BC(this.moduleType,t)}}class vN extends Bo{constructor(t,e,i){super(),this.componentFactoryResolver=new gp(this),this.instance=null;const r=new fb([...t,{provide:Bo,useValue:this},{provide:No,useValue:this.componentFactoryResolver}],e||$c(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function uu(n,t,e=null){return new vN(n,t,e).injector}let bN=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=cb(0,e.type),r=i.length>0?uu([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=I({token:n,providedIn:"environment",factory:()=>new n(b(Yr))}),n})();function HC(n){n.getStandaloneInjector=t=>t.get(bN).getOrCreateStandaloneInjector(n)}function KC(n,t,e,i,r,o){const s=t+e;return gn(n,s,r)?qi(n,s+1,o?i.call(o,r):i(r)):function sl(n,t){const e=n[t];return e===me?void 0:e}(n,s+1)}function Tp(n,t){const e=Le();let i;const r=n+22;e.firstCreatePass?(i=function VN(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ao(i.type)),s=ci(m);try{const a=Sc(!1),l=o();return Sc(a),function R1(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,S(),r,l),l}finally{ci(s)}}function Ip(n,t,e){const i=n+22,r=S(),o=ms(r,i);return function al(n,t){return n[1].data[t].pure}(r,i)?KC(r,Dn(),t,o.transform,e,o):o.transform(e)}function Rp(n){return t=>{setTimeout(n,void 0,t)}}const ve=class UN extends H{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Rp(o),r&&(r=Rp(r)),s&&(s=Rp(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof Be&&t.add(a),a}};function zN(){return this._results[Po()]()}class ll{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Po(),i=ll.prototype;i[e]||(i[e]=zN)}get changes(){return this._changes||(this._changes=new ve)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Yn(t);(this._changesDetected=!function qT(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=qN,n})();const WN=Rt,GN=class extends WN{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=qc(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),sp(i,r,t),new Ka(r)}};function qN(){return du(Wt(),S())}function du(n,t){return 4&n.type?new GN(t,n,Ts(n,t)):null}let Ot=(()=>{class n{}return n.__NG_ELEMENT_ID__=KN,n})();function KN(){return tD(Wt(),S())}const YN=Ot,JC=class extends YN{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Ts(this._hostTNode,this._hostLView)}get injector(){return new vs(this._hostTNode,this._hostLView)}get parentInjector(){const t=Mc(this._hostTNode,this._hostLView);if(Zy(t)){const e=ys(t,this._hostLView),i=_s(t);return new vs(e[1].data[i+8],e)}return new vs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=eD(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Fa(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new Ya(Je(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Yr,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function mT(n){return Si(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new JC(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function zI(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=fu,this.reject=fu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(b(pu,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ul=new k("AppId",{providedIn:"root",factory:function MD(){return`${Up()}${Up()}${Up()}`}});function Up(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kD=new k("Platform Initializer"),dl=new k("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),AD=new k("appBootstrapListener"),Dr=new k("AnimationModuleType");let DP=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Ji=new k("LocaleId",{providedIn:"root",factory:()=>dt(Ji,ee.Optional|ee.SkipSelf)||function EP(){return typeof $localize<"u"&&$localize.locale||Gs}()});class MP{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let gu=(()=>{class n{compileModuleSync(e){return new Ap(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=br(Wn(e).declarations).reduce((s,a)=>{const l=Je(a);return l&&s.push(new Ya(l)),s},[]);return new MP(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xP=(()=>Promise.resolve(0))();function zp(n){typeof Zone>"u"?xP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function TP(){let n=st.requestAnimationFrame,t=st.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function OP(n){const t=()=>{!function RP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(st,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Gp(n),n.isCheckStableRunning=!0,Wp(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Gp(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return ID(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),RD(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return ID(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),RD(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Gp(n),Wp(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new E(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,IP,fu,fu);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const IP={};function Wp(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 Gp(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function ID(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function RD(n){n._nesting--,Wp(n)}class FP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ve,this.onMicrotaskEmpty=new ve,this.onStable=new ve,this.onError=new ve}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const OD=new k(""),_u=new k("");let Yp,qp=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Yp||(function NP(n){Yp=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),zp(()=>{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())zp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(Kp),b(_u))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Kp=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Yp?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Jr=null;const FD=new k("AllowMultipleToken"),Zp=new k("PlatformDestroyListeners");class ND{constructor(t,e){this.name=t,this.token=e}}function LD(n,t,e=[]){const i=`Platform: ${t}`,r=new k(i);return(o=[])=>{let s=Qp();if(!s||s.injector.get(FD,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function VP(n){if(Jr&&!Jr.get(FD,!1))throw new E(400,!1);Jr=n;const t=n.get(BD);(function PD(n){const t=n.get(kD,null);t&&t.forEach(e=>e())})(n)}(function VD(n=[],t){return Dt.create({name:t,providers:[{provide:Vf,useValue:"platform"},{provide:Zp,useValue:new Set([()=>Jr=null])},...n]})}(a,i))}return function HP(n){const t=Qp();if(!t)throw new E(401,!1);return t}()}}function Qp(){return Jr?.get(BD)??null}let BD=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function jD(n,t){let e;return e="noop"===n?new FP:("zone.js"===n?void 0:n)||new Ie(t),e}(i?.ngZone,function HD(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ie,useValue:r}];return r.run(()=>{const s=Dt.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(vr,null);if(!l)throw new E(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{yu(this._modules,a),c.unsubscribe()})}),function $D(n,t,e){try{const i=e();return Xa(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(mu);return c.runInitializers(),c.donePromise.then(()=>(function fC(n){zn(n,"Expected localeId to be defined"),"string"==typeof n&&(hC=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Ji,Gs)||Gs),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=UD({},i);return function PP(n,t,e){const i=new Ap(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ys);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new E(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Zp,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(b(Dt))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function UD(n,t){return Array.isArray(t)?t.reduce(UD,n):{...n,...t}}let Ys=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ne(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ne(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),zp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Do(o,s.pipe(Eh()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof mb;if(!this._injector.get(mu).done)throw!r&&function ds(n){const t=Je(n)||wn(n)||Cn(n);return null!==t&&t.standalone}(e),new E(405,false);let s;s=r?e:this._injector.get(No).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function LP(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Bo),c=s.create(Dt.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(OD,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),yu(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new E(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;yu(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(AD,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>yu(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new E(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(Yr),b(vr))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function yu(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let WD=!0,GD=!1;function qD(){return GD=!0,WD}let er=(()=>{class n{}return n.__NG_ELEMENT_ID__=UP,n})();function UP(n){return function zP(n,t,e){if(gc(n)&&!e){const i=Kn(n.index,t);return new Ka(i,i)}return 47&n.type?new Ka(t[16],t):null}(Wt(),S(),16==(16&n))}class QD{constructor(){}supports(t){return Za(t)}create(t){return new ZP(t)}}const YP=(n,t)=>t;class ZP{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||YP}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new QP(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new XD),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new XD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class QP{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class XP{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class XD{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new XP,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function JD(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new eL(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class eL{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function tE(){return new Sr([new QD])}let Sr=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||tE()),deps:[[n,new Ms,new xi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new E(901,!1)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:tE}),n})();function nE(){return new hl([new eE])}let hl=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||nE()),deps:[[n,new Ms,new xi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new E(901,!1)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:nE}),n})();const iL=LD(null,"core",[]);let rL=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(b(Ys))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();function Mr(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let wu=null;function tr(){return wu}const ge=new k("DocumentToken");let nm=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return function lL(){return b(iE)}()},providedIn:"platform"}),n})();const cL=new k("Location Initialized");let iE=(()=>{class n extends nm{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return tr().getBaseHref(this._doc)}onPopState(e){const i=tr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=tr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){rE()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){rE()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:function(){return function uL(){return new iE(b(ge))}()},providedIn:"platform"}),n})();function rE(){return!!window.history.pushState}function im(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function oE(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function kr(n){return n&&"?"!==n[0]?"?"+n:n}let Ar=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return dt(aE)},providedIn:"root"}),n})();const sE=new k("appBaseHref");let aE=(()=>{class n extends Ar{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??dt(ge).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return im(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+kr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+kr(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+kr(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(b(nm),b(sE,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dL=(()=>{class n extends Ar{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=im(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+kr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+kr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(b(nm),b(sE,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),jo=(()=>{class n{constructor(e){this._subject=new ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=oE(lE(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+kr(i))}normalize(e){return n.stripTrailingSlash(function fL(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,lE(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kr(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kr(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=kr,n.joinWithSlash=im,n.stripTrailingSlash=oE,n.\u0275fac=function(e){return new(e||n)(b(Ar))},n.\u0275prov=I({token:n,factory:function(){return function hL(){return new jo(b(Ar))}()},providedIn:"root"}),n})();function lE(n){return n.replace(/\/index.html$/,"")}function _E(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let fm=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Za(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(m(Sr),m(hl),m(De),m(yr))},n.\u0275dir=M({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class QL{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Iu=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new QL(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),bE(a,r)}});for(let r=0,o=i.length;r{bE(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt),m(Sr))},n.\u0275dir=M({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function bE(n,t){n.context.$implicit=t.item}let eo=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new JL,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){wE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){wE("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt))},n.\u0275dir=M({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class JL{constructor(){this.$implicit=null,this.ngIf=null}}function wE(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${it(t)}'.`)}class pm{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let $o=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new pm(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt),m($o,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),CE=(()=>{class n{constructor(e,i,r){r._addDefault(new pm(e,i))}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt),m($o,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})();class iV{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class rV{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const oV=new rV,sV=new iV;let EE=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Xa(e))return oV;if(bw(e))return sV;throw function Pi(n,t){return new E(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(m(er,16))},n.\u0275pipe=hn({name:"async",type:n,pure:!1,standalone:!0}),n})(),to=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();const ME="browser";function no(n){return n===ME}let MV=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>new kV(b(ge),window)}),n})();class kV{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function AV(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=kE(this.window.history)||kE(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function kE(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class AE{}class vm extends class GV extends class aL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function sL(n){wu||(wu=n)}(new vm)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function qV(){return _l=_l||document.querySelector("base"),_l?_l.getAttribute("href"):null}();return null==e?null:function KV(n){Ou=Ou||document.createElement("a"),Ou.setAttribute("href",n);const t=Ou.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){_l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return _E(document.cookie,t)}}let Ou,_l=null;const RE=new k("TRANSITION_ID"),ZV=[{provide:pu,useFactory:function YV(n,t,e){return()=>{e.get(mu).donePromise.then(()=>{const i=tr(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Fu=new k("EventManagerPlugins");let Nu=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),yl=(()=>{class n extends FE{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(NE),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(NE))}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function NE(n){tr().remove(n)}const bm={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},wm=/%COMP%/g;function Pu(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Lu=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Cm(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Di.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new rB(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Di.ShadowDom:return new oB(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Pu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(b(Nu),b(yl),b(ul))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Cm{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(bm[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(HE(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(HE(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=bm[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=bm[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Ln.DashCase|Ln.Important)?t.style.setProperty(e,i,r&Ln.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ln.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,VE(i)):this.eventManager.addEventListener(t,e,VE(i))}}function HE(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class rB extends Cm{constructor(t,e,i,r){super(t),this.component=i;const o=Pu(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function tB(n){return"_ngcontent-%COMP%".replace(wm,n)}(r+"-"+i.id),this.hostAttr=function nB(n){return"_nghost-%COMP%".replace(wm,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class oB extends Cm{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Pu(r.id,r.styles,[]);for(let s=0;s{class n extends OE{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const jE=["alt","control","meta","shift"],aB={"\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"},lB={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let cB=(()=>{class n extends OE{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tr().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),jE.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=aB[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),jE.forEach(s=>{s!==r&&(0,lB[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const fB=LD(iL,"browser",[{provide:dl,useValue:ME},{provide:kD,useValue:function uB(){vm.makeCurrent()},multi:!0},{provide:ge,useFactory:function hB(){return function nR(n){Tf=n}(document),document},deps:[]}]),zE=new k(""),WE=[{provide:_u,useClass:class QV{addToWindow(t){st.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},st.getAllAngularTestabilities=()=>t.getAllTestabilities(),st.getAllAngularRootElements=()=>t.getAllRootElements(),st.frameworkStabilizers||(st.frameworkStabilizers=[]),st.frameworkStabilizers.push(i=>{const r=st.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?tr().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:OD,useClass:qp,deps:[Ie,Kp,_u]},{provide:qp,useClass:qp,deps:[Ie,Kp,_u]}],GE=[{provide:Vf,useValue:"root"},{provide:vr,useFactory:function dB(){return new vr},deps:[]},{provide:Fu,useClass:sB,multi:!0,deps:[ge,Ie,dl]},{provide:Fu,useClass:cB,multi:!0,deps:[ge]},{provide:Lu,useClass:Lu,deps:[Nu,yl,ul]},{provide:Ga,useExisting:Lu},{provide:FE,useExisting:yl},{provide:yl,useClass:yl,deps:[ge]},{provide:Nu,useClass:Nu,deps:[Fu,Ie]},{provide:AE,useClass:XV,deps:[]},[]];let qE=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:ul,useValue:e.appId},{provide:RE,useExisting:ul},ZV]}}}return n.\u0275fac=function(e){return new(e||n)(b(zE,12))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[...GE,...WE],imports:[to,rL]}),n})(),KE=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:function(e){let i=null;return i=e?new e:function mB(){return new KE(b(ge))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(e){let i=null;return i=e?new(e||n):b(QE),i},providedIn:"root"}),n})(),QE=(()=>{class n extends vl{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case je.NONE:return i;case je.HTML:return Wi(i,"HTML")?Qn(i):ib(this._doc,String(i)).toString();case je.STYLE:return Wi(i,"Style")?Qn(i):i;case je.SCRIPT:if(Wi(i,"Script"))return Qn(i);throw new Error("unsafe value used in a script context");case je.URL:return Wi(i,"URL")?Qn(i):Bc(String(i));case je.RESOURCE_URL:if(Wi(i,"ResourceURL"))return Qn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function cR(n){return new iR(n)}(e)}bypassSecurityTrustStyle(e){return function uR(n){return new rR(n)}(e)}bypassSecurityTrustScript(e){return function dR(n){return new oR(n)}(e)}bypassSecurityTrustUrl(e){return function hR(n){return new sR(n)}(e)}bypassSecurityTrustResourceUrl(e){return function fR(n){return new aR(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:function(e){let i=null;return i=e?new e:function CB(n){return new QE(n.get(ge))}(b(Dt)),i},providedIn:"root"}),n})();class ni extends H{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function $(...n){return Mt(n,Ca(n))}function Zs(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Pt(n,t,e){const i=Se(n)||t||e?{next:n,error:t,complete:e}:n;return i?Ae((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ce(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):ie}class FB extends Be{constructor(t,e){super()}schedule(t,e=0){return this}}const Vu={setInterval(n,t,...e){const{delegate:i}=Vu;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Vu;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class xm extends FB{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return Vu.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Vu.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Ue(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const Tm={now:()=>(Tm.delegate||Date).now(),delegate:void 0};class bl{constructor(t,e=bl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}bl.now=Tm.now;class Im extends bl{constructor(t,e=bl.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Rm=new Im(xm),NB=Rm;function Om(n,t=Rm){return Ae((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=t.now();if(u{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function en(n,t){return Ae((e,i)=>{let r=0;e.subscribe(ce(i,o=>n.call(t,o,r++)&&i.next(o)))})}function tn(n){return n<=0?()=>dr:Ae((t,e)=>{let i=0;t.subscribe(ce(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function n0(n){return en((t,e)=>n<=e)}function Fm(n,t=ie){return n=n??PB,Ae((e,i)=>{let r,o=!0;e.subscribe(ce(i,s=>{const a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}function PB(n,t){return n===t}function Lt(n){return Ae((t,e)=>{Nn(n).subscribe(ce(e,()=>e.complete(),jt)),!e.closed&&t.subscribe(e)})}function nn(n){return null!=n&&"false"!=`${n}`}function Qs(n,t=0){return function LB(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Bu(n){return Array.isArray(n)?n:[n]}function Vt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Uo(n){return n instanceof De?n.nativeElement:n}let Nm;try{Nm=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Nm=!1}let wl,zo,Lm,Li,ln=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?no(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&&!Nm)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(b(dl))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();function Hu(n){return function VB(){if(null==wl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>wl=!0}))}finally{wl=wl||!1}return wl}()?n:!!n.capture}function BB(){if(null==zo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return zo=!1,zo;if("scrollBehavior"in document.documentElement.style)zo=!0;else{const n=Element.prototype.scrollTo;zo=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return zo}function o0(n){if(function HB(){if(null==Lm){const n=typeof document<"u"?document.head:null;Lm=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Lm}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Vm(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Wo(n){return n.composedPath?n.composedPath()[0]:n.target}function Bm(){return typeof Li.__karma__<"u"&&!!Li.__karma__||typeof Li.jasmine<"u"&&!!Li.jasmine||typeof Li.jest<"u"&&!!Li.jest||typeof Li.Mocha<"u"&&!!Li.Mocha}Li=typeof global<"u"?global:typeof window<"u"?window:{};class zB extends class UB{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new H,this._typeaheadSubscription=Be.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new H,this.change=new H,t instanceof ll&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Pt(e=>this._pressedLetters.push(e)),Om(t),en(()=>this._pressedLetters.length>0),L(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Zs(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof ll?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}let l0=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function GB(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function WB(n){try{return n.frameElement}catch{return null}}(function e2(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===u0(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=u0(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function XB(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function JB(n){return!function KB(n){return function ZB(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function qB(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function YB(n){return function QB(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||c0(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(b(ln))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function c0(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function u0(n){if(!c0(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class t2{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(tn(1)).subscribe(t)}}let n2=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new t2(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(b(l0),b(Ie),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function d0(n){return 0===n.offsetX&&0===n.offsetY}function h0(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const r2=new k("cdk-input-modality-detector-options"),o2={ignoreKeys:[18,17,224,91,16]},Js=Hu({passive:!0,capture:!0});let s2=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ni(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Wo(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(d0(s)?"keyboard":"mouse"),this._mostRecentTarget=Wo(s))},this._onTouchstart=s=>{h0(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wo(s))},this._options={...o2,...o},this.modalityDetected=this._modality.pipe(n0(1)),this.modalityChanged=this.modalityDetected.pipe(Fm()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Js),r.addEventListener("mousedown",this._onMousedown,Js),r.addEventListener("touchstart",this._onTouchstart,Js)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Js),document.removeEventListener("mousedown",this._onMousedown,Js),document.removeEventListener("touchstart",this._onTouchstart,Js))}}return n.\u0275fac=function(e){return new(e||n)(b(ln),b(Ie),b(ge),b(r2,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const a2=new k("liveAnnouncerElement",{providedIn:"root",factory:function l2(){return null}}),c2=new k("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let p0=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new H,this._rootNodeFocusAndBlurListener=a=>{const l=Wo(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Uo(e);if(!this._platform.isBrowser||1!==r.nodeType)return $(null);const o=o0(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new H,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Uo(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Uo(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Wo(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,$u),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,$u)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Lt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$u),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$u),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(ln),b(s2),b(ge,8),b(u2,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const g0="cdk-high-contrast-black-on-white",_0="cdk-high-contrast-white-on-black",Hm="cdk-high-contrast-active";let d2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Hm),e.remove(g0),e.remove(_0),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Hm),e.add(g0)):2===i&&(e.add(Hm),e.add(_0))}}}return n.\u0275fac=function(e){return new(e||n)(b(ln),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const h2=new k("cdk-dir-doc",{providedIn:"root",factory:function f2(){return dt(ge)}});let Go=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new ve,e){const r=e.documentElement?e.documentElement.dir:null,o=(e.body?e.body.dir:null)||r;this.value="ltr"===o||"rtl"===o?o:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(b(h2,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();const y0=new Zr("13.0.0");function p2(n,t){if(1&n&&_t(0,"mat-pseudo-checkbox",4),2&n){const e=he();F("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function m2(n,t){if(1&n&&(x(0,"span",5),re(1),R()),2&n){const e=he();O(1),ti("(",e.group.label,")")}}const g2=["*"],v0=new Zr("13.0.0"),y2=new k("mat-sanity-checks",{providedIn:"root",factory:function _2(){return!0}});let vt=(()=>{class n{constructor(e,i,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!qD()||Bm())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.remove()}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&v0.full!==y0.full&&console.warn("The Angular Material version ("+v0.full+") does not match the Angular CDK version ("+y0.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(b(d2),b(y2,8),b(ge))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[Cl],Cl]}),n})();function b0(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=nn(t)}}}function Dl(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function w0(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=nn(t)}}}function v2(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qs(e):this.defaultTabIndex}}}function b2(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new H,this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let C0=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class C2{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const D0={enterDuration:225,exitDuration:150},jm=Hu({passive:!0}),E0=["mousedown","touchstart"],S0=["mouseup","mouseleave","touchend","touchcancel"];class E2{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Uo(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...D0,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function M2(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function S2(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new C2(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r={...D0,...t.config.animation};i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Uo(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(E0))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(S0),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=d0(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,jm)})})}_removeTriggerEvents(){this._triggerElement&&(E0.forEach(t=>{this._triggerElement.removeEventListener(t,this,jm)}),this._pointerUpEventsRegistered&&S0.forEach(t=>{this._triggerElement.removeEventListener(t,this,jm)}))}}const k2=new k("mat-ripple-global-options");let $m=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new E2(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(Ie),m(ln),m(k2,8),m(Dr,8))},n.\u0275dir=M({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&It("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),M0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt,Pm],vt]}),n})(),A2=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(m(Dr,8))},n.\u0275cmp=He({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&It("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),x2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt]]}),n})();const k0=new k("MAT_OPTION_PARENT_COMPONENT"),A0=new k("MatOptgroup");let T2=0;class I2{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let R2=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+T2++,this.onSelectionChange=new ve,this._stateChanges=new H}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=nn(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Zs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new I2(this,e))}}return n.\u0275fac=function(e){qa()},n.\u0275dir=M({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Um=(()=>{class n extends R2{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(er),m(k0,8),m(A0,8))},n.\u0275cmp=He({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Ge("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(el("id",i.id),et("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),It("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[j],ngContentSelectors:g2,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Zi(),W(0,p2,1,2,"mat-pseudo-checkbox",0),x(1,"span",1),kt(2),R(),W(3,m2,2,1,"span",2),_t(4,"div",3)),2&e&&(F("ngIf",i.multiple),O(3),F("ngIf",i.group&&i.group._inert),O(1),F("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[A2,eo,$m],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function x0(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;s{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[M0,to,vt,x2]]}),n})();function ea(n,t){const e=Se(n)?n:()=>n,i=r=>r.error(e());return new ne(t?r=>t.schedule(i,0,r):i)}const{isArray:F2}=Array,{getPrototypeOf:N2,prototype:P2,keys:L2}=Object;function I0(n){if(1===n.length){const t=n[0];if(F2(t))return{args:t,keys:null};if(function V2(n){return n&&"object"==typeof n&&N2(n)===P2}(t)){const e=L2(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:B2}=Array;function zm(n){return L(t=>function H2(n,t){return B2(t)?n(...t):n(t)}(n,t))}function R0(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function O0(...n){const t=gy(n),{args:e,keys:i}=I0(n),r=new ne(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?R0(i,a):a),o.complete())}))}});return t?r.pipe(zm(t)):r}function Tr(n){return Ae((t,e)=>{let o,i=null,r=!1;i=t.subscribe(ce(e,void 0,void 0,s=>{o=Nn(n(s,Tr(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Uu(n){return Ae((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}function ro(n,t){return Se(t)?Xt(n,t,1):Xt(n,1)}class F0{}class N0{}class Ir{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ir?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Ir;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ir?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class j2{encodeKey(t){return P0(t)}encodeValue(t){return P0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const U2=/%(\d[a-f0-9])/gi,z2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function P0(n){return encodeURIComponent(n).replace(U2,(t,e)=>z2[e]??t)}function zu(n){return`${n}`}class oo{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new j2,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $2(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(zu):[zu(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new oo({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(zu(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(zu(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class W2{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function L0(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function V0(n){return typeof Blob<"u"&&n instanceof Blob}function B0(n){return typeof FormData<"u"&&n instanceof FormData}class Sl{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function G2(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ir),this.context||(this.context=new W2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new Sl(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Bt=(()=>((Bt=Bt||{})[Bt.Sent=0]="Sent",Bt[Bt.UploadProgress=1]="UploadProgress",Bt[Bt.ResponseHeader=2]="ResponseHeader",Bt[Bt.DownloadProgress=3]="DownloadProgress",Bt[Bt.Response=4]="Response",Bt[Bt.User=5]="User",Bt))();class Wm{constructor(t,e=200,i="OK"){this.headers=t.headers||new Ir,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Gm extends Wm{constructor(t={}){super(t),this.type=Bt.ResponseHeader}clone(t={}){return new Gm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Wu extends Wm{constructor(t={}){super(t),this.type=Bt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Wu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class qm extends Wm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Km(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Ml=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Sl)o=e;else{let l,c;l=r.headers instanceof Ir?r.headers:new Ir(r.headers),r.params&&(c=r.params instanceof oo?r.params:new oo({fromObject:r.params})),o=new Sl(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=$(o).pipe(ro(l=>this.handler.handle(l)));if(e instanceof Sl||"events"===r.observe)return s;const a=s.pipe(en(l=>l instanceof Wu));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(L(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(L(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(L(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(L(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new oo).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Km(r,i))}post(e,i,r={}){return this.request("POST",e,Km(r,i))}put(e,i,r={}){return this.request("PUT",e,Km(r,i))}}return n.\u0275fac=function(e){return new(e||n)(b(F0))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class H0{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const j0=new k("HTTP_INTERCEPTORS");let K2=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Y2=/^\)\]\}',?\n/;let $0=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ne(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Ir(r.getAllResponseHeaders()),g=function Z2(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Gm({headers:p,status:r.status,statusText:f,url:g}),s},l=()=>{let{headers:f,status:p,statusText:g,url:_}=a(),y=null;204!==p&&(y=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=y?200:0);let D=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof y){const C=y;y=y.replace(Y2,"");try{y=""!==y?JSON.parse(y):null}catch(T){y=C,D&&(D=!1,y={error:T,text:y})}}D?(i.next(new Wu({body:y,headers:f,status:p,statusText:g,url:_||void 0})),i.complete()):i.error(new qm({error:y,headers:f,status:p,statusText:g,url:_||void 0}))},c=f=>{const{url:p}=a(),g=new qm({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(g)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Bt.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&!!r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Bt.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Bt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(b(AE))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Ym=new k("XSRF_COOKIE_NAME"),Zm=new k("XSRF_HEADER_NAME");class U0{}let Q2=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=_E(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(b(ge),b(dl),b(Ym))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Qm=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(b(U0),b(Zm))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),X2=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(j0,[]);this.chain=i.reduceRight((r,o)=>new H0(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(b(N0),b(Dt))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),J2=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Qm,useClass:K2}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Ym,useValue:e.cookieName}:[],e.headerName?{provide:Zm,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[Qm,{provide:j0,useExisting:Qm,multi:!0},{provide:U0,useClass:Q2},{provide:Ym,useValue:"XSRF-TOKEN"},{provide:Zm,useValue:"X-XSRF-TOKEN"}]}),n})(),eH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[Ml,{provide:F0,useClass:X2},$0,{provide:N0,useExisting:$0}],imports:[J2.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();const tH=["*"];let Gu;function kl(n){return function nH(){if(void 0===Gu&&(Gu=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Gu=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Gu}()?.createHTML(n)||n}function z0(n){return Error(`Unable to find icon with the name "${n}"`)}function W0(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function G0(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class qo{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let qu=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new qo(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(je.HTML,r);if(!s)throw G0(r);const a=kl(s);return this._addSvgIconConfig(e,i,new qo("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new qo(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(je.HTML,i);if(!o)throw G0(i);const s=kl(o);return this._addSvgIconSetConfig(e,new qo("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(je.RESOURCE_URL,e);if(!i)throw W0(e);const r=this._cachedIconsByUrl.get(i);return r?$(Ku(r)):this._loadSvgIconFromConfig(new qo(e,null)).pipe(Pt(o=>this._cachedIconsByUrl.set(i,o)),L(o=>Ku(o)))}getNamedSvgIcon(e,i=""){const r=q0(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):ea(z0(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?$(Ku(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(L(i=>Ku(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?$(r):O0(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Tr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(je.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),$(null)})))).pipe(L(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw z0(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Pt(i=>e.svgText=i),L(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?$(null):this._fetchIcon(e).pipe(Pt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(kl(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(kl("")),r=e.attributes;for(let o=0;okl(c)),Uu(()=>this._inProgressUrlFetches.delete(s)),Eh());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(q0(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),K0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cH=K0.map(n=>`[${n}]`).join(", "),uH=/^url\(['"]?#(.*?)['"]?\)$/;let Xm=(()=>{class n extends sH{constructor(e,i,r,o,s){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._currentIconFetch=Be.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=nn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let o=0;o{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(cH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(uH):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(tn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(qu),Kr("aria-hidden"),m(aH),m(vr))},n.\u0275cmp=He({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(et("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),It("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[j],ngContentSelectors:tH,decls:1,vars:0,template:function(e,i){1&e&&(Zi(),kt(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})(),dH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt],vt]}),n})();const hH=["mat-button",""],fH=["*"],mH=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],gH=Dl(b0(w0(class{constructor(n){this._elementRef=n}})));let Al=(()=>{class n extends gH{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of mH)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(m0),m(Dr,8))},n.\u0275cmp=He({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&an($m,5),2&e){let r;Me(r=ke())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(et("disabled",i.disabled||null),It("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[j],attrs:hH,ngContentSelectors:fH,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Zi(),x(0,"span",0),kt(1),R(),_t(2,"span",1)(3,"span",2)),2&e&&(O(2),It("mat-button-ripple-round",i.isRoundButton||i.isIconButton),F("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[$m],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})(),Y0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[M0,vt],vt]}),n})();const Yu=vi(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function Jm(...n){const t=Ca(n),e=gy(n),{args:i,keys:r}=I0(n);if(0===i.length)return Mt([],t);const o=new ne(function _H(n,t,e=ie){return i=>{Z0(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Mt(n[l],t);let u=!1;c.subscribe(ce(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>R0(r,s):ie));return e?o.pipe(zm(e)):o}function Z0(n,t,e){n?ur(e,n,t):t()}function Zu(...n){return function yH(){return cs(1)}()(Mt(n,Ca(n)))}function Qu(n){return new ne(t=>{Nn(n()).subscribe(t)})}function eg(){return Ae((n,t)=>{let e=null;n._refCount++;const i=ce(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class Q0 extends ne{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,tt(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Be;const e=this.getSubject();t.add(this.source.subscribe(ce(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Be.EMPTY)}return t}refCount(){return eg()(this)}}function ii(n,t){return Ae((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(ce(i,l=>{r?.unsubscribe();let c=0;const u=o++;Nn(n(l,u)).subscribe(r=ce(i,d=>i.next(t?t(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Rr(...n){const t=Ca(n);return Ae((e,i)=>{(t?Zu(n,e,t):Zu(n,e)).subscribe(i)})}function Xu(n){return Ae((t,e)=>{let i=!1;t.subscribe(ce(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function X0(n=vH){return Ae((t,e)=>{let i=!1;t.subscribe(ce(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function vH(){return new Yu}function Or(n,t){const e=arguments.length>=2;return i=>i.pipe(n?en((r,o)=>n(r,o,i)):ie,tn(1),e?Xu(t):X0(()=>new Yu))}function bH(n,t,e,i,r){return(o,s)=>{let a=e,l=t,c=0;o.subscribe(ce(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function J0(n,t){return Ae(bH(n,t,arguments.length>=2,!0))}function tg(n){return n<=0?()=>dr:Ae((t,e)=>{let i=[];t.subscribe(ce(e,r=>{i.push(r),n{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function eS(n,t){const e=arguments.length>=2;return i=>i.pipe(n?en((r,o)=>n(r,o,i)):ie,tg(1),e?Xu(t):X0(()=>new Yu))}function tS(n,t=!1){return Ae((e,i)=>{let r=0;e.subscribe(ce(i,o=>{const s=n(o,r++);(s||t)&&i.next(o),!s&&i.complete()}))})}function nS(n){return L(()=>n)}const Te="primary",xl=Symbol("RouteTitle");class wH{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ta(n){return new wH(n)}function CH(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function ng(n){return Array.prototype.concat.apply([],n)}function rS(n){return n.length>0?n[n.length-1]:null}function cn(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function so(n){return bp(n)?n:Xa(n)?Mt(Promise.resolve(n)):$(n)}const SH={exact:function aS(n,t,e){if(!Yo(n.segments,t.segments)||!Ju(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!aS(n.children[i],t.children[i],e))return!1;return!0},subset:lS},oS={exact:function MH(n,t){return nr(n,t)},subset:function kH(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>iS(n[e],t[e]))},ignored:()=>!0};function sS(n,t,e){return SH[e.paths](n.root,t.root,e.matrixParams)&&oS[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function lS(n,t,e){return cS(n,t,t.segments,e)}function cS(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Yo(r,e)||t.hasChildren()||!Ju(r,e,i))}if(n.segments.length===e.length){if(!Yo(n.segments,e)||!Ju(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!lS(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Yo(n.segments,r)&&Ju(n.segments,r,i)&&n.children[Te])&&cS(n.children[Te],t,o,i)}}function Ju(n,t,e){return t.every((i,r)=>oS[e](n[r].parameters,i.parameters))}class Ko{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ta(this.queryParams)),this._queryParamMap}toString(){return TH.serialize(this)}}class Re{constructor(t,e){this.segments=t,this.children=e,this.parent=null,cn(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ed(this)}}class Tl{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ta(this.parameters)),this._parameterMap}toString(){return hS(this)}}function Yo(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let rg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return new og},providedIn:"root"}),n})();class og{parse(t){const e=new BH(t);return new Ko(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Il(t.root,!0)}`,i=function OH(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${td(e)}=${td(r)}`).join("&"):`${td(e)}=${td(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function IH(n){return encodeURI(n)}(t.fragment)}`:""}`}}const TH=new og;function ed(n){return n.segments.map(t=>hS(t)).join("/")}function Il(n,t){if(!n.hasChildren())return ed(n);if(t){const e=n.children[Te]?Il(n.children[Te],!1):"",i=[];return cn(n.children,(r,o)=>{o!==Te&&i.push(`${o}:${Il(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function xH(n,t){let e=[];return cn(n.children,(i,r)=>{r===Te&&(e=e.concat(t(i,r)))}),cn(n.children,(i,r)=>{r!==Te&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Te?[Il(n.children[Te],!1)]:[`${r}:${Il(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Te]?`${ed(n)}/${e[0]}`:`${ed(n)}/(${e.join("//")})`}}function uS(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function td(n){return uS(n).replace(/%3B/gi,";")}function sg(n){return uS(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nd(n){return decodeURIComponent(n)}function dS(n){return nd(n.replace(/\+/g,"%20"))}function hS(n){return`${sg(n.path)}${function RH(n){return Object.keys(n).map(t=>`;${sg(t)}=${sg(n[t])}`).join("")}(n.parameters)}`}const FH=/^[^\/()?;=#]+/;function id(n){const t=n.match(FH);return t?t[0]:""}const NH=/^[^=?&#]+/,LH=/^[^&#]+/;class BH{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Te]=new Re(t,e)),i}parseSegment(){const t=id(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(t),new Tl(nd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=id(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=id(this.remaining);r&&(i=r,this.capture(i))}t[nd(e)]=nd(i)}parseQueryParam(t){const e=function PH(n){const t=n.match(NH);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function VH(n){const t=n.match(LH);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=dS(e),o=dS(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=id(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new E(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Te);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Te]:new Re([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new E(4011,!1)}}function ag(n){return n.segments.length>0?new Re([],{[Te]:n}):n}function rd(n){const t={};for(const i of Object.keys(n.children)){const o=rd(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function HH(n){if(1===n.numberOfChildren&&n.children[Te]){const t=n.children[Te];return new Re(n.segments.concat(t.segments),t.children)}return n}(new Re(n.segments,t))}function Zo(n){return n instanceof Ko}function UH(n,t,e,i,r){if(0===e.length)return na(t.root,t.root,t.root,i,r);const o=function mS(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new pS(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return cn(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new pS(e,t,i)}(e);return o.toRoot()?na(t.root,t.root,new Re([],{}),i,r):function s(l){const c=function WH(n,t,e,i){if(n.isAbsolute)return new ia(t.root,!0,0);if(-1===i)return new ia(e,e===t.root,0);return function gS(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new E(4005,!1);r=i.segments.length}return new ia(i,!1,r-o)}(e,i+(Rl(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Fl(c.segmentGroup,c.index,o.commands):cg(c.segmentGroup,c.index,o.commands);return na(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Rl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ol(n){return"object"==typeof n&&null!=n&&n.outlets}function na(n,t,e,i,r){let s,o={};i&&cn(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:fS(n,t,e);const a=ag(rd(s));return new Ko(a,o,r)}function fS(n,t,e){const i={};return cn(n.children,(r,o)=>{i[o]=r===t?e:fS(r,t,e)}),new Re(n.segments,i)}class pS{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Rl(i[0]))throw new E(4003,!1);const r=i.find(Ol);if(r&&r!==rS(i))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ia{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function cg(n,t,e){if(n||(n=new Re([],{})),0===n.segments.length&&n.hasChildren())return Fl(n,t,e);const i=function qH(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Ol(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!yS(l,c,s))return o;i+=2}else{if(!yS(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=cg(n.children[s],t,o))}),cn(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Re(n.segments,r)}}function ug(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=ug(new Re([],{}),0,e))}),t}function _S(n){const t={};return cn(n,(e,i)=>t[i]=`${e}`),t}function yS(n,t,e){return n==e.path&&nr(t,e.parameters)}class Fr{constructor(t,e){this.id=t,this.url=e}}class dg extends Fr{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qo extends Fr{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class od extends Fr{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vS extends Fr{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class YH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QH extends Fr{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class XH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class JH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ej{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tj{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nj{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ij{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rj{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oj{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bS{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class wS{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=hg(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=hg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=fg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return fg(t,this._root).map(e=>e.value)}}function hg(n,t){if(n===t.value)return t;for(const e of t.children){const i=hg(n,e);if(i)return i}return null}function fg(n,t){if(n===t.value)return[t];for(const e of t.children){const i=fg(n,e);if(i.length)return i.unshift(t),i}return[]}class Nr{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ra(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class CS extends wS{constructor(t,e){super(t),this.snapshot=e,pg(this,t)}toString(){return this.snapshot.toString()}}function DS(n,t){const e=function aj(n,t){const s=new sd([],{},{},"",{},Te,t,null,n.root,-1,{});return new SS("",new Nr(s,[]))}(n,t),i=new ni([new Tl("",{})]),r=new ni({}),o=new ni({}),s=new ni({}),a=new ni(""),l=new Xo(i,r,s,a,o,Te,t,e.root);return l.snapshot=e.root,new CS(new Nr(l,[]),e)}class Xo{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(L(c=>c[xl]))??$(void 0),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(L(t=>ta(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>ta(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ES(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function lj(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class sd{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[xl],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ta(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ta(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class SS extends wS{constructor(t,e){super(e),this.url=t,pg(this,e)}toString(){return MS(this._root)}}function pg(n,t){t.value._routerState=n,t.children.forEach(e=>pg(n,e))}function MS(n){const t=n.children.length>0?` { ${n.children.map(MS).join(", ")} } `:"";return`${n.value}${t}`}function mg(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,nr(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),nr(t.params,e.params)||n.params.next(e.params),function DH(n,t){if(n.length!==t.length)return!1;for(let e=0;enr(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||gg(n.parent,t.parent))}function Nl(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function uj(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Nl(n,i,r);return Nl(n,i)})}(n,t,e);return new Nr(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Nl(n,a)),s}}const i=function dj(n){return new Xo(new ni(n.url),new ni(n.params),new ni(n.queryParams),new ni(n.fragment),new ni(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Nl(n,o));return new Nr(i,r)}}const _g="ngNavigationCancelingError";function kS(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=Zo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=AS(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function AS(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[_g]=!0,i.cancellationCode=t,e&&(i.url=e),i}function xS(n){return TS(n)&&Zo(n.url)}function TS(n){return n&&n[_g]}class hj{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new oa,this.attachRef=null}}let oa=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new hj,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ad=!1;let yg=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ve,this.deactivateEvents=new ve,this.attachEvents=new ve,this.detachEvents=new ve,this.name=r||Te,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,ad);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,ad);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,ad);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new E(4013,ad);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new fj(e,a,r.injector);if(i&&function pj(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(m(oa),m(Ot),Kr("name"),m(er),m(Yr))},n.\u0275dir=M({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class fj{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Xo?this.route:t===oa?this.childContexts:this.parent.get(t,e)}}let vg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["ng-component"]],standalone:!0,features:[HC],decls:1,vars:0,template:function(e,i){1&e&&_t(0,"router-outlet")},dependencies:[yg],encapsulation:2}),n})();function IS(n,t){return n.providers&&!n._injector&&(n._injector=uu(n.providers,t,`Route: ${n.path}`)),n._injector??t}function wg(n){const t=n.children&&n.children.map(wg),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Te&&(e.component=vg),e}function mi(n){return n.outlet||Te}function RS(n,t){const e=n.filter(i=>mi(i)===t);return e.push(...n.filter(i=>mi(i)!==t)),e}function Pl(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class vj{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),mg(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=ra(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),cn(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=ra(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=ra(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=ra(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new oj(o.value.snapshot))}),t.children.length&&this.forwardEvent(new ij(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(mg(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),mg(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Pl(r.snapshot),l=a?.get(No)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class OS{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ld{constructor(t,e){this.component=t,this.route=e}}function bj(n,t,e){const i=n._root;return Ll(i,t?t._root:null,e,[i.value])}function sa(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function Wx(n){return null!==uc(n)}(n)?t.get(n):n:i}function Ll(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ra(t);return n.children.forEach(s=>{(function Cj(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function Dj(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Yo(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Yo(n.url,t.url)||!nr(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gg(n,t)||!nr(n.queryParams,t.queryParams);default:return!gg(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new OS(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ll(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ld(a.outlet.component,s))}else s&&Vl(t,a,r),r.canActivateChecks.push(new OS(i)),Ll(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),cn(o,(s,a)=>Vl(s,e.getContext(a),r)),r}function Vl(n,t,e){const i=ra(n),r=n.value;cn(i,(o,s)=>{Vl(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new ld(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Bl(n){return"function"==typeof n}function Cg(n){return n instanceof Yu||"EmptyError"===n?.name}const cd=Symbol("INITIAL_VALUE");function aa(){return ii(n=>Jm(n.map(t=>t.pipe(tn(1),Rr(cd)))).pipe(L(t=>{for(const e of t)if(!0!==e){if(e===cd)return cd;if(!1===e||e instanceof Ko)return e}return!0}),en(t=>t!==cd),tn(1)))}function FS(n){return function Ne(...n){return xt(n)}(Pt(t=>{if(Zo(t))throw kS(0,t)}),L(t=>!0===t))}const Dg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NS(n,t,e,i,r){const o=Eg(n,t,e);return o.matched?function Hj(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?$(r.map(s=>{const a=sa(s,n);return so(function xj(n){return n&&Bl(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(aa(),FS()):$(!0)}(i=IS(t,i),t,e).pipe(L(s=>!0===s?o:{...Dg})):$(o)}function Eg(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...Dg}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||CH)(e,n,t);if(!r)return{...Dg};const o={};cn(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function ud(n,t,e,i,r="corrected"){if(e.length>0&&function Uj(n,t,e){return e.some(i=>dd(n,t,i)&&mi(i)!==Te)}(n,e,i)){const s=new Re(t,function $j(n,t,e,i){const r={};r[Te]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&mi(o)!==Te){const s=new Re([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[mi(o)]=s}return r}(n,t,i,new Re(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function zj(n,t,e){return e.some(i=>dd(n,t,i))}(n,e,i)){const s=new Re(n.segments,function jj(n,t,e,i,r,o){const s={};for(const a of i)if(dd(n,e,a)&&!r[mi(a)]){const l=new Re([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[mi(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Re(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function dd(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function PS(n,t,e,i){return!!(mi(n)===i||i!==Te&&dd(t,e,n))&&("**"===n.path||Eg(t,n,e).matched)}function LS(n,t,e){return 0===t.length&&!n.children[e]}const hd=!1;class fd{constructor(t){this.segmentGroup=t||null}}class VS{constructor(t){this.urlTree=t}}function Hl(n){return ea(new fd(n))}function BS(n){return ea(new VS(n))}class Kj{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=ud(this.urlTree.root,[],[],this.config).segmentGroup,e=new Re(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Te).pipe(L(o=>this.createUrlTree(rd(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Tr(o=>{if(o instanceof VS)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof fd?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Te).pipe(L(r=>this.createUrlTree(rd(r),t.queryParams,t.fragment))).pipe(Tr(r=>{throw r instanceof fd?this.noMatchError(r):r}))}noMatchError(t){return new E(4002,hd)}createUrlTree(t,e,i){const r=ag(t);return new Ko(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(L(o=>new Re([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Mt(r).pipe(ro(o=>{const s=i.children[o],a=RS(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(L(l=>({segment:l,outlet:o})))}),J0((o,s)=>(o[s.outlet]=s.segment,o),{}),eS())}expandSegment(t,e,i,r,o,s){return Mt(i).pipe(ro(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(Tr(c=>{if(c instanceof fd)return $(null);throw c}))),Or(a=>!!a),Tr((a,l)=>{if(Cg(a))return LS(e,r,o)?$(new Re([],{})):Hl(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return PS(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Hl(e):Hl(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?BS(o):this.lineralizeSegments(i,o).pipe(Xt(s=>{const a=new Re(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Eg(e,r,o);if(!a)return Hl(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?BS(d):this.lineralizeSegments(r,d).pipe(Xt(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=IS(i,t),i.loadChildren?(i._loadedRoutes?$({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(L(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Re(r,{})))):$(new Re(r,{}))):NS(e,i,r,t).pipe(ii(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Xt(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:f,slicedSegments:p}=ud(e,a,l,h),g=new Re(f.segments,f.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(L(C=>new Re(a,C)));if(0===h.length&&0===p.length)return $(new Re(a,{}));const _=mi(i)===o;return this.expandSegment(d,g,h,p,_?Te:o,!0).pipe(L(D=>new Re(a.concat(D.segments),D.children)))})):Hl(e)))}getChildConfig(t,e,i){return e.children?$({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?$({routes:e._loadedRoutes,injector:e._loadedInjector}):function Bj(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?$(!0):$(r.map(s=>{const a=sa(s,n);return so(function Sj(n){return n&&Bl(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(aa(),FS())}(t,e,i).pipe(Xt(r=>r?this.configLoader.loadChildren(t,e).pipe(Pt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Gj(n){return ea(AS(hd,3))}())):$({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return $(i);if(r.numberOfChildren>1||!r.children[Te])return ea(new E(4e3,hd));r=r.children[Te]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new Ko(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return cn(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return cn(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Re(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new E(4001,hd);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Zj{}class Jj{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=ud(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Te).pipe(L(e=>{if(null===e)return null;const i=new sd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Te,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Nr(i,e),o=new SS(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=ES(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Mt(Object.keys(i.children)).pipe(ro(r=>{const o=i.children[r],s=RS(e,r);return this.processSegmentGroup(t,s,o,r)}),J0((r,o)=>r&&o?(r.push(...o),r):null),tS(r=>null!==r),Xu(null),eS(),L(r=>{if(null===r)return null;const o=HS(r);return function e$(n){n.sort((t,e)=>t.value.outlet===Te?-1:e.value.outlet===Te?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Mt(e).pipe(ro(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),Or(s=>!!s),Tr(s=>{if(Cg(s))return LS(i,r,o)?$([]):$(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!PS(e,i,r,o))return $(null);let s;if("**"===e.path){const a=r.length>0?rS(r).parameters:{},l=$S(i)+r.length;s=$({snapshot:new sd(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zS(e),mi(e),e.component??e._loadedComponent??null,e,jS(i),l,WS(e),l),consumedSegments:[],remainingSegments:[]})}else s=NS(i,e,r,t).pipe(L(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=$S(i)+l.length;return{snapshot:new sd(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zS(e),mi(e),e.component??e._loadedComponent??null,e,jS(i),d,WS(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(ii(a=>{if(null===a)return $(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function t$(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=ud(i,c,u,h.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(L(_=>null===_?null:[new Nr(l,_)]));if(0===h.length&&0===p.length)return $([new Nr(l,[])]);const g=mi(e)===o;return this.processSegment(d,h,f,p,g?Te:o).pipe(L(_=>null===_?null:[new Nr(l,_)]))}))}}function n$(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function HS(n){const t=[],e=new Set;for(const i of n){if(!n$(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=HS(i.children);t.push(new Nr(i.value,r))}return t.filter(i=>!e.has(i))}function jS(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function $S(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function zS(n){return n.data||{}}function WS(n){return n.resolve||{}}function GS(n){return"string"==typeof n.title||null===n.title}function Sg(n){return ii(t=>{const e=n(t);return e?Mt(e).pipe(L(()=>t)):$(t)})}let Mg=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Te);return i}getResolvedTitleForRoute(e){return e.data[xl]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return dt(qS)},providedIn:"root"}),n})(),qS=(()=>{class n extends Mg{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(b(KE))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class KS{}class d$ extends class u${shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const la=new k("",{providedIn:"root",factory:()=>({})}),md=new k("ROUTES");let kg=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=so(e.loadComponent()).pipe(Pt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Uu(()=>{this.componentLoaders.delete(e)})),r=new Q0(i,()=>new H).pipe(eg());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return $({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(L(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=ng(l.get(md,[],ee.Self|ee.Optional)));return{routes:c.map(wg),injector:l}}),Uu(()=>{this.childrenLoaders.delete(i)})),s=new Q0(o,()=>new H).pipe(eg());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return so(e()).pipe(Xt(i=>i instanceof VC||Array.isArray(i)?$(i):Mt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(b(Dt),b(gu))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ZS{}class f${shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function p$(n){throw n}function m$(n,t,e){return t.parse("/")}const g$={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_$={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function QS(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}function XS(){const n=dt(rg),t=dt(oa),e=dt(jo),i=dt(Dt),r=dt(gu),o=dt(md,{optional:!0})??[],s=dt(la,{optional:!0})??{},a=dt(qS),l=dt(Mg,{optional:!0}),c=dt(ZS,{optional:!0}),u=dt(KS,{optional:!0}),d=new Yt(null,n,t,e,i,r,ng(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,QS(s,d),d}let Yt=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new H,this.errorHandler=p$,this.malformedUriErrorHandler=m$,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>$(void 0),this.urlHandlingStrategy=new f$,this.routeReuseStrategy=new d$,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(kg),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new tj(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new ej(h)),this.ngModule=s.get(Bo),this.console=s.get(DP);const d=s.get(Ie);this.isNgZoneEnabled=d instanceof Ie&&Ie.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function EH(){return new Ko(new Re([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=DS(this.currentUrlTree,this.rootComponentType),this.transitions=new ni({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(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(en(r=>0!==r.id),L(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ii(r=>{let o=!1,s=!1;return $(r).pipe(Pt(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ii(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return JS(a.source)&&(this.browserUrlTree=a.extractedUrl),$(a).pipe(ii(d=>{const h=this.transitions.getValue();return i.next(new dg(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?dr:Promise.resolve(d)}),function Yj(n,t,e,i){return ii(r=>function qj(n,t,e,i,r){return new Kj(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(L(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Pt(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function r$(n,t,e,i,r,o){return Xt(s=>function Xj(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new Jj(n,t,e,i,r,s,a,o).recognize().pipe(ii(l=>null===l?function Qj(n){return new ne(t=>t.error(n))}(new Zj):$(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(L(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Pt(d=>{if(r.targetSnapshot=d.targetSnapshot,"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 YH(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:g,extras:_}=a,y=new dg(h,this.serializeUrl(f),p,g);i.next(y);const D=DS(f,this.rootComponentType).snapshot;return $(r={...a,targetSnapshot:D,urlAfterRedirects:f,extras:{..._,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),dr}),Pt(a=>{const l=new ZH(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),L(a=>r={...a,guards:bj(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Ij(n,t){return Xt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?$({...e,guardsResult:!0}):function Rj(n,t,e,i){return Mt(n).pipe(Xt(r=>function Vj(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?$(o.map(a=>{const l=Pl(t)??r,c=sa(a,l);return so(function Aj(n){return n&&Bl(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(Or())})).pipe(aa()):$(!0)}(r.component,r.route,e,t,i)),Or(r=>!0!==r,!0))}(s,i,r,n).pipe(Xt(a=>a&&function Ej(n){return"boolean"==typeof n}(a)?function Oj(n,t,e,i){return Mt(t).pipe(ro(r=>Zu(function Nj(n,t){return null!==n&&t&&t(new nj(n)),$(!0)}(r.route.parent,i),function Fj(n,t){return null!==n&&t&&t(new rj(n)),$(!0)}(r.route,i),function Lj(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function wj(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Qu(()=>$(s.guards.map(l=>{const c=Pl(s.node)??e,u=sa(l,c);return so(function kj(n){return n&&Bl(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(Or())})).pipe(aa())));return $(o).pipe(aa())}(n,r.path,e),function Pj(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return $(!0);const r=i.map(o=>Qu(()=>{const s=Pl(t)??e,a=sa(o,s);return so(function Mj(n){return n&&Bl(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(Or())}));return $(r).pipe(aa())}(n,r.route,e))),Or(r=>!0!==r,!0))}(i,o,n,t):$(a)),L(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Pt(a=>{if(r.guardsResult=a.guardsResult,Zo(a.guardsResult))throw kS(0,a.guardsResult);const l=new QH(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),en(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Sg(a=>{if(a.guards.canActivateChecks.length)return $(a).pipe(Pt(l=>{const c=new XH(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),ii(l=>{let c=!1;return $(l).pipe(function o$(n,t){return Xt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return $(e);let o=0;return Mt(r).pipe(ro(s=>function s$(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!GS(r)&&(o[xl]=r.title),function a$(n,t,e,i){const r=function l$(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return $({});const o={};return Mt(r).pipe(Xt(s=>function c$(n,t,e,i){const r=Pl(t)??i,o=sa(n,r);return so(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(Or(),Pt(a=>{o[s]=a}))),tg(1),nS(o),Tr(s=>Cg(s)?dr:ea(s)))}(o,n,t,i).pipe(L(s=>(n._resolvedData=s,n.data=ES(n,e).resolve,r&&GS(r)&&(n.data[xl]=r.title),null)))}(s.route,i,n,t)),Pt(()=>o++),tg(1),Xt(s=>o===r.length?$(e):dr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Pt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Pt(l=>{const c=new JH(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Sg(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Pt(d=>{c.component=d}),L(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Jm(l(a.targetSnapshot.root)).pipe(Xu(),tn(1))}),Sg(()=>this.afterPreactivation()),L(a=>{const l=function cj(n,t,e){const i=Nl(n,t._root,e?e._root:void 0);return new CS(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Pt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>L(i=>(new vj(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Pt({next(){o=!0},complete(){o=!0}}),Uu(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Tr(a=>{if(s=!0,TS(a)){xS(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new od(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),xS(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||JS(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new vS(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return dr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(wg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),UH(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Zo(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function y$(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Qo(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new od(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){qa()},n.\u0275prov=I({token:n,factory:function(){return XS()},providedIn:"root"}),n})();function JS(n){return"imperative"!==n}let Ag=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new H,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Mr(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Mr(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Mr(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(m(Yt),m(Xo),Kr("tabindex"),m(yr),m(De))},n.\u0275dir=M({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&Ge("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[zt]}),n})(),_d=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new H,this.subscription=e.events.subscribe(o=>{o instanceof Qo&&this.updateTargetUrlAndHref()})}set preserveFragment(e){this._preserveFragment=Mr(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Mr(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Mr(e)}get replaceUrl(){return this._replaceUrl}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,o,s){return!!(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(m(Yt),m(Xo),m(Ar))},n.\u0275dir=M({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&Ge("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&et("target",i.target)("href",i.href,Oo)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[zt]}),n})(),eM=(()=>{class n{constructor(e,i,r,o,s,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ve,this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof Qo&&this.update()})}ngAfterContentInit(){$(this.links.changes,this.linksWithHrefs.changes,$(null)).pipe(cs()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Mt(e).pipe(cs()).subscribe(i=>{this.isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function v$(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Yt),m(De),m(yr),m(er),m(Ag,8),m(_d,8))},n.\u0275dir=M({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&(ht(r,Ag,5),ht(r,_d,5)),2&e){let o;Me(o=ke())&&(i.links=o),Me(o=ke())&&(i.linksWithHrefs=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[zt]}),n})();class tM{}let b$=(()=>{class n{preload(e,i){return $(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w$=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(en(e=>e instanceof Qo),ro(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=uu(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Mt(r).pipe(cs())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):$(null);const o=r.pipe(Xt(s=>null===s?$(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Mt([o,this.loader.loadComponent(i)]).pipe(cs()):o})}}return n.\u0275fac=function(e){return new(e||n)(b(Yt),b(gu),b(Yr),b(tM),b(kg))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xg=new k("");let nM=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof dg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Qo&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof bS&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new bS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){qa()},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function ca(n,t){return{\u0275kind:n,\u0275providers:t}}function jl(n){return[{provide:md,multi:!0,useValue:n}]}function rM(){const n=dt(Dt);return t=>{const e=n.get(Ys);if(t!==e.components[0])return;const i=n.get(Yt),r=n.get(oM);1===n.get(Tg)&&i.initialNavigation(),n.get(sM,null,ee.Optional)?.setUpPreloading(),n.get(xg,null,ee.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const oM=new k("",{factory:()=>new H}),Tg=new k("",{providedIn:"root",factory:()=>1});const sM=new k("");function aM(n){return ca(0,[{provide:sM,useExisting:w$},{provide:tM,useExisting:n}])}const lM=new k("ROUTER_FORROOT_GUARD"),cM=[jo,{provide:rg,useClass:og},{provide:Yt,useFactory:XS},oa,{provide:Xo,useFactory:function iM(n){return n.routerState.root},deps:[Yt]},kg];function S$(){return new ND("Router",Yt)}let bd=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[cM,[],jl(e),{provide:lM,useFactory:x$,deps:[[Yt,new xi,new Ms]]},{provide:la,useValue:i||{}},i?.useHash?{provide:Ar,useClass:dL}:{provide:Ar,useClass:aE},{provide:xg,useFactory:()=>{const n=dt(Yt),t=dt(MV),e=dt(la);return e.scrollOffset&&t.setOffset(e.scrollOffset),new nM(n,t,e)}},i?.preloadingStrategy?aM(i.preloadingStrategy).\u0275providers:[],{provide:ND,multi:!0,useFactory:S$},i?.initialNavigation?T$(i):[],[{provide:uM,useFactory:rM},{provide:AD,multi:!0,useExisting:uM}]]}}static forChild(e){return{ngModule:n,providers:[jl(e)]}}}return n.\u0275fac=function(e){return new(e||n)(b(lM,8))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[vg]}),n})();function x$(n){return"guarded"}function T$(n){return["disabled"===n.initialNavigation?ca(3,[{provide:pu,multi:!0,useFactory:()=>{const t=dt(Yt);return()=>{t.setUpLocationChangeListener()}}},{provide:Tg,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ca(2,[{provide:Tg,useValue:0},{provide:pu,multi:!0,deps:[Dt],useFactory:t=>{const e=t.get(cL,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(Yt),a=t.get(oM);(function r(o){t.get(Yt).events.pipe(en(a=>a instanceof Qo||a instanceof od||a instanceof vS),L(a=>a instanceof Qo||a instanceof od&&(0===a.code||1===a.code)&&null),en(a=>null!==a),tn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?$(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const uM=new k(""),R$=["*",[["mat-toolbar-row"]]],O$=["*","mat-toolbar-row"],F$=Dl(class{constructor(n){this._elementRef=n}});let N$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),P$=(()=>{class n extends F${constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(ln),m(ge))},n.\u0275cmp=He({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&ht(r,N$,5),2&e){let o;Me(o=ke())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&It("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[j],ngContentSelectors:O$,decls:2,vars:0,template:function(e,i){1&e&&(Zi(R$),kt(0),kt(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})(),L$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt],vt]}),n})(),V$=(()=>{class n{constructor(){this.title="app component"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["app-root"]],decls:10,vars:1,consts:[["color","primary",2,"float","right"],["routerLink","/","routerLinkActive","active","ariaCurrentWhenActive","page",2,"all","unset","cursor","pointer",3,"preserveFragment"],[1,"flexExpand",2,"flex","1 1 auto"],["mat-icon-button","","aria-label","Example icon-button with share icon",1,"example-icon"],["routerLink","/help","routerLinkActive","active","ariaCurrentWhenActive","page",2,"all","unset","cursor","pointer"],[2,"vertical-align","middle"]],template:function(e,i){1&e&&(x(0,"mat-toolbar",0)(1,"a",1)(2,"span"),re(3,"NOVEX DATASETS"),R()(),_t(4,"span",2),x(5,"button",3)(6,"a",4)(7,"mat-icon",5),re(8,"help"),R()()()(),_t(9,"router-outlet")),2&e&&(O(1),F("preserveFragment",!0))},dependencies:[Xm,Al,yg,_d,eM,P$]}),n})();class dM{}const Pr="*";function $l(n,t){return{type:7,name:n,definitions:t,options:{}}}function Jo(n,t=null){return{type:4,styles:t,timings:n}}function hM(n,t=null){return{type:2,steps:n,options:t}}function xn(n){return{type:6,styles:n,offset:null}}function ao(n,t,e){return{type:0,name:n,styles:t,options:e}}function lo(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function H$(n=null){return{type:9,options:n}}function j$(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function fM(n){Promise.resolve().then(n)}class Ul{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){fM(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pM{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?fM(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function mM(n){return new E(3e3,!1)}function CU(){return typeof window<"u"&&typeof window.document<"u"}function Rg(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function co(n){switch(n.length){case 0:return new Ul;case 1:return n[0];default:return new pM(n)}}function gM(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,g)=>{let _=g,y=p;if("offset"!==g)switch(_=t.normalizePropertyName(_,s),y){case"!":y=r.get(g);break;case Pr:y=o.get(g);break;default:y=t.normalizeStyleValue(g,_,y,s)}f.set(_,y)}),h||a.push(f),c=f,l=d}),s.length)throw function uU(n){return new E(3502,!1)}();return a}function Og(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Fg(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Fg(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Fg(e,"destroy",n)))}}function Fg(n,t,e){const o=Ng(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function Ng(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function ri(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function _M(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Pg=(n,t)=>!1,yM=(n,t,e)=>[],vM=null;function Lg(n){const t=n.parentNode||n.host;return t===vM?null:t}(Rg()||typeof Element<"u")&&(CU()?(vM=(()=>document.documentElement)(),Pg=(n,t)=>{for(;t;){if(t===n)return!0;t=Lg(t)}return!1}):Pg=(n,t)=>n.contains(t),yM=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let es=null,bM=!1;const wM=Pg,CM=yM;let DM=(()=>{class n{validateStyleProperty(e){return function EU(n){es||(es=function SU(){return typeof document<"u"?document.body:null}()||{},bM=!!es.style&&"WebkitAppearance"in es.style);let t=!0;return es.style&&!function DU(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in es.style,!t&&bM&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in es.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return wM(e,i)}getParentElement(e){return Lg(e)}query(e,i,r){return CM(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Ul(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Vg=(()=>{class n{}return n.NOOP=new DM,n})();const Bg="ng-enter",wd="ng-leave",Cd="ng-trigger",Dd=".ng-trigger",SM="ng-animating",Hg=".ng-animating";function Lr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:jg(parseFloat(t[1]),t[2])}function jg(n,t){return"s"===t?1e3*n:n}function Ed(n,t,e){return n.hasOwnProperty("duration")?n:function AU(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(mM()),{duration:0,delay:0,easing:""};r=jg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=jg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function $$(){return new E(3100,!1)}()),a=!0),o<0&&(t.push(function U$(){return new E(3101,!1)}()),a=!0),a&&t.splice(l,0,mM())}return{duration:r,delay:o,easing:s}}(n,t,e)}function zl(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function MM(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function uo(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function AM(n,t,e){return e?t+":"+e+";":""}function xM(n){let t="";for(let e=0;e{const o=Ug(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),Rg()&&xM(n))}function ts(n,t){n.style&&(t.forEach((e,i)=>{const r=Ug(i);n.style[r]=""}),Rg()&&xM(n))}function Wl(n){return Array.isArray(n)?1==n.length?n[0]:hM(n):n}const $g=new RegExp("{{\\s*(.+?)\\s*}}","g");function TM(n){let t=[];if("string"==typeof n){let e;for(;e=$g.exec(n);)t.push(e[1]);$g.lastIndex=0}return t}function Gl(n,t,e){const i=n.toString(),r=i.replace($g,(o,s)=>{let a=t[s];return null==a&&(e.push(function W$(n){return new E(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Sd(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const IU=/-+([a-z0-9])/g;function Ug(n){return n.replace(IU,(...t)=>t[1].toUpperCase())}function RU(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oi(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function G$(n){return new E(3004,!1)}()}}function IM(n,t){return window.getComputedStyle(n)[t]}function VU(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function BU(n,t,e){if(":"==n[0]){const l=function HU(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function oU(n){return new E(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(RM(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(RM(s,r))}(i,e,t)):e.push(n),e}const xd=new Set(["true","1"]),Td=new Set(["false","0"]);function RM(n,t){const e=xd.has(n)||Td.has(n),i=xd.has(t)||Td.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?xd.has(n):Td.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?xd.has(t):Td.has(t)),s&&a}}const jU=new RegExp("s*:selfs*,?","g");function zg(n,t,e,i){return new $U(n).build(t,e,i)}class $U{constructor(t){this._driver=t}build(t,e,i){const r=new WU(e);return this._resetContextStyleTimingState(r),oi(this,Wl(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function K$(){return new E(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function Y$(){return new E(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{TM(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Sd(o.values()),e.errors.push(function Z$(n,t){return new E(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=oi(this,Wl(t.animation),e);return{type:1,matchers:VU(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ns(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>oi(this,i,e)),options:ns(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=oi(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:ns(t.options)}}visitAnimate(t,e){const i=function qU(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Wg(Ed(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Wg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Ed(e,t);return Wg(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:xn({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=xn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Pr?i.push(a):e.errors.push(new E(3002,!1)):i.push(MM(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function X$(n,t,e,i,r){return new E(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function TU(n,t,e){const i=t.params||{},r=TM(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function z$(n){return new E(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function J$(){return new E(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(y=>{const D=this._makeStyleAst(y,e);let C=null!=D.offset?D.offset:function GU(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(D.styles),T=0;return null!=C&&(o++,T=D.offset=C),l=l||T<0||T>1,a=a||T0&&o{const C=h>0?D==f?1:h*D:s[D],T=C*_;e.currentTime=p+g.delay+T,g.duration=T,this._validateStyleAst(y,e),y.offset=C,i.styles.push(y)}),i}visitReference(t,e){return{type:8,animation:oi(this,Wl(t.animation),e),options:ns(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ns(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ns(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function UU(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(jU,"")),n=n.replace(/@\*/g,Dd).replace(/@\w+/g,e=>Dd+"-"+e.slice(1)).replace(/:animating/g,Hg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,ri(e.collectedStyles,e.currentQuerySelector,new Map);const a=oi(this,Wl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:ns(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function iU(){return new E(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ed(t.timings,e.errors,!0);return{type:12,animation:oi(this,Wl(t.animation),e),timings:i,options:null}}}class WU{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ns(n){return n?(n=zl(n)).params&&(n.params=function zU(n){return n?zl(n):null}(n.params)):n={},n}function Wg(n,t,e){return{duration:n,delay:t,easing:e}}function Gg(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Id{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ZU=new RegExp(":enter","g"),XU=new RegExp(":leave","g");function qg(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new JU).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class JU{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Id;const d=new Kg(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?Lr(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),oi(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){const _=f[g];if(_.element===e){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Gg(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:Lr(Gl(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Lr(i.duration):null,a=null!=i.delay?Lr(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),oi(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Rd);const s=Lr(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>oi(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Lr(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),oi(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Ed(e.params?Gl(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Lr(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Rd);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),oi(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;oi(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Rd={};class Kg{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Od(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Lr(i.duration)),null!=i.delay&&(r.delay=Lr(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Gl(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new Kg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Rd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new ez(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(ZU,"."+this._enterClassName)).replace(XU,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function rU(n){return new E(3014,!1)}()),a}}class Od{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Od(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Pr),this._currentKeyframe.set(e,Pr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function tz(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Pr)}else uo(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Gl(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Pr),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=uo(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Pr&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Sd(t.values()):[],s=e.size?Sd(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Gg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class ez extends Od{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=uo(t[0]);l.set("offset",0),o.push(l);const c=uo(t[0]);c.set("offset",NM(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=uo(t[d]);const f=h.get("offset");h.set("offset",NM((e+f*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return Gg(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function NM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Yg{}const nz=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class iz extends Yg{normalizePropertyName(t,e){return Ug(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(nz.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function q$(n,t){return new E(3005,!1)}())}return s+o}}function PM(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Zg={};class LM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function rz(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Zg,p=this.buildStyles(i,a&&a.params||Zg,d),g=l&&l.params||Zg,_=this.buildStyles(r,g,d),y=new Set,D=new Map,C=new Map,T="void"===r,Y={params:oz(g,h),delay:this.ast.options?.delay},le=u?[]:qg(t,e,this.ast.animation,o,s,p,_,Y,c,d);let Qe=0;if(le.forEach(un=>{Qe=Math.max(un.duration+un.delay,Qe)}),d.length)return PM(e,this._triggerName,i,r,T,p,_,[],[],D,C,Qe,d);le.forEach(un=>{const In=un.element,ya=ri(D,In,new Set);un.preStyleProps.forEach(Vi=>ya.add(Vi));const $r=ri(C,In,new Set);un.postStyleProps.forEach(Vi=>$r.add(Vi)),In!==e&&y.add(In)});const Zt=Sd(y.values());return PM(e,this._triggerName,i,r,T,p,_,le,Zt,D,C,Qe)}}function oz(n,t){const e=zl(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class sz{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=zl(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Gl(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class lz{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new sz(r.style,r.options&&r.options.params||{},i))}),VM(this.states,"true","1"),VM(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new LM(t,r,this.states))}),this.fallbackTransition=function cz(n,t,e){return new LM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function VM(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const uz=new Id;class dz{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=zg(this._driver,e,i,[]);if(i.length)throw function dU(n){return new E(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=gM(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=qg(this._driver,e,o,Bg,wd,new Map,new Map,i,uz,r),s.forEach(u=>{const d=ri(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function hU(){return new E(3300,!1)}()),s=[]),r.length)throw function fU(n){return new E(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Pr))})});const c=co(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function pU(n){return new E(3301,!1)}();return e}listen(t,e,i,r){const o=Ng(e,"","","");return Og(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const BM="ng-animate-queued",Qg="ng-animate-disabled",gz=[],HM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_z={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},gi="__ng_removed";class Xg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function wz(n){return n??null}(i?t.value:t),i){const o=zl(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const ql="void",Jg=new Xg(ql);class yz{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_i(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function mU(n,t){return new E(3302,!1)}();if(null==i||0==i.length)throw function gU(n){return new E(3303,!1)}();if(!function Cz(n){return"start"==n||"done"==n}(i))throw function _U(n,t){return new E(3400,!1)}();const o=ri(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=ri(this._engine.statesByElement,t,new Map);return a.has(e)||(_i(t,Cd),_i(t,Cd+"-"+e),a.set(e,Jg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function yU(n){return new E(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new e_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(_i(t,Cd),_i(t,Cd+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new Xg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Jg),c.value!==ql&&l.value===c.value){if(!function Sz(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{ts(t,_),ir(t,y)})}return}const h=ri(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(_i(t,BM),s.onStart(()=>{ua(t,BM)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const _=this._engine.playersByElement.get(t);if(_){let y=_.indexOf(s);y>=0&&_.splice(y,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Dd,!0);i.forEach(r=>{if(r[gi])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,ql,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&co(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Jg,u=new Xg(ql),d=new e_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[gi];(!o||o===HM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){_i(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Ng(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Og(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class vz{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new yz(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Fd(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Fd(e))return;const o=e[gi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),_i(t,Qg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ua(t,Qg))}removeNode(t,e,i,r){if(Fd(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[gi]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Fd(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Dd,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Hg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return co(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[gi];if(e&&e.setForRemoval){if(t[gi]=HM,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Qg)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?co(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function vU(n){return new E(3402,!1)}()}_flushAnimations(t,e){const i=new Id,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const Z=this.driver.query(B,".ng-animate-queued",!0);for(let se=0;se{const se=Bg+g++;p.set(Z,se),B.forEach($e=>_i($e,se))});const _=[],y=new Set,D=new Set;for(let B=0;By.add($e)):D.add(Z))}const C=new Map,T=UM(h,Array.from(y));T.forEach((B,Z)=>{const se=wd+g++;C.set(Z,se),B.forEach($e=>_i($e,se))}),t.push(()=>{f.forEach((B,Z)=>{const se=p.get(Z);B.forEach($e=>ua($e,se))}),T.forEach((B,Z)=>{const se=C.get(Z);B.forEach($e=>ua($e,se))}),_.forEach(B=>{this.processLeaveNode(B)})});const Y=[],le=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(se=>{const $e=se.player,on=se.element;if(Y.push($e),this.collectedEnterElements.length){const bn=on[gi];if(bn&&bn.setForMove){if(bn.previousTriggersValues&&bn.previousTriggersValues.has(se.triggerName)){const ls=bn.previousTriggersValues.get(se.triggerName),yi=this.statesByElement.get(se.element);if(yi&&yi.has(se.triggerName)){const wh=yi.get(se.triggerName);wh.value=ls,yi.set(se.triggerName,wh)}}return void $e.destroy()}}const or=!d||!this.driver.containsElement(d,on),si=C.get(on),go=p.get(on),bt=this._buildInstruction(se,i,go,si,or);if(bt.errors&&bt.errors.length)return void le.push(bt);if(or)return $e.onStart(()=>ts(on,bt.fromStyles)),$e.onDestroy(()=>ir(on,bt.toStyles)),void r.push($e);if(se.isFallbackTransition)return $e.onStart(()=>ts(on,bt.fromStyles)),$e.onDestroy(()=>ir(on,bt.toStyles)),void r.push($e);const bx=[];bt.timelines.forEach(bn=>{bn.stretchStartingKeyframe=!0,this.disabledNodes.has(bn.element)||bx.push(bn)}),bt.timelines=bx,i.append(on,bt.timelines),s.push({instruction:bt,player:$e,element:on}),bt.queriedElements.forEach(bn=>ri(a,bn,[]).push($e)),bt.preStyleProps.forEach((bn,ls)=>{if(bn.size){let yi=l.get(ls);yi||l.set(ls,yi=new Set),bn.forEach((wh,oy)=>yi.add(oy))}}),bt.postStyleProps.forEach((bn,ls)=>{let yi=c.get(ls);yi||c.set(ls,yi=new Set),bn.forEach((wh,oy)=>yi.add(oy))})});if(le.length){const B=[];le.forEach(Z=>{B.push(function bU(n,t){return new E(3505,!1)}())}),Y.forEach(Z=>Z.destroy()),this.reportError(B)}const Qe=new Map,Zt=new Map;s.forEach(B=>{const Z=B.element;i.has(Z)&&(Zt.set(Z,Z),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Qe))}),r.forEach(B=>{const Z=B.element;this._getPreviousPlayers(Z,!1,B.namespaceId,B.triggerName,null).forEach($e=>{ri(Qe,Z,[]).push($e),$e.destroy()})});const un=_.filter(B=>WM(B,l,c)),In=new Map;$M(In,this.driver,D,c,Pr).forEach(B=>{WM(B,l,c)&&un.push(B)});const $r=new Map;f.forEach((B,Z)=>{$M($r,this.driver,new Set(B),l,"!")}),un.forEach(B=>{const Z=In.get(B),se=$r.get(B);In.set(B,new Map([...Array.from(Z?.entries()??[]),...Array.from(se?.entries()??[])]))});const Vi=[],va=[],ba={};s.forEach(B=>{const{element:Z,player:se,instruction:$e}=B;if(i.has(Z)){if(u.has(Z))return se.onDestroy(()=>ir(Z,$e.toStyles)),se.disabled=!0,se.overrideTotalTime($e.totalTime),void r.push(se);let on=ba;if(Zt.size>1){let si=Z;const go=[];for(;si=si.parentNode;){const bt=Zt.get(si);if(bt){on=bt;break}go.push(si)}go.forEach(bt=>Zt.set(bt,on))}const or=this._buildAnimation(se.namespaceId,$e,Qe,o,$r,In);if(se.setRealPlayer(or),on===ba)Vi.push(se);else{const si=this.playersByElement.get(on);si&&si.length&&(se.parentPlayer=co(si)),r.push(se)}}else ts(Z,$e.fromStyles),se.onDestroy(()=>ir(Z,$e.toStyles)),va.push(se),u.has(Z)&&r.push(se)}),va.forEach(B=>{const Z=o.get(B.element);if(Z&&Z.length){const se=co(Z);B.setRealPlayer(se)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<_.length;B++){const Z=_[B],se=Z[gi];if(ua(Z,wd),se&&se.hasAnimation)continue;let $e=[];if(a.size){let or=a.get(Z);or&&or.length&&$e.push(...or);let si=this.driver.query(Z,Hg,!0);for(let go=0;go!or.destroyed);on.length?Dz(this,Z,on):this.processLeaveNode(Z)}return _.length=0,Vi.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const Z=this.players.indexOf(B);this.players.splice(Z,1)}),B.play()}),Vi}elementContainsData(t,e){let i=!1;const r=e[gi];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==ql;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=ri(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}ts(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const g=p.element;u.add(g);const _=g[gi];if(_&&_.removedBeforeQueried)return new Ul(p.duration,p.delay);const y=g!==l,D=function Ez(n){const t=[];return zM(n,t),t}((i.get(g)||gz).map(Qe=>Qe.getRealPlayer())).filter(Qe=>!!Qe.element&&Qe.element===g),C=o.get(g),T=s.get(g),Y=gM(0,this._normalizer,0,p.keyframes,C,T),le=this._buildPlayer(p,Y,D);if(p.subTimeline&&r&&d.add(g),y){const Qe=new e_(t,a,g);Qe.setRealPlayer(le),c.push(Qe)}return le});c.forEach(p=>{ri(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function bz(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>_i(p,SM));const f=co(h);return f.onDestroy(()=>{u.forEach(p=>ua(p,SM)),ir(l,e.toStyles)}),d.forEach(p=>{ri(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ul(t.duration,t.delay)}}class e_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Ul,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Og(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ri(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Fd(n){return n&&1===n.nodeType}function jM(n,t){const e=n.style.display;return n.style.display=t??"none",e}function $M(n,t,e,i,r){const o=[];e.forEach(l=>o.push(jM(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[gi]=_z,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>jM(l,o[a++])),s}function UM(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function _i(n,t){n.classList?.add(t)}function ua(n,t){n.classList?.remove(t)}function Dz(n,t,e){co(e).onDone(()=>n.processLeaveNode(t))}function zM(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Nd{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new vz(t,e,i),this._timelineEngine=new dz(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=zg(this._driver,o,l,[]);if(l.length)throw function cU(n,t){return new E(3404,!1)}();a=function az(n,t,e){return new lz(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=_M(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=_M(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let kz=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ir(this._element,this._initialStyles),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ts(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ts(this._element,this._endStyles),this._endStyles=null),ir(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function t_(n){let t=null;return n.forEach((e,i)=>{(function Az(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class GM{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:IM(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class xz{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return wM(t,e)}getParentElement(t){return Lg(t)}query(t,e,i){return CM(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof GM);(function OU(n,t){return 0===n||0===t})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function xU(n){return n.length?n[0]instanceof Map?n:n.map(t=>MM(t)):[]}(e).map(f=>uo(f));d=function FU(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,IM(n,a)))}}return t}(t,d,c);const h=function Mz(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=t_(t[0]),t.length>1&&(i=t_(t[t.length-1]))):t instanceof Map&&(e=t_(t)),e||i?new kz(n,e,i):null}(t,d);return new GM(t,d,l,h)}}let Tz=(()=>{class n extends dM{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Di.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?hM(e):e;return qM(this._renderer,null,i,"register",[r]),new Iz(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(b(Ga),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Iz extends class B${}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Rz(this._id,t,e||{},this._renderer)}}class Rz{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return qM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function qM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const KM="@.disabled";let Oz=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new YM("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new Fz(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(b(Ga),b(Nd),b(Ie))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class YM{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==KM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Fz extends YM{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==KM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function Nz(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function Pz(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const ZM=[{provide:dM,useClass:Tz},{provide:Yg,useFactory:function Vz(){return new iz}},{provide:Nd,useClass:(()=>{class n extends Nd{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(b(ge),b(Vg),b(Yg),b(Ys))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})()},{provide:Ga,useFactory:function Bz(n,t,e){return new Oz(n,t,e)},deps:[Lu,Nd,Ie]}],n_=[{provide:Vg,useFactory:()=>new xz},{provide:Dr,useValue:"BrowserAnimations"},...ZM],QM=[{provide:Vg,useClass:DM},{provide:Dr,useValue:"NoopAnimations"},...ZM];let Hz=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?QM:n_}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:n_,imports:[qE]}),n})();function i_(n){return n&&"function"==typeof n.connect}class XM{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const d=i(s,a,l);c=e.createEmbeddedView(d.templateRef,d.context,d.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:c?.context,operation:u,record:s})})}detach(){}}class jz{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new H,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const Kl=new k("_ViewRepeater"),$z=["addListener","removeListener"],Uz=["addEventListener","removeEventListener"],zz=["on","off"];function Ld(n,t,e,i){if(Se(e)&&(i=e,e=void 0),i)return Ld(n,t,e).pipe(zm(i));const[r,o]=function qz(n){return Se(n.addEventListener)&&Se(n.removeEventListener)}(n)?Uz.map(s=>a=>n[s](t,a,e)):function Wz(n){return Se(n.addListener)&&Se(n.removeListener)}(n)?$z.map(ek(n,t)):function Gz(n){return Se(n.on)&&Se(n.off)}(n)?zz.map(ek(n,t)):[];if(!r&&Ch(n))return Xt(s=>Ld(s,t,e))(Nn(n));if(!r)throw new TypeError("Invalid event target");return new ne(s=>{const a=(...l)=>s.next(1o(a)})}function ek(n,t){return e=>i=>n[e](t,i)}const Yl={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Yl;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new Be(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=Yl;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Yl;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class Yz extends Im{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Kz extends xm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Yl.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Yl.cancelAnimationFrame(e),t._scheduled=void 0)}});let r_,Qz=1;const Vd={};function tk(n){return n in Vd&&(delete Vd[n],!0)}const Xz={setImmediate(n){const t=Qz++;return Vd[t]=!0,r_||(r_=Promise.resolve()),r_.then(()=>tk(t)&&n()),t},clearImmediate(n){tk(n)}},{setImmediate:Jz,clearImmediate:e3}=Xz,Bd={setImmediate(...n){const{delegate:t}=Bd;return(t?.setImmediate||Jz)(...n)},clearImmediate(n){const{delegate:t}=Bd;return(t?.clearImmediate||e3)(n)},delegate:void 0};new class n3 extends Im{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class t3 extends xm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Bd.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Bd.clearImmediate(e),t._scheduled=void 0)}});function nk(n=0,t,e=NB){let i=-1;return null!=t&&(my(t)?e=t:i=t),new ne(r=>{let o=function s3(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function ik(n,t=Rm){return function o3(n){return Ae((t,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(ce(e,c=>{i=!0,r=c,o||Nn(n(c)).subscribe(o=ce(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>nk(n,t))}let l3=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new H,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ne(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(ik(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):$()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(en(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Uo(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ld(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(ln),b(ge,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hd=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new H,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(ik(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(b(ln),b(Ie),b(ge,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})(),s_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[Cl,Pm,o_],Cl,o_]}),n})();const d3=[[["caption"]],[["colgroup"],["col"]]],h3=["caption","colgroup, col"];function a_(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=nn(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const da=new k("CDK_TABLE");let ha=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["","cdkCellDef",""]]}),n})(),fa=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),jd=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class g3{}const _3=a_(g3);let Vr=(()=>{class n extends _3{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=nn(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(ht(r,ha,5),ht(r,fa,5),ht(r,jd,5)),2&e){let o;Me(o=ke())&&(i.cell=o.first),Me(o=ke())&&(i.headerCell=o.first),Me(o=ke())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),j]}),n})();class l_{constructor(t,e){const i=e.nativeElement.classList;for(const r of t._columnCssClassName)i.add(r)}}let c_=(()=>{class n extends l_{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(m(Vr),m(De))},n.\u0275dir=M({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[j]}),n})(),u_=(()=>{class n extends l_{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(m(Vr),m(De))},n.\u0275dir=M({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[j]}),n})();class ok{constructor(){this.tasks=[],this.endTasks=[]}}const d_=new k("_COALESCED_STYLE_SCHEDULER");let sk=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new H}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ok,this._getScheduleObservable().pipe(Lt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new ok;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Mt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(tn(1))}}return n.\u0275fac=function(e){return new(e||n)(b(Ie))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),h_=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Zl?e.headerCell.template:this instanceof Ql?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr))},n.\u0275dir=M({type:n,features:[zt]}),n})();class y3 extends h_{}const v3=a_(y3);let Zl=(()=>{class n extends v3{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr),m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[j,zt]}),n})();class b3 extends h_{}const w3=a_(b3);let Ql=(()=>{class n extends w3{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr),m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[j,zt]}),n})(),$d=(()=>{class n extends h_{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr),m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[j]}),n})(),Br=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(m(Ot))},n.\u0275dir=M({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),f_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),m_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),Ud=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const ak=["top","bottom","left","right"];class C3{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),d=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",p=h?"left":"right";for(const g of t)for(let _=0;_e[_]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((g,_)=>i[_+d]?g:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,d=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);ak.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of ak)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const g_=new k("CDK_SPL");let zd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","rowOutlet",""]]}),n})(),Wd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),Gd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),qd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Kd=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=d,this._stickyPositioningListener=h,this._onDestroy=new H,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ve,this.viewChange=new ni({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=nn(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=nn(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Lt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),i_(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Yd(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Yd(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Yd(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Yd(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],i_(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;i_(this.dataSource)?e=this.dataSource.connect(this):function u3(n){return!!n&&(n instanceof ne||Se(n.lift)&&Se(n.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$(this.dataSource)),this._renderChangeSubscription=e.pipe(Lt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Br.mostRecentCellOutlet&&Br.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new C3(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:$()).pipe(Lt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){const r=this._noDataRowOutlet.viewContainer;i?r.createEmbeddedView(e.templateRef):r.clear(),this._isShowingNoDataRow=i}}}}return n.\u0275fac=function(e){return new(e||n)(m(Sr),m(er),m(De),Kr("role"),m(Go,8),m(ge),m(ln),m(Kl),m(d_),m(Hd),m(g_,12))},n.\u0275cmp=He({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(ht(r,Ud,5),ht(r,Vr,5),ht(r,$d,5),ht(r,Zl,5),ht(r,Ql,5)),2&e){let o;Me(o=ke())&&(i._noDataRow=o.first),Me(o=ke())&&(i._contentColumnDefs=o),Me(o=ke())&&(i._contentRowDefs=o),Me(o=ke())&&(i._contentHeaderRowDefs=o),Me(o=ke())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(an(zd,7),an(Wd,7),an(Gd,7),an(qd,7)),2&e){let r;Me(r=ke())&&(i._rowOutlet=r.first),Me(r=ke())&&(i._headerRowOutlet=r.first),Me(r=ke())&&(i._footerRowOutlet=r.first),Me(r=ke())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&It("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[ye([{provide:da,useExisting:n},{provide:Kl,useClass:XM},{provide:d_,useClass:sk},{provide:g_,useValue:null}])],ngContentSelectors:h3,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Zi(d3),kt(0),kt(1,1),Ki(2,0)(3,1)(4,2)(5,3))},dependencies:[Wd,zd,qd,Gd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function Yd(n,t){return n.concat(Array.from(t))}let E3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[s_]]}),n})();const S3=[[["caption"]],[["colgroup"],["col"]]],M3=["caption","colgroup, col"];let ck=(()=>{class n extends Kd{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&It("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[ye([{provide:Kl,useClass:XM},{provide:Kd,useExisting:n},{provide:da,useExisting:n},{provide:d_,useClass:sk},{provide:g_,useValue:null}]),j],ngContentSelectors:M3,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Zi(S3),kt(0),kt(1,1),Ki(2,0)(3,1)(4,2)(5,3))},dependencies:[Wd,zd,qd,Gd],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),n})(),__=(()=>{class n extends ha{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matCellDef",""]],features:[ye([{provide:ha,useExisting:n}]),j]}),n})(),y_=(()=>{class n extends fa{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matHeaderCellDef",""]],features:[ye([{provide:fa,useExisting:n}]),j]}),n})(),v_=(()=>{class n extends Vr{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[ye([{provide:Vr,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),j]}),n})(),b_=(()=>{class n extends c_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[j]}),n})(),w_=(()=>{class n extends u_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[j]}),n})(),uk=(()=>{class n extends Zl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[ye([{provide:Zl,useExisting:n}]),j]}),n})(),dk=(()=>{class n extends $d{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[ye([{provide:$d,useExisting:n}]),j]}),n})(),hk=(()=>{class n extends f_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[ye([{provide:f_,useExisting:n}]),j],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),fk=(()=>{class n extends m_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[ye([{provide:m_,useExisting:n}]),j],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),P3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[E3,vt],vt]}),n})();class C_{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Xl extends C_{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Zd extends C_{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class V3 extends C_{constructor(t){super(),this.element=t instanceof De?t.nativeElement:t}}class Qd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Xl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Zd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof V3?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class B3 extends Qd{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Xd=(()=>{class n extends Qd{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new ve,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(m(No),m(Ot),m(ge))},n.\u0275dir=M({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[j]}),n})(),D_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();const pk=BB();class H3{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vt(-this._previousScrollPosition.left),t.style.top=Vt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),pk&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pk&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class j3{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mk{enable(){}disable(){}attach(){}}function E_(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function gk(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class $3{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();E_(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let U3=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new mk,this.close=s=>new j3(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new H3(this._viewportRuler,this._document),this.reposition=s=>new $3(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(b(l3),b(Hd),b(Ie),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Jd{constructor(t){if(this.scrollStrategy=new mk,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class z3{constructor(t,e,i,r,o){this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class W3{}let G3=(()=>{let n=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};return n=function pt(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([xe(1,xi()),Hn("design:paramtypes",[z3,W3])],n),n})(),_k=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q3=(()=>{class n extends _k{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--)if(r[o]._keydownEvents.observers.length>0){r[o]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),K3=(()=>{class n extends _k{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Wo(r)},this._clickListener=r=>{const o=Wo(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(o)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(b(ge),b(ln))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),S_=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Bm()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._keydownEvents=new H,this._outsidePointerEvents=new H,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(tn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Vt(this._config.width),t.height=Vt(this._config.height),t.minWidth=Vt(this._config.minWidth),t.minHeight=Vt(this._config.minHeight),t.maxWidth=Vt(this._config.maxWidth),t.maxHeight=Vt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=Bu(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Lt(Do(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}const yk="cdk-overlay-connected-position-bounding-box",Z3=/([A-Za-z%]+)$/;class Q3{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new H,this._resizeSubscription=Be.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(yk),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=[];let o;for(let s of this._preferredPositions){let a=this._getOriginPoint(t,s),l=this._getOverlayPoint(a,e,s),c=this._getOverlayFit(l,e,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!o||o.overlayFit.visibleAreaa&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&is(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yk),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,r;if("center"==e.originX)i=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?o:s}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:r}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=bk(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),g=this._subtractOverflows(o.height,h,f),_=p*g;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=vk(this._overlayRef.getConfig().minHeight),a=vk(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=bk(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Vt(i.height),r.top=Vt(i.top),r.bottom=Vt(i.bottom),r.width=Vt(i.width),r.left=Vt(i.left),r.right=Vt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Vt(o)),s&&(r.maxWidth=Vt(s))}this._lastBoundingBoxSize=i,is(this._boundingBox.style,r)}_resetBoundingBoxStyles(){is(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){is(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();is(i,this._getExactOverlayY(e,t,u)),is(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Vt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Vt(s.maxWidth):o&&(i.maxWidth="")),is(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Vt(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Vt(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gk(t,i),isOriginOutsideView:E_(t,i),isOverlayClipped:gk(e,i),isOverlayOutsideView:E_(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Bu(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof De)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function is(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function vk(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(Z3);return e&&"px"!==e?null:parseFloat(t)}return n||null}function bk(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const wk="cdk-global-overlay-wrapper";class X3{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(wk),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(wk),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let J3=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new X3}flexibleConnectedTo(e){return new Q3(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(b(Hd),b(ge),b(ln),b(S_))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),e5=0,rs=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Jd(e);return s.direction=s.direction||this._directionality.value,new Y3(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+e5++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ys)),new B3(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(b(U3),b(S_),b(No),b(J3),b(q3),b(Dt),b(Ie),b(ge),b(Go),b(jo),b(K3))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const t5=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ck=new k("cdk-connected-overlay-scroll-strategy");let Dk=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(m(De))},n.\u0275dir=M({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Ek=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Be.EMPTY,this._attachSubscription=Be.EMPTY,this._detachSubscription=Be.EMPTY,this._positionSubscription=Be.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ve,this.positionChange=new ve,this.attach=new ve,this.detach=new ve,this.overlayKeydown=new ve,this.overlayOutsideClick=new ve,this._templatePortal=new Zd(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=nn(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=nn(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=nn(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=nn(e)}get push(){return this._push}set push(e){this._push=nn(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=t5);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Zs(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Jd({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Dk?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(tS(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(rs),m(Rt),m(Ot),m(Ck),m(Go,8))},n.\u0275dir=M({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[zt]}),n})();const i5={provide:Ck,deps:[rs],useFactory:function n5(n){return()=>n.scrollStrategies.reposition()}};let M_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[rs,i5],imports:[[Cl,D_,s_],s_]}),n})();function r5(n,t){}class k_{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const o5={dialogContainer:$l("dialogContainer",[ao("void, exit",xn({opacity:0,transform:"scale(0.7)"})),ao("enter",xn({transform:"none"})),lo("* => enter",Jo("150ms cubic-bezier(0, 0, 0.2, 1)",xn({transform:"none",opacity:1}))),lo("* => void, * => exit",Jo("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",xn({opacity:0})))])};let s5=(()=>{class n extends Qd{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=s,this._interactivityChecker=a,this._ngZone=l,this._focusMonitor=c,this._animationStateChanged=new ve,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=o}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Vm(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Vm())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Vm();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(n2),m(er),m(ge,8),m(k_),m(l0),m(Ie),m(m0))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&an(Xd,7),2&e){let r;Me(r=ke())&&(i._portalOutlet=r.first)}},features:[j]}),n})(),a5=(()=>{class n extends s5{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&nu("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(el("id",i._id),et("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),ou("@dialogContainer",i._state))},features:[j],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&W(0,r5,0,0,"ng-template",0)},dependencies:[Xd],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[o5.dialogContainer]}}),n})(),l5=0;class Jl{constructor(t,e,i="mat-dialog-"+l5++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new H,this._afterClosed=new H,this._beforeClosed=new H,this._state=0,e._id=i,e._animationStateChanged.pipe(en(r=>"opened"===r.state),tn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(en(r=>"closed"===r.state),tn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(en(r=>27===r.keyCode&&!this.disableClose&&!Zs(r))).subscribe(r=>{r.preventDefault(),A_(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():A_(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(en(e=>"closing"===e.state),tn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function A_(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const x_=new k("MatDialogData"),c5=new k("mat-dialog-default-options"),Sk=new k("mat-dialog-scroll-strategy"),d5={provide:Sk,deps:[rs],useFactory:function u5(n){return()=>n.scrollStrategies.block()}};let h5=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new H,this._afterOpenedAtThisLevel=new H,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Qu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rr(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){if(i=function f5(n,t){return{...t,...n}}(i,this._defaultOptions||new k_),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(i),o=this._attachDialogContainer(r,i);if("NoopAnimations"!==this._animationMode){const a=o._animationStateChanged.subscribe(l=>{"opening"===l.state&&(this._dialogAnimatingOpen=!0),"opened"===l.state&&(this._dialogAnimatingOpen=!1,a.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Be),this._animationStateSubscriptions.add(a)}const s=this._attachDialogContent(e,o,r,i);return this._lastDialogRef=s,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),o._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Jd({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const o=Dt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:k_,useValue:i}]}),s=new Xl(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return e.attach(s).instance}_attachDialogContent(e,i,r,o){const s=new this._dialogRefConstructor(r,i,o.id);if(e instanceof Rt)i.attachTemplatePortal(new Zd(e,null,{$implicit:o.data,dialogRef:s}));else{const a=this._createInjector(o,s,i),l=i.attachComponentPortal(new Xl(e,o.viewContainerRef,a));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}_createInjector(e,i,r){const o=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!o||!o.get(Go,null,ee.Optional))&&s.push({provide:Go,useValue:{value:e.direction,change:$()}}),Dt.create({parent:o||this._injector,providers:s})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,o)=>{r?o.setAttribute("aria-hidden",r):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){qa()},n.\u0275dir=M({type:n}),n})(),eh=(()=>{class n extends h5{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,Jl,a5,x_,c)}}return n.\u0275fac=function(e){return new(e||n)(b(rs),b(Dt),b(jo,8),b(c5,8),b(Sk),b(n,12),b(S_),b(Dr,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),p5=0,Mk=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Tk(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){A_(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(m(Jl,8),m(De),m(eh))},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&Ge("click",function(o){return i._onButtonClick(o)}),2&e&&et("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[zt]}),n})(),kk=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+p5++}ngOnInit(){this._dialogRef||(this._dialogRef=Tk(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(m(Jl,8),m(De),m(eh))},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&el("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Ak=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),xk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})();function Tk(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let m5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[eh,d5],imports:[[M_,D_,vt],vt]}),n})(),Ik=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),g5=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Uo(e);return new ne(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new H,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(b(Ik))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_5=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new ve,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=nn(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qs(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Om(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(g5),m(De),m(Ie))},n.\u0275dir=M({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),y5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[Ik]}),n})();const v5=["connectionContainer"],b5=["inputContainer"],w5=["label"];function C5(n,t){1&n&&(Jn(0),x(1,"div",14),_t(2,"div",15)(3,"div",16)(4,"div",17),R(),x(5,"div",18),_t(6,"div",15)(7,"div",16)(8,"div",17),R(),ei())}function D5(n,t){1&n&&(x(0,"div",19),kt(1,1),R())}function E5(n,t){if(1&n&&(Jn(0),kt(1,2),x(2,"span"),re(3),R(),ei()),2&n){const e=he(2);O(3),Vn(e._control.placeholder)}}function S5(n,t){1&n&&kt(0,3,["*ngSwitchCase","true"])}function M5(n,t){1&n&&(x(0,"span",23),re(1," *"),R())}function k5(n,t){if(1&n){const e=Yi();x(0,"label",20,21),Ge("cdkObserveContent",function(){return ki(e),Ai(he().updateOutlineGap())}),W(2,E5,4,1,"ng-container",12),W(3,S5,1,0,"ng-content",12),W(4,M5,2,0,"span",22),R()}if(2&n){const e=he();It("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),F("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),et("for",e._control.id)("aria-owns",e._control.id),O(2),F("ngSwitchCase",!1),O(1),F("ngSwitchCase",!0),O(1),F("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function A5(n,t){1&n&&(x(0,"div",24),kt(1,4),R())}function x5(n,t){if(1&n&&(x(0,"div",25),_t(1,"span",26),R()),2&n){const e=he();O(1),It("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function T5(n,t){1&n&&(x(0,"div"),kt(1,5),R()),2&n&&F("@transitionMessages",he()._subscriptAnimationState)}function I5(n,t){if(1&n&&(x(0,"div",30),re(1),R()),2&n){const e=he(2);F("id",e._hintLabelId),O(1),Vn(e.hintLabel)}}function R5(n,t){if(1&n&&(x(0,"div",27),W(1,I5,2,2,"div",28),kt(2,6),_t(3,"div",29),kt(4,7),R()),2&n){const e=he();F("@transitionMessages",e._subscriptAnimationState),O(1),F("ngIf",e.hintLabel)}}const O5=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],F5=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],N5=new k("MatError"),P5={transitionMessages:$l("transitionMessages",[ao("enter",xn({opacity:1,transform:"translateY(0%)"})),lo("void => enter",[xn({opacity:0,transform:"translateY(-5px)"}),Jo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let T_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})();const L5=new k("MatHint");let th=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-label"]]}),n})(),V5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-placeholder"]]}),n})();const B5=new k("MatPrefix"),H5=new k("MatSuffix");let Rk=0;const $5=Dl(class{constructor(n){this._elementRef=n}},"primary"),U5=new k("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Fk=new k("MatFormField");let Nk=(()=>{class n extends $5{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new H,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Rk++,this._labelId="mat-form-field-label-"+Rk++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=nn(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Rr(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Lt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Lt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Do(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Rr(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Rr(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Lt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ld(this._label.nativeElement,"transitionend").pipe(tn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,r=0;const o=this._connectionContainerRef.nativeElement,s=o.querySelectorAll(".mat-form-field-outline-start"),a=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=o.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),u=e.children,d=this._getStartEnd(u[0].getBoundingClientRect());let h=0;for(let f=0;f0?.75*h+10:0}for(let l=0;l{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[to,vt,y5],vt]}),n})(),Pk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[Pm]]}),n})(),z5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[C0],imports:[[Pk,nh,vt],Pk,nh]}),n})();function ho(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function Bk(n){return null!=n&&"number"==typeof n.length}const yn=new k("NgValidators"),fo=new k("NgAsyncValidators"),Z5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Q5{static min(t){return function Hk(n){return t=>{if(ho(t.value)||ho(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(ho(t.value)||ho(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function $k(n){return ho(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Uk(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function zk(n){return ho(n.value)||Z5.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function Wk(n){return t=>ho(t.value)||!Bk(t.value)?null:t.value.lengthBk(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function qk(n){if(!n)return ih;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ho(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Jk(t)}static composeAsync(t){return eA(t)}}function ih(n){return null}function Kk(n){return null!=n}function Yk(n){return Xa(n)?Mt(n):n}function Zk(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function Qk(n,t){return t.map(e=>e(n))}function Xk(n){return n.map(t=>function X5(n){return!n.validate}(t)?t:e=>t.validate(e))}function Jk(n){if(!n)return null;const t=n.filter(Kk);return 0==t.length?null:function(e){return Zk(Qk(e,t))}}function R_(n){return null!=n?Jk(Xk(n)):null}function eA(n){if(!n)return null;const t=n.filter(Kk);return 0==t.length?null:function(e){return O0(Qk(e,t).map(Yk)).pipe(L(Zk))}}function O_(n){return null!=n?eA(Xk(n)):null}function tA(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function nA(n){return n._rawValidators}function iA(n){return n._rawAsyncValidators}function F_(n){return n?Array.isArray(n)?n:[n]:[]}function rh(n,t){return Array.isArray(n)?n.includes(t):n===t}function rA(n,t){const e=F_(t);return F_(n).forEach(r=>{rh(e,r)||e.push(r)}),e}function oA(n,t){return F_(t).filter(e=>!rh(n,e))}class sA{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=R_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=O_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Tn extends sA{get formDirective(){return null}get path(){return null}}class Hr extends sA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}const ec="VALID",sh="INVALID",pa="PENDING",tc="DISABLED";function V_(n){return(ah(n)?n.validators:n)||null}function cA(n){return Array.isArray(n)?R_(n):n||null}function B_(n,t){return(ah(t)?t.asyncValidators:n)||null}function uA(n){return Array.isArray(n)?O_(n):n||null}function ah(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class fA{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=cA(this._rawValidators),this._composedAsyncValidatorFn=uA(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ec}get invalid(){return this.status===sh}get pending(){return this.status==pa}get disabled(){return this.status===tc}get enabled(){return this.status!==tc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=cA(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=uA(t)}addValidators(t){this.setValidators(rA(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(rA(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(oA(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(oA(t,this._rawAsyncValidators))}hasValidator(t){return rh(this._rawValidators,t)}hasAsyncValidator(t){return rh(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=pa,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=tc,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ec,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ec||this.status===pa)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?tc:ec}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=pa,this._hasOwnPendingAsyncValidator=!0;const e=Yk(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?tc:this.errors?sh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pa)?pa:this._anyControlsHaveStatus(sh)?sh:ec}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ah(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class H_ extends fA{constructor(t,e,i){super(V_(e),B_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function hA(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new E(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function dA(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new E(1e3,"");if(!i[e])throw new E(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function nc(n,t){j_(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function c8(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&pA(n,t)})}(n,t),function d8(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function u8(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&pA(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function l8(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function ch(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),dh(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function uh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function j_(n,t){const e=nA(n);null!==t.validator?n.setValidators(tA(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=iA(n);null!==t.asyncValidator?n.setAsyncValidators(tA(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();uh(t._rawValidators,r),uh(t._rawAsyncValidators,r)}function dh(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=nA(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=iA(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return uh(t._rawValidators,i),uh(t._rawAsyncValidators,i),e}function pA(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function mA(n,t){j_(n,t)}function _A(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const g8={provide:Tn,useExisting:ot(()=>hh)},ic=(()=>Promise.resolve())();let hh=(()=>{class n extends Tn{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new ve,this.form=new H_({},R_(e),O_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ic.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),nc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ic.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ic.then(()=>{const i=this._findContainer(e.path),r=new H_({});mA(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ic.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){ic.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,_A(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(m(yn,10),m(fo,10))},n.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Ge("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([g8]),j]}),n})();function yA(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function vA(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const bA=class extends fA{constructor(t=null,e,i){super(V_(e),B_(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ah(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=vA(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){yA(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){yA(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){vA(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},k8={provide:Tn,useExisting:ot(()=>fh)};let fh=(()=>{class n extends Tn{constructor(e,i){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(dh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return nc(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){ch(e.control||null,e,!1),function m8(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,_A(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(ch(i||null,e),(n=>n instanceof bA)(r)&&(nc(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);mA(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function h8(n,t){return dh(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){j_(this.form,this),this._oldForm&&dh(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(m(yn,10),m(fo,10))},n.\u0275dir=M({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Ge("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([k8]),j,zt]}),n})();const G8=["trigger"],q8=["panel"];function K8(n,t){if(1&n&&(x(0,"span",8),re(1),R()),2&n){const e=he();O(1),Vn(e.placeholder)}}function Y8(n,t){if(1&n&&(x(0,"span",12),re(1),R()),2&n){const e=he(2);O(1),Vn(e.triggerValue)}}function Z8(n,t){1&n&&kt(0,0,["*ngSwitchCase","true"])}function Q8(n,t){1&n&&(x(0,"span",9),W(1,Y8,2,1,"span",10),W(2,Z8,1,0,"ng-content",11),R()),2&n&&(F("ngSwitch",!!he().customTrigger),O(2),F("ngSwitchCase",!0))}function X8(n,t){if(1&n){const e=Yi();x(0,"div",13)(1,"div",14,15),Ge("@transformPanel.done",function(r){return ki(e),Ai(he()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return ki(e),Ai(he()._handleKeydown(r))}),kt(3,1),R()()}if(2&n){const e=he();F("@transformPanelWrap",void 0),O(1),eC("mat-select-panel ",e._getPanelTheme(),""),Mn("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),F("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),et("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const J8=[[["mat-select-trigger"]],"*"],e4=["mat-select-trigger","*"],UA={transformPanelWrap:$l("transformPanelWrap",[lo("* => void",j$("@transformPanel",[H$()],{optional:!0}))]),transformPanel:$l("transformPanel",[ao("void",xn({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ao("showing",xn({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ao("showing-multiple",xn({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),lo("void => *",Jo("120ms cubic-bezier(0, 0, 0.2, 1)")),lo("* => void",Jo("100ms 25ms linear",xn({opacity:0})))])};let zA=0;const GA=new k("mat-select-scroll-strategy"),o4=new k("MAT_SELECT_CONFIG"),s4={provide:GA,deps:[rs],useFactory:function r4(n){return()=>n.scrollStrategies.reposition()}};class a4{constructor(t,e){this.source=t,this.value=e}}const l4=w0(v2(b0(b2(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),c4=new k("MatSelectTrigger");let u4=(()=>{class n extends l4{constructor(e,i,r,o,s,a,l,c,u,d,h,f,p,g){super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=p,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(_,y)=>_===y,this._uid="mat-select-"+zA++,this._triggerAriaLabelledBy=null,this._destroy=new H,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+zA++,this._panelDoneAnimatingStream=new H,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Qu(()=>{const _=this.options;return _?_.changes.pipe(Rr(_),ii(()=>Do(..._.map(y=>y.onSelectionChange)))):this._ngZone.onStable.pipe(tn(1),ii(()=>this.optionSelectionChanges))}),this.openedChange=new ve,this._openedStream=this.openedChange.pipe(en(_=>_),L(()=>{})),this._closedStream=this.openedChange.pipe(en(_=>!_),L(()=>{})),this.selectionChange=new ve,this.valueChange=new ve,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Q5.required)??!1}set required(e){this._required=nn(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=nn(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=nn(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qs(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new jz(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fm(),Lt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Lt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Rr(null),Lt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!Zs(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||Zs(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(tn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new zB(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Lt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Lt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Do(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Lt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Do(...this.options.map(i=>i._stateChanges)).pipe(Lt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(m(Hd),m(er),m(Ie),m(C0),m(De),m(Go,8),m(hh,8),m(fh,8),m(Fk,8),m(Hr,10),Kr("tabindex"),m(GA),m(p0),m(o4,8))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&(an(G8,5),an(q8,5),an(Ek,5)),2&e){let r;Me(r=ke())&&(i.trigger=r.first),Me(r=ke())&&(i.panel=r.first),Me(r=ke())&&(i._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[j,zt]}),n})(),qA=(()=>{class n extends u4{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Lt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(tn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=x0(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function O2(n,t,e,i){return ne+i?Math.max(0,n-i+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new a4(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=x0(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(ht(r,c4,5),ht(r,Um,5),ht(r,A0,5)),2&e){let o;Me(o=ke())&&(i.customTrigger=o.first),Me(o=ke())&&(i.options=o),Me(o=ke())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&Ge("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(et("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),It("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[ye([{provide:T_,useExisting:n},{provide:k0,useExisting:n}]),j],ngContentSelectors:e4,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Zi(J8),x(0,"div",0,1),Ge("click",function(){return i.toggle()}),x(3,"div",2),W(4,K8,2,1,"span",3),W(5,Q8,3,2,"span",4),R(),x(6,"div",5),_t(7,"div",6),R()(),W(8,X8,4,14,"ng-template",7),Ge("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=tu(1);et("aria-owns",i.panelOpen?i.id+"-panel":null),O(3),F("ngSwitch",i.empty),et("id",i._valueId),O(1),F("ngSwitchCase",!0),O(1),F("ngSwitchCase",!1),O(3),F("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Dk,$o,ml,CE,Ek,fm],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[UA.transformPanelWrap,UA.transformPanel]},changeDetection:0}),n})(),d4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[s4],imports:[[to,M_,T0,vt],o_,nh,T0,vt]}),n})();function h4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}function f4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}function p4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}function m4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}const y4=Dl(class{constructor(n){this._elementRef=n}},"primary"),KA=new k("mat-progress-spinner-default-options",{providedIn:"root",factory:function v4(){return{diameter:100}}});class jr extends y4{constructor(t,e,i,r,o){super(t),this._document=i,this._diameter=100,this._value=0,this.mode="determinate";const s=jr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Qs(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Qs(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Qs(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=o0(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=jr._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}jr._diameters=new WeakMap,jr.\u0275fac=function(t){return new(t||jr)(m(De),m(ln),m(ge,8),m(Dr,8),m(KA))},jr.\u0275cmp=He({type:jr,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(et("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Mn("width",e.diameter,"px")("height",e.diameter,"px"),It("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[j],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(xo(),x(0,"svg",0),W(1,h4,1,9,"circle",1),W(2,f4,1,7,"circle",2),R()),2&t&&(Mn("width",e.diameter,"px")("height",e.diameter,"px"),F("ngSwitch","indeterminate"===e.mode),et("viewBox",e._getViewBox()),O(1),F("ngSwitchCase",!0),O(1),F("ngSwitchCase",!1))},dependencies:[$o,ml],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let w4=(()=>{class n extends jr{constructor(e,i,r,o,s){super(e,i,r,o,s),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(ln),m(ge,8),m(Dr,8),m(KA))},n.\u0275cmp=He({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(Mn("width",i.diameter,"px")("height",i.diameter,"px"),It("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[j],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(xo(),x(0,"svg",0),W(1,p4,1,9,"circle",1),W(2,m4,1,7,"circle",2),R()),2&e&&(Mn("width",i.diameter,"px")("height",i.diameter,"px"),F("ngSwitch","indeterminate"===i.mode),et("viewBox",i._getViewBox()),O(1),F("ngSwitchCase",!0),O(1),F("ngSwitchCase",!1))},dependencies:[$o,ml],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),n})(),C4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt,to],vt]}),n})();const YA=new Set;let ga,D4=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S4}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function E4(n){if(!YA.has(n))try{ga||(ga=document.createElement("style"),ga.setAttribute("type","text/css"),document.head.appendChild(ga)),ga.sheet&&(ga.sheet.insertRule(`@media ${n} {body{ }}`,0),YA.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(b(ln))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function S4(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let M4=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new H}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ZA(Bu(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Jm(ZA(Bu(e)).map(s=>this._registerQuery(s).observable));return o=Zu(o.pipe(tn(1)),o.pipe(n0(1),Om(0))),o.pipe(L(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new ne(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Rr(i),L(({matches:s})=>({query:e,matches:s})),Lt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(b(D4),b(Ie))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ZA(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function A4(n,t){if(1&n){const e=Yi();x(0,"div",1)(1,"button",2),Ge("click",function(){return ki(e),Ai(he().action())}),re(2),R()()}if(2&n){const e=he();O(2),Vn(e.data.action)}}function x4(n,t){}const Z_=new k("MatSnackBarData");class mh{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const T4=Math.pow(2,31)-1;class Q_{constructor(t,e){this._overlayRef=e,this._afterDismissed=new H,this._afterOpened=new H,this._onAction=new H,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,T4))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let I4=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(m(Q_),m(Z_))},n.\u0275cmp=He({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(x(0,"span"),re(1),R(),W(2,A4,3,1,"div",0)),2&e&&(O(1),Vn(i.data.message),O(1),F("ngIf",i.hasAction))},dependencies:[Al,eo],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),n})();const R4={snackBarState:$l("state",[ao("void, hidden",xn({transform:"scale(0.8)",opacity:0})),ao("visible",xn({transform:"scale(1)",opacity:1})),lo("* => visible",Jo("150ms cubic-bezier(0, 0, 0.2, 1)")),lo("* => void, * => hidden",Jo("75ms cubic-bezier(0.4, 0.0, 1, 1)",xn({opacity:0})))])};let O4=(()=>{class n extends Qd{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new H,this._onExit=new H,this._onEnter=new H,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(tn(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(m(Ie),m(De),m(er),m(ln),m(mh))},n.\u0275cmp=He({type:n,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&an(Xd,7),2&e){let r;Me(r=ke())&&(i._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&nu("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&ou("@state",i._animationState)},features:[j],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(x(0,"div",0),W(1,x4,0,0,"ng-template",1),R(),_t(2,"div")),2&e&&(O(2),et("aria-live",i._live)("role",i._role))},dependencies:[Xd],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[R4.snackBarState]}}),n})(),QA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[M_,D_,to,Y0,vt],vt]}),n})();const F4=new k("mat-snack-bar-default-options",{providedIn:"root",factory:function N4(){return new mh}});let XA=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=I4,this.snackBarContainerComponent=O4,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Dt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:mh,useValue:i}]}),s=new Xl(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new mh,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Q_(s,o);if(e instanceof Rt){const l=new Zd(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new Xl(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Lt(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Jd;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Dt.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Q_,useValue:i},{provide:Z_,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(b(rs),b(p0),b(Dt),b(M4),b(n,12),b(F4))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:QA}),n})();function JA(n){return n&&"?"!==n[0]?"?"+n:n}let P4=(()=>{class n{constructor(){this.urlChanges=[],this._history=[new ex("","",null)],this._historyIndex=0,this._subject=new ve,this._baseHref="",this._locationStrategy=null,this._urlChangeListeners=[],this._urlChangeSubscription=null}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}setInitialPath(e){this._history[this._historyIndex].path=e}setBaseHref(e){this._baseHref=e}path(){return this._history[this._historyIndex].path}getState(){return this._history[this._historyIndex].state}isCurrentPathEqualTo(e,i=""){const r=e.endsWith("/")?e.substring(0,e.length-1):e;return(this.path().endsWith("/")?this.path().substring(0,this.path().length-1):this.path())==r+(i.length>0?"?"+i:"")}simulateUrlPop(e){this._subject.emit({url:e,pop:!0,type:"popstate"})}simulateHashChange(e){const i=this.prepareExternalUrl(e);this.pushHistory(i,"",null),this.urlChanges.push("hash: "+e),this._subject.emit({url:e,pop:!0,type:"popstate"}),this._subject.emit({url:e,pop:!0,type:"hashchange"})}prepareExternalUrl(e){return e.length>0&&!e.startsWith("/")&&(e="/"+e),this._baseHref+e}go(e,i="",r=null){e=this.prepareExternalUrl(e),this.pushHistory(e,i,r);const o=this._history[this._historyIndex-1];o.path==e&&o.query==i||(this.urlChanges.push(e+(i.length>0?"?"+i:"")),this._notifyUrlChangeListeners(e+JA(i),r))}replaceState(e,i="",r=null){e=this.prepareExternalUrl(e);const o=this._history[this._historyIndex];o.path==e&&o.query==i||(o.path=e,o.query=i,o.state=r,this.urlChanges.push("replace: "+e+(i.length>0?"?"+i:"")),this._notifyUrlChangeListeners(e+JA(i),r))}forward(){this._historyIndex0&&(this._historyIndex--,this._subject.emit({url:this.path(),state:this.getState(),pop:!0,type:"popstate"}))}historyGo(e=0){const i=this._historyIndex+e;i>=0&&i{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}normalize(e){return null}pushHistory(e,i,r){this._historyIndex>0&&this._history.splice(this._historyIndex+1),this._history.push(new ex(e,i,r)),this._historyIndex=this._history.length-1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class ex{constructor(t,e,i){this.path=t,this.query=e,this.state=i}}let L4=(()=>{class n extends Ar{constructor(){super(),this.internalBaseHref="/",this.internalPath="/",this.internalTitle="",this.urlChanges=[],this._subject=new ve,this.stateChanges=[]}simulatePopState(e){this.internalPath=e,this._subject.emit(new V4(this.path()))}path(e=!1){return this.internalPath}prepareExternalUrl(e){return e.startsWith("/")&&this.internalBaseHref.endsWith("/")?this.internalBaseHref+e.substring(1):this.internalBaseHref+e}pushState(e,i,r,o){this.stateChanges.push(e),this.internalTitle=i;const s=r+(o.length>0?"?"+o:"");this.internalPath=s;const a=this.prepareExternalUrl(s);this.urlChanges.push(a)}replaceState(e,i,r,o){this.stateChanges[(this.stateChanges.length||1)-1]=e,this.internalTitle=i;const s=r+(o.length>0?"?"+o:"");this.internalPath=s;const a=this.prepareExternalUrl(s);this.urlChanges.push("replace: "+a)}onPopState(e){this._subject.subscribe({next:e})}getBaseHref(){return this.internalBaseHref}back(){this.urlChanges.length>0&&(this.urlChanges.pop(),this.stateChanges.pop(),this.simulatePopState(this.urlChanges.length>0?this.urlChanges[this.urlChanges.length-1]:""))}forward(){throw"not implemented"}getState(){return this.stateChanges[(this.stateChanges.length||1)-1]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class V4{constructor(t){this.newUrl=t,this.pop=!0,this.type="popstate"}}const H4=[];function $4(n,t,e,i,r,o,s,a,l,c){return function U4(n,t,e,i,r,o,s,a,l,c){const u=new Yt(null,n,t,e,r,i,ng(o));return s&&(function j4(n){return"shouldProcessUrl"in n}(s)?u.urlHandlingStrategy=s:QS(s,u)),a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),u.titleStrategy=c,u}(n,t,e,i,r,o,a,l,c,s)}let z4=(()=>{class n{static withRoutes(e,i){return{ngModule:n,providers:[jl(e),{provide:la,useValue:i||{}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[cM,H4,{provide:jo,useClass:P4},{provide:Ar,useClass:L4},{provide:Yt,useFactory:$4,deps:[rg,oa,jo,gu,Dt,md,Mg,la,[ZS,new xi],[KS,new xi]]},aM(b$).\u0275providers,jl([])],imports:[bd]}),n})();class W4 extends H{constructor(t=1/0,e=1/0,i=Tm){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(t),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s"']/,K4=new RegExp(nx.source,"g"),ix=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Y4=new RegExp(ix.source,"g"),Z4={"&":"&","<":"<",">":">",'"':""","'":"'"},rx=n=>Z4[n];function vn(n,t){if(t){if(nx.test(n))return n.replace(K4,rx)}else if(ix.test(n))return n.replace(Y4,rx);return n}const Q4=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ox(n){return n.replace(Q4,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const X4=/(^|[^\[])\^/g;function rt(n,t){n="string"==typeof n?n:n.source,t=t||"";const e={replace:(i,r)=>(r=(r=r.source||r).replace(X4,"$1"),n=n.replace(i,r),e),getRegex:()=>new RegExp(n,t)};return e}const J4=/[^\w:]/g,eW=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function sx(n,t,e){if(n){let i;try{i=decodeURIComponent(ox(e)).replace(J4,"").toLowerCase()}catch{return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!eW.test(e)&&(e=function rW(n,t){gh[" "+n]||(gh[" "+n]=tW.test(n)?n+"/":yh(n,"/",!0));const e=-1===(n=gh[" "+n]).indexOf(":");return"//"===t.substring(0,2)?e?t:n.replace(nW,"$1")+t:"/"===t.charAt(0)?e?t:n.replace(iW,"$1")+t:n+t}(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const gh={},tW=/^[^:]+:\/*[^/]*$/,nW=/^([^:]+:)[\s\S]*$/,iW=/^([^:]+:\/*[^/]*)[\s\S]*$/,_h={exec:function(){}};function ax(n,t){const i=n.replace(/\|/g,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length1;)1&t&&(e+=n),t>>=1,n+=n;return e+n}function cx(n,t,e,i){const r=t.href,o=t.title?vn(t.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;const a={type:"link",raw:e,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,a}return{type:"image",raw:e,href:r,title:o,text:vn(s)}}class X_{constructor(t){this.options=t||as}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const i=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:yh(i,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const i=e[0],r=function aW(n,t){const e=n.match(/^(\s+)(?:```)/);if(null===e)return t;const i=e[1];return t.split("\n").map(r=>{const o=r.match(/^\s+/);if(null===o)return r;const[s]=o;return s.length>=i.length?r.slice(i.length):r}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(/#$/.test(i)){const r=yh(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const i=e[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(i);return this.lexer.state.top=r,{type:"blockquote",raw:e[0],tokens:o,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let i,r,o,s,a,l,c,u,d,h,f,p,g=e[1].trim();const _=g.length>1,y={type:"list",raw:"",ordered:_,start:_?+g.slice(0,-1):"",loose:!1,items:[]};g=_?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=_?g:"[*+-]");const D=new RegExp(`^( {0,3}${g})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(p=!1,(e=D.exec(t))&&!this.rules.block.hr.test(t));){if(i=e[0],t=t.substring(i.length),u=e[2].split("\n",1)[0].replace(/^\t+/,T=>" ".repeat(3*T.length)),d=t.split("\n",1)[0],this.options.pedantic?(s=2,f=u.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,f=u.slice(s),s+=e[1].length),l=!1,!u&&/^ *$/.test(d)&&(i+=d+"\n",t=t.substring(d.length+1),p=!0),!p){const T=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),Y=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),le=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),Qe=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;t&&(h=t.split("\n",1)[0],d=h,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(le.test(d)||Qe.test(d)||T.test(d)||Y.test(t)));){if(d.search(/[^ ]/)>=s||!d.trim())f+="\n"+d.slice(s);else{if(l||u.search(/[^ ]/)>=4||le.test(u)||Qe.test(u)||Y.test(u))break;f+="\n"+d}!l&&!d.trim()&&(l=!0),i+=h+"\n",t=t.substring(h.length+1),u=d.slice(s)}}y.loose||(c?y.loose=!0:/\n *\n *$/.test(i)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f),r&&(o="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:i,task:!!r,checked:o,loose:!1,text:f}),y.raw+=i}y.items[y.items.length-1].raw=i.trimRight(),y.items[y.items.length-1].text=f.trimRight(),y.raw=y.raw.trimRight();const C=y.items.length;for(a=0;a"space"===le.type),Y=T.length>0&&T.some(le=>/\n.*\n/.test(le.raw));y.loose=Y}if(y.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:r,title:o}}}table(t){const e=this.rules.block.table.exec(t);if(e){const i={type:"table",header:ax(e[1]).map(r=>({text:r})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];let o,s,a,l,r=i.align.length;for(o=0;o({text:c}));for(r=i.header.length,s=0;s/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):vn(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const s=yh(i.slice(0,-1),"\\");if((i.length-s.length)%2==0)return}else{const s=function oW(n,t){if(-1===n.indexOf(t[1]))return-1;const e=n.length;let i=0,r=0;for(;r-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=e[3]?e[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),cx(e,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=e[r.toLowerCase()],!r){const o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return cx(i,r,i[0],this.lexer)}}emStrong(t,e,i=""){let r=this.rules.inline.emStrong.lDelim.exec(t);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){const s=r[0].length-1;let a,l,c=s,u=0;const d="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,e=e.slice(-1*t.length+s);null!=(r=d.exec(e));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=a.length,r[3]||r[4]){c+=l;continue}if((r[5]||r[6])&&s%3&&!((s+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const h=t.slice(0,s+r.index+(r[0].length-a.length)+l);if(Math.min(s,l)%2){const p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}const f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(/\n/g," ");const r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=vn(i,!0),{type:"codespan",raw:e[0],text:i}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t,e){const i=this.rules.inline.autolink.exec(t);if(i){let r,o;return"@"===i[2]?(r=vn(this.options.mangle?e(i[1]):i[1]),o="mailto:"+r):(r=vn(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t,e){let i;if(i=this.rules.inline.url.exec(t)){let r,o;if("@"===i[2])r=vn(this.options.mangle?e(i[0]):i[0]),o="mailto:"+r;else{let s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);r=vn(i[0]),o="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t,e){const i=this.rules.inline.text.exec(t);if(i){let r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):vn(i[0]):i[0]:vn(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}}const Q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:_h,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Q.def=rt(Q.def).replace("label",Q._label).replace("title",Q._title).getRegex(),Q.bullet=/(?:[*+-]|\d{1,9}[.)])/,Q.listItemStart=rt(/^( *)(bull) */).replace("bull",Q.bullet).getRegex(),Q.list=rt(Q.list).replace(/bull/g,Q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Q.def.source+")").getRegex(),Q._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Q._comment=/|$)/,Q.html=rt(Q.html,"i").replace("comment",Q._comment).replace("tag",Q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q.paragraph=rt(Q._paragraph).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q._tag).getRegex(),Q.blockquote=rt(Q.blockquote).replace("paragraph",Q.paragraph).getRegex(),Q.normal={...Q},Q.gfm={...Q.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Q.gfm.table=rt(Q.gfm.table).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q._tag).getRegex(),Q.gfm.paragraph=rt(Q._paragraph).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Q.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q._tag).getRegex(),Q.pedantic={...Q.normal,html:rt("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Q._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:rt(Q.normal._paragraph).replace("hr",Q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:_h,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:_h,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),t+="&#"+i+";";return t}V._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",V.punctuation=rt(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,V._comment=rt(Q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=rt(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=rt(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=rt(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=rt(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=rt(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=rt(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=rt(V.reflink).replace("label",V._label).replace("ref",Q._label).getRegex(),V.nolink=rt(V.nolink).replace("ref",Q._label).getRegex(),V.reflinkSearch=rt(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal={...V},V.pedantic={...V.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:rt(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()},V.gfm={...V.normal,escape:rt(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(i=a.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?e.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=e[e.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i),s=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let i,r,o,a,l,c,s=t;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+lx("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+lx("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>!!(i=u.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.emStrong(t,s,c)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.autolink(t,ux)){t=t.substring(i.raw.length),e.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t,ux))){t=t.substring(i.raw.length),e.push(i);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=t.slice(1);let h;this.options.extensions.startInline.forEach(function(f){h=f.call({lexer:this},d),"number"==typeof h&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(o=t.substring(0,u+1))}if(i=this.tokenizer.inlineText(o,lW)){t=t.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(c=i.raw.slice(-1)),l=!0,r=e[e.length-1],r&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return e}}class oc{constructor(t){this.options=t||as}code(t,e,i){const r=(e||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(t,r);null!=o&&o!==t&&(i=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",r?'
'+(i?t:vn(t,!0))+"
\n":"
"+(i?t:vn(t,!0))+"
\n"}blockquote(t){return`
\n${t}
\n`}html(t){return t}heading(t,e,i,r){return this.options.headerIds?`${t}\n`:`${t}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(t,e,i){const r=e?"ol":"ul";return"<"+r+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"\n"}listitem(t){return`
  • ${t}
  • \n`}checkbox(t){return" "}paragraph(t){return`

    ${t}

    \n`}table(t,e){return e&&(e=`${e}`),"\n\n"+t+"\n"+e+"
    \n"}tablerow(t){return`\n${t}\n`}tablecell(t,e){const i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`\n`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,e,i){if(null===(t=sx(this.options.sanitize,this.options.baseUrl,t)))return i;let r='",r}image(t,e,i){if(null===(t=sx(this.options.sanitize,this.options.baseUrl,t)))return i;let r=`${i}":">",r}text(t){return t}}class dx{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,i){return""+i}image(t,e,i){return""+i}br(){return""}}class hx{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let i=t,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[t];do{r++,i=t+"-"+r}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=r,this.seen[i]=0),i}slug(t,e={}){const i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)}}class mo{constructor(t){this.options=t||as,this.options.renderer=this.options.renderer||new oc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dx,this.slugger=new hx}static parse(t,e){return new mo(e).parse(t)}static parseInline(t,e){return new mo(e).parseInline(t)}parse(t,e=!0){let r,o,s,a,l,c,u,d,h,f,p,g,_,y,D,C,T,Y,le,i="";const Qe=t.length;for(r=0;r0&&"paragraph"===D.tokens[0].type?(D.tokens[0].text=Y+" "+D.tokens[0].text,D.tokens[0].tokens&&D.tokens[0].tokens.length>0&&"text"===D.tokens[0].tokens[0].type&&(D.tokens[0].tokens[0].text=Y+" "+D.tokens[0].tokens[0].text)):D.tokens.unshift({type:"text",text:Y}):y+=Y),y+=this.parse(D.tokens,_),h+=this.renderer.listitem(y,T,C);i+=this.renderer.list(h,p,g);continue;case"html":i+=this.renderer.html(f.text);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(f.tokens));continue;case"text":for(h=f.tokens?this.parseInline(f.tokens):f.text;r+1{"function"==typeof i&&(r=i,i=null);const o={...i},s=function cW(n,t,e){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const r="

    An error occurred:

    "+vn(i.message+"",!0)+"
    ";return t?Promise.resolve(r):e?void e(null,r):r}if(t)return Promise.reject(i);if(!e)throw i;e(i)}}((i={...X.defaults,...o}).silent,i.async,r);if(typeof e>"u"||null===e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function sW(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),r){const a=i.highlight;let l;try{i.hooks&&(e=i.hooks.preprocess(e)),l=n(e,i)}catch(d){return s(d)}const c=function(d){let h;if(!d)try{i.walkTokens&&X.walkTokens(l,i.walkTokens),h=t(l,i),i.hooks&&(h=i.hooks.postprocess(h))}catch(f){d=f}return i.highlight=a,d?s(d):r(null,h)};if(!a||a.length<3||(delete i.highlight,!l.length))return c();let u=0;return X.walkTokens(l,function(d){"code"===d.type&&(u++,setTimeout(()=>{a(d.text,d.lang,function(h,f){if(h)return c(h);null!=f&&f!==d.text&&(d.text=f,d.escaped=!0),u--,0===u&&c()})},0))}),void(0===u&&c())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then(a=>n(a,i)).then(a=>i.walkTokens?Promise.all(X.walkTokens(a,i.walkTokens)).then(()=>a):a).then(a=>t(a,i)).then(a=>i.hooks?i.hooks.postprocess(a):a).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));const a=n(e,i);i.walkTokens&&X.walkTokens(a,i.walkTokens);let l=t(a,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(a){return s(a)}}}function X(n,t,e){return fx(po.lex,mo.parse)(n,t,e)}wx(vh,"passThroughHooks",new Set(["preprocess","postprocess"])),X.options=X.setOptions=function(n){return function q4(n){as=n}(X.defaults={...X.defaults,...n}),X},X.getDefaults=function tx(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},X.defaults=as,X.use=function(...n){const t=X.defaults.extensions||{renderers:{},childTokens:{}};n.forEach(e=>{const i={...e};if(i.async=X.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){const o=t.renderers[r.name];t.renderers[r.name]=o?function(...s){let a=r.renderer.apply(this,s);return!1===a&&(a=o.apply(this,s)),a}:r.renderer}if(r.tokenizer){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");t[r.level]?t[r.level].unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&("block"===r.level?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:"inline"===r.level&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),i.extensions=t),e.renderer){const r=X.defaults.renderer||new oc;for(const o in e.renderer){const s=r[o];r[o]=(...a)=>{let l=e.renderer[o].apply(r,a);return!1===l&&(l=s.apply(r,a)),l}}i.renderer=r}if(e.tokenizer){const r=X.defaults.tokenizer||new X_;for(const o in e.tokenizer){const s=r[o];r[o]=(...a)=>{let l=e.tokenizer[o].apply(r,a);return!1===l&&(l=s.apply(r,a)),l}}i.tokenizer=r}if(e.hooks){const r=X.defaults.hooks||new vh;for(const o in e.hooks){const s=r[o];r[o]=vh.passThroughHooks.has(o)?a=>{if(X.defaults.async)return Promise.resolve(e.hooks[o].call(r,a)).then(c=>s.call(r,c));const l=e.hooks[o].call(r,a);return s.call(r,l)}:(...a)=>{let l=e.hooks[o].apply(r,a);return!1===l&&(l=s.apply(r,a)),l}}i.hooks=r}if(e.walkTokens){const r=X.defaults.walkTokens;i.walkTokens=function(o){let s=[];return s.push(e.walkTokens.call(this,o)),r&&(s=s.concat(r.call(this,o))),s}}X.setOptions(i)})},X.walkTokens=function(n,t){let e=[];for(const i of n)switch(e=e.concat(t.call(X,i)),i.type){case"table":for(const r of i.header)e=e.concat(X.walkTokens(r.tokens,t));for(const r of i.rows)for(const o of r)e=e.concat(X.walkTokens(o.tokens,t));break;case"list":e=e.concat(X.walkTokens(i.items,t));break;default:X.defaults.extensions&&X.defaults.extensions.childTokens&&X.defaults.extensions.childTokens[i.type]?X.defaults.extensions.childTokens[i.type].forEach(function(r){e=e.concat(X.walkTokens(i[r],t))}):i.tokens&&(e=e.concat(X.walkTokens(i.tokens,t)))}return e},X.parseInline=fx(po.lexInline,mo.parseInline),X.Parser=mo,X.parser=mo.parse,X.Renderer=oc,X.TextRenderer=dx,X.Lexer=po,X.lexer=po.lex,X.Tokenizer=X_,X.Slugger=hx,X.Hooks=vh,X.parse=X;const uW=["*"];let J_=(()=>{class n{constructor(){this._buttonClick$=new H,this.copied$=this._buttonClick$.pipe(ii(()=>Do($(!0),nk(3e3).pipe(nS(!1)))),Fm(),function G4(n,t,e){let i,r=!1;return n&&"object"==typeof n?({bufferSize:i=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=n):i=n??1/0,Eh({connector:()=>new W4(i,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}(1)),this.copiedText$=this.copied$.pipe(Rr(!1),L(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,i){1&e&&(x(0,"button",0),Ge("click",function(){return i.onCopyToClipboardClick()}),Tp(1,"async"),re(2),Tp(3,"async"),R()),2&e&&(It("copied",Ip(1,3,i.copied$)),O(2),Vn(Ip(3,5,i.copiedText$)))},dependencies:[EE],encapsulation:2,changeDetection:0}),n})();class fW{}var sc=(()=>{return(n=sc||(sc={})).CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers",sc;var n})();class mW{}const px=new k("SECURITY_CONTEXT");let ey=(()=>{class n{constructor(e,i,r,o,s,a){this.platform=e,this.securityContext=i,this.http=r,this.clipboardOptions=o,this.sanitizer=a,this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_MARKED_OPTIONS={renderer:new oc},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this._reload$=new H,this.reload$=this._reload$.asObservable(),this.options=s}get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}parse(e,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:s,mermaid:a,markedOptions:l=this.options}=i;a&&(this.renderer=this.extendRenderer(l.renderer||new oc));const c=this.trimIndentation(e),u=r?this.decodeHtml(c):c,d=s?this.parseEmoji(u):u,h=this.parseMarked(d,l,o);return this.sanitizer.sanitize(this.securityContext,h)||""}render(e,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:u}=i;o&&this.renderClipboard(e,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...u}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(L(i=>this.handleExtension(e,i)))}highlight(e){if(!no(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const i=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!no(this.platform))return e;const i=document.createElement("textarea");return i.innerHTML=e,i.value}extendRenderer(e){const i=e;if(!0===i.\u0275NgxMarkdownRendererExtended)return e;const r=e.code;return e.code=function(o,s,a){return"mermaid"===s?`
    ${o}
    `:r.call(this,o,s,a)},i.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,i){const r=e.lastIndexOf("://"),o=r>-1?e.substring(r+4):e,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+i+"\n```":i}parseMarked(e,i,r=!1){return no(this.platform)?r?X.parseInline(e,i):X.parse(e,i):e}parseEmoji(e){if(!no(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,i){if(no(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,i)}}renderClipboard(e,i,r){if(!no(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:s}=r,a=e.querySelectorAll("pre");for(let l=0;ld.style.opacity="1",c.onmouseout=()=>d.style.opacity="0",h=o?i.createComponent(o).hostView:s?i.createEmbeddedView(s):i.createComponent(J_).hostView,h.rootNodes.forEach(p=>{p.onmouseover=()=>d.style.opacity="1",d.appendChild(p),f=new ClipboardJS(p,{text:()=>c.innerText})}),h.onDestroy(()=>f.destroy())}}renderMermaid(e,i=this.DEFAULT_MERMAID_OPTIONS){if(!no(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=e.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.init(r))}trimIndentation(e){if(!e)return"";let i;return e.split("\n").map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join("\n")}}return n.\u0275fac=function(e){return new(e||n)(b(dl),b(px),b(Ml,8),b(fW,8),b(mW,8),b(vl))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),mx=(()=>{class n{constructor(e,i,r){this.element=e,this.markdownService=i,this.viewContainerRef=r,this.error=new ve,this.load=new ve,this.ready=new ve,this._commandLine=!1,this._clipboard=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new H}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Lt(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,i=!1){const o={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},s=this.markdownService.parse(e,{decodeHtml:i,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid});this.element.nativeElement.innerHTML=s,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,o,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,sc.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,sc.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,i){const r=e.querySelectorAll("pre");for(let o=0;o{const a=i[s];if(a){const l=this.toLispCase(s);r.item(o).setAttribute(l,a.toString())}})}toLispCase(e){const i=e.match(/([A-Z])/g);if(!i)return e;let r=e.toString();for(let o=0,s=i.length;o{class n{static forRoot(e){return{ngModule:n,providers:[ey,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:px,useValue:e&&null!=e.sanitize?e.sanitize:je.HTML}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[to]}),n})();var gx;!function(n){let t;var r;let e,i;(r=t=n.SecurityLevel||(n.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(e=n.Theme||(n.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(i=n.LogLevel||(n.LogLevel={}))}(gx||(gx={}));let DW=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["app-help-page"]],decls:2,vars:1,consts:[[2,"margin","auto","height","calc(100vh - 64px)","overflow","auto","padding","0 20em 0 20em"],[3,"src"]],template:function(e,i){1&e&&(x(0,"div",0),_t(1,"markdown",1),R()),2&e&&(O(1),F("src","assets/help.md"))},dependencies:[mx]}),n})();class _x{constructor(t,e,i,r,o,s,a,l){this.title=t,this.mdId=e,this.abstract=i,this.keywords=r,this.resourceOwner=o,this.resourceOwnerUrl=s,this.protocols=a,this.onlineResources=l}}var rn=(()=>{return(n=rn||(rn={})).InNgrWithKwInCSV="In NGR with keyword - In CSV",n.InNgrWithKwNotInCSV="In NGR with keyword - Not in CSV",n.NotInNgrInCSV="Not in NGR - In CSV",n.InNgrWithoutKwInCSV="In NGR without keyword - In CSV",rn;var n})();class EW extends _x{constructor(t,e,i,r,o,s,a,l,c){super(t,e,i,r,o,s,a,l),this.title=t,this.mdId=e,this.abstract=i,this.keywords=r,this.resourceOwner=o,this.resourceOwnerUrl=s,this.protocols=a,this.onlineResources=l,this.csvMatched=c}}function yx(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function vx(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){yx(o,i,r,s,a,"next",l)}function a(l){yx(o,i,r,s,a,"throw",l)}s(void 0)})}}var ty=(n,t,e="results")=>`${n}/?request=GetRecords&Service=CSW&Version=2.0.2&typeNames=gmd:MD_Metadata&constraint=${t}&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&resultType=${e}`,SW=function(){var n=vx(function*(t,e,i=-1,r=""){if(""!==r)return[fetch(r)];let o=`${ty(t,e,"hits")}`,s=yield fetch(o);if(!s.ok){let y=yield s.text();throw new qm({url:s.url,status:s.status,error:y})}let a=yield s.text(),d=(new DOMParser).parseFromString(a,"text/xml").querySelectorAll("SearchResults")[0].getAttribute("numberOfRecordsMatched"),h=parseInt(null!==d?d:"-1"),p=[],g=1,_=ty(t,e);for(;;){let D=fetch(`${_}&startPosition=${g}&maxRecords=20`);if(p.push(D),g+=20,g>h||-1!=i&&g>=i)break}return p});return function(e,i){return n.apply(this,arguments)}}(),ny=function(){var n=vx(function*(t,e,i=-1,r=""){let o=[];const a=yield SW(t,e,i,r);return(yield Promise.all(a).then(c=>Promise.all(c.map(u=>u.text())).then(u=>u))).forEach(c=>{let u=new DOMParser,h=u.parseFromString(c,"text/xml").querySelectorAll("MD_Metadata");for(let f=0;f{const t={csw:"http://www.opengis.net/cat/csw/2.0.2",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",gmd:"http://www.isotc211.org/2005/gmd",gco:"http://www.isotc211.org/2005/gco",geonet:"http://www.fao.org/geonetwork",gmx:"http://www.isotc211.org/2005/gmx",gts:"http://www.isotc211.org/2005/gts",srv:"http://www.isotc211.org/2005/srv",xlink:"http://www.w3.org/1999/xlink"};return null!==n&&Object.keys(t).includes(n)?t[n]:null}};function MW(n){return _a(n,"//gmd:fileIdentifier/gco:CharacterString")}function kW(n){return _a(n,"//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString/text()")}function AW(n){return _a(n,"//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString/text()")}var xW=Ht(28);function TW(n,t){if(1&n){const e=Yi();x(0,"button",9),Ge("click",function(){return ki(e),he(),Ai(tu(6).click())}),re(1," Choose File "),R()}}function IW(n,t){if(1&n&&(x(0,"mat-option",13),re(1),R()),2&n){const e=t.$implicit;F("value",e),O(1),ti(" ",e," ")}}function RW(n,t){if(1&n){const e=Yi();x(0,"mat-form-field",10)(1,"mat-label"),re(2,"Metadata identifier kolom"),R(),x(3,"mat-select",11),Ge("valueChange",function(r){return ki(e),Ai(he().selectedColumn=r)}),W(4,IW,2,2,"mat-option",12),R()()}if(2&n){const e=he();O(3),F("value",e.selectedColumn),O(1),F("ngForOf",e.columns)}}let OW=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.selectedColumn="",this.columns=[],this.fileLoaded=!1}onFileSelected(){const e=document.querySelector("#file");(0,xW.parse)(e.files[0],{skipEmptyLines:!0,header:!0,complete:i=>{this.fileLoaded=!0,this.columns=Object.keys(i.data[0]),this.selectedColumn=this.columns[0],this.data.csvData=i.data,this.data.mdIdColumn=this.selectedColumn}})}onNoClick(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(m(Jl),m(x_))},n.\u0275cmp=He({type:n,selectors:[["dialog-overview-example-dialog"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Open een CSV bestand (met headers)","type","button","color","primary","mat-raised-button","",3,"click",4,"ngIf"],["hidden","","type","file","id","file","accept",".csv",3,"change"],["fileInput",""],["appearance","fill",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],["color","primary","mat-button","","cdkFocusInitial","",3,"disabled","mat-dialog-close"],["title","Open een CSV bestand (met headers)","type","button","color","primary","mat-raised-button","",3,"click"],["appearance","fill"],["title","Selecteer metadata-identificatie kolom",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(x(0,"h1",0),re(1,"Open CSV file"),R(),x(2,"div",1)(3,"div"),W(4,TW,2,0,"button",2),x(5,"input",3,4),Ge("change",function(){return i.onFileSelected()}),R(),W(7,RW,5,2,"mat-form-field",5),R()(),x(8,"div",6)(9,"button",7),re(10,"CANCEL"),R(),x(11,"button",8),re(12," OK "),R()()),2&e&&(O(4),F("ngIf",!i.fileLoaded),O(3),F("ngIf",i.fileLoaded),O(2),F("mat-dialog-close",null),O(2),F("disabled",!i.fileLoaded)("mat-dialog-close",i.data))},dependencies:[Iu,eo,Al,Mk,kk,Ak,xk,Nk,th,qA,Um],encapsulation:2}),n})();function FW(n,t){if(1&n&&(x(0,"mat-option",8),re(1),R()),2&n){const e=t.$implicit;F("value",e),O(1),ti(" ",e," ")}}const NW=function(){return[]};function PW(n,t){1&n&&(x(0,"button",9),re(1," RESET FILTER "),R()),2&n&&F("mat-dialog-close",function qC(n,t,e){const i=Dn()+n,r=S();return r[i]===me?qi(r,i,e?t.call(e):t()):function Qa(n,t){return n[t]}(r,i)}(1,NW))}let LW=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.dataSource=[],this.column="",this.filterValues=[],this.selectedValues=[],this.column=i.column,this.dataSource=i.dataSource;let r=i.filter;void 0!==r&&(this.selectedValues=r.filterValues);const o=this.column;let s=this.dataSource.map(a=>a[o]);s=s.flat(),this.filterValues=s.filter((a,l,c)=>c.indexOf(a)===l).sort()}onNoClick(){this.dialogRef.close()}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(m(Jl),m(x_))},n.\u0275cmp=He({type:n,selectors:[["app-filter-dialog"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["multiple","true",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close",4,"ngIf"],["color","primary","mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"],["mat-button","",3,"mat-dialog-close"]],template:function(e,i){1&e&&(x(0,"h1",0),re(1),R(),x(2,"div",1)(3,"div")(4,"mat-form-field",2)(5,"mat-label"),re(6,"Selecteer kolom met metadata identifier"),R(),x(7,"mat-select",3),Ge("valueChange",function(o){return i.selectedValues=o}),W(8,FW,2,2,"mat-option",4),R()()()(),x(9,"div",5),W(10,PW,2,2,"button",6),x(11,"button",7),re(12," OK "),R()()),2&e&&(O(1),ti("Filter ",i.column," column"),O(6),F("value",i.selectedValues),O(1),F("ngForOf",i.filterValues),O(2),F("ngIf",i.selectedValues.length>0),O(1),F("mat-dialog-close",i.selectedValues))},dependencies:[Iu,eo,Al,Mk,kk,Ak,xk,Nk,th,qA,Um]}),n})();var VW=Ht(327);function BW(n,t){1&n&&(x(0,"span",4)(1,"mat-icon"),re(2,"error"),R()())}let ry=(()=>{class n{constructor(e,i){this.data=e,this.snackBar=i,this.html="",this.error=!1,Object.keys(e).includes("html")&&(this.html=e.html),Object.keys(e).includes("error")&&(this.error=e.error)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(m(Z_),m(XA))},n.\u0275cmp=He({type:n,selectors:[["app-html-snackbar"]],decls:6,vars:2,consts:[[1,"snackbar"],["title","Error",4,"ngIf"],[3,"innerHTML"],[1,"dismiss",3,"click"],["title","Error"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"div"),W(2,BW,3,0,"span",1),_t(3,"span",2),R(),x(4,"a",3),Ge("click",function(){return i.snackBar.dismiss()}),re(5,"OK"),R()()),2&e&&(O(2),F("ngIf",i.error),O(1),F("innerHTML",i.html,rb))},dependencies:[eo,Xm],styles:[".snackbar a{color:#0060df} .snackbar a:visited{color:#ff4081} .snackbar a.dismiss{color:#ff4081;float:right;cursor:pointer}"]}),n})();function HW(n,t){1&n&&(x(0,"div",5),_t(1,"mat-spinner",6),x(2,"p",7),re(3," NGR metadata records ophalen "),R()())}function jW(n,t){1&n&&(x(0,"th",20),re(1,"metadata-identifier"),R())}function $W(n,t){if(1&n&&(x(0,"a",24),re(1),R()),2&n){const e=he().$implicit;iu("href","https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/",e.mdId,"",Oo),O(1),Vn(e.mdId)}}function UW(n,t){if(1&n&&(x(0,"span",25),re(1),R()),2&n){const e=he().$implicit;F("title","record ("+e.mdId+") from CSV file not found in catalog"),O(1),Vn(e.mdId)}}function zW(n,t){if(1&n&&(x(0,"td",21),W(1,$W,2,2,"ng-template",22),W(2,UW,2,2,"ng-template",null,23,aD),R()),2&n){const e=t.$implicit,i=tu(3),r=he(2);F("ngClass",r.getMatchedClass(e)),O(1),F("ngIf",e.csvMatched!==r.csvMatched.NotInNgrInCSV)("ngIfElse",i)}}function WW(n,t){if(1&n){const e=Yi();x(0,"th",20)(1,"span"),re(2,"resourceOwner "),x(3,"mat-icon",26),Ge("click",function(){ki(e);const r=he(2);return Ai(r.openFilterDialog("resourceOwner",r.filters))}),re(4,"filter_list"),R()()()}if(2&n){const e=he(2);O(3),F("ngClass",e.filterActive("resourceOwner")?"filterActive":"")}}function GW(n,t){if(1&n&&(x(0,"td",21)(1,"a",27),re(2),R()()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),F("href","#type='dataset' AND organisationName='"+e.resourceOwner+"'",Oo)("title","Haal alle records op van organisatie "+e.resourceOwner),O(1),Vn(e.resourceOwner)}}function qW(n,t){1&n&&(x(0,"th",20)(1,"span"),re(2,"keywords "),R()())}function KW(n,t){1&n&&(x(0,"span"),re(1,", "),R())}function YW(n,t){if(1&n&&(x(0,"span")(1,"a",27),re(2),R(),W(3,KW,2,0,"span",29),R()),2&n){const e=t.$implicit,i=t.last;O(1),F("href","#type='dataset' AND keyword='"+e.toLowerCase()+"'",Oo)("title","Haal alle records op met keyword "+e),O(1),Vn(e),O(1),F("ngIf",!i)}}function ZW(n,t){if(1&n&&(x(0,"td",21),W(1,YW,4,4,"span",28),R()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),F("ngForOf",e.keywords)}}function QW(n,t){1&n&&(x(0,"th",20),re(1,"title"),R())}function XW(n,t){if(1&n&&(x(0,"td",21),re(1),R()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),ti(" ",e.title," ")}}function JW(n,t){1&n&&(x(0,"th",20)(1,"span"),re(2,"protocols "),R()())}function eG(n,t){1&n&&(x(0,"span"),re(1,", "),R())}function tG(n,t){if(1&n&&(x(0,"span")(1,"a",30),re(2),R(),W(3,eG,2,0,"span",29),R()),2&n){const e=t.$implicit,i=t.index,r=t.last,o=he().$implicit;O(1),F("href",o.onlineResources[i],Oo),O(1),Vn(e),O(1),F("ngIf",!r)}}function nG(n,t){if(1&n&&(x(0,"td",21),W(1,tG,4,3,"span",28),R()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),F("ngForOf",e.protocols)}}function iG(n,t){if(1&n){const e=Yi();x(0,"th",20)(1,"span"),re(2,"csvMatched "),x(3,"mat-icon",26),Ge("click",function(){ki(e);const r=he(2);return Ai(r.openFilterDialog("csvMatched",r.filters))}),re(4,"filter_list"),R()()()}if(2&n){const e=he(2);O(3),F("ngClass",e.filterActive("csvMatched")?"filterActive":"")}}function rG(n,t){if(1&n&&(x(0,"td",31),re(1),R()),2&n){const e=t.$implicit,i=he(2);F("ngClass",i.getMatchedClass(e))("title",i.getTooltipCsvMatched(e.csvMatched)),O(1),ti(" ",e.csvMatched," ")}}function oG(n,t){1&n&&_t(0,"tr",32)}function sG(n,t){1&n&&_t(0,"tr",33)}function aG(n,t){if(1&n&&(x(0,"table",8),Jn(1,9),W(2,jW,2,0,"th",10),W(3,zW,4,3,"td",11),ei(),Jn(4,12),W(5,WW,5,1,"th",10),W(6,GW,3,4,"td",11),ei(),Jn(7,13),W(8,qW,3,0,"th",10),W(9,ZW,2,2,"td",11),ei(),Jn(10,14),W(11,QW,2,0,"th",10),W(12,XW,2,2,"td",11),ei(),Jn(13,15),W(14,JW,3,0,"th",10),W(15,nG,2,2,"td",11),ei(),Jn(16,16),W(17,iG,5,1,"th",10),W(18,rG,2,3,"td",17),ei(),W(19,oG,1,0,"tr",18),W(20,sG,1,0,"tr",19),R()),2&n){const e=he();F("dataSource",e.dataView),O(19),F("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),O(1),F("matRowDefColumns",e.displayedColumns)}}function lG(n,t){if(1&n){const e=Yi();x(0,"button",34),Ge("click",function(){return ki(e),Ai(he().openDialog())}),x(1,"mat-icon"),re(2,"upload_file"),R()()}}function cG(n,t){if(1&n){const e=Yi();x(0,"button",35),Ge("click",function(){return ki(e),Ai(he().downloadResultSet())}),x(1,"mat-icon"),re(2,"download"),R()()}}const hG={scrollPositionRestoration:"enabled",anchorScrolling:"enabled",scrollOffset:[0,64]},fG=[{path:"help",component:DW},{path:"",component:(()=>{class n{constructor(e,i){this.dialog=e,this._snackBar=i,this.title="novex-dataset-app",this.cswEndpoint="https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw",this.displayedColumns=["mdId","title","resourceOwner","keywords","protocols"],this.dataSource=[],this.dataView=[],this.csvData=[],this.cswLoading=!0,this.mdIdColumnCsv="",this.filters=[]}openSnackBar(e,i){this._snackBar.open(e,i)}filterActive(e){let i=this.filters.find(r=>r.filterColumn===e);return!!(i&&i.filterValues.length>0)}openFilterDialog(e,i){let r=i.find(s=>s.filterColumn===e);this.dialog.open(LW,{data:{column:e,dataSource:this.dataSource,filter:r}}).afterClosed().subscribe(s=>{let l={filterColumn:e,filterValues:s};this.filters=this.filters.filter(c=>c.filterColumn!==l.filterColumn),l.filterValues.length>0&&this.filters.push(l),this.dataView=this.dataSource.filter(c=>{for(let u of this.filters){const d=u.filterColumn;return Array.isArray(c[d])?u.filterValues.filter(p=>c[d].includes(p)).length>0:u.filterValues.includes(c[d])}return 0===this.filters.length})})}downloadResultSet(){let e=this.dataView,r=["abstract","resourceOwnerUrl","onlineResources"];const o=Object.getOwnPropertyNames(e[0]).filter(c=>!r.includes(c));let s=e.map(c=>o.map(u=>(c=>null==c?'""':Array.isArray(c)?`"${c.join(",")}"`:"string"==typeof c?`"${c.replace('"','""')}"`:JSON.stringify(c))(c[u])).filter(u=>null!==u).join(","));s.unshift(o.map(c=>`"${c}"`).join(","));let a=s.join("\r\n");var l=new Blob([a],{type:"text/csv"});(0,VW.saveAs)(l,"myFile.csv")}openDialog(){this.dialog.open(OW,{data:{}}).afterClosed().subscribe(i=>{this.csvData=i.csvData,this.mdIdColumnCsv=i.mdIdColumn,this.csvData.map(s=>{let a=this.dataSource.find(l=>l.mdId===s[this.mdIdColumnCsv]);a&&(a.csvMatched=rn.InNgrWithKwInCSV,s.csvMatched=rn.InNgrWithKwInCSV)}),this.dataSource.filter(s=>s.csvMatched!==rn.InNgrWithKwInCSV).map(s=>s.csvMatched=rn.InNgrWithKwNotInCSV),this.csvData.filter(s=>!Object.keys(s).includes("csvMatched")).map(s=>s.csvMatched="false");let o=this.csvData.filter(s=>"false"===s.csvMatched).map(s=>s[this.mdIdColumnCsv]);if(o.length>0){let s=o.map(a=>`identifier='${a}'`).join(" OR ");ny(this.cswEndpoint,s).then(a=>{a=a.map(c=>c).sort(this.sortRecords);for(const c of o){let u=a.find(d=>d.mdId===c);if(void 0!==u)u.csvMatched=rn.InNgrWithoutKwInCSV,this.dataSource.push(u);else{let d=new EW;d.mdId=c,d.csvMatched=rn.NotInNgrInCSV,this.dataSource.push(d)}}this.displayedColumns.push("csvMatched")}).catch(a=>{console.error(a),this.cswLoading=!1,this.dataSource=[],this.dataView=this.dataSource,this._snackBar.openFromComponent(ry,{data:{html:`

    Ophalen van unmatched records uit NGR mislukt voor deze query. HTTP status code: ${a.status}

    `,error:!0}})})}else this.displayedColumns.push("csvMatched")})}get csvMatched(){return rn}getTooltipCsvMatched(e){switch(e){case rn.InNgrWithKwInCSV:return"Record in NGR en in CSV bestand";case rn.InNgrWithKwNotInCSV:return"Record in NGR maar niet in CSV bestand";case rn.NotInNgrInCSV:return"Record in CSV bestand maar niet in NGR";case rn.InNgrWithoutKwInCSV:return"Record in CSV bestand, in NGR maar zonder NOVEX keyword";default:return""}}getMatchedClass(e){if(!(this.csvData.length>0))return"";switch(e.csvMatched){case rn.InNgrWithKwInCSV:return"inCsv";case rn.InNgrWithKwNotInCSV:return"notInCsv";case rn.NotInNgrInCSV:return"notInNGR";case rn.InNgrWithoutKwInCSV:return"inNGRNoKeyword";default:return""}}sortRecords(e,i){return void 0===e.title&&void 0===i.title?0:void 0===e.title&&void 0!==i.title?-1:void 0!==e.title&&void 0===i.title?1:e.title.toLowerCase()i.title.toLowerCase()?1:0}getRecords(){let e;this.cswLoading=!0,qD(),e=ny(this.cswEndpoint,this.cqlQuery),e.then(i=>{this.dataSource=i.map(s=>s).sort(this.sortRecords),this.dataView=this.dataSource,this.cswLoading=!1;let o=ty(this.cswEndpoint,this.cqlQuery);this._snackBar.openFromComponent(ry,{data:{html:`

    ${this.dataSource.length} Metadata records opgehaald uit het NGR met de query:

    ${decodeURIComponent(this.cqlQuery)}
    `}})}).catch(i=>{this.cswLoading=!1,this.dataSource=[],this.dataView=this.dataSource,this._snackBar.openFromComponent(ry,{data:{html:`

    Ophalen van records uit NGR mislukt voor deze query. HTTP status code: ${i.status}

    `,error:!0}})})}get cqlQuery(){let e=location.hash;return e=e.replace("#",""),encodeURIComponent(e).replaceAll("%25","%")}set cqlQuery(e){location.hash=encodeURIComponent(e)}ngOnInit(){""===this.cqlQuery&&(this.cqlQuery="type='dataset' AND keyword='basisset novex'"),this.getRecords(),window.addEventListener("hashchange",e=>{this.getRecords()})}}return n.\u0275fac=function(e){return new(e||n)(m(eh),m(XA))},n.\u0275cmp=He({type:n,selectors:[["app-csw-table"]],decls:6,vars:5,consts:[[1,"main",3,"ngClass"],["style","margin-top:4em",4,"ngIf"],["id","table","mat-table","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","primary","aria-label","Upload een CSV bestand om te vergelijken met de records uit NGR","title","Upload een CSV bestand om te vergelijken met de records uit NGR","style","position: fixed; right: 1em; bottom: 1em",3,"click",4,"ngIf"],["mat-fab","","color","secondary","aria-label","Exporteer huidige resultaatset naar een CSV bestand","title","Exporteer huidige resultaatset naar een CSV bestand","style","position: fixed; right: 1em; bottom: 1em",3,"click",4,"ngIf"],[2,"margin-top","4em"],[2,"margin","auto"],[2,"text-align","center","margin-top","2em"],["id","table","mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","mdId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","resourceOwner"],["matColumnDef","keywords"],["matColumnDef","title"],["matColumnDef","protocols"],["matColumnDef","csvMatched"],["mat-cell","","style","cursor: pointer",3,"ngClass","title",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"ngClass"],[3,"ngIf","ngIfElse"],["recordNotInCatalog",""],["target","_blank","title","Bekijk dit record in het NGR",3,"href"],[3,"title"],["title","Filter","aria-label","Filter",2,"vertical-align","middle","float","right","cursor","pointer","margin-right","1em",3,"ngClass","click"],[3,"href","title"],[4,"ngFor","ngForOf"],[4,"ngIf"],["target","_blank",3,"href"],["mat-cell","",2,"cursor","pointer",3,"ngClass","title"],["mat-header-row",""],["mat-row",""],["mat-fab","","color","primary","aria-label","Upload een CSV bestand om te vergelijken met de records uit NGR","title","Upload een CSV bestand om te vergelijken met de records uit NGR",2,"position","fixed","right","1em","bottom","1em",3,"click"],["mat-fab","","color","secondary","aria-label","Exporteer huidige resultaatset naar een CSV bestand","title","Exporteer huidige resultaatset naar een CSV bestand",2,"position","fixed","right","1em","bottom","1em",3,"click"]],template:function(e,i){1&e&&(x(0,"div")(1,"div",0),W(2,HW,4,0,"div",1),W(3,aG,21,4,"table",2),R(),W(4,lG,3,0,"button",3),W(5,cG,3,0,"button",4),R()),2&e&&(O(1),F("ngClass",i.cswLoading?"loading":"loaded"),O(1),F("ngIf",i.cswLoading),O(1),F("ngIf",!i.cswLoading),O(1),F("ngIf",0===i.csvData.length),O(1),F("ngIf",i.csvData.length>0))},dependencies:[fm,Iu,eo,ck,y_,uk,v_,__,dk,b_,w_,hk,fk,Xm,Al,w4],styles:[".main[_ngcontent-%COMP%]{height:calc(100vh - 64px);overflow:auto;width:100%}.loading[_ngcontent-%COMP%]{justify-content:center;vertical-align:middle;align-items:center}#table[_ngcontent-%COMP%]{width:100vw}.inCsv[_ngcontent-%COMP%]{background-color:#e6ffec}.notInCsv[_ngcontent-%COMP%]{background-color:#ffebe9}.notInNGR[_ngcontent-%COMP%]{background-color:#fffce9}.inNGRNoKeyword[_ngcontent-%COMP%]{background-color:#ebe9ff}.filterActive[_ngcontent-%COMP%]{background-color:#ff4081;color:#fff;border-radius:4px}"]}),n})()},{path:"",redirectTo:"/",pathMatch:"full"}];let pG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[to,bd.forRoot(fG,hG),bd]}),n})(),mG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n,bootstrap:[V$]}),n.\u0275inj=Oe({imports:[qE,Hz,P3,dH,Y0,m5,nh,z5,d4,C4,QA,z4,bd,pG,eH,L$,CW.forRoot({loader:Ml,sanitize:je.NONE})]}),n})();(function $P(){if(GD)throw new Error("Cannot enable prod mode after platform setup.");WD=!1})(),fB().bootstrapModule(mG).catch(n=>console.error(n))},327:function(Rn,On){var vi;void 0!==(vi=function(){"use strict";function Ue(be,we,jt){var ze=new XMLHttpRequest;ze.open("GET",be),ze.responseType="blob",ze.onload=function(){K(ze.response,we,jt)},ze.onerror=function(){console.error("could not download file")},ze.send()}function Be(be){var we=new XMLHttpRequest;we.open("HEAD",be,!1);try{we.send()}catch{}return 200<=we.status&&299>=we.status}function bi(be){try{be.dispatchEvent(new MouseEvent("click"))}catch{var we=document.createEvent("MouseEvents");we.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),be.dispatchEvent(we)}}var Qt="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,_o=Qt.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=Qt.saveAs||("object"!=typeof window||window!==Qt?function(){}:"download"in HTMLAnchorElement.prototype&&!_o?function(be,we,jt){var ze=Qt.URL||Qt.webkitURL,St=document.createElement("a");St.download=we=we||be.name||"download",St.rel="noopener","string"==typeof be?(St.href=be,St.origin===location.origin?bi(St):Be(St.href)?Ue(be,we,jt):bi(St,St.target="_blank")):(St.href=ze.createObjectURL(be),setTimeout(function(){ze.revokeObjectURL(St.href)},4e4),setTimeout(function(){bi(St)},0))}:"msSaveOrOpenBlob"in navigator?function(be,we,jt){if(we=we||be.name||"download","string"!=typeof be)navigator.msSaveOrOpenBlob(function sr(be,we){return typeof we>"u"?we={autoBom:!1}:"object"!=typeof we&&(console.warn("Deprecated: Expected third argument to be a object"),we={autoBom:!we}),we.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(be.type)?new Blob(["\ufeff",be],{type:be.type}):be}(be,jt),we);else if(Be(be))Ue(be,we,jt);else{var ze=document.createElement("a");ze.href=be,ze.target="_blank",setTimeout(function(){bi(ze)})}}:function(be,we,jt,ze){if((ze=ze||open("","_blank"))&&(ze.document.title=ze.document.body.innerText="downloading..."),"string"==typeof be)return Ue(be,we,jt);var St="application/octet-stream"===be.type,Ur=/constructor/i.test(Qt.HTMLElement)||Qt.safari,ar=/CriOS\/[\d]+/.test(navigator.userAgent);if((ar||St&&Ur||_o)&&typeof FileReader<"u"){var sn=new FileReader;sn.onloadend=function(){var ai=sn.result;ai=ar?ai:ai.replace(/^data:[^;]*;/,"data:attachment/file;"),ze?ze.location.href=ai:location=ai,ze=null},sn.readAsDataURL(be)}else{var wi=Qt.URL||Qt.webkitURL,yo=wi.createObjectURL(be);ze?ze.location=yo:location.href=yo,ze=null,setTimeout(function(){wi.revokeObjectURL(yo)},4e4)}});Qt.saveAs=K.saveAs=K,Rn.exports=K}.apply(On,[]))&&(Rn.exports=vi)},28:function(Rn,On){var Ht,vi;Ht=function sr(){"use strict";var Ue=typeof self<"u"?self:typeof window<"u"?window:void 0!==Ue?Ue:{},Be=!Ue.document&&!!Ue.postMessage,bi=Be&&/blob:/i.test((Ue.location||{}).protocol),Qt={},_o=0,K={parse:function(w,v){var A=(v=v||{}).dynamicTyping||!1;if(qe(A)&&(v.dynamicTypingFunction=A,A={}),v.dynamicTyping=A,v.transform=!!qe(v.transform)&&v.transform,v.worker&&K.WORKERS_SUPPORTED){var z=function(){if(!K.WORKERS_SUPPORTED)return!1;var xt,ne,ie=(xt=Ue.URL||Ue.webkitURL||null,ne=sr.toString(),K.BLOB_URL||(K.BLOB_URL=xt.createObjectURL(new Blob(["(",ne,")();"],{type:"text/javascript"})))),Ne=new Ue.Worker(ie);return Ne.onmessage=yo,Ne.id=_o++,Qt[Ne.id]=Ne}();return z.userStep=v.step,z.userChunk=v.chunk,z.userComplete=v.complete,z.userError=v.error,v.step=qe(v.step),v.chunk=qe(v.chunk),v.complete=qe(v.complete),v.error=qe(v.error),delete v.worker,void z.postMessage({input:w,config:v,workerId:z.id})}var G=null;return"string"==typeof w?G=v.download?new jt(v):new St(v):!0===w.readable&&qe(w.read)&&qe(w.on)?G=new Ur(v):(Ue.File&&w instanceof File||w instanceof Object)&&(G=new ze(v)),G.stream(w)},unparse:function(w,v){var A=!1,z=!0,G=",",ie="\r\n",Ne='"',xt=Ne+Ne,ne=!1,q=null,ft=!1;!function(){if("object"==typeof v){if("string"!=typeof v.delimiter||K.BAD_DELIMITERS.filter(function(U){return-1!==v.delimiter.indexOf(U)}).length||(G=v.delimiter),("boolean"==typeof v.quotes||"function"==typeof v.quotes||Array.isArray(v.quotes))&&(A=v.quotes),"boolean"!=typeof v.skipEmptyLines&&"string"!=typeof v.skipEmptyLines||(ne=v.skipEmptyLines),"string"==typeof v.newline&&(ie=v.newline),"string"==typeof v.quoteChar&&(Ne=v.quoteChar),"boolean"==typeof v.header&&(z=v.header),Array.isArray(v.columns)){if(0===v.columns.length)throw new Error("Option columns is empty");q=v.columns}void 0!==v.escapeChar&&(xt=v.escapeChar+Ne),("boolean"==typeof v.escapeFormulae||v.escapeFormulae instanceof RegExp)&&(ft=v.escapeFormulae instanceof RegExp?v.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var ue=new RegExp(sn(Ne),"g");if("string"==typeof w&&(w=JSON.parse(w)),Array.isArray(w)){if(!w.length||Array.isArray(w[0]))return li(null,w,ne);if("object"==typeof w[0])return li(q||Object.keys(w[0]),w,ne)}else if("object"==typeof w)return"string"==typeof w.data&&(w.data=JSON.parse(w.data)),Array.isArray(w.data)&&(w.fields||(w.fields=w.meta&&w.meta.fields||q),w.fields||(w.fields=Array.isArray(w.data[0])?w.fields:"object"==typeof w.data[0]?Object.keys(w.data[0]):[]),Array.isArray(w.data[0])||"object"==typeof w.data[0]||(w.data=[w.data])),li(w.fields||[],w.data||[],ne);throw new Error("Unable to serialize unrecognized input");function li(U,tt,Ae){var ce="";"string"==typeof U&&(U=JSON.parse(U)),"string"==typeof tt&&(tt=JSON.parse(tt));var $t=Array.isArray(U)&&0=this._config.preview;if(bi)Ue.postMessage({results:ie,workerId:K.WORKER_ID,finished:xt});else if(qe(this._config.chunk)&&!A){if(this._config.chunk(ie,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);ie=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(ie.data),this._completeResults.errors=this._completeResults.errors.concat(ie.errors),this._completeResults.meta=ie.meta),this._completed||!xt||!qe(this._config.complete)||ie&&ie.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),xt||ie&&ie.meta.paused||this._nextChunk(),ie}this._halted=!0},this._sendError=function(v){qe(this._config.error)?this._config.error(v):bi&&this._config.error&&Ue.postMessage({workerId:K.WORKER_ID,error:v,finished:!1})}}function jt(w){var v;(w=w||{}).chunkSize||(w.chunkSize=K.RemoteChunkSize),we.call(this,w),this._nextChunk=Be?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(A){this._input=A,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(v=new XMLHttpRequest,this._config.withCredentials&&(v.withCredentials=this._config.withCredentials),Be||(v.onload=Bi(this._chunkLoaded,this),v.onerror=Bi(this._chunkError,this)),v.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Be),this._config.downloadRequestHeaders){var A=this._config.downloadRequestHeaders;for(var z in A)v.setRequestHeader(z,A[z])}this._config.chunkSize&&v.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{v.send(this._config.downloadRequestBody)}catch(ie){this._chunkError(ie.message)}Be&&0===v.status&&this._chunkError()}},this._chunkLoaded=function(){var z;4===v.readyState&&(v.status<200||400<=v.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:v.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(z=v.getResponseHeader("Content-Range"))?-1:parseInt(z.substring(z.lastIndexOf("/")+1))),this.parseChunk(v.responseText)))},this._chunkError=function(A){this._sendError(new Error(v.statusText||A))}}function ze(w){var v,A;(w=w||{}).chunkSize||(w.chunkSize=K.LocalChunkSize),we.call(this,w);var z=typeof FileReader<"u";this.stream=function(G){this._input=G,A=G.slice||G.webkitSlice||G.mozSlice,z?((v=new FileReader).onload=Bi(this._chunkLoaded,this),v.onerror=Bi(this._chunkError,this)):v=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(G.target.result)},this._chunkError=function(){this._sendError(v.error)}}function St(w){var v;we.call(this,w=w||{}),this.stream=function(A){return v=A,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var A,z=this._config.chunkSize;return z?(A=v.substring(0,z),v=v.substring(z)):(A=v,v=""),this._finished=!v,this.parseChunk(A)}}}function Ur(w){we.call(this,w=w||{});var v=[],A=!0,z=!1;this.pause=function(){we.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){we.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(G){this._input=G,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){z&&1===v.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),v.length?this.parseChunk(v.shift()):A=!0},this._streamData=Bi(function(G){try{v.push("string"==typeof G?G:G.toString(this._config.encoding)),A&&(A=!1,this._checkIsFinished(),this.parseChunk(v.shift()))}catch(ie){this._streamError(ie)}},this),this._streamError=Bi(function(G){this._streamCleanUp(),this._sendError(G)},this),this._streamEnd=Bi(function(){this._streamCleanUp(),z=!0,this._streamData("")},this),this._streamCleanUp=Bi(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ar(w){var v,A,z,G=Math.pow(2,53),ie=-G,Ne=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,xt=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,ne=this,q=0,ft=0,ue=!1,li=!1,H=[],U={data:[],errors:[],meta:{}};if(qe(w.step)){var tt=w.step;w.step=function(J){if(U=J,$t())ce();else{if(ce(),0===U.data.length)return;q+=J.data.length,w.preview&&q>w.preview?A.abort():(U.data=U.data[0],tt(U,ne))}}}function Ae(J){return"greedy"===w.skipEmptyLines?""===J.join("").trim():1===J.length&&0===J[0].length}function ce(){return U&&z&&(wt("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+K.DefaultDelimiter+"'"),z=!1),w.skipEmptyLines&&(U.data=U.data.filter(function(J){return!Ae(J)})),$t()&&function(){if(U)if(Array.isArray(U.data[0])){for(var We=0;$t()&&We=H.length?"__parsed_extra":H[xe]),w.transform&&(fe=w.transform(fe,mt)),fe=L(mt,fe),"__parsed_extra"===mt?(Ke[mt]=Ke[mt]||[],Ke[mt].push(fe)):Ke[mt]=fe}return w.header&&(xe>H.length?wt("FieldMismatch","TooManyFields","Too many fields: expected "+H.length+" fields but parsed "+xe,ft+pt):xe=Hn.length/2?"\r\n":"\r"}(J,w.quoteChar||'"')),z=!1,w.delimiter)qe(w.delimiter)&&(w.delimiter=w.delimiter(J),U.meta.delimiter=w.delimiter);else{var xe=function(mt,fe,lr,Hn,Fn){var cr,jn,$n,Ut;Fn=Fn||[",","\t","|",";",K.RECORD_SEP,K.UNIT_SEP];for(var Hi=0;Hi=Ne)return Ut(!0)}else for(fe=q,q++;;){if(-1===(fe=ue.indexOf(v,fe+1)))return H||wt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:L.length,index:q}),jn();if(fe===U-1)return jn(ue.substring(q,fe).replace(mt,v));if(v!==ne||ue[fe+1]!==ne){if(v===ne||0===fe||ue[fe-1]!==ne){-1!==xe&&xe=Ne)return Ut(!0);break}wt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:L.length,index:q}),fe++}}else fe++}return jn();function Fn(dn){L.push(dn),We=q}function cr(dn){var bo=0;if(-1!==dn){var ji=ue.substring(fe+1,dn);ji&&""===ji.trim()&&(bo=ji.length)}return bo}function jn(dn){return H||(void 0===dn&&(dn=ue.substring(q)),J.push(dn),q=U,Fn(J),$t&&Hi()),Ut()}function $n(dn){q=dn,Fn(J),J=[],Ke=ue.indexOf(z,q)}function Ut(dn){return{data:L,errors:wt,meta:{delimiter:A,linebreak:z,aborted:ft,truncated:!!dn,cursor:We+(li||0)}}}function Hi(){ie(Ut()),L=[],wt=[]}},this.abort=function(){ft=!0},this.getCharIndex=function(){return q}}function yo(w){var v=w.data,A=Qt[v.workerId],z=!1;if(v.error)A.userError(v.error,v.file);else if(v.results&&v.results.data){var G={abort:function(){z=!0,ai(v.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ac,resume:ac};if(qe(A.userStep)){for(var ie=0;ie{Rn(Rn.s=483)}]); \ No newline at end of file +var _G=Object.defineProperty,yG=(Rn,On,Ht)=>On in Rn?_G(Rn,On,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Rn[On]=Ht,wx=(Rn,On,Ht)=>(yG(Rn,"symbol"!=typeof On?On+"":On,Ht),Ht);(self.webpackChunknovex_dataset_app=self.webpackChunknovex_dataset_app||[]).push([[179],{483:(Rn,On,Ht)=>{"use strict";function Se(n){return"function"==typeof n}function vi(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const sr=vi(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Ue(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Be{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Se(i))try{i()}catch(o){t=o instanceof sr?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{_o(o)}catch(s){t=t??[],s instanceof sr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new sr(t)}}add(t){var e;if(t&&t!==this)if(this.closed)_o(t);else{if(t instanceof Be){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Ue(e,t)}remove(t){const{_finalizers:e}=this;e&&Ue(e,t),t instanceof Be&&t._removeParent(this)}}Be.EMPTY=(()=>{const n=new Be;return n.closed=!0,n})();const bi=Be.EMPTY;function Qt(n){return n instanceof Be||n&&"closed"in n&&Se(n.remove)&&Se(n.add)&&Se(n.unsubscribe)}function _o(n){Se(n)?n():n.unsubscribe()}const K={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},be={setTimeout(n,t,...e){const{delegate:i}=be;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=be;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function we(n){be.setTimeout(()=>{const{onUnhandledError:t}=K;if(!t)throw n;t(n)})}function jt(){}const ze=ar("C",void 0,void 0);function ar(n,t,e){return{kind:n,value:t,error:e}}let sn=null;function wi(n){if(K.useDeprecatedSynchronousErrorHandling){const t=!sn;if(t&&(sn={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=sn;if(sn=null,e)throw i}}else n()}class ai extends Be{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Qt(t)&&t.add(this)):this.destination=z}static create(t,e,i){return new qe(t,e,i)}next(t){this.isStopped?A(function Ur(n){return ar("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?A(function St(n){return ar("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?A(ze,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ac=Function.prototype.bind;function vo(n,t){return ac.call(n,t)}class Bi{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){w(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){w(i)}else w(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){w(e)}}}class qe extends ai{constructor(t,e,i){let r;if(super(),Se(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&K.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&vo(t.next,o),error:t.error&&vo(t.error,o),complete:t.complete&&vo(t.complete,o)}):r=t}this.destination=new Bi(r)}}function w(n){K.useDeprecatedSynchronousErrorHandling?function yo(n){K.useDeprecatedSynchronousErrorHandling&&sn&&(sn.errorThrown=!0,sn.error=n)}(n):we(n)}function A(n,t){const{onStoppedNotification:e}=K;e&&be.setTimeout(()=>e(n,t))}const z={closed:!0,next:jt,error:function v(n){throw n},complete:jt},G="function"==typeof Symbol&&Symbol.observable||"@@observable";function ie(n){return n}function xt(n){return 0===n.length?ie:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let ne=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function ue(n){return n&&n instanceof ai||function ft(n){return n&&Se(n.next)&&Se(n.error)&&Se(n.complete)}(n)&&Qt(n)}(e)?e:new qe(e,i,r);return wi(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=q(i))((r,o)=>{const s=new qe({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[G](){return this}pipe(...e){return xt(e)(this)}toPromise(e){return new(e=q(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function q(n){var t;return null!==(t=n??K.Promise)&&void 0!==t?t:Promise}const li=vi(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let H=(()=>{class n extends ne{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new U(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new li}next(e){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?bi:(this.currentObservers=null,o.push(e),new Be(()=>{this.currentObservers=null,Ue(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ne;return e.source=this,e}}return n.create=(t,e)=>new U(t,e),n})();class U extends H{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:bi}}function tt(n){return Se(n?.lift)}function Ae(n){return t=>{if(tt(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ce(n,t,e,i,r){return new $t(n,t,e,i,r)}class $t extends ai{constructor(t,e,i,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function L(n,t){return Ae((e,i)=>{let r=0;e.subscribe(ce(i,o=>{i.next(n.call(t,o,r++))}))})}function xe(n,t){return function(e,i){t(e,i,n)}}function Hn(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function $i(n){return this instanceof $i?(this.v=n,this):new $i(n)}function wo(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(f){return new Promise(function(p,g){o.push([h,f,p,g])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof $i?Promise.resolve(h.value.v).then(c,u):d(o[0][2],h)}(i[h](f))}catch(p){d(o[0][3],p)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Co(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Ut(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}const Ch=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function sy(n){return Se(n?.then)}function ay(n){return Se(n[G])}function ly(n){return Symbol.asyncIterator&&Se(n?.[Symbol.asyncIterator])}function cy(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 uy=function Dx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function dy(n){return Se(n?.[uy])}function hy(n){return wo(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield $i(e.read());if(r)return yield $i(void 0);yield yield $i(i)}}finally{e.releaseLock()}})}function fy(n){return Se(n?.getReader)}function Nn(n){if(n instanceof ne)return n;if(null!=n){if(ay(n))return function Ex(n){return new ne(t=>{const e=n[G]();if(Se(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Ch(n))return function Sx(n){return new ne(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,we)})}(n);if(ly(n))return py(n);if(dy(n))return function kx(n){return new ne(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(fy(n))return function Ax(n){return py(hy(n))}(n)}throw cy(n)}function py(n){return new ne(t=>{(function xx(n,t){var e,i,r,o;return function Fn(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Co(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ur(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Xt(n,t,e=1/0){return Se(t)?Xt((i,r)=>L((o,s)=>t(i,o,r,s))(Nn(n(i,r))),e):("number"==typeof t&&(e=t),Ae((i,r)=>function Tx(n,t,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},f=g=>c{o&&t.next(g),c++;let _=!1;Nn(e(g,u++)).subscribe(ce(t,y=>{r?.(y),o?f(y):t.next(y)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(y)):p(y)}h()}catch(y){t.error(y)}}))};return n.subscribe(ce(t,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,e)))}function cs(n=1/0){return Xt(ie,n)}const dr=new ne(n=>n.complete());function my(n){return n&&Se(n.schedule)}function Dh(n){return n[n.length-1]}function gy(n){return Se(Dh(n))?n.pop():void 0}function Ca(n){return my(Dh(n))?n.pop():void 0}function _y(n,t=0){return Ae((e,i)=>{e.subscribe(ce(i,r=>ur(i,n,()=>i.next(r),t),()=>ur(i,n,()=>i.complete(),t),r=>ur(i,n,()=>i.error(r),t)))})}function yy(n,t=0){return Ae((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function vy(n,t){if(!n)throw new Error("Iterable cannot be null");return new ne(e=>{ur(e,t,()=>{const i=n[Symbol.asyncIterator]();ur(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Mt(n,t){return t?function Vx(n,t){if(null!=n){if(ay(n))return function Ox(n,t){return Nn(n).pipe(yy(t),_y(t))}(n,t);if(Ch(n))return function Nx(n,t){return new ne(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(sy(n))return function Fx(n,t){return Nn(n).pipe(yy(t),_y(t))}(n,t);if(ly(n))return vy(n,t);if(dy(n))return function Px(n,t){return new ne(e=>{let i;return ur(e,t,()=>{i=n[uy](),ur(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>Se(i?.return)&&i.return()})}(n,t);if(fy(n))return function Lx(n,t){return vy(hy(n),t)}(n,t)}throw cy(n)}(n,t):Nn(n)}function Do(...n){const t=Ca(n),e=function Rx(n,t){return"number"==typeof Dh(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Nn(i[0]):cs(e)(Mt(i,t)):dr}function Eh(n={}){const{connector:t=(()=>new H),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const g=s;f(),g?.unsubscribe()};return Ae((g,_)=>{c++,!d&&!u&&h();const y=l=l??t();_.add(()=>{c--,0===c&&!d&&!u&&(a=Sh(p,r))}),y.subscribe(_),!s&&c>0&&(s=new qe({next:D=>y.next(D),error:D=>{d=!0,h(),a=Sh(f,e,D),y.error(D)},complete:()=>{u=!0,h(),a=Sh(f,i),y.complete()}}),Nn(g).subscribe(s))})(o)}}function Sh(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new qe({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function nt(n){for(let t in n)if(n[t]===nt)return t;throw Error("Could not find renamed property on target object.")}function Mh(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function it(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(it).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function kh(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Bx=nt({__forward_ref__:nt});function ot(n){return n.__forward_ref__=ot,n.toString=function(){return it(this())},n}function ae(n){return Ah(n)?n():n}function Ah(n){return"function"==typeof n&&n.hasOwnProperty(Bx)&&n.__forward_ref__===ot}class E extends Error{constructor(t,e){super(function lc(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function pe(n){return"string"==typeof n?n:null==n?"":String(n)}function cc(n,t){throw new E(-201,!1)}function zn(n,t){null==n&&function Xe(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function I(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Oe(n){return{providers:n.providers||[],imports:n.imports||[]}}function uc(n){return by(n,dc)||by(n,Cy)}function by(n,t){return n.hasOwnProperty(t)?n[t]:null}function wy(n){return n&&(n.hasOwnProperty(xh)||n.hasOwnProperty(Kx))?n[xh]:null}const dc=nt({\u0275prov:nt}),xh=nt({\u0275inj:nt}),Cy=nt({ngInjectableDef:nt}),Kx=nt({ngInjectorDef:nt});var ee=(()=>((ee=ee||{})[ee.Default=0]="Default",ee[ee.Host=1]="Host",ee[ee.Self=2]="Self",ee[ee.SkipSelf=4]="SkipSelf",ee[ee.Optional=8]="Optional",ee))();let Th;function ci(n){const t=Th;return Th=n,t}function Dy(n,t,e){const i=uc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ee.Optional?null:void 0!==t?t:void cc(it(n))}function zr(n){return{toString:n}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),Di=(()=>{return(n=Di||(Di={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Di;var n})();const st=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),us={},Ze=[],hc=nt({\u0275cmp:nt}),Ih=nt({\u0275dir:nt}),Rh=nt({\u0275pipe:nt}),Ey=nt({\u0275mod:nt}),fr=nt({\u0275fac:nt}),Da=nt({__NG_ELEMENT_ID__:nt});let Zx=0;function He(n){return zr(()=>{const e=!0===n.standalone,i={},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:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Ze,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Di.Emulated,id:"c"+Zx++,styles:n.styles||Ze,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=ky(n.inputs,i),r.outputs=ky(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Sy).filter(My):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Cn).filter(My):null,r})}function Sy(n){return Je(n)||wn(n)}function My(n){return null!==n}function Pe(n){return zr(()=>({type:n.type,bootstrap:n.bootstrap||Ze,declarations:n.declarations||Ze,imports:n.imports||Ze,exports:n.exports||Ze,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function ky(n,t){if(null==n)return us;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const M=He;function hn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Je(n){return n[hc]||null}function wn(n){return n[Ih]||null}function Cn(n){return n[Rh]||null}function Wn(n,t){const e=n[Ey]||null;if(!e&&!0===t)throw new Error(`Type ${it(n)} does not have '\u0275mod' property.`);return e}function Pn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Si(n){return Array.isArray(n)&&!0===n[1]}function Nh(n){return 0!=(8&n.flags)}function gc(n){return 2==(2&n.flags)}function _c(n){return 1==(1&n.flags)}function Mi(n){return null!==n.template}function nT(n){return 0!=(256&n[2])}function Ao(n,t){return n.hasOwnProperty(fr)?n[fr]:null}class oT{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function zt(){return Ty}function Ty(n){return n.type.prototype.ngOnChanges&&(n.setInput=aT),sT}function sT(){const n=Ry(this),t=n?.current;if(t){const e=n.previous;if(e===us)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function aT(n,t,e,i){const r=Ry(n)||function lT(n,t){return n[Iy]=t}(n,{previous:us,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new oT(l&&l.currentValue,t,s===us),n[i]=t}zt.ngInherit=!0;const Iy="__ngSimpleChanges__";function Ry(n){return n[Iy]||null}function Tt(n){for(;Array.isArray(n);)n=n[0];return n}function yc(n,t){return Tt(t[n])}function qn(n,t){return Tt(t[n.index])}function Hh(n,t){return n.data[t]}function ms(n,t){return n[t]}function Kn(n,t){const e=t[n];return Pn(e)?e:e[0]}function vc(n){return 64==(64&n[2])}function Wr(n,t){return null==t?null:n[t]}function Oy(n){n[18]=0}function jh(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const de={lFrame:Uy(null),bindingsEnabled:!0};function Ny(){return de.bindingsEnabled}function S(){return de.lFrame.lView}function Le(){return de.lFrame.tView}function ki(n){return de.lFrame.contextLView=n,n[8]}function Ai(n){return de.lFrame.contextLView=null,n}function Wt(){let n=Py();for(;null!==n&&64===n.type;)n=n.parent;return n}function Py(){return de.lFrame.currentTNode}function Ui(n,t){const e=de.lFrame;e.currentTNode=n,e.isParent=t}function $h(){return de.lFrame.isParent}function Uh(){de.lFrame.isParent=!1}function Dn(){const n=de.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function gs(){return de.lFrame.bindingIndex++}function mr(n){const t=de.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function DT(n,t){const e=de.lFrame;e.bindingIndex=e.bindingRootIndex=n,zh(t)}function zh(n){de.lFrame.currentDirectiveIndex=n}function Wh(n){const t=de.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Hy(){return de.lFrame.currentQueryIndex}function Gh(n){de.lFrame.currentQueryIndex=n}function ST(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function jy(n,t,e){if(e&ee.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&ee.Host||(r=ST(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=de.lFrame=$y();return i.currentTNode=t,i.lView=n,!0}function qh(n){const t=$y(),e=n[1];de.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function $y(){const n=de.lFrame,t=null===n?null:n.child;return null===t?Uy(n):t}function Uy(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function zy(){const n=de.lFrame;return de.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Wy=zy;function Kh(){const n=zy();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 En(){return de.lFrame.selectedIndex}function Gr(n){de.lFrame.selectedIndex=n}function gt(){const n=de.lFrame;return Hh(n.tView,n.selectedIndex)}function xo(){de.lFrame.currentNamespace="svg"}function bc(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class xa{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Dc(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Qh=!0;function Sc(n){const t=Qh;return Qh=n,t}let BT=0;const zi={};function Ia(n,t){const e=Jh(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Xh(i.data,n),Xh(t,null),Xh(i.blueprint,null));const r=Mc(n,t),o=n.injectorIndex;if(Zy(r)){const s=_s(r),a=ys(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Xh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Jh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Mc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=ov(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function kc(n,t,e){!function HT(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Da)&&(i=e[Da]),null==i&&(i=e[Da]=BT++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:zT:t}(e);if("function"==typeof o){if(!jy(t,n,i))return i&ee.Host?Jy(r,0,i):ev(t,e,i,r);try{const s=o(i);if(null!=s||i&ee.Optional)return s;cc()}finally{Wy()}}else if("number"==typeof o){let s=null,a=Jh(n,t),l=-1,c=i&ee.Host?t[16][6]:null;for((-1===a||i&ee.SkipSelf)&&(l=-1===a?Mc(n,t):t[a+8],-1!==l&&rv(i,!1)?(s=t[1],a=_s(l),t=ys(l,t)):a=-1);-1!==a;){const u=t[1];if(iv(o,a,u.data)){const d=$T(a,t,e,s,i,c);if(d!==zi)return d}l=t[a+8],-1!==l&&rv(i,t[1].data[a+8]===c)&&iv(o,a,t)?(s=u,a=_s(l),t=ys(l,t)):a=-1}}return r}function $T(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Ac(a,s,e,null==i?gc(a)&&Qh:i!=s&&0!=(3&a.type),r&ee.Host&&o===a);return null!==u?Ra(t,s,u,a):zi}function Ac(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&p.type===e)return f}if(r){const f=s[l];if(f&&Mi(f)&&f.type===e)return l}return null}function Ra(n,t,e,i){let r=n[e];const o=t.data;if(function FT(n){return n instanceof xa}(r)){const s=r;s.resolving&&function Hx(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new E(-200,`Circular dependency in DI detected for ${n}${e}`)}(function Ye(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():pe(n)}(o[e]));const a=Sc(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ci(s.injectImpl):null;jy(n,i,ee.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function RT(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Ty(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&ci(l),Sc(a),s.resolving=!1,Wy()}}return r}function iv(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[fr]||ef(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[fr]||ef(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ef(n){return Ah(n)?()=>{const t=ef(ae(n));return t&&t()}:Ao(n)}function ov(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function Kr(n){return function jT(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function tf(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(ws)?l[ws]:Object.defineProperty(l,ws,{value:[]})[ws];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class k{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=I({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Yn(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?gr(e,t):t(e))}function av(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function xc(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Na(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function YT(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function rf(n,t){const e=Es(n,t);if(e>=0)return n[1|e]}function Es(n,t){return function uv(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<((Ln=Ln||{})[Ln.Important=1]="Important",Ln[Ln.DashCase=2]="DashCase",Ln))();const ff=new Map;let EI=0;const mf="__ngContext__";function mn(n,t){Pn(t)?(n[mf]=t[20],function MI(n){ff.set(n[20],n)}(t)):n[mf]=t}function _f(n,t){return undefined(n,t)}function $a(n){const t=n[3];return Si(t)?t[3]:t}function yf(n){return Rv(n[13])}function vf(n){return Rv(n[4])}function Rv(n){for(;null!==n&&!Si(n);)n=n[4];return n}function As(n,t,e,i,r){if(null!=i){let o,s=!1;Si(i)?o=i:Pn(i)&&(s=!0,i=i[0]);const a=Tt(i);0===n&&null!==e?null==r?Vv(t,e,a):To(t,e,a,r||null,!0):1===n&&null!==e?To(t,e,a,r||null,!0):2===n?function Mf(n,t,e){const i=Fc(n,t);i&&function KI(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function QI(n,t,e,i,r){const o=e[7];o!==Tt(e)&&As(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=xc(n,10+t);!function HI(n,t){Ua(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Nv(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Ua(n,t,e,3,null,null),function UI(n){let t=n[13];if(!t)return Df(n[1],n);for(;t;){let e=null;if(Pn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Pn(t)&&Df(t[1],t),t=t[3];null===t&&(t=n),Pn(t)&&Df(t[1],t),e=t&&t[4]}t=e}}(t)}}function Df(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function qI(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;on,createScript:n=>n,createScriptURL:n=>n})}catch{}return Lc}()?.createHTML(n)||n}function Kv(n){return function If(){if(void 0===Vc&&(Vc=null,st.trustedTypes))try{Vc=st.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Vc}()?.createHTML(n)||n}class Ro{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class iR extends Ro{getTypeName(){return"HTML"}}class rR extends Ro{getTypeName(){return"Style"}}class oR extends Ro{getTypeName(){return"Script"}}class sR extends Ro{getTypeName(){return"URL"}}class aR extends Ro{getTypeName(){return"ResourceURL"}}function Qn(n){return n instanceof Ro?n.changingThisBreaksApplicationSecurity:n}function Wi(n,t){const e=function lR(n){return n instanceof Ro&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class pR{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Io(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class mR{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Io(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Io(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();Rf.hasOwnProperty(e)&&!Xv.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(nb(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const bR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wR=/([^\#-~ |!])/g;function nb(n){return n.replace(/&/g,"&").replace(bR,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wR,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Hc;function ib(n,t){let e=null;try{Hc=Hc||function Qv(n){const t=new mR(n);return function gR(){try{return!!(new window.DOMParser).parseFromString(Io(""),"text/html")}catch{return!1}}()?new pR(t):t}(n);let i=t?String(t):"";e=Hc.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Hc.getInertBodyElement(i)}while(i!==o);return Io((new vR).sanitizeChildren(Ff(e)||e))}finally{if(e){const i=Ff(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Ff(n){return"content"in n&&function CR(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var je=(()=>((je=je||{})[je.NONE=0]="NONE",je[je.HTML=1]="HTML",je[je.STYLE=2]="STYLE",je[je.SCRIPT=3]="SCRIPT",je[je.URL=4]="URL",je[je.RESOURCE_URL=5]="RESOURCE_URL",je))();function rb(n){const t=Wa();return t?Kv(t.sanitize(je.HTML,n)||""):Wi(n,"HTML")?Kv(Qn(n)):ib(function qv(){return void 0!==Tf?Tf:typeof document<"u"?document:void 0}(),pe(n))}function Oo(n){const t=Wa();return t?t.sanitize(je.URL,n)||"":Wi(n,"URL")?Qn(n):Bc(pe(n))}function Wa(){const n=S();return n&&n[12]}const Nf=new k("ENVIRONMENT_INITIALIZER"),sb=new k("INJECTOR",-1),ab=new k("INJECTOR_DEF_TYPES");class lb{get(t,e=Pa){if(e===Pa){const i=new Error(`NullInjectorError: No provider for ${it(t)}!`);throw i.name="NullInjectorError",i}return e}}function xR(...n){return{\u0275providers:cb(0,n)}}function cb(n,...t){const e=[],i=new Set;let r;return gr(t,o=>{const s=o;Pf(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&ub(r,e),e}function ub(n,t){for(let e=0;e{t.push(o)})}}function Pf(n,t,e,i){if(!(n=ae(n)))return!1;let r=null,o=wy(n);const s=!o&&Je(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=wy(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Pf(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{gr(o.imports,u=>{Pf(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&ub(c,t)}if(!a){const c=Ao(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:Ze},{provide:ab,useValue:r,multi:!0},{provide:Nf,useValue:()=>b(r),multi:!0})}const l=o.providers;null==l||a||gr(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const TR=nt({provide:String,useValue:nt});function Lf(n){return null!==n&&"object"==typeof n&&TR in n}function Fo(n){return"function"==typeof n}const Vf=new k("Set Injector scope."),jc={},RR={};let Bf;function $c(){return void 0===Bf&&(Bf=new lb),Bf}class Yr{}class fb extends Yr{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jf(t,s=>this.processProvider(s)),this.records.set(sb,xs(void 0,this)),r.has("environment")&&this.records.set(Yr,xs(void 0,this));const o=this.records.get(Vf);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ab.multi,Ze,ee.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Ss(this),i=ci(void 0);try{return t()}finally{Ss(e),ci(i)}}get(t,e=Pa,i=ee.Default){this.assertNotDestroyed();const r=Ss(this),o=ci(void 0);try{if(!(i&ee.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function LR(n){return"function"==typeof n||"object"==typeof n&&n instanceof k}(t)&&uc(t);a=l&&this.injectableDefInScope(l)?xs(Hf(t),jc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&ee.Self?$c():this.parent).get(t,e=i&ee.Optional&&e===Pa?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Ic]=s[Ic]||[]).unshift(it(t)),r)throw s;return function aI(n,t,e,i){const r=n[Ic];throw t[dv]&&r.unshift(t[dv]),n.message=function lI(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=it(t);if(Array.isArray(t))r=t.map(it).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):it(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(iI,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Ic]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{ci(o),Ss(r)}}resolveInjectorInitializers(){const t=Ss(this),e=ci(void 0);try{const i=this.get(Nf.multi,Ze,ee.Self);for(const r of i)r()}finally{Ss(t),ci(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(it(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(t){let e=Fo(t=ae(t))?t:ae(t&&t.provide);const i=function FR(n){return Lf(n)?xs(void 0,n.useValue):xs(pb(n),jc)}(t);if(Fo(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=xs(void 0,jc,!0),r.factory=()=>lf(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===jc&&(e.value=RR,e.value=e.factory()),"object"==typeof e.value&&e.value&&function PR(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=ae(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Hf(n){const t=uc(n),e=null!==t?t.factory:Ao(n);if(null!==e)return e;if(n instanceof k)throw new E(204,!1);if(n instanceof Function)return function OR(n){const t=n.length;if(t>0)throw Na(t,"?"),new E(204,!1);const e=function Gx(n){const t=n&&(n[dc]||n[Cy]);if(t){const e=function qx(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new E(204,!1)}function pb(n,t,e){let i;if(Fo(n)){const r=ae(n);return Ao(r)||Hf(r)}if(Lf(n))i=()=>ae(n.useValue);else if(function hb(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...lf(n.deps||[]));else if(function db(n){return!(!n||!n.useExisting)}(n))i=()=>b(ae(n.useExisting));else{const r=ae(n&&(n.useClass||n.provide));if(!function NR(n){return!!n.deps}(n))return Ao(r)||Hf(r);i=()=>new r(...lf(n.deps))}return i}function xs(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function VR(n){return!!n.\u0275providers}function jf(n,t){for(const e of n)Array.isArray(e)?jf(e,t):VR(e)?jf(e.\u0275providers,t):t(e)}class mb{}class jR{resolveComponentFactory(t){throw function HR(n){const t=Error(`No component factory found for ${it(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let No=(()=>{class n{}return n.NULL=new jR,n})();function $R(){return Ts(Wt(),S())}function Ts(n,t){return new De(qn(n,t))}let De=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=$R,n})();function UR(n){return n instanceof De?n.nativeElement:n}class Ga{}let yr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function zR(){const n=S(),e=Kn(Wt().index,n);return(Pn(e)?e:n)[11]}(),n})(),WR=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>null}),n})();class Zr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const GR=new Zr("14.2.12"),$f={};function zf(n){return n.ngOriginalError}class vr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&zf(t);for(;e&&zf(e);)e=zf(e);return e||null}}function br(n){return n instanceof Function?n():n}function yb(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const vb="ng-template";function iO(n,t,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==yb(f,c,0)||2&i&&c!==h){if(Ti(i))return!1;s=!0}}}}else{if(!s&&!Ti(i)&&!Ti(l))return!1;if(s&&Ti(l))continue;s=!1,i=l|1&i}}return Ti(i)||s}function Ti(n){return 0==(1&n)}function sO(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Ti(s)&&(t+=Cb(o,r),r=""),i=s,o=o||!Ti(i);e++}return""!==r&&(t+=Cb(o,r)),t}const me={};function O(n){Db(Le(),S(),En()+n,!1)}function Db(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&wc(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Cc(t,o,0,e)}Gr(e)}function kb(n,t=null,e=null,i){const r=Ab(n,t,e,i);return r.resolveInjectorInitializers(),r}function Ab(n,t=null,e=null,i,r=new Set){const o=[e||Ze,xR(n)];return i=i||("object"==typeof n?void 0:it(n)),new fb(o,t||$c(),i||null,r)}let Dt=(()=>{class n{static create(e,i){if(Array.isArray(e))return kb({name:""},i,e,"");{const r=e.name??"";return kb({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Pa,n.NULL=new lb,n.\u0275prov=I({token:n,providedIn:"any",factory:()=>b(sb)}),n.__NG_ELEMENT_ID__=-1,n})();function m(n,t=ee.Default){const e=S();return null===e?b(n,t):tv(Wt(),e,ae(n),t)}function qa(){throw new Error("invalid")}function zc(n,t){return n<<17|t<<2}function Ii(n){return n>>17&32767}function Yf(n){return 2|n}function wr(n){return(131068&n)>>2}function Zf(n,t){return-131069&n|t<<2}function Qf(n){return 1|n}function Wb(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&Db(n,t,22,!1),e(i,r)}finally{Gr(o)}}function qb(n,t,e){if(Nh(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function ew(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function tw(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function n1(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&hp(e)}}function hp(n){for(let i=yf(n);null!==i;i=vf(i))for(let r=10;r0&&hp(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&hp(r)}}function u1(n,t){const e=Kn(t,n),i=e[1];(function d1(n,t){for(let e=t.length;e-1&&(Cf(t,i),xc(e,i))}this._attachedToViewContainer=!1}Nv(this._lView[1],this._lView)}onDestroy(t){Yb(this._lView[1],this._lView,null,t)}markForCheck(){fp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Zc(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $I(n,t){Ua(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t}}class h1 extends Ka{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Zc(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class gp extends No{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Je(t);return new Ya(e,this.ngModule)}}function cw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class p1{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,$f,i);return r!==$f||e===$f?r:this.parentInjector.get(t,e,i)}}class Ya extends mb{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function hO(n){return n.map(dO).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return cw(this.componentDef.inputs)}get outputs(){return cw(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Yr?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new p1(t,o):t,a=s.get(Ga,null);if(null===a)throw new E(407,!1);const l=s.get(WR,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function GO(n,t,e){return n.selectRootElement(t,e===Di.ShadowDom)}(c,i,this.componentDef.encapsulation):wf(c,u,function f1(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,f=cp(0,null,null,1,0,null,null,null,null,null),p=qc(null,f,null,h,null,null,a,c,l,s,null);let g,_;qh(p);try{const y=function _1(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=Os(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Qc(l,c,!0),null!==n&&(Dc(r,n,c),null!==l.classes&&Af(r,n,l.classes),null!==l.styles&&Gv(r,n,l.styles)));const u=i.createRenderer(n,t),d=qc(e,Kb(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(kc(Ia(l,e),s,t.type),tw(s,l),nw(l,e.length,1)),Yc(e,d),e[22]=d}(d,this.componentDef,p,a,c);if(d)if(i)Dc(c,d,["ng-version",GR.full]);else{const{attrs:D,classes:C}=function fO(n){const t=[],e=[];let i=1,r=2;for(;i0&&Af(c,d,C.join(" "))}if(_=Hh(f,22),void 0!==e){const D=_.projection=[];for(let C=0;C=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ec(r.hostAttrs,e=Ec(e,r.hostAttrs))}}(i)}function _p(n){return n===us?{}:n===Ze?[]:n}function w1(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function C1(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function D1(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let Jc=null;function Po(){if(!Jc){const n=st.Symbol;if(n&&n.iterator)Jc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Tt(Y[i.index])):i.index;let T=null;if(!a&&l&&(T=function N1(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=o,T.__ngLastListenerFn__=o,f=!1;else{o=Dw(i,t,d,o,!1);const Y=e.listen(y,r,o);h.push(o,Y),u&&u.push(r,C,D,D+1)}}else o=Dw(i,t,d,o,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const _=g.length;if(_)for(let y=0;y<_;y+=2){const le=t[g[y]][g[y+1]].subscribe(o),Qe=h.length;h.push(o,le),u&&u.push(r,i.index,Qe,-(Qe+1))}}}function Cw(n,t,e,i){try{return!1!==e(i)}catch(r){return lw(n,r),!1}}function Dw(n,t,e,i,r){return function o(s){if(s===Function)return i;fp(2&n.flags?Kn(n.index,t):t);let l=Cw(t,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=Cw(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function he(n=1){return function MT(n){return(de.lFrame.contextLView=function kT(n,t){for(;n>0;)t=t[15],n--;return t}(n,de.lFrame.contextLView))[8]}(n)}function P1(n,t){let e=null;const i=function aO(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const qt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fw(n){return n.substring(qt.key,qt.keyEnd)}function Nw(n,t){const e=qt.textEnd;return e===t?-1:(t=qt.keyEnd=function U1(n,t,e){for(;t32;)t++;return t}(n,qt.key=t,e),zs(n,t,e))}function zs(n,t,e){for(;t=0;e=Nw(t,e))Zn(n,Fw(t),!0)}function Ri(n,t,e,i){const r=S(),o=Le(),s=mr(2);o.firstUpdatePass&&jw(o,n,s,i),t!==me&&gn(r,s,t)&&Uw(o,o.data[En()],r,r[11],n,r[s+1]=function eF(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=it(Qn(n)))),n}(t,e),i,s)}function Hw(n,t){return t>=n.expandoStartIndex}function jw(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[En()],s=Hw(n,e);Ww(o,i)&&null===t&&!s&&(t=!1),t=function K1(n,t,e,i){const r=Wh(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Ja(e=wp(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=wp(r,n,t,e,i),null===o){let l=function Y1(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==wr(i))return n[Ii(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=wp(null,n,t,l[1],i),l=Ja(l,t.attrs,i),function Z1(n,t,e,i){n[Ii(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function Q1(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Ii(n[a+1]);n[i+1]=zc(h,a),0!==h&&(n[h+1]=Zf(n[h+1],i)),n[a+1]=function RO(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=zc(a,0),0!==a&&(n[a+1]=Zf(n[a+1],i)),a=i;else n[i+1]=zc(l,0),0===a?a=i:n[l+1]=Zf(n[l+1],i),l=i;c&&(n[i+1]=Yf(n[i+1])),Ow(n,u,i,!0),Ow(n,u,i,!1),function V1(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Es(o,t)>=0&&(e[i+1]=Qf(e[i+1]))}(t,u,n,i,o),s=zc(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function wp(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===me&&(h=d?Ze:void 0);let f=d?rf(h,i):u===i?h:void 0;if(c&&!ru(f)&&(f=rf(l,i)),ru(f)&&(a=f,s))return a;const p=n[r+1];r=s?Ii(p):wr(p)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=rf(l,i))}return a}function ru(n){return void 0!==n}function Ww(n,t){return 0!=(n.flags&(t?16:32))}function re(n,t=""){const e=S(),i=Le(),r=n+22,o=i.firstCreatePass?Os(i,r,1,t,null):i.data[r],s=e[r]=function bf(n,t){return n.createText(t)}(e[11],t);Nc(i,e,s,o),Ui(o,!1)}function Vn(n){return ti("",n,""),Vn}function ti(n,t,e){const i=S(),r=Ps(i,n,t,e);return r!==me&&function Cr(n,t,e){const i=yc(t,n);!function Ov(n,t,e){n.setValue(t,e)}(n[11],i,e)}(i,En(),r),ti}function eC(n,t,e){!function Oi(n,t,e,i){const r=Le(),o=mr(2);r.firstUpdatePass&&jw(r,null,o,i);const s=S();if(e!==me&&gn(s,o,e)){const a=r.data[En()];if(Ww(a,i)&&!Hw(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=kh(l,e||"")),vp(r,a,s,e,i)}else!function J1(n,t,e,i,r,o,s,a){r===me&&(r=Ze);let l=0,c=0,u=0>20;if(Fo(n)||!n.multi){const f=new xa(l,r,m),p=Mp(a,t,r?u:u+h,d);-1===p?(kc(Ia(c,s),o,a),Sp(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=Mp(a,t,u+h,d),p=Mp(a,t,u,u+h),g=f>=0&&e[f],_=p>=0&&e[p];if(r&&!_||!r&&!g){kc(Ia(c,s),o,a);const y=function _N(n,t,e,i,r){const o=new xa(n,e,m);return o.multi=[],o.index=t,o.componentProviders=0,LC(o,r,i&&!e),o}(r?gN:mN,e.length,r,i,l);!r&&_&&(e[p].providerFactory=y),Sp(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(y),s.push(y)}else Sp(o,n,f>-1?f:p,LC(e[r?p:f],l,!r&&i));!r&&i&&_&&e[p].componentProviders++}}}function Sp(n,t,e,i){const r=Fo(t),o=function IR(n){return!!n.useClass}(t);if(r||o){const l=(o?ae(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function LC(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Mp(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function pN(n,t,e){const i=Le();if(i.firstCreatePass){const r=Mi(n);Ep(e,i.data,i.blueprint,r,!0),Ep(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Bo{}class VC{}class BC extends Bo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new gp(this);const i=Wn(t);this._bootstrapComponents=br(i.bootstrap),this._r3Injector=Ab(t,e,[{provide:Bo,useValue:this},{provide:No,useValue:this.componentFactoryResolver}],it(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ap extends VC{constructor(t){super(),this.moduleType=t}create(t){return new BC(this.moduleType,t)}}class vN extends Bo{constructor(t,e,i){super(),this.componentFactoryResolver=new gp(this),this.instance=null;const r=new fb([...t,{provide:Bo,useValue:this},{provide:No,useValue:this.componentFactoryResolver}],e||$c(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function uu(n,t,e=null){return new vN(n,t,e).injector}let bN=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=cb(0,e.type),r=i.length>0?uu([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=I({token:n,providedIn:"environment",factory:()=>new n(b(Yr))}),n})();function HC(n){n.getStandaloneInjector=t=>t.get(bN).getOrCreateStandaloneInjector(n)}function KC(n,t,e,i,r,o){const s=t+e;return gn(n,s,r)?qi(n,s+1,o?i.call(o,r):i(r)):function sl(n,t){const e=n[t];return e===me?void 0:e}(n,s+1)}function Tp(n,t){const e=Le();let i;const r=n+22;e.firstCreatePass?(i=function VN(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ao(i.type)),s=ci(m);try{const a=Sc(!1),l=o();return Sc(a),function R1(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,S(),r,l),l}finally{ci(s)}}function Ip(n,t,e){const i=n+22,r=S(),o=ms(r,i);return function al(n,t){return n[1].data[t].pure}(r,i)?KC(r,Dn(),t,o.transform,e,o):o.transform(e)}function Rp(n){return t=>{setTimeout(n,void 0,t)}}const ve=class UN extends H{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Rp(o),r&&(r=Rp(r)),s&&(s=Rp(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof Be&&t.add(a),a}};function zN(){return this._results[Po()]()}class ll{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Po(),i=ll.prototype;i[e]||(i[e]=zN)}get changes(){return this._changes||(this._changes=new ve)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Yn(t);(this._changesDetected=!function qT(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=qN,n})();const WN=Rt,GN=class extends WN{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=qc(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),sp(i,r,t),new Ka(r)}};function qN(){return du(Wt(),S())}function du(n,t){return 4&n.type?new GN(t,n,Ts(n,t)):null}let Ot=(()=>{class n{}return n.__NG_ELEMENT_ID__=KN,n})();function KN(){return tD(Wt(),S())}const YN=Ot,JC=class extends YN{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Ts(this._hostTNode,this._hostLView)}get injector(){return new vs(this._hostTNode,this._hostLView)}get parentInjector(){const t=Mc(this._hostTNode,this._hostLView);if(Zy(t)){const e=ys(t,this._hostLView),i=_s(t);return new vs(e[1].data[i+8],e)}return new vs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=eD(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Fa(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new Ya(Je(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Yr,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function mT(n){return Si(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new JC(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function zI(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=fu,this.reject=fu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(b(pu,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ul=new k("AppId",{providedIn:"root",factory:function MD(){return`${Up()}${Up()}${Up()}`}});function Up(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kD=new k("Platform Initializer"),dl=new k("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),AD=new k("appBootstrapListener"),Dr=new k("AnimationModuleType");let DP=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Ji=new k("LocaleId",{providedIn:"root",factory:()=>dt(Ji,ee.Optional|ee.SkipSelf)||function EP(){return typeof $localize<"u"&&$localize.locale||Gs}()});class MP{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let gu=(()=>{class n{compileModuleSync(e){return new Ap(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=br(Wn(e).declarations).reduce((s,a)=>{const l=Je(a);return l&&s.push(new Ya(l)),s},[]);return new MP(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xP=(()=>Promise.resolve(0))();function zp(n){typeof Zone>"u"?xP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function TP(){let n=st.requestAnimationFrame,t=st.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function OP(n){const t=()=>{!function RP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(st,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Gp(n),n.isCheckStableRunning=!0,Wp(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Gp(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return ID(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),RD(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return ID(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),RD(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Gp(n),Wp(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new E(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,IP,fu,fu);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const IP={};function Wp(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 Gp(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function ID(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function RD(n){n._nesting--,Wp(n)}class FP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ve,this.onMicrotaskEmpty=new ve,this.onStable=new ve,this.onError=new ve}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const OD=new k(""),_u=new k("");let Yp,qp=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Yp||(function NP(n){Yp=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),zp(()=>{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())zp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(Kp),b(_u))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Kp=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Yp?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Jr=null;const FD=new k("AllowMultipleToken"),Zp=new k("PlatformDestroyListeners");class ND{constructor(t,e){this.name=t,this.token=e}}function LD(n,t,e=[]){const i=`Platform: ${t}`,r=new k(i);return(o=[])=>{let s=Qp();if(!s||s.injector.get(FD,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function VP(n){if(Jr&&!Jr.get(FD,!1))throw new E(400,!1);Jr=n;const t=n.get(BD);(function PD(n){const t=n.get(kD,null);t&&t.forEach(e=>e())})(n)}(function VD(n=[],t){return Dt.create({name:t,providers:[{provide:Vf,useValue:"platform"},{provide:Zp,useValue:new Set([()=>Jr=null])},...n]})}(a,i))}return function HP(n){const t=Qp();if(!t)throw new E(401,!1);return t}()}}function Qp(){return Jr?.get(BD)??null}let BD=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function jD(n,t){let e;return e="noop"===n?new FP:("zone.js"===n?void 0:n)||new Ie(t),e}(i?.ngZone,function HD(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ie,useValue:r}];return r.run(()=>{const s=Dt.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(vr,null);if(!l)throw new E(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{yu(this._modules,a),c.unsubscribe()})}),function $D(n,t,e){try{const i=e();return Xa(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(mu);return c.runInitializers(),c.donePromise.then(()=>(function fC(n){zn(n,"Expected localeId to be defined"),"string"==typeof n&&(hC=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Ji,Gs)||Gs),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=UD({},i);return function PP(n,t,e){const i=new Ap(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ys);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new E(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Zp,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(b(Dt))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function UD(n,t){return Array.isArray(t)?t.reduce(UD,n):{...n,...t}}let Ys=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ne(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ne(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),zp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Do(o,s.pipe(Eh()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof mb;if(!this._injector.get(mu).done)throw!r&&function ds(n){const t=Je(n)||wn(n)||Cn(n);return null!==t&&t.standalone}(e),new E(405,false);let s;s=r?e:this._injector.get(No).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function LP(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Bo),c=s.create(Dt.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(OD,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),yu(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new E(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;yu(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(AD,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>yu(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new E(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(Yr),b(vr))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function yu(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let WD=!0,GD=!1;function qD(){return GD=!0,WD}let er=(()=>{class n{}return n.__NG_ELEMENT_ID__=UP,n})();function UP(n){return function zP(n,t,e){if(gc(n)&&!e){const i=Kn(n.index,t);return new Ka(i,i)}return 47&n.type?new Ka(t[16],t):null}(Wt(),S(),16==(16&n))}class QD{constructor(){}supports(t){return Za(t)}create(t){return new ZP(t)}}const YP=(n,t)=>t;class ZP{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||YP}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new QP(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new XD),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new XD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class QP{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class XP{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class XD{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new XP,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function JD(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new eL(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class eL{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function tE(){return new Sr([new QD])}let Sr=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||tE()),deps:[[n,new Ms,new xi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new E(901,!1)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:tE}),n})();function nE(){return new hl([new eE])}let hl=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||nE()),deps:[[n,new Ms,new xi]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new E(901,!1)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:nE}),n})();const iL=LD(null,"core",[]);let rL=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(b(Ys))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();function Mr(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let wu=null;function tr(){return wu}const ge=new k("DocumentToken");let nm=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return function lL(){return b(iE)}()},providedIn:"platform"}),n})();const cL=new k("Location Initialized");let iE=(()=>{class n extends nm{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return tr().getBaseHref(this._doc)}onPopState(e){const i=tr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=tr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){rE()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){rE()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:function(){return function uL(){return new iE(b(ge))}()},providedIn:"platform"}),n})();function rE(){return!!window.history.pushState}function im(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function oE(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function kr(n){return n&&"?"!==n[0]?"?"+n:n}let Ar=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return dt(aE)},providedIn:"root"}),n})();const sE=new k("appBaseHref");let aE=(()=>{class n extends Ar{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??dt(ge).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return im(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+kr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+kr(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+kr(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(b(nm),b(sE,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dL=(()=>{class n extends Ar{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=im(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+kr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+kr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(b(nm),b(sE,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),jo=(()=>{class n{constructor(e){this._subject=new ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=oE(lE(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+kr(i))}normalize(e){return n.stripTrailingSlash(function fL(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,lE(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kr(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kr(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=kr,n.joinWithSlash=im,n.stripTrailingSlash=oE,n.\u0275fac=function(e){return new(e||n)(b(Ar))},n.\u0275prov=I({token:n,factory:function(){return function hL(){return new jo(b(Ar))}()},providedIn:"root"}),n})();function lE(n){return n.replace(/\/index.html$/,"")}function _E(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let fm=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Za(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${it(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(m(Sr),m(hl),m(De),m(yr))},n.\u0275dir=M({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class QL{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Iu=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new QL(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),bE(a,r)}});for(let r=0,o=i.length;r{bE(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt),m(Sr))},n.\u0275dir=M({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function bE(n,t){n.context.$implicit=t.item}let eo=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new JL,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){wE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){wE("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt))},n.\u0275dir=M({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class JL{constructor(){this.$implicit=null,this.ngIf=null}}function wE(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${it(t)}'.`)}class pm{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let $o=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new pm(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt),m($o,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),CE=(()=>{class n{constructor(e,i,r){r._addDefault(new pm(e,i))}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(Rt),m($o,9))},n.\u0275dir=M({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})();class iV{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class rV{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const oV=new rV,sV=new iV;let EE=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Xa(e))return oV;if(bw(e))return sV;throw function Pi(n,t){return new E(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(m(er,16))},n.\u0275pipe=hn({name:"async",type:n,pure:!1,standalone:!0}),n})(),to=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();const ME="browser";function no(n){return n===ME}let MV=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>new kV(b(ge),window)}),n})();class kV{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function AV(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=kE(this.window.history)||kE(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function kE(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class AE{}class vm extends class GV extends class aL{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function sL(n){wu||(wu=n)}(new vm)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function qV(){return _l=_l||document.querySelector("base"),_l?_l.getAttribute("href"):null}();return null==e?null:function KV(n){Ou=Ou||document.createElement("a"),Ou.setAttribute("href",n);const t=Ou.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){_l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return _E(document.cookie,t)}}let Ou,_l=null;const RE=new k("TRANSITION_ID"),ZV=[{provide:pu,useFactory:function YV(n,t,e){return()=>{e.get(mu).donePromise.then(()=>{const i=tr(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Fu=new k("EventManagerPlugins");let Nu=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),yl=(()=>{class n extends FE{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(NE),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(NE))}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function NE(n){tr().remove(n)}const bm={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},wm=/%COMP%/g;function Pu(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Lu=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Cm(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Di.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new rB(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Di.ShadowDom:return new oB(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Pu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(b(Nu),b(yl),b(ul))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Cm{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(bm[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(HE(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(HE(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=bm[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=bm[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Ln.DashCase|Ln.Important)?t.style.setProperty(e,i,r&Ln.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ln.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,VE(i)):this.eventManager.addEventListener(t,e,VE(i))}}function HE(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class rB extends Cm{constructor(t,e,i,r){super(t),this.component=i;const o=Pu(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function tB(n){return"_ngcontent-%COMP%".replace(wm,n)}(r+"-"+i.id),this.hostAttr=function nB(n){return"_nghost-%COMP%".replace(wm,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class oB extends Cm{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Pu(r.id,r.styles,[]);for(let s=0;s{class n extends OE{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const jE=["alt","control","meta","shift"],aB={"\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"},lB={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let cB=(()=>{class n extends OE{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tr().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),jE.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=aB[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),jE.forEach(s=>{s!==r&&(0,lB[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const fB=LD(iL,"browser",[{provide:dl,useValue:ME},{provide:kD,useValue:function uB(){vm.makeCurrent()},multi:!0},{provide:ge,useFactory:function hB(){return function nR(n){Tf=n}(document),document},deps:[]}]),zE=new k(""),WE=[{provide:_u,useClass:class QV{addToWindow(t){st.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},st.getAllAngularTestabilities=()=>t.getAllTestabilities(),st.getAllAngularRootElements=()=>t.getAllRootElements(),st.frameworkStabilizers||(st.frameworkStabilizers=[]),st.frameworkStabilizers.push(i=>{const r=st.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?tr().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:OD,useClass:qp,deps:[Ie,Kp,_u]},{provide:qp,useClass:qp,deps:[Ie,Kp,_u]}],GE=[{provide:Vf,useValue:"root"},{provide:vr,useFactory:function dB(){return new vr},deps:[]},{provide:Fu,useClass:sB,multi:!0,deps:[ge,Ie,dl]},{provide:Fu,useClass:cB,multi:!0,deps:[ge]},{provide:Lu,useClass:Lu,deps:[Nu,yl,ul]},{provide:Ga,useExisting:Lu},{provide:FE,useExisting:yl},{provide:yl,useClass:yl,deps:[ge]},{provide:Nu,useClass:Nu,deps:[Fu,Ie]},{provide:AE,useClass:XV,deps:[]},[]];let qE=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:ul,useValue:e.appId},{provide:RE,useExisting:ul},ZV]}}}return n.\u0275fac=function(e){return new(e||n)(b(zE,12))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[...GE,...WE],imports:[to,rL]}),n})(),KE=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:function(e){let i=null;return i=e?new e:function mB(){return new KE(b(ge))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(e){let i=null;return i=e?new(e||n):b(QE),i},providedIn:"root"}),n})(),QE=(()=>{class n extends vl{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case je.NONE:return i;case je.HTML:return Wi(i,"HTML")?Qn(i):ib(this._doc,String(i)).toString();case je.STYLE:return Wi(i,"Style")?Qn(i):i;case je.SCRIPT:if(Wi(i,"Script"))return Qn(i);throw new Error("unsafe value used in a script context");case je.URL:return Wi(i,"URL")?Qn(i):Bc(String(i));case je.RESOURCE_URL:if(Wi(i,"ResourceURL"))return Qn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function cR(n){return new iR(n)}(e)}bypassSecurityTrustStyle(e){return function uR(n){return new rR(n)}(e)}bypassSecurityTrustScript(e){return function dR(n){return new oR(n)}(e)}bypassSecurityTrustUrl(e){return function hR(n){return new sR(n)}(e)}bypassSecurityTrustResourceUrl(e){return function fR(n){return new aR(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:function(e){let i=null;return i=e?new e:function CB(n){return new QE(n.get(ge))}(b(Dt)),i},providedIn:"root"}),n})();class ni extends H{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function $(...n){return Mt(n,Ca(n))}function Zs(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Pt(n,t,e){const i=Se(n)||t||e?{next:n,error:t,complete:e}:n;return i?Ae((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ce(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):ie}class FB extends Be{constructor(t,e){super()}schedule(t,e=0){return this}}const Vu={setInterval(n,t,...e){const{delegate:i}=Vu;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=Vu;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class xm extends FB{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return Vu.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Vu.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Ue(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const Tm={now:()=>(Tm.delegate||Date).now(),delegate:void 0};class bl{constructor(t,e=bl.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}bl.now=Tm.now;class Im extends bl{constructor(t,e=bl.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Rm=new Im(xm),NB=Rm;function Om(n,t=Rm){return Ae((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=t.now();if(u{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function en(n,t){return Ae((e,i)=>{let r=0;e.subscribe(ce(i,o=>n.call(t,o,r++)&&i.next(o)))})}function tn(n){return n<=0?()=>dr:Ae((t,e)=>{let i=0;t.subscribe(ce(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function n0(n){return en((t,e)=>n<=e)}function Fm(n,t=ie){return n=n??PB,Ae((e,i)=>{let r,o=!0;e.subscribe(ce(i,s=>{const a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}function PB(n,t){return n===t}function Lt(n){return Ae((t,e)=>{Nn(n).subscribe(ce(e,()=>e.complete(),jt)),!e.closed&&t.subscribe(e)})}function nn(n){return null!=n&&"false"!=`${n}`}function Qs(n,t=0){return function LB(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Bu(n){return Array.isArray(n)?n:[n]}function Vt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Uo(n){return n instanceof De?n.nativeElement:n}let Nm;try{Nm=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Nm=!1}let wl,zo,Lm,Li,ln=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?no(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&&!Nm)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(b(dl))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();function Hu(n){return function VB(){if(null==wl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>wl=!0}))}finally{wl=wl||!1}return wl}()?n:!!n.capture}function BB(){if(null==zo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return zo=!1,zo;if("scrollBehavior"in document.documentElement.style)zo=!0;else{const n=Element.prototype.scrollTo;zo=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return zo}function o0(n){if(function HB(){if(null==Lm){const n=typeof document<"u"?document.head:null;Lm=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Lm}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Vm(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Wo(n){return n.composedPath?n.composedPath()[0]:n.target}function Bm(){return typeof Li.__karma__<"u"&&!!Li.__karma__||typeof Li.jasmine<"u"&&!!Li.jasmine||typeof Li.jest<"u"&&!!Li.jest||typeof Li.Mocha<"u"&&!!Li.Mocha}Li=typeof global<"u"?global:typeof window<"u"?window:{};class zB extends class UB{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new H,this._typeaheadSubscription=Be.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new H,this.change=new H,t instanceof ll&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Pt(e=>this._pressedLetters.push(e)),Om(t),en(()=>this._pressedLetters.length>0),L(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Zs(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof ll?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}let l0=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function GB(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function WB(n){try{return n.frameElement}catch{return null}}(function e2(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===u0(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=u0(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function XB(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function JB(n){return!function KB(n){return function ZB(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function qB(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function YB(n){return function QB(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||c0(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(b(ln))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function c0(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function u0(n){if(!c0(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class t2{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(tn(1)).subscribe(t)}}let n2=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new t2(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(b(l0),b(Ie),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function d0(n){return 0===n.offsetX&&0===n.offsetY}function h0(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const r2=new k("cdk-input-modality-detector-options"),o2={ignoreKeys:[18,17,224,91,16]},Js=Hu({passive:!0,capture:!0});let s2=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new ni(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Wo(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(d0(s)?"keyboard":"mouse"),this._mostRecentTarget=Wo(s))},this._onTouchstart=s=>{h0(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wo(s))},this._options={...o2,...o},this.modalityDetected=this._modality.pipe(n0(1)),this.modalityChanged=this.modalityDetected.pipe(Fm()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Js),r.addEventListener("mousedown",this._onMousedown,Js),r.addEventListener("touchstart",this._onTouchstart,Js)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Js),document.removeEventListener("mousedown",this._onMousedown,Js),document.removeEventListener("touchstart",this._onTouchstart,Js))}}return n.\u0275fac=function(e){return new(e||n)(b(ln),b(Ie),b(ge),b(r2,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const a2=new k("liveAnnouncerElement",{providedIn:"root",factory:function l2(){return null}}),c2=new k("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let p0=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new H,this._rootNodeFocusAndBlurListener=a=>{const l=Wo(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Uo(e);if(!this._platform.isBrowser||1!==r.nodeType)return $(null);const o=o0(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new H,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Uo(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Uo(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Wo(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,$u),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,$u)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Lt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$u),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$u),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(ln),b(s2),b(ge,8),b(u2,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const g0="cdk-high-contrast-black-on-white",_0="cdk-high-contrast-white-on-black",Hm="cdk-high-contrast-active";let d2=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Hm),e.remove(g0),e.remove(_0),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Hm),e.add(g0)):2===i&&(e.add(Hm),e.add(_0))}}}return n.\u0275fac=function(e){return new(e||n)(b(ln),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const h2=new k("cdk-dir-doc",{providedIn:"root",factory:function f2(){return dt(ge)}});let Go=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new ve,e){const r=e.documentElement?e.documentElement.dir:null,o=(e.body?e.body.dir:null)||r;this.value="ltr"===o||"rtl"===o?o:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(b(h2,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();const y0=new Zr("13.0.0");function p2(n,t){if(1&n&&_t(0,"mat-pseudo-checkbox",4),2&n){const e=he();F("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function m2(n,t){if(1&n&&(x(0,"span",5),re(1),R()),2&n){const e=he();O(1),ti("(",e.group.label,")")}}const g2=["*"],v0=new Zr("13.0.0"),y2=new k("mat-sanity-checks",{providedIn:"root",factory:function _2(){return!0}});let vt=(()=>{class n{constructor(e,i,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!qD()||Bm())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.remove()}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&v0.full!==y0.full&&console.warn("The Angular Material version ("+v0.full+") does not match the Angular CDK version ("+y0.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(b(d2),b(y2,8),b(ge))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[Cl],Cl]}),n})();function b0(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=nn(t)}}}function Dl(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function w0(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=nn(t)}}}function v2(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qs(e):this.defaultTabIndex}}}function b2(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new H,this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let C0=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class C2{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const D0={enterDuration:225,exitDuration:150},jm=Hu({passive:!0}),E0=["mousedown","touchstart"],S0=["mouseup","mouseleave","touchend","touchcancel"];class E2{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Uo(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...D0,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function M2(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function S2(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new C2(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r={...D0,...t.config.animation};i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Uo(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(E0))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(S0),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=d0(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,jm)})})}_removeTriggerEvents(){this._triggerElement&&(E0.forEach(t=>{this._triggerElement.removeEventListener(t,this,jm)}),this._pointerUpEventsRegistered&&S0.forEach(t=>{this._triggerElement.removeEventListener(t,this,jm)}))}}const k2=new k("mat-ripple-global-options");let $m=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new E2(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(Ie),m(ln),m(k2,8),m(Dr,8))},n.\u0275dir=M({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&It("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),M0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt,Pm],vt]}),n})(),A2=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(m(Dr,8))},n.\u0275cmp=He({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&It("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),x2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt]]}),n})();const k0=new k("MAT_OPTION_PARENT_COMPONENT"),A0=new k("MatOptgroup");let T2=0;class I2{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let R2=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+T2++,this.onSelectionChange=new ve,this._stateChanges=new H}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=nn(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Zs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new I2(this,e))}}return n.\u0275fac=function(e){qa()},n.\u0275dir=M({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Um=(()=>{class n extends R2{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(er),m(k0,8),m(A0,8))},n.\u0275cmp=He({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Ge("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(el("id",i.id),et("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),It("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[j],ngContentSelectors:g2,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Zi(),W(0,p2,1,2,"mat-pseudo-checkbox",0),x(1,"span",1),kt(2),R(),W(3,m2,2,1,"span",2),_t(4,"div",3)),2&e&&(F("ngIf",i.multiple),O(3),F("ngIf",i.group&&i.group._inert),O(1),F("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[A2,eo,$m],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function x0(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;s{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[M0,to,vt,x2]]}),n})();function ea(n,t){const e=Se(n)?n:()=>n,i=r=>r.error(e());return new ne(t?r=>t.schedule(i,0,r):i)}const{isArray:F2}=Array,{getPrototypeOf:N2,prototype:P2,keys:L2}=Object;function I0(n){if(1===n.length){const t=n[0];if(F2(t))return{args:t,keys:null};if(function V2(n){return n&&"object"==typeof n&&N2(n)===P2}(t)){const e=L2(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:B2}=Array;function zm(n){return L(t=>function H2(n,t){return B2(t)?n(...t):n(t)}(n,t))}function R0(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function O0(...n){const t=gy(n),{args:e,keys:i}=I0(n),r=new ne(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?R0(i,a):a),o.complete())}))}});return t?r.pipe(zm(t)):r}function Tr(n){return Ae((t,e)=>{let o,i=null,r=!1;i=t.subscribe(ce(e,void 0,void 0,s=>{o=Nn(n(s,Tr(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Uu(n){return Ae((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}function ro(n,t){return Se(t)?Xt(n,t,1):Xt(n,1)}class F0{}class N0{}class Ir{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ir?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Ir;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ir?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class j2{encodeKey(t){return P0(t)}encodeValue(t){return P0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const U2=/%(\d[a-f0-9])/gi,z2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function P0(n){return encodeURIComponent(n).replace(U2,(t,e)=>z2[e]??t)}function zu(n){return`${n}`}class oo{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new j2,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $2(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(zu):[zu(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new oo({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(zu(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(zu(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class W2{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function L0(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function V0(n){return typeof Blob<"u"&&n instanceof Blob}function B0(n){return typeof FormData<"u"&&n instanceof FormData}class Sl{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function G2(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ir),this.context||(this.context=new W2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new Sl(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Bt=(()=>((Bt=Bt||{})[Bt.Sent=0]="Sent",Bt[Bt.UploadProgress=1]="UploadProgress",Bt[Bt.ResponseHeader=2]="ResponseHeader",Bt[Bt.DownloadProgress=3]="DownloadProgress",Bt[Bt.Response=4]="Response",Bt[Bt.User=5]="User",Bt))();class Wm{constructor(t,e=200,i="OK"){this.headers=t.headers||new Ir,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Gm extends Wm{constructor(t={}){super(t),this.type=Bt.ResponseHeader}clone(t={}){return new Gm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Wu extends Wm{constructor(t={}){super(t),this.type=Bt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Wu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class qm extends Wm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Km(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Ml=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Sl)o=e;else{let l,c;l=r.headers instanceof Ir?r.headers:new Ir(r.headers),r.params&&(c=r.params instanceof oo?r.params:new oo({fromObject:r.params})),o=new Sl(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=$(o).pipe(ro(l=>this.handler.handle(l)));if(e instanceof Sl||"events"===r.observe)return s;const a=s.pipe(en(l=>l instanceof Wu));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(L(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(L(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(L(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(L(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new oo).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Km(r,i))}post(e,i,r={}){return this.request("POST",e,Km(r,i))}put(e,i,r={}){return this.request("PUT",e,Km(r,i))}}return n.\u0275fac=function(e){return new(e||n)(b(F0))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class H0{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const j0=new k("HTTP_INTERCEPTORS");let K2=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Y2=/^\)\]\}',?\n/;let $0=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ne(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new Ir(r.getAllResponseHeaders()),g=function Z2(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Gm({headers:p,status:r.status,statusText:f,url:g}),s},l=()=>{let{headers:f,status:p,statusText:g,url:_}=a(),y=null;204!==p&&(y=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=y?200:0);let D=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof y){const C=y;y=y.replace(Y2,"");try{y=""!==y?JSON.parse(y):null}catch(T){y=C,D&&(D=!1,y={error:T,text:y})}}D?(i.next(new Wu({body:y,headers:f,status:p,statusText:g,url:_||void 0})),i.complete()):i.error(new qm({error:y,headers:f,status:p,statusText:g,url:_||void 0}))},c=f=>{const{url:p}=a(),g=new qm({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(g)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Bt.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&!!r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Bt.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:Bt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(b(AE))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Ym=new k("XSRF_COOKIE_NAME"),Zm=new k("XSRF_HEADER_NAME");class U0{}let Q2=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=_E(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(b(ge),b(dl),b(Ym))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Qm=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(b(U0),b(Zm))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),X2=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(j0,[]);this.chain=i.reduceRight((r,o)=>new H0(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(b(N0),b(Dt))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),J2=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Qm,useClass:K2}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Ym,useValue:e.cookieName}:[],e.headerName?{provide:Zm,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[Qm,{provide:j0,useExisting:Qm,multi:!0},{provide:U0,useClass:Q2},{provide:Ym,useValue:"XSRF-TOKEN"},{provide:Zm,useValue:"X-XSRF-TOKEN"}]}),n})(),eH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[Ml,{provide:F0,useClass:X2},$0,{provide:N0,useExisting:$0}],imports:[J2.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();const tH=["*"];let Gu;function kl(n){return function nH(){if(void 0===Gu&&(Gu=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Gu=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Gu}()?.createHTML(n)||n}function z0(n){return Error(`Unable to find icon with the name "${n}"`)}function W0(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function G0(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class qo{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let qu=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new qo(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(je.HTML,r);if(!s)throw G0(r);const a=kl(s);return this._addSvgIconConfig(e,i,new qo("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new qo(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(je.HTML,i);if(!o)throw G0(i);const s=kl(o);return this._addSvgIconSetConfig(e,new qo("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(je.RESOURCE_URL,e);if(!i)throw W0(e);const r=this._cachedIconsByUrl.get(i);return r?$(Ku(r)):this._loadSvgIconFromConfig(new qo(e,null)).pipe(Pt(o=>this._cachedIconsByUrl.set(i,o)),L(o=>Ku(o)))}getNamedSvgIcon(e,i=""){const r=q0(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):ea(z0(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?$(Ku(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(L(i=>Ku(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?$(r):O0(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Tr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(je.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),$(null)})))).pipe(L(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw z0(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Pt(i=>e.svgText=i),L(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?$(null):this._fetchIcon(e).pipe(Pt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(kl(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(kl("")),r=e.attributes;for(let o=0;okl(c)),Uu(()=>this._inProgressUrlFetches.delete(s)),Eh());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(q0(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),K0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cH=K0.map(n=>`[${n}]`).join(", "),uH=/^url\(['"]?#(.*?)['"]?\)$/;let Xm=(()=>{class n extends sH{constructor(e,i,r,o,s){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._currentIconFetch=Be.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=nn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let o=0;o{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(cH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(uH):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(tn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(qu),Kr("aria-hidden"),m(aH),m(vr))},n.\u0275cmp=He({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(et("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),It("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[j],ngContentSelectors:tH,decls:1,vars:0,template:function(e,i){1&e&&(Zi(),kt(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})(),dH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt],vt]}),n})();const hH=["mat-button",""],fH=["*"],mH=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],gH=Dl(b0(w0(class{constructor(n){this._elementRef=n}})));let Al=(()=>{class n extends gH{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of mH)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(m0),m(Dr,8))},n.\u0275cmp=He({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&an($m,5),2&e){let r;Me(r=ke())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(et("disabled",i.disabled||null),It("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[j],attrs:hH,ngContentSelectors:fH,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Zi(),x(0,"span",0),kt(1),R(),_t(2,"span",1)(3,"span",2)),2&e&&(O(2),It("mat-button-ripple-round",i.isRoundButton||i.isIconButton),F("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[$m],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})(),Y0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[M0,vt],vt]}),n})();const Yu=vi(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function Jm(...n){const t=Ca(n),e=gy(n),{args:i,keys:r}=I0(n);if(0===i.length)return Mt([],t);const o=new ne(function _H(n,t,e=ie){return i=>{Z0(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Mt(n[l],t);let u=!1;c.subscribe(ce(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>R0(r,s):ie));return e?o.pipe(zm(e)):o}function Z0(n,t,e){n?ur(e,n,t):t()}function Zu(...n){return function yH(){return cs(1)}()(Mt(n,Ca(n)))}function Qu(n){return new ne(t=>{Nn(n()).subscribe(t)})}function eg(){return Ae((n,t)=>{let e=null;n._refCount++;const i=ce(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class Q0 extends ne{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,tt(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Be;const e=this.getSubject();t.add(this.source.subscribe(ce(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Be.EMPTY)}return t}refCount(){return eg()(this)}}function ii(n,t){return Ae((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(ce(i,l=>{r?.unsubscribe();let c=0;const u=o++;Nn(n(l,u)).subscribe(r=ce(i,d=>i.next(t?t(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Rr(...n){const t=Ca(n);return Ae((e,i)=>{(t?Zu(n,e,t):Zu(n,e)).subscribe(i)})}function Xu(n){return Ae((t,e)=>{let i=!1;t.subscribe(ce(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function X0(n=vH){return Ae((t,e)=>{let i=!1;t.subscribe(ce(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function vH(){return new Yu}function Or(n,t){const e=arguments.length>=2;return i=>i.pipe(n?en((r,o)=>n(r,o,i)):ie,tn(1),e?Xu(t):X0(()=>new Yu))}function bH(n,t,e,i,r){return(o,s)=>{let a=e,l=t,c=0;o.subscribe(ce(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function J0(n,t){return Ae(bH(n,t,arguments.length>=2,!0))}function tg(n){return n<=0?()=>dr:Ae((t,e)=>{let i=[];t.subscribe(ce(e,r=>{i.push(r),n{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function eS(n,t){const e=arguments.length>=2;return i=>i.pipe(n?en((r,o)=>n(r,o,i)):ie,tg(1),e?Xu(t):X0(()=>new Yu))}function tS(n,t=!1){return Ae((e,i)=>{let r=0;e.subscribe(ce(i,o=>{const s=n(o,r++);(s||t)&&i.next(o),!s&&i.complete()}))})}function nS(n){return L(()=>n)}const Te="primary",xl=Symbol("RouteTitle");class wH{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ta(n){return new wH(n)}function CH(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function ng(n){return Array.prototype.concat.apply([],n)}function rS(n){return n.length>0?n[n.length-1]:null}function cn(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function so(n){return bp(n)?n:Xa(n)?Mt(Promise.resolve(n)):$(n)}const SH={exact:function aS(n,t,e){if(!Yo(n.segments,t.segments)||!Ju(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!aS(n.children[i],t.children[i],e))return!1;return!0},subset:lS},oS={exact:function MH(n,t){return nr(n,t)},subset:function kH(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>iS(n[e],t[e]))},ignored:()=>!0};function sS(n,t,e){return SH[e.paths](n.root,t.root,e.matrixParams)&&oS[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function lS(n,t,e){return cS(n,t,t.segments,e)}function cS(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Yo(r,e)||t.hasChildren()||!Ju(r,e,i))}if(n.segments.length===e.length){if(!Yo(n.segments,e)||!Ju(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!lS(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Yo(n.segments,r)&&Ju(n.segments,r,i)&&n.children[Te])&&cS(n.children[Te],t,o,i)}}function Ju(n,t,e){return t.every((i,r)=>oS[e](n[r].parameters,i.parameters))}class Ko{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ta(this.queryParams)),this._queryParamMap}toString(){return TH.serialize(this)}}class Re{constructor(t,e){this.segments=t,this.children=e,this.parent=null,cn(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ed(this)}}class Tl{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ta(this.parameters)),this._parameterMap}toString(){return hS(this)}}function Yo(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let rg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return new og},providedIn:"root"}),n})();class og{parse(t){const e=new BH(t);return new Ko(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Il(t.root,!0)}`,i=function OH(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${td(e)}=${td(r)}`).join("&"):`${td(e)}=${td(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function IH(n){return encodeURI(n)}(t.fragment)}`:""}`}}const TH=new og;function ed(n){return n.segments.map(t=>hS(t)).join("/")}function Il(n,t){if(!n.hasChildren())return ed(n);if(t){const e=n.children[Te]?Il(n.children[Te],!1):"",i=[];return cn(n.children,(r,o)=>{o!==Te&&i.push(`${o}:${Il(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function xH(n,t){let e=[];return cn(n.children,(i,r)=>{r===Te&&(e=e.concat(t(i,r)))}),cn(n.children,(i,r)=>{r!==Te&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Te?[Il(n.children[Te],!1)]:[`${r}:${Il(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Te]?`${ed(n)}/${e[0]}`:`${ed(n)}/(${e.join("//")})`}}function uS(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function td(n){return uS(n).replace(/%3B/gi,";")}function sg(n){return uS(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nd(n){return decodeURIComponent(n)}function dS(n){return nd(n.replace(/\+/g,"%20"))}function hS(n){return`${sg(n.path)}${function RH(n){return Object.keys(n).map(t=>`;${sg(t)}=${sg(n[t])}`).join("")}(n.parameters)}`}const FH=/^[^\/()?;=#]+/;function id(n){const t=n.match(FH);return t?t[0]:""}const NH=/^[^=?&#]+/,LH=/^[^&#]+/;class BH{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Te]=new Re(t,e)),i}parseSegment(){const t=id(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(t),new Tl(nd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=id(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=id(this.remaining);r&&(i=r,this.capture(i))}t[nd(e)]=nd(i)}parseQueryParam(t){const e=function PH(n){const t=n.match(NH);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function VH(n){const t=n.match(LH);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=dS(e),o=dS(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=id(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new E(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Te);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Te]:new Re([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new E(4011,!1)}}function ag(n){return n.segments.length>0?new Re([],{[Te]:n}):n}function rd(n){const t={};for(const i of Object.keys(n.children)){const o=rd(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function HH(n){if(1===n.numberOfChildren&&n.children[Te]){const t=n.children[Te];return new Re(n.segments.concat(t.segments),t.children)}return n}(new Re(n.segments,t))}function Zo(n){return n instanceof Ko}function UH(n,t,e,i,r){if(0===e.length)return na(t.root,t.root,t.root,i,r);const o=function mS(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new pS(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return cn(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new pS(e,t,i)}(e);return o.toRoot()?na(t.root,t.root,new Re([],{}),i,r):function s(l){const c=function WH(n,t,e,i){if(n.isAbsolute)return new ia(t.root,!0,0);if(-1===i)return new ia(e,e===t.root,0);return function gS(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new E(4005,!1);r=i.segments.length}return new ia(i,!1,r-o)}(e,i+(Rl(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Fl(c.segmentGroup,c.index,o.commands):cg(c.segmentGroup,c.index,o.commands);return na(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Rl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ol(n){return"object"==typeof n&&null!=n&&n.outlets}function na(n,t,e,i,r){let s,o={};i&&cn(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:fS(n,t,e);const a=ag(rd(s));return new Ko(a,o,r)}function fS(n,t,e){const i={};return cn(n.children,(r,o)=>{i[o]=r===t?e:fS(r,t,e)}),new Re(n.segments,i)}class pS{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Rl(i[0]))throw new E(4003,!1);const r=i.find(Ol);if(r&&r!==rS(i))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ia{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function cg(n,t,e){if(n||(n=new Re([],{})),0===n.segments.length&&n.hasChildren())return Fl(n,t,e);const i=function qH(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Ol(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!yS(l,c,s))return o;i+=2}else{if(!yS(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=cg(n.children[s],t,o))}),cn(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Re(n.segments,r)}}function ug(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=ug(new Re([],{}),0,e))}),t}function _S(n){const t={};return cn(n,(e,i)=>t[i]=`${e}`),t}function yS(n,t,e){return n==e.path&&nr(t,e.parameters)}class Fr{constructor(t,e){this.id=t,this.url=e}}class dg extends Fr{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qo extends Fr{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class od extends Fr{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vS extends Fr{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class YH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QH extends Fr{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class XH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class JH extends Fr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ej{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tj{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nj{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ij{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rj{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oj{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bS{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class wS{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=hg(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=hg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=fg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return fg(t,this._root).map(e=>e.value)}}function hg(n,t){if(n===t.value)return t;for(const e of t.children){const i=hg(n,e);if(i)return i}return null}function fg(n,t){if(n===t.value)return[t];for(const e of t.children){const i=fg(n,e);if(i.length)return i.unshift(t),i}return[]}class Nr{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ra(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class CS extends wS{constructor(t,e){super(t),this.snapshot=e,pg(this,t)}toString(){return this.snapshot.toString()}}function DS(n,t){const e=function aj(n,t){const s=new sd([],{},{},"",{},Te,t,null,n.root,-1,{});return new SS("",new Nr(s,[]))}(n,t),i=new ni([new Tl("",{})]),r=new ni({}),o=new ni({}),s=new ni({}),a=new ni(""),l=new Xo(i,r,s,a,o,Te,t,e.root);return l.snapshot=e.root,new CS(new Nr(l,[]),e)}class Xo{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(L(c=>c[xl]))??$(void 0),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(L(t=>ta(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>ta(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ES(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function lj(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class sd{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[xl],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ta(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ta(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class SS extends wS{constructor(t,e){super(e),this.url=t,pg(this,e)}toString(){return MS(this._root)}}function pg(n,t){t.value._routerState=n,t.children.forEach(e=>pg(n,e))}function MS(n){const t=n.children.length>0?` { ${n.children.map(MS).join(", ")} } `:"";return`${n.value}${t}`}function mg(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,nr(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),nr(t.params,e.params)||n.params.next(e.params),function DH(n,t){if(n.length!==t.length)return!1;for(let e=0;enr(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||gg(n.parent,t.parent))}function Nl(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function uj(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Nl(n,i,r);return Nl(n,i)})}(n,t,e);return new Nr(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Nl(n,a)),s}}const i=function dj(n){return new Xo(new ni(n.url),new ni(n.params),new ni(n.queryParams),new ni(n.fragment),new ni(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Nl(n,o));return new Nr(i,r)}}const _g="ngNavigationCancelingError";function kS(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=Zo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=AS(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function AS(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[_g]=!0,i.cancellationCode=t,e&&(i.url=e),i}function xS(n){return TS(n)&&Zo(n.url)}function TS(n){return n&&n[_g]}class hj{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new oa,this.attachRef=null}}let oa=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new hj,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ad=!1;let yg=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ve,this.deactivateEvents=new ve,this.attachEvents=new ve,this.detachEvents=new ve,this.name=r||Te,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,ad);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,ad);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,ad);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new E(4013,ad);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new fj(e,a,r.injector);if(i&&function pj(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(m(oa),m(Ot),Kr("name"),m(er),m(Yr))},n.\u0275dir=M({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class fj{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Xo?this.route:t===oa?this.childContexts:this.parent.get(t,e)}}let vg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["ng-component"]],standalone:!0,features:[HC],decls:1,vars:0,template:function(e,i){1&e&&_t(0,"router-outlet")},dependencies:[yg],encapsulation:2}),n})();function IS(n,t){return n.providers&&!n._injector&&(n._injector=uu(n.providers,t,`Route: ${n.path}`)),n._injector??t}function wg(n){const t=n.children&&n.children.map(wg),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Te&&(e.component=vg),e}function mi(n){return n.outlet||Te}function RS(n,t){const e=n.filter(i=>mi(i)===t);return e.push(...n.filter(i=>mi(i)!==t)),e}function Pl(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class vj{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),mg(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=ra(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),cn(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=ra(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=ra(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=ra(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new oj(o.value.snapshot))}),t.children.length&&this.forwardEvent(new ij(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(mg(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),mg(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Pl(r.snapshot),l=a?.get(No)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class OS{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ld{constructor(t,e){this.component=t,this.route=e}}function bj(n,t,e){const i=n._root;return Ll(i,t?t._root:null,e,[i.value])}function sa(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function Wx(n){return null!==uc(n)}(n)?t.get(n):n:i}function Ll(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ra(t);return n.children.forEach(s=>{(function Cj(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function Dj(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Yo(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Yo(n.url,t.url)||!nr(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gg(n,t)||!nr(n.queryParams,t.queryParams);default:return!gg(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new OS(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ll(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ld(a.outlet.component,s))}else s&&Vl(t,a,r),r.canActivateChecks.push(new OS(i)),Ll(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),cn(o,(s,a)=>Vl(s,e.getContext(a),r)),r}function Vl(n,t,e){const i=ra(n),r=n.value;cn(i,(o,s)=>{Vl(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new ld(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Bl(n){return"function"==typeof n}function Cg(n){return n instanceof Yu||"EmptyError"===n?.name}const cd=Symbol("INITIAL_VALUE");function aa(){return ii(n=>Jm(n.map(t=>t.pipe(tn(1),Rr(cd)))).pipe(L(t=>{for(const e of t)if(!0!==e){if(e===cd)return cd;if(!1===e||e instanceof Ko)return e}return!0}),en(t=>t!==cd),tn(1)))}function FS(n){return function Ne(...n){return xt(n)}(Pt(t=>{if(Zo(t))throw kS(0,t)}),L(t=>!0===t))}const Dg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NS(n,t,e,i,r){const o=Eg(n,t,e);return o.matched?function Hj(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?$(r.map(s=>{const a=sa(s,n);return so(function xj(n){return n&&Bl(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(aa(),FS()):$(!0)}(i=IS(t,i),t,e).pipe(L(s=>!0===s?o:{...Dg})):$(o)}function Eg(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...Dg}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||CH)(e,n,t);if(!r)return{...Dg};const o={};cn(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function ud(n,t,e,i,r="corrected"){if(e.length>0&&function Uj(n,t,e){return e.some(i=>dd(n,t,i)&&mi(i)!==Te)}(n,e,i)){const s=new Re(t,function $j(n,t,e,i){const r={};r[Te]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&mi(o)!==Te){const s=new Re([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[mi(o)]=s}return r}(n,t,i,new Re(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function zj(n,t,e){return e.some(i=>dd(n,t,i))}(n,e,i)){const s=new Re(n.segments,function jj(n,t,e,i,r,o){const s={};for(const a of i)if(dd(n,e,a)&&!r[mi(a)]){const l=new Re([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[mi(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Re(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function dd(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function PS(n,t,e,i){return!!(mi(n)===i||i!==Te&&dd(t,e,n))&&("**"===n.path||Eg(t,n,e).matched)}function LS(n,t,e){return 0===t.length&&!n.children[e]}const hd=!1;class fd{constructor(t){this.segmentGroup=t||null}}class VS{constructor(t){this.urlTree=t}}function Hl(n){return ea(new fd(n))}function BS(n){return ea(new VS(n))}class Kj{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=ud(this.urlTree.root,[],[],this.config).segmentGroup,e=new Re(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Te).pipe(L(o=>this.createUrlTree(rd(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Tr(o=>{if(o instanceof VS)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof fd?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Te).pipe(L(r=>this.createUrlTree(rd(r),t.queryParams,t.fragment))).pipe(Tr(r=>{throw r instanceof fd?this.noMatchError(r):r}))}noMatchError(t){return new E(4002,hd)}createUrlTree(t,e,i){const r=ag(t);return new Ko(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(L(o=>new Re([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Mt(r).pipe(ro(o=>{const s=i.children[o],a=RS(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(L(l=>({segment:l,outlet:o})))}),J0((o,s)=>(o[s.outlet]=s.segment,o),{}),eS())}expandSegment(t,e,i,r,o,s){return Mt(i).pipe(ro(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(Tr(c=>{if(c instanceof fd)return $(null);throw c}))),Or(a=>!!a),Tr((a,l)=>{if(Cg(a))return LS(e,r,o)?$(new Re([],{})):Hl(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return PS(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Hl(e):Hl(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?BS(o):this.lineralizeSegments(i,o).pipe(Xt(s=>{const a=new Re(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Eg(e,r,o);if(!a)return Hl(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?BS(d):this.lineralizeSegments(r,d).pipe(Xt(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=IS(i,t),i.loadChildren?(i._loadedRoutes?$({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(L(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Re(r,{})))):$(new Re(r,{}))):NS(e,i,r,t).pipe(ii(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(Xt(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:f,slicedSegments:p}=ud(e,a,l,h),g=new Re(f.segments,f.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(L(C=>new Re(a,C)));if(0===h.length&&0===p.length)return $(new Re(a,{}));const _=mi(i)===o;return this.expandSegment(d,g,h,p,_?Te:o,!0).pipe(L(D=>new Re(a.concat(D.segments),D.children)))})):Hl(e)))}getChildConfig(t,e,i){return e.children?$({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?$({routes:e._loadedRoutes,injector:e._loadedInjector}):function Bj(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?$(!0):$(r.map(s=>{const a=sa(s,n);return so(function Sj(n){return n&&Bl(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(aa(),FS())}(t,e,i).pipe(Xt(r=>r?this.configLoader.loadChildren(t,e).pipe(Pt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Gj(n){return ea(AS(hd,3))}())):$({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return $(i);if(r.numberOfChildren>1||!r.children[Te])return ea(new E(4e3,hd));r=r.children[Te]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new Ko(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return cn(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return cn(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Re(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new E(4001,hd);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Zj{}class Jj{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=ud(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Te).pipe(L(e=>{if(null===e)return null;const i=new sd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Te,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Nr(i,e),o=new SS(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=ES(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Mt(Object.keys(i.children)).pipe(ro(r=>{const o=i.children[r],s=RS(e,r);return this.processSegmentGroup(t,s,o,r)}),J0((r,o)=>r&&o?(r.push(...o),r):null),tS(r=>null!==r),Xu(null),eS(),L(r=>{if(null===r)return null;const o=HS(r);return function e$(n){n.sort((t,e)=>t.value.outlet===Te?-1:e.value.outlet===Te?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Mt(e).pipe(ro(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),Or(s=>!!s),Tr(s=>{if(Cg(s))return LS(i,r,o)?$([]):$(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!PS(e,i,r,o))return $(null);let s;if("**"===e.path){const a=r.length>0?rS(r).parameters:{},l=$S(i)+r.length;s=$({snapshot:new sd(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zS(e),mi(e),e.component??e._loadedComponent??null,e,jS(i),l,WS(e),l),consumedSegments:[],remainingSegments:[]})}else s=NS(i,e,r,t).pipe(L(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=$S(i)+l.length;return{snapshot:new sd(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zS(e),mi(e),e.component??e._loadedComponent??null,e,jS(i),d,WS(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(ii(a=>{if(null===a)return $(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function t$(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=ud(i,c,u,h.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(L(_=>null===_?null:[new Nr(l,_)]));if(0===h.length&&0===p.length)return $([new Nr(l,[])]);const g=mi(e)===o;return this.processSegment(d,h,f,p,g?Te:o).pipe(L(_=>null===_?null:[new Nr(l,_)]))}))}}function n$(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function HS(n){const t=[],e=new Set;for(const i of n){if(!n$(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=HS(i.children);t.push(new Nr(i.value,r))}return t.filter(i=>!e.has(i))}function jS(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function $S(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function zS(n){return n.data||{}}function WS(n){return n.resolve||{}}function GS(n){return"string"==typeof n.title||null===n.title}function Sg(n){return ii(t=>{const e=n(t);return e?Mt(e).pipe(L(()=>t)):$(t)})}let Mg=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Te);return i}getResolvedTitleForRoute(e){return e.data[xl]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:function(){return dt(qS)},providedIn:"root"}),n})(),qS=(()=>{class n extends Mg{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(b(KE))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class KS{}class d$ extends class u${shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const la=new k("",{providedIn:"root",factory:()=>({})}),md=new k("ROUTES");let kg=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return $(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=so(e.loadComponent()).pipe(Pt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Uu(()=>{this.componentLoaders.delete(e)})),r=new Q0(i,()=>new H).pipe(eg());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return $({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(L(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=ng(l.get(md,[],ee.Self|ee.Optional)));return{routes:c.map(wg),injector:l}}),Uu(()=>{this.childrenLoaders.delete(i)})),s=new Q0(o,()=>new H).pipe(eg());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return so(e()).pipe(Xt(i=>i instanceof VC||Array.isArray(i)?$(i):Mt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(b(Dt),b(gu))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ZS{}class f${shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function p$(n){throw n}function m$(n,t,e){return t.parse("/")}const g$={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_$={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function QS(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}function XS(){const n=dt(rg),t=dt(oa),e=dt(jo),i=dt(Dt),r=dt(gu),o=dt(md,{optional:!0})??[],s=dt(la,{optional:!0})??{},a=dt(qS),l=dt(Mg,{optional:!0}),c=dt(ZS,{optional:!0}),u=dt(KS,{optional:!0}),d=new Yt(null,n,t,e,i,r,ng(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,QS(s,d),d}let Yt=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new H,this.errorHandler=p$,this.malformedUriErrorHandler=m$,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>$(void 0),this.urlHandlingStrategy=new f$,this.routeReuseStrategy=new d$,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(kg),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new tj(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new ej(h)),this.ngModule=s.get(Bo),this.console=s.get(DP);const d=s.get(Ie);this.isNgZoneEnabled=d instanceof Ie&&Ie.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function EH(){return new Ko(new Re([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=DS(this.currentUrlTree,this.rootComponentType),this.transitions=new ni({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(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(en(r=>0!==r.id),L(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ii(r=>{let o=!1,s=!1;return $(r).pipe(Pt(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ii(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return JS(a.source)&&(this.browserUrlTree=a.extractedUrl),$(a).pipe(ii(d=>{const h=this.transitions.getValue();return i.next(new dg(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?dr:Promise.resolve(d)}),function Yj(n,t,e,i){return ii(r=>function qj(n,t,e,i,r){return new Kj(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(L(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Pt(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function r$(n,t,e,i,r,o){return Xt(s=>function Xj(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new Jj(n,t,e,i,r,s,a,o).recognize().pipe(ii(l=>null===l?function Qj(n){return new ne(t=>t.error(n))}(new Zj):$(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(L(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Pt(d=>{if(r.targetSnapshot=d.targetSnapshot,"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 YH(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:g,extras:_}=a,y=new dg(h,this.serializeUrl(f),p,g);i.next(y);const D=DS(f,this.rootComponentType).snapshot;return $(r={...a,targetSnapshot:D,urlAfterRedirects:f,extras:{..._,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),dr}),Pt(a=>{const l=new ZH(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),L(a=>r={...a,guards:bj(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Ij(n,t){return Xt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?$({...e,guardsResult:!0}):function Rj(n,t,e,i){return Mt(n).pipe(Xt(r=>function Vj(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?$(o.map(a=>{const l=Pl(t)??r,c=sa(a,l);return so(function Aj(n){return n&&Bl(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(Or())})).pipe(aa()):$(!0)}(r.component,r.route,e,t,i)),Or(r=>!0!==r,!0))}(s,i,r,n).pipe(Xt(a=>a&&function Ej(n){return"boolean"==typeof n}(a)?function Oj(n,t,e,i){return Mt(t).pipe(ro(r=>Zu(function Nj(n,t){return null!==n&&t&&t(new nj(n)),$(!0)}(r.route.parent,i),function Fj(n,t){return null!==n&&t&&t(new rj(n)),$(!0)}(r.route,i),function Lj(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function wj(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Qu(()=>$(s.guards.map(l=>{const c=Pl(s.node)??e,u=sa(l,c);return so(function kj(n){return n&&Bl(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(Or())})).pipe(aa())));return $(o).pipe(aa())}(n,r.path,e),function Pj(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return $(!0);const r=i.map(o=>Qu(()=>{const s=Pl(t)??e,a=sa(o,s);return so(function Mj(n){return n&&Bl(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(Or())}));return $(r).pipe(aa())}(n,r.route,e))),Or(r=>!0!==r,!0))}(i,o,n,t):$(a)),L(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Pt(a=>{if(r.guardsResult=a.guardsResult,Zo(a.guardsResult))throw kS(0,a.guardsResult);const l=new QH(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),en(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Sg(a=>{if(a.guards.canActivateChecks.length)return $(a).pipe(Pt(l=>{const c=new XH(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),ii(l=>{let c=!1;return $(l).pipe(function o$(n,t){return Xt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return $(e);let o=0;return Mt(r).pipe(ro(s=>function s$(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!GS(r)&&(o[xl]=r.title),function a$(n,t,e,i){const r=function l$(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return $({});const o={};return Mt(r).pipe(Xt(s=>function c$(n,t,e,i){const r=Pl(t)??i,o=sa(n,r);return so(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(Or(),Pt(a=>{o[s]=a}))),tg(1),nS(o),Tr(s=>Cg(s)?dr:ea(s)))}(o,n,t,i).pipe(L(s=>(n._resolvedData=s,n.data=ES(n,e).resolve,r&&GS(r)&&(n.data[xl]=r.title),null)))}(s.route,i,n,t)),Pt(()=>o++),tg(1),Xt(s=>o===r.length?$(e):dr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Pt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Pt(l=>{const c=new JH(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Sg(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(Pt(d=>{c.component=d}),L(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Jm(l(a.targetSnapshot.root)).pipe(Xu(),tn(1))}),Sg(()=>this.afterPreactivation()),L(a=>{const l=function cj(n,t,e){const i=Nl(n,t._root,e?e._root:void 0);return new CS(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Pt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>L(i=>(new vj(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Pt({next(){o=!0},complete(){o=!0}}),Uu(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Tr(a=>{if(s=!0,TS(a)){xS(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new od(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),xS(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||JS(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new vS(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return dr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(wg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),UH(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Zo(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function y$(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Qo(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new od(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){qa()},n.\u0275prov=I({token:n,factory:function(){return XS()},providedIn:"root"}),n})();function JS(n){return"imperative"!==n}let Ag=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new H,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Mr(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Mr(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Mr(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(m(Yt),m(Xo),Kr("tabindex"),m(yr),m(De))},n.\u0275dir=M({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&Ge("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[zt]}),n})(),_d=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new H,this.subscription=e.events.subscribe(o=>{o instanceof Qo&&this.updateTargetUrlAndHref()})}set preserveFragment(e){this._preserveFragment=Mr(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Mr(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Mr(e)}get replaceUrl(){return this._replaceUrl}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,o,s){return!!(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(m(Yt),m(Xo),m(Ar))},n.\u0275dir=M({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&Ge("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&et("target",i.target)("href",i.href,Oo)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[zt]}),n})(),eM=(()=>{class n{constructor(e,i,r,o,s,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ve,this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof Qo&&this.update()})}ngAfterContentInit(){$(this.links.changes,this.linksWithHrefs.changes,$(null)).pipe(cs()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Mt(e).pipe(cs()).subscribe(i=>{this.isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function v$(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Yt),m(De),m(yr),m(er),m(Ag,8),m(_d,8))},n.\u0275dir=M({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&(ht(r,Ag,5),ht(r,_d,5)),2&e){let o;Me(o=ke())&&(i.links=o),Me(o=ke())&&(i.linksWithHrefs=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[zt]}),n})();class tM{}let b$=(()=>{class n{preload(e,i){return $(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w$=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(en(e=>e instanceof Qo),ro(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=uu(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Mt(r).pipe(cs())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):$(null);const o=r.pipe(Xt(s=>null===s?$(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Mt([o,this.loader.loadComponent(i)]).pipe(cs()):o})}}return n.\u0275fac=function(e){return new(e||n)(b(Yt),b(gu),b(Yr),b(tM),b(kg))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xg=new k("");let nM=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof dg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Qo&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof bS&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new bS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){qa()},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function ca(n,t){return{\u0275kind:n,\u0275providers:t}}function jl(n){return[{provide:md,multi:!0,useValue:n}]}function rM(){const n=dt(Dt);return t=>{const e=n.get(Ys);if(t!==e.components[0])return;const i=n.get(Yt),r=n.get(oM);1===n.get(Tg)&&i.initialNavigation(),n.get(sM,null,ee.Optional)?.setUpPreloading(),n.get(xg,null,ee.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const oM=new k("",{factory:()=>new H}),Tg=new k("",{providedIn:"root",factory:()=>1});const sM=new k("");function aM(n){return ca(0,[{provide:sM,useExisting:w$},{provide:tM,useExisting:n}])}const lM=new k("ROUTER_FORROOT_GUARD"),cM=[jo,{provide:rg,useClass:og},{provide:Yt,useFactory:XS},oa,{provide:Xo,useFactory:function iM(n){return n.routerState.root},deps:[Yt]},kg];function S$(){return new ND("Router",Yt)}let bd=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[cM,[],jl(e),{provide:lM,useFactory:x$,deps:[[Yt,new xi,new Ms]]},{provide:la,useValue:i||{}},i?.useHash?{provide:Ar,useClass:dL}:{provide:Ar,useClass:aE},{provide:xg,useFactory:()=>{const n=dt(Yt),t=dt(MV),e=dt(la);return e.scrollOffset&&t.setOffset(e.scrollOffset),new nM(n,t,e)}},i?.preloadingStrategy?aM(i.preloadingStrategy).\u0275providers:[],{provide:ND,multi:!0,useFactory:S$},i?.initialNavigation?T$(i):[],[{provide:uM,useFactory:rM},{provide:AD,multi:!0,useExisting:uM}]]}}static forChild(e){return{ngModule:n,providers:[jl(e)]}}}return n.\u0275fac=function(e){return new(e||n)(b(lM,8))},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[vg]}),n})();function x$(n){return"guarded"}function T$(n){return["disabled"===n.initialNavigation?ca(3,[{provide:pu,multi:!0,useFactory:()=>{const t=dt(Yt);return()=>{t.setUpLocationChangeListener()}}},{provide:Tg,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ca(2,[{provide:Tg,useValue:0},{provide:pu,multi:!0,deps:[Dt],useFactory:t=>{const e=t.get(cL,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(Yt),a=t.get(oM);(function r(o){t.get(Yt).events.pipe(en(a=>a instanceof Qo||a instanceof od||a instanceof vS),L(a=>a instanceof Qo||a instanceof od&&(0===a.code||1===a.code)&&null),en(a=>null!==a),tn(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?$(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const uM=new k(""),R$=["*",[["mat-toolbar-row"]]],O$=["*","mat-toolbar-row"],F$=Dl(class{constructor(n){this._elementRef=n}});let N$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),P$=(()=>{class n extends F${constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(ln),m(ge))},n.\u0275cmp=He({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&ht(r,N$,5),2&e){let o;Me(o=ke())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&It("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[j],ngContentSelectors:O$,decls:2,vars:0,template:function(e,i){1&e&&(Zi(R$),kt(0),kt(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})(),L$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt],vt]}),n})(),V$=(()=>{class n{constructor(){this.title="app component"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["app-root"]],decls:10,vars:1,consts:[["color","primary",2,"float","right"],["routerLink","/","routerLinkActive","active","ariaCurrentWhenActive","page",2,"all","unset","cursor","pointer",3,"preserveFragment"],[1,"flexExpand",2,"flex","1 1 auto"],["mat-icon-button","","aria-label","Example icon-button with share icon",1,"example-icon"],["routerLink","/help","routerLinkActive","active","ariaCurrentWhenActive","page",2,"all","unset","cursor","pointer"],[2,"vertical-align","middle"]],template:function(e,i){1&e&&(x(0,"mat-toolbar",0)(1,"a",1)(2,"span"),re(3,"NOVEX DATASETS"),R()(),_t(4,"span",2),x(5,"button",3)(6,"a",4)(7,"mat-icon",5),re(8,"help"),R()()()(),_t(9,"router-outlet")),2&e&&(O(1),F("preserveFragment",!0))},dependencies:[Xm,Al,yg,_d,eM,P$]}),n})();class dM{}const Pr="*";function $l(n,t){return{type:7,name:n,definitions:t,options:{}}}function Jo(n,t=null){return{type:4,styles:t,timings:n}}function hM(n,t=null){return{type:2,steps:n,options:t}}function xn(n){return{type:6,styles:n,offset:null}}function ao(n,t,e){return{type:0,name:n,styles:t,options:e}}function lo(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function H$(n=null){return{type:9,options:n}}function j$(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function fM(n){Promise.resolve().then(n)}class Ul{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){fM(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pM{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?fM(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function mM(n){return new E(3e3,!1)}function CU(){return typeof window<"u"&&typeof window.document<"u"}function Rg(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function co(n){switch(n.length){case 0:return new Ul;case 1:return n[0];default:return new pM(n)}}function gM(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,g)=>{let _=g,y=p;if("offset"!==g)switch(_=t.normalizePropertyName(_,s),y){case"!":y=r.get(g);break;case Pr:y=o.get(g);break;default:y=t.normalizeStyleValue(g,_,y,s)}f.set(_,y)}),h||a.push(f),c=f,l=d}),s.length)throw function uU(n){return new E(3502,!1)}();return a}function Og(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Fg(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Fg(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Fg(e,"destroy",n)))}}function Fg(n,t,e){const o=Ng(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function Ng(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function ri(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function _M(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Pg=(n,t)=>!1,yM=(n,t,e)=>[],vM=null;function Lg(n){const t=n.parentNode||n.host;return t===vM?null:t}(Rg()||typeof Element<"u")&&(CU()?(vM=(()=>document.documentElement)(),Pg=(n,t)=>{for(;t;){if(t===n)return!0;t=Lg(t)}return!1}):Pg=(n,t)=>n.contains(t),yM=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let es=null,bM=!1;const wM=Pg,CM=yM;let DM=(()=>{class n{validateStyleProperty(e){return function EU(n){es||(es=function SU(){return typeof document<"u"?document.body:null}()||{},bM=!!es.style&&"WebkitAppearance"in es.style);let t=!0;return es.style&&!function DU(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in es.style,!t&&bM&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in es.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return wM(e,i)}getParentElement(e){return Lg(e)}query(e,i,r){return CM(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Ul(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Vg=(()=>{class n{}return n.NOOP=new DM,n})();const Bg="ng-enter",wd="ng-leave",Cd="ng-trigger",Dd=".ng-trigger",SM="ng-animating",Hg=".ng-animating";function Lr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:jg(parseFloat(t[1]),t[2])}function jg(n,t){return"s"===t?1e3*n:n}function Ed(n,t,e){return n.hasOwnProperty("duration")?n:function AU(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(mM()),{duration:0,delay:0,easing:""};r=jg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=jg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function $$(){return new E(3100,!1)}()),a=!0),o<0&&(t.push(function U$(){return new E(3101,!1)}()),a=!0),a&&t.splice(l,0,mM())}return{duration:r,delay:o,easing:s}}(n,t,e)}function zl(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function MM(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function uo(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function AM(n,t,e){return e?t+":"+e+";":""}function xM(n){let t="";for(let e=0;e{const o=Ug(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),Rg()&&xM(n))}function ts(n,t){n.style&&(t.forEach((e,i)=>{const r=Ug(i);n.style[r]=""}),Rg()&&xM(n))}function Wl(n){return Array.isArray(n)?1==n.length?n[0]:hM(n):n}const $g=new RegExp("{{\\s*(.+?)\\s*}}","g");function TM(n){let t=[];if("string"==typeof n){let e;for(;e=$g.exec(n);)t.push(e[1]);$g.lastIndex=0}return t}function Gl(n,t,e){const i=n.toString(),r=i.replace($g,(o,s)=>{let a=t[s];return null==a&&(e.push(function W$(n){return new E(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Sd(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const IU=/-+([a-z0-9])/g;function Ug(n){return n.replace(IU,(...t)=>t[1].toUpperCase())}function RU(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oi(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function G$(n){return new E(3004,!1)}()}}function IM(n,t){return window.getComputedStyle(n)[t]}function VU(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function BU(n,t,e){if(":"==n[0]){const l=function HU(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function oU(n){return new E(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(RM(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(RM(s,r))}(i,e,t)):e.push(n),e}const xd=new Set(["true","1"]),Td=new Set(["false","0"]);function RM(n,t){const e=xd.has(n)||Td.has(n),i=xd.has(t)||Td.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?xd.has(n):Td.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?xd.has(t):Td.has(t)),s&&a}}const jU=new RegExp("s*:selfs*,?","g");function zg(n,t,e,i){return new $U(n).build(t,e,i)}class $U{constructor(t){this._driver=t}build(t,e,i){const r=new WU(e);return this._resetContextStyleTimingState(r),oi(this,Wl(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function K$(){return new E(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function Y$(){return new E(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{TM(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Sd(o.values()),e.errors.push(function Z$(n,t){return new E(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=oi(this,Wl(t.animation),e);return{type:1,matchers:VU(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ns(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>oi(this,i,e)),options:ns(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=oi(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:ns(t.options)}}visitAnimate(t,e){const i=function qU(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Wg(Ed(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Wg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Ed(e,t);return Wg(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:xn({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=xn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Pr?i.push(a):e.errors.push(new E(3002,!1)):i.push(MM(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function X$(n,t,e,i,r){return new E(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function TU(n,t,e){const i=t.params||{},r=TM(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function z$(n){return new E(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function J$(){return new E(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(y=>{const D=this._makeStyleAst(y,e);let C=null!=D.offset?D.offset:function GU(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(D.styles),T=0;return null!=C&&(o++,T=D.offset=C),l=l||T<0||T>1,a=a||T0&&o{const C=h>0?D==f?1:h*D:s[D],T=C*_;e.currentTime=p+g.delay+T,g.duration=T,this._validateStyleAst(y,e),y.offset=C,i.styles.push(y)}),i}visitReference(t,e){return{type:8,animation:oi(this,Wl(t.animation),e),options:ns(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ns(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ns(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function UU(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(jU,"")),n=n.replace(/@\*/g,Dd).replace(/@\w+/g,e=>Dd+"-"+e.slice(1)).replace(/:animating/g,Hg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,ri(e.collectedStyles,e.currentQuerySelector,new Map);const a=oi(this,Wl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:ns(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function iU(){return new E(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ed(t.timings,e.errors,!0);return{type:12,animation:oi(this,Wl(t.animation),e),timings:i,options:null}}}class WU{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ns(n){return n?(n=zl(n)).params&&(n.params=function zU(n){return n?zl(n):null}(n.params)):n={},n}function Wg(n,t,e){return{duration:n,delay:t,easing:e}}function Gg(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Id{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ZU=new RegExp(":enter","g"),XU=new RegExp(":leave","g");function qg(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new JU).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class JU{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Id;const d=new Kg(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?Lr(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),oi(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){const _=f[g];if(_.element===e){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Gg(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:Lr(Gl(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Lr(i.duration):null,a=null!=i.delay?Lr(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),oi(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Rd);const s=Lr(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>oi(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Lr(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),oi(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Ed(e.params?Gl(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Lr(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Rd);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),oi(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;oi(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Rd={};class Kg{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Od(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Lr(i.duration)),null!=i.delay&&(r.delay=Lr(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Gl(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new Kg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Rd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new ez(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(ZU,"."+this._enterClassName)).replace(XU,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function rU(n){return new E(3014,!1)}()),a}}class Od{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Od(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Pr),this._currentKeyframe.set(e,Pr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function tz(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Pr)}else uo(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Gl(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Pr),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=uo(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Pr&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Sd(t.values()):[],s=e.size?Sd(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Gg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class ez extends Od{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=uo(t[0]);l.set("offset",0),o.push(l);const c=uo(t[0]);c.set("offset",NM(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=uo(t[d]);const f=h.get("offset");h.set("offset",NM((e+f*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return Gg(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function NM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Yg{}const nz=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class iz extends Yg{normalizePropertyName(t,e){return Ug(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(nz.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function q$(n,t){return new E(3005,!1)}())}return s+o}}function PM(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Zg={};class LM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function rz(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Zg,p=this.buildStyles(i,a&&a.params||Zg,d),g=l&&l.params||Zg,_=this.buildStyles(r,g,d),y=new Set,D=new Map,C=new Map,T="void"===r,Y={params:oz(g,h),delay:this.ast.options?.delay},le=u?[]:qg(t,e,this.ast.animation,o,s,p,_,Y,c,d);let Qe=0;if(le.forEach(un=>{Qe=Math.max(un.duration+un.delay,Qe)}),d.length)return PM(e,this._triggerName,i,r,T,p,_,[],[],D,C,Qe,d);le.forEach(un=>{const In=un.element,ya=ri(D,In,new Set);un.preStyleProps.forEach(Vi=>ya.add(Vi));const $r=ri(C,In,new Set);un.postStyleProps.forEach(Vi=>$r.add(Vi)),In!==e&&y.add(In)});const Zt=Sd(y.values());return PM(e,this._triggerName,i,r,T,p,_,le,Zt,D,C,Qe)}}function oz(n,t){const e=zl(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class sz{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=zl(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Gl(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class lz{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new sz(r.style,r.options&&r.options.params||{},i))}),VM(this.states,"true","1"),VM(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new LM(t,r,this.states))}),this.fallbackTransition=function cz(n,t,e){return new LM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function VM(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const uz=new Id;class dz{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=zg(this._driver,e,i,[]);if(i.length)throw function dU(n){return new E(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=gM(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=qg(this._driver,e,o,Bg,wd,new Map,new Map,i,uz,r),s.forEach(u=>{const d=ri(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function hU(){return new E(3300,!1)}()),s=[]),r.length)throw function fU(n){return new E(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Pr))})});const c=co(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function pU(n){return new E(3301,!1)}();return e}listen(t,e,i,r){const o=Ng(e,"","","");return Og(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const BM="ng-animate-queued",Qg="ng-animate-disabled",gz=[],HM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_z={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},gi="__ng_removed";class Xg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function wz(n){return n??null}(i?t.value:t),i){const o=zl(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const ql="void",Jg=new Xg(ql);class yz{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_i(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function mU(n,t){return new E(3302,!1)}();if(null==i||0==i.length)throw function gU(n){return new E(3303,!1)}();if(!function Cz(n){return"start"==n||"done"==n}(i))throw function _U(n,t){return new E(3400,!1)}();const o=ri(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=ri(this._engine.statesByElement,t,new Map);return a.has(e)||(_i(t,Cd),_i(t,Cd+"-"+e),a.set(e,Jg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function yU(n){return new E(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new e_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(_i(t,Cd),_i(t,Cd+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new Xg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Jg),c.value!==ql&&l.value===c.value){if(!function Sz(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{ts(t,_),ir(t,y)})}return}const h=ri(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(_i(t,BM),s.onStart(()=>{ua(t,BM)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const _=this._engine.playersByElement.get(t);if(_){let y=_.indexOf(s);y>=0&&_.splice(y,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Dd,!0);i.forEach(r=>{if(r[gi])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,ql,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&co(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Jg,u=new Xg(ql),d=new e_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[gi];(!o||o===HM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){_i(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Ng(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Og(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class vz{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new yz(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Fd(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Fd(e))return;const o=e[gi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),_i(t,Qg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ua(t,Qg))}removeNode(t,e,i,r){if(Fd(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[gi]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Fd(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Dd,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Hg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return co(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[gi];if(e&&e.setForRemoval){if(t[gi]=HM,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Qg)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?co(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function vU(n){return new E(3402,!1)}()}_flushAnimations(t,e){const i=new Id,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const Z=this.driver.query(B,".ng-animate-queued",!0);for(let se=0;se{const se=Bg+g++;p.set(Z,se),B.forEach($e=>_i($e,se))});const _=[],y=new Set,D=new Set;for(let B=0;By.add($e)):D.add(Z))}const C=new Map,T=UM(h,Array.from(y));T.forEach((B,Z)=>{const se=wd+g++;C.set(Z,se),B.forEach($e=>_i($e,se))}),t.push(()=>{f.forEach((B,Z)=>{const se=p.get(Z);B.forEach($e=>ua($e,se))}),T.forEach((B,Z)=>{const se=C.get(Z);B.forEach($e=>ua($e,se))}),_.forEach(B=>{this.processLeaveNode(B)})});const Y=[],le=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(se=>{const $e=se.player,on=se.element;if(Y.push($e),this.collectedEnterElements.length){const bn=on[gi];if(bn&&bn.setForMove){if(bn.previousTriggersValues&&bn.previousTriggersValues.has(se.triggerName)){const ls=bn.previousTriggersValues.get(se.triggerName),yi=this.statesByElement.get(se.element);if(yi&&yi.has(se.triggerName)){const wh=yi.get(se.triggerName);wh.value=ls,yi.set(se.triggerName,wh)}}return void $e.destroy()}}const or=!d||!this.driver.containsElement(d,on),si=C.get(on),go=p.get(on),bt=this._buildInstruction(se,i,go,si,or);if(bt.errors&&bt.errors.length)return void le.push(bt);if(or)return $e.onStart(()=>ts(on,bt.fromStyles)),$e.onDestroy(()=>ir(on,bt.toStyles)),void r.push($e);if(se.isFallbackTransition)return $e.onStart(()=>ts(on,bt.fromStyles)),$e.onDestroy(()=>ir(on,bt.toStyles)),void r.push($e);const bx=[];bt.timelines.forEach(bn=>{bn.stretchStartingKeyframe=!0,this.disabledNodes.has(bn.element)||bx.push(bn)}),bt.timelines=bx,i.append(on,bt.timelines),s.push({instruction:bt,player:$e,element:on}),bt.queriedElements.forEach(bn=>ri(a,bn,[]).push($e)),bt.preStyleProps.forEach((bn,ls)=>{if(bn.size){let yi=l.get(ls);yi||l.set(ls,yi=new Set),bn.forEach((wh,oy)=>yi.add(oy))}}),bt.postStyleProps.forEach((bn,ls)=>{let yi=c.get(ls);yi||c.set(ls,yi=new Set),bn.forEach((wh,oy)=>yi.add(oy))})});if(le.length){const B=[];le.forEach(Z=>{B.push(function bU(n,t){return new E(3505,!1)}())}),Y.forEach(Z=>Z.destroy()),this.reportError(B)}const Qe=new Map,Zt=new Map;s.forEach(B=>{const Z=B.element;i.has(Z)&&(Zt.set(Z,Z),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Qe))}),r.forEach(B=>{const Z=B.element;this._getPreviousPlayers(Z,!1,B.namespaceId,B.triggerName,null).forEach($e=>{ri(Qe,Z,[]).push($e),$e.destroy()})});const un=_.filter(B=>WM(B,l,c)),In=new Map;$M(In,this.driver,D,c,Pr).forEach(B=>{WM(B,l,c)&&un.push(B)});const $r=new Map;f.forEach((B,Z)=>{$M($r,this.driver,new Set(B),l,"!")}),un.forEach(B=>{const Z=In.get(B),se=$r.get(B);In.set(B,new Map([...Array.from(Z?.entries()??[]),...Array.from(se?.entries()??[])]))});const Vi=[],va=[],ba={};s.forEach(B=>{const{element:Z,player:se,instruction:$e}=B;if(i.has(Z)){if(u.has(Z))return se.onDestroy(()=>ir(Z,$e.toStyles)),se.disabled=!0,se.overrideTotalTime($e.totalTime),void r.push(se);let on=ba;if(Zt.size>1){let si=Z;const go=[];for(;si=si.parentNode;){const bt=Zt.get(si);if(bt){on=bt;break}go.push(si)}go.forEach(bt=>Zt.set(bt,on))}const or=this._buildAnimation(se.namespaceId,$e,Qe,o,$r,In);if(se.setRealPlayer(or),on===ba)Vi.push(se);else{const si=this.playersByElement.get(on);si&&si.length&&(se.parentPlayer=co(si)),r.push(se)}}else ts(Z,$e.fromStyles),se.onDestroy(()=>ir(Z,$e.toStyles)),va.push(se),u.has(Z)&&r.push(se)}),va.forEach(B=>{const Z=o.get(B.element);if(Z&&Z.length){const se=co(Z);B.setRealPlayer(se)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<_.length;B++){const Z=_[B],se=Z[gi];if(ua(Z,wd),se&&se.hasAnimation)continue;let $e=[];if(a.size){let or=a.get(Z);or&&or.length&&$e.push(...or);let si=this.driver.query(Z,Hg,!0);for(let go=0;go!or.destroyed);on.length?Dz(this,Z,on):this.processLeaveNode(Z)}return _.length=0,Vi.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const Z=this.players.indexOf(B);this.players.splice(Z,1)}),B.play()}),Vi}elementContainsData(t,e){let i=!1;const r=e[gi];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==ql;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=ri(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}ts(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const g=p.element;u.add(g);const _=g[gi];if(_&&_.removedBeforeQueried)return new Ul(p.duration,p.delay);const y=g!==l,D=function Ez(n){const t=[];return zM(n,t),t}((i.get(g)||gz).map(Qe=>Qe.getRealPlayer())).filter(Qe=>!!Qe.element&&Qe.element===g),C=o.get(g),T=s.get(g),Y=gM(0,this._normalizer,0,p.keyframes,C,T),le=this._buildPlayer(p,Y,D);if(p.subTimeline&&r&&d.add(g),y){const Qe=new e_(t,a,g);Qe.setRealPlayer(le),c.push(Qe)}return le});c.forEach(p=>{ri(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function bz(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>_i(p,SM));const f=co(h);return f.onDestroy(()=>{u.forEach(p=>ua(p,SM)),ir(l,e.toStyles)}),d.forEach(p=>{ri(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ul(t.duration,t.delay)}}class e_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Ul,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Og(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ri(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Fd(n){return n&&1===n.nodeType}function jM(n,t){const e=n.style.display;return n.style.display=t??"none",e}function $M(n,t,e,i,r){const o=[];e.forEach(l=>o.push(jM(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[gi]=_z,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>jM(l,o[a++])),s}function UM(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function _i(n,t){n.classList?.add(t)}function ua(n,t){n.classList?.remove(t)}function Dz(n,t,e){co(e).onDone(()=>n.processLeaveNode(t))}function zM(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Nd{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new vz(t,e,i),this._timelineEngine=new dz(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=zg(this._driver,o,l,[]);if(l.length)throw function cU(n,t){return new E(3404,!1)}();a=function az(n,t,e){return new lz(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=_M(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=_M(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let kz=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ir(this._element,this._initialStyles),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ts(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ts(this._element,this._endStyles),this._endStyles=null),ir(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function t_(n){let t=null;return n.forEach((e,i)=>{(function Az(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class GM{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:IM(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class xz{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return wM(t,e)}getParentElement(t){return Lg(t)}query(t,e,i){return CM(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof GM);(function OU(n,t){return 0===n||0===t})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function xU(n){return n.length?n[0]instanceof Map?n:n.map(t=>MM(t)):[]}(e).map(f=>uo(f));d=function FU(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,IM(n,a)))}}return t}(t,d,c);const h=function Mz(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=t_(t[0]),t.length>1&&(i=t_(t[t.length-1]))):t instanceof Map&&(e=t_(t)),e||i?new kz(n,e,i):null}(t,d);return new GM(t,d,l,h)}}let Tz=(()=>{class n extends dM{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Di.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?hM(e):e;return qM(this._renderer,null,i,"register",[r]),new Iz(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(b(Ga),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class Iz extends class B${}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Rz(this._id,t,e||{},this._renderer)}}class Rz{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return qM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function qM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const KM="@.disabled";let Oz=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new YM("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new Fz(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(b(Ga),b(Nd),b(Ie))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class YM{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==KM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Fz extends YM{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==KM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function Nz(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function Pz(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const ZM=[{provide:dM,useClass:Tz},{provide:Yg,useFactory:function Vz(){return new iz}},{provide:Nd,useClass:(()=>{class n extends Nd{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(b(ge),b(Vg),b(Yg),b(Ys))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})()},{provide:Ga,useFactory:function Bz(n,t,e){return new Oz(n,t,e)},deps:[Lu,Nd,Ie]}],n_=[{provide:Vg,useFactory:()=>new xz},{provide:Dr,useValue:"BrowserAnimations"},...ZM],QM=[{provide:Vg,useClass:DM},{provide:Dr,useValue:"NoopAnimations"},...ZM];let Hz=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?QM:n_}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:n_,imports:[qE]}),n})();function i_(n){return n&&"function"==typeof n.connect}class XM{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const d=i(s,a,l);c=e.createEmbeddedView(d.templateRef,d.context,d.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:c?.context,operation:u,record:s})})}detach(){}}class jz{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new H,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const Kl=new k("_ViewRepeater"),$z=["addListener","removeListener"],Uz=["addEventListener","removeEventListener"],zz=["on","off"];function Ld(n,t,e,i){if(Se(e)&&(i=e,e=void 0),i)return Ld(n,t,e).pipe(zm(i));const[r,o]=function qz(n){return Se(n.addEventListener)&&Se(n.removeEventListener)}(n)?Uz.map(s=>a=>n[s](t,a,e)):function Wz(n){return Se(n.addListener)&&Se(n.removeListener)}(n)?$z.map(ek(n,t)):function Gz(n){return Se(n.on)&&Se(n.off)}(n)?zz.map(ek(n,t)):[];if(!r&&Ch(n))return Xt(s=>Ld(s,t,e))(Nn(n));if(!r)throw new TypeError("Invalid event target");return new ne(s=>{const a=(...l)=>s.next(1o(a)})}function ek(n,t){return e=>i=>n[e](t,i)}const Yl={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Yl;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new Be(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=Yl;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Yl;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class Yz extends Im{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Kz extends xm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Yl.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Yl.cancelAnimationFrame(e),t._scheduled=void 0)}});let r_,Qz=1;const Vd={};function tk(n){return n in Vd&&(delete Vd[n],!0)}const Xz={setImmediate(n){const t=Qz++;return Vd[t]=!0,r_||(r_=Promise.resolve()),r_.then(()=>tk(t)&&n()),t},clearImmediate(n){tk(n)}},{setImmediate:Jz,clearImmediate:e3}=Xz,Bd={setImmediate(...n){const{delegate:t}=Bd;return(t?.setImmediate||Jz)(...n)},clearImmediate(n){const{delegate:t}=Bd;return(t?.clearImmediate||e3)(n)},delegate:void 0};new class n3 extends Im{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class t3 extends xm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Bd.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Bd.clearImmediate(e),t._scheduled=void 0)}});function nk(n=0,t,e=NB){let i=-1;return null!=t&&(my(t)?e=t:i=t),new ne(r=>{let o=function s3(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function ik(n,t=Rm){return function o3(n){return Ae((t,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(ce(e,c=>{i=!0,r=c,o||Nn(n(c)).subscribe(o=ce(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>nk(n,t))}let l3=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new H,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ne(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(ik(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):$()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(en(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Uo(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ld(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(b(Ie),b(ln),b(ge,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hd=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new H,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(ik(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(b(ln),b(Ie),b(ge,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),o_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})(),s_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[Cl,Pm,o_],Cl,o_]}),n})();const d3=[[["caption"]],[["colgroup"],["col"]]],h3=["caption","colgroup, col"];function a_(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=nn(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const da=new k("CDK_TABLE");let ha=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["","cdkCellDef",""]]}),n})(),fa=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),jd=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class g3{}const _3=a_(g3);let Vr=(()=>{class n extends _3{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=nn(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(ht(r,ha,5),ht(r,fa,5),ht(r,jd,5)),2&e){let o;Me(o=ke())&&(i.cell=o.first),Me(o=ke())&&(i.headerCell=o.first),Me(o=ke())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),j]}),n})();class l_{constructor(t,e){const i=e.nativeElement.classList;for(const r of t._columnCssClassName)i.add(r)}}let c_=(()=>{class n extends l_{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(m(Vr),m(De))},n.\u0275dir=M({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[j]}),n})(),u_=(()=>{class n extends l_{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(m(Vr),m(De))},n.\u0275dir=M({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[j]}),n})();class ok{constructor(){this.tasks=[],this.endTasks=[]}}const d_=new k("_COALESCED_STYLE_SCHEDULER");let sk=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new H}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ok,this._getScheduleObservable().pipe(Lt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new ok;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Mt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(tn(1))}}return n.\u0275fac=function(e){return new(e||n)(b(Ie))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),h_=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Zl?e.headerCell.template:this instanceof Ql?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr))},n.\u0275dir=M({type:n,features:[zt]}),n})();class y3 extends h_{}const v3=a_(y3);let Zl=(()=>{class n extends v3{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr),m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[j,zt]}),n})();class b3 extends h_{}const w3=a_(b3);let Ql=(()=>{class n extends w3{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr),m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[j,zt]}),n})(),$d=(()=>{class n extends h_{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(m(Rt),m(Sr),m(da,8))},n.\u0275dir=M({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[j]}),n})(),Br=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(m(Ot))},n.\u0275dir=M({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),f_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),m_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),Ud=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(m(Rt))},n.\u0275dir=M({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const ak=["top","bottom","left","right"];class C3{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),d=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",p=h?"left":"right";for(const g of t)for(let _=0;_e[_]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((g,_)=>i[_+d]?g:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,d=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);ak.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of ak)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const g_=new k("CDK_SPL");let zd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","rowOutlet",""]]}),n})(),Wd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),Gd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),qd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(m(Ot),m(De))},n.\u0275dir=M({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Kd=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=d,this._stickyPositioningListener=h,this._onDestroy=new H,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ve,this.viewChange=new ni({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=nn(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=nn(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Lt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),i_(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Yd(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Yd(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Yd(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Yd(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],i_(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;i_(this.dataSource)?e=this.dataSource.connect(this):function u3(n){return!!n&&(n instanceof ne||Se(n.lift)&&Se(n.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=$(this.dataSource)),this._renderChangeSubscription=e.pipe(Lt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Br.mostRecentCellOutlet&&Br.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new C3(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:$()).pipe(Lt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){const r=this._noDataRowOutlet.viewContainer;i?r.createEmbeddedView(e.templateRef):r.clear(),this._isShowingNoDataRow=i}}}}return n.\u0275fac=function(e){return new(e||n)(m(Sr),m(er),m(De),Kr("role"),m(Go,8),m(ge),m(ln),m(Kl),m(d_),m(Hd),m(g_,12))},n.\u0275cmp=He({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(ht(r,Ud,5),ht(r,Vr,5),ht(r,$d,5),ht(r,Zl,5),ht(r,Ql,5)),2&e){let o;Me(o=ke())&&(i._noDataRow=o.first),Me(o=ke())&&(i._contentColumnDefs=o),Me(o=ke())&&(i._contentRowDefs=o),Me(o=ke())&&(i._contentHeaderRowDefs=o),Me(o=ke())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(an(zd,7),an(Wd,7),an(Gd,7),an(qd,7)),2&e){let r;Me(r=ke())&&(i._rowOutlet=r.first),Me(r=ke())&&(i._headerRowOutlet=r.first),Me(r=ke())&&(i._footerRowOutlet=r.first),Me(r=ke())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&It("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[ye([{provide:da,useExisting:n},{provide:Kl,useClass:XM},{provide:d_,useClass:sk},{provide:g_,useValue:null}])],ngContentSelectors:h3,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Zi(d3),kt(0),kt(1,1),Ki(2,0)(3,1)(4,2)(5,3))},dependencies:[Wd,zd,qd,Gd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function Yd(n,t){return n.concat(Array.from(t))}let E3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[s_]]}),n})();const S3=[[["caption"]],[["colgroup"],["col"]]],M3=["caption","colgroup, col"];let ck=(()=>{class n extends Kd{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&It("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[ye([{provide:Kl,useClass:XM},{provide:Kd,useExisting:n},{provide:da,useExisting:n},{provide:d_,useClass:sk},{provide:g_,useValue:null}]),j],ngContentSelectors:M3,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Zi(S3),kt(0),kt(1,1),Ki(2,0)(3,1)(4,2)(5,3))},dependencies:[Wd,zd,qd,Gd],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),n})(),__=(()=>{class n extends ha{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matCellDef",""]],features:[ye([{provide:ha,useExisting:n}]),j]}),n})(),y_=(()=>{class n extends fa{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matHeaderCellDef",""]],features:[ye([{provide:fa,useExisting:n}]),j]}),n})(),v_=(()=>{class n extends Vr{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[ye([{provide:Vr,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),j]}),n})(),b_=(()=>{class n extends c_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[j]}),n})(),w_=(()=>{class n extends u_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[j]}),n})(),uk=(()=>{class n extends Zl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[ye([{provide:Zl,useExisting:n}]),j]}),n})(),dk=(()=>{class n extends $d{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275dir=M({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[ye([{provide:$d,useExisting:n}]),j]}),n})(),hk=(()=>{class n extends f_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[ye([{provide:f_,useExisting:n}]),j],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),fk=(()=>{class n extends m_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[ye([{provide:m_,useExisting:n}]),j],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&Ki(0,0)},dependencies:[Br],encapsulation:2}),n})(),P3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[E3,vt],vt]}),n})();class C_{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Xl extends C_{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Zd extends C_{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class V3 extends C_{constructor(t){super(),this.element=t instanceof De?t.nativeElement:t}}class Qd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Xl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Zd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof V3?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class B3 extends Qd{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Xd=(()=>{class n extends Qd{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new ve,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(m(No),m(Ot),m(ge))},n.\u0275dir=M({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[j]}),n})(),D_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({}),n})();const pk=BB();class H3{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vt(-this._previousScrollPosition.left),t.style.top=Vt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),pk&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pk&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class j3{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mk{enable(){}disable(){}attach(){}}function E_(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function gk(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class $3{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();E_(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let U3=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new mk,this.close=s=>new j3(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new H3(this._viewportRuler,this._document),this.reposition=s=>new $3(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(b(l3),b(Hd),b(Ie),b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Jd{constructor(t){if(this.scrollStrategy=new mk,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class z3{constructor(t,e,i,r,o){this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class W3{}let G3=(()=>{let n=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};return n=function pt(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([xe(1,xi()),Hn("design:paramtypes",[z3,W3])],n),n})(),_k=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q3=(()=>{class n extends _k{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--)if(r[o]._keydownEvents.observers.length>0){r[o]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(b(ge))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),K3=(()=>{class n extends _k{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Wo(r)},this._clickListener=r=>{const o=Wo(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(o)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(b(ge),b(ln))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),S_=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Bm()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._keydownEvents=new H,this._outsidePointerEvents=new H,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(tn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Vt(this._config.width),t.height=Vt(this._config.height),t.minWidth=Vt(this._config.minWidth),t.minHeight=Vt(this._config.minHeight),t.maxWidth=Vt(this._config.maxWidth),t.maxHeight=Vt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=Bu(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Lt(Do(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}const yk="cdk-overlay-connected-position-bounding-box",Z3=/([A-Za-z%]+)$/;class Q3{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new H,this._resizeSubscription=Be.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(yk),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=[];let o;for(let s of this._preferredPositions){let a=this._getOriginPoint(t,s),l=this._getOverlayPoint(a,e,s),c=this._getOverlayFit(l,e,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!o||o.overlayFit.visibleAreaa&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&is(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yk),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,r;if("center"==e.originX)i=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?o:s}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:r}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=bk(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),g=this._subtractOverflows(o.height,h,f),_=p*g;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=vk(this._overlayRef.getConfig().minHeight),a=vk(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=bk(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Vt(i.height),r.top=Vt(i.top),r.bottom=Vt(i.bottom),r.width=Vt(i.width),r.left=Vt(i.left),r.right=Vt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Vt(o)),s&&(r.maxWidth=Vt(s))}this._lastBoundingBoxSize=i,is(this._boundingBox.style,r)}_resetBoundingBoxStyles(){is(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){is(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();is(i,this._getExactOverlayY(e,t,u)),is(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Vt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Vt(s.maxWidth):o&&(i.maxWidth="")),is(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Vt(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Vt(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gk(t,i),isOriginOutsideView:E_(t,i),isOverlayClipped:gk(e,i),isOverlayOutsideView:E_(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Bu(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof De)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function is(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function vk(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(Z3);return e&&"px"!==e?null:parseFloat(t)}return n||null}function bk(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const wk="cdk-global-overlay-wrapper";class X3{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(wk),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(wk),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let J3=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new X3}flexibleConnectedTo(e){return new Q3(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(b(Hd),b(ge),b(ln),b(S_))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),e5=0,rs=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Jd(e);return s.direction=s.direction||this._directionality.value,new Y3(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+e5++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ys)),new B3(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(b(U3),b(S_),b(No),b(J3),b(q3),b(Dt),b(Ie),b(ge),b(Go),b(jo),b(K3))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const t5=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ck=new k("cdk-connected-overlay-scroll-strategy");let Dk=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(m(De))},n.\u0275dir=M({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Ek=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Be.EMPTY,this._attachSubscription=Be.EMPTY,this._detachSubscription=Be.EMPTY,this._positionSubscription=Be.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ve,this.positionChange=new ve,this.attach=new ve,this.detach=new ve,this.overlayKeydown=new ve,this.overlayOutsideClick=new ve,this._templatePortal=new Zd(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=nn(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=nn(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=nn(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=nn(e)}get push(){return this._push}set push(e){this._push=nn(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=t5);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Zs(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Jd({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Dk?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(tS(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(rs),m(Rt),m(Ot),m(Ck),m(Go,8))},n.\u0275dir=M({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[zt]}),n})();const i5={provide:Ck,deps:[rs],useFactory:function n5(n){return()=>n.scrollStrategies.reposition()}};let M_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[rs,i5],imports:[[Cl,D_,s_],s_]}),n})();function r5(n,t){}class k_{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const o5={dialogContainer:$l("dialogContainer",[ao("void, exit",xn({opacity:0,transform:"scale(0.7)"})),ao("enter",xn({transform:"none"})),lo("* => enter",Jo("150ms cubic-bezier(0, 0, 0.2, 1)",xn({transform:"none",opacity:1}))),lo("* => void, * => exit",Jo("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",xn({opacity:0})))])};let s5=(()=>{class n extends Qd{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=s,this._interactivityChecker=a,this._ngZone=l,this._focusMonitor=c,this._animationStateChanged=new ve,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=o}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Vm(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Vm())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Vm();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(n2),m(er),m(ge,8),m(k_),m(l0),m(Ie),m(m0))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&an(Xd,7),2&e){let r;Me(r=ke())&&(i._portalOutlet=r.first)}},features:[j]}),n})(),a5=(()=>{class n extends s5{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&nu("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(el("id",i._id),et("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),ou("@dialogContainer",i._state))},features:[j],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&W(0,r5,0,0,"ng-template",0)},dependencies:[Xd],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[o5.dialogContainer]}}),n})(),l5=0;class Jl{constructor(t,e,i="mat-dialog-"+l5++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new H,this._afterClosed=new H,this._beforeClosed=new H,this._state=0,e._id=i,e._animationStateChanged.pipe(en(r=>"opened"===r.state),tn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(en(r=>"closed"===r.state),tn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(en(r=>27===r.keyCode&&!this.disableClose&&!Zs(r))).subscribe(r=>{r.preventDefault(),A_(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():A_(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(en(e=>"closing"===e.state),tn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function A_(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const x_=new k("MatDialogData"),c5=new k("mat-dialog-default-options"),Sk=new k("mat-dialog-scroll-strategy"),d5={provide:Sk,deps:[rs],useFactory:function u5(n){return()=>n.scrollStrategies.block()}};let h5=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new H,this._afterOpenedAtThisLevel=new H,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Qu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rr(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){if(i=function f5(n,t){return{...t,...n}}(i,this._defaultOptions||new k_),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(i),o=this._attachDialogContainer(r,i);if("NoopAnimations"!==this._animationMode){const a=o._animationStateChanged.subscribe(l=>{"opening"===l.state&&(this._dialogAnimatingOpen=!0),"opened"===l.state&&(this._dialogAnimatingOpen=!1,a.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Be),this._animationStateSubscriptions.add(a)}const s=this._attachDialogContent(e,o,r,i);return this._lastDialogRef=s,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),o._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Jd({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const o=Dt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:k_,useValue:i}]}),s=new Xl(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return e.attach(s).instance}_attachDialogContent(e,i,r,o){const s=new this._dialogRefConstructor(r,i,o.id);if(e instanceof Rt)i.attachTemplatePortal(new Zd(e,null,{$implicit:o.data,dialogRef:s}));else{const a=this._createInjector(o,s,i),l=i.attachComponentPortal(new Xl(e,o.viewContainerRef,a));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}_createInjector(e,i,r){const o=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!o||!o.get(Go,null,ee.Optional))&&s.push({provide:Go,useValue:{value:e.direction,change:$()}}),Dt.create({parent:o||this._injector,providers:s})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,o)=>{r?o.setAttribute("aria-hidden",r):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){qa()},n.\u0275dir=M({type:n}),n})(),eh=(()=>{class n extends h5{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,Jl,a5,x_,c)}}return n.\u0275fac=function(e){return new(e||n)(b(rs),b(Dt),b(jo,8),b(c5,8),b(Sk),b(n,12),b(S_),b(Dr,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),p5=0,Mk=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Tk(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){A_(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(m(Jl,8),m(De),m(eh))},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&Ge("click",function(o){return i._onButtonClick(o)}),2&e&&et("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[zt]}),n})(),kk=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+p5++}ngOnInit(){this._dialogRef||(this._dialogRef=Tk(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(m(Jl,8),m(De),m(eh))},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&el("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Ak=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),xk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})();function Tk(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}let m5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[eh,d5],imports:[[M_,D_,vt],vt]}),n})(),Ik=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),g5=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Uo(e);return new ne(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new H,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(b(Ik))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_5=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new ve,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=nn(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qs(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Om(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(g5),m(De),m(Ie))},n.\u0275dir=M({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),y5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[Ik]}),n})();const v5=["connectionContainer"],b5=["inputContainer"],w5=["label"];function C5(n,t){1&n&&(Jn(0),x(1,"div",14),_t(2,"div",15)(3,"div",16)(4,"div",17),R(),x(5,"div",18),_t(6,"div",15)(7,"div",16)(8,"div",17),R(),ei())}function D5(n,t){1&n&&(x(0,"div",19),kt(1,1),R())}function E5(n,t){if(1&n&&(Jn(0),kt(1,2),x(2,"span"),re(3),R(),ei()),2&n){const e=he(2);O(3),Vn(e._control.placeholder)}}function S5(n,t){1&n&&kt(0,3,["*ngSwitchCase","true"])}function M5(n,t){1&n&&(x(0,"span",23),re(1," *"),R())}function k5(n,t){if(1&n){const e=Yi();x(0,"label",20,21),Ge("cdkObserveContent",function(){return ki(e),Ai(he().updateOutlineGap())}),W(2,E5,4,1,"ng-container",12),W(3,S5,1,0,"ng-content",12),W(4,M5,2,0,"span",22),R()}if(2&n){const e=he();It("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),F("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),et("for",e._control.id)("aria-owns",e._control.id),O(2),F("ngSwitchCase",!1),O(1),F("ngSwitchCase",!0),O(1),F("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function A5(n,t){1&n&&(x(0,"div",24),kt(1,4),R())}function x5(n,t){if(1&n&&(x(0,"div",25),_t(1,"span",26),R()),2&n){const e=he();O(1),It("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function T5(n,t){1&n&&(x(0,"div"),kt(1,5),R()),2&n&&F("@transitionMessages",he()._subscriptAnimationState)}function I5(n,t){if(1&n&&(x(0,"div",30),re(1),R()),2&n){const e=he(2);F("id",e._hintLabelId),O(1),Vn(e.hintLabel)}}function R5(n,t){if(1&n&&(x(0,"div",27),W(1,I5,2,2,"div",28),kt(2,6),_t(3,"div",29),kt(4,7),R()),2&n){const e=he();F("@transitionMessages",e._subscriptAnimationState),O(1),F("ngIf",e.hintLabel)}}const O5=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],F5=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],N5=new k("MatError"),P5={transitionMessages:$l("transitionMessages",[ao("enter",xn({opacity:1,transform:"translateY(0%)"})),lo("void => enter",[xn({opacity:0,transform:"translateY(-5px)"}),Jo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let T_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n}),n})();const L5=new k("MatHint");let th=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-label"]]}),n})(),V5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=M({type:n,selectors:[["mat-placeholder"]]}),n})();const B5=new k("MatPrefix"),H5=new k("MatSuffix");let Rk=0;const $5=Dl(class{constructor(n){this._elementRef=n}},"primary"),U5=new k("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Fk=new k("MatFormField");let Nk=(()=>{class n extends $5{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new H,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Rk++,this._labelId="mat-form-field-label-"+Rk++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=nn(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Rr(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Lt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Lt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Do(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Rr(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Rr(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Lt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ld(this._label.nativeElement,"transitionend").pipe(tn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,r=0;const o=this._connectionContainerRef.nativeElement,s=o.querySelectorAll(".mat-form-field-outline-start"),a=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=o.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),u=e.children,d=this._getStartEnd(u[0].getBoundingClientRect());let h=0;for(let f=0;f0?.75*h+10:0}for(let l=0;l{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[to,vt,y5],vt]}),n})(),Pk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[Pm]]}),n})(),z5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[C0],imports:[[Pk,nh,vt],Pk,nh]}),n})();function ho(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function Bk(n){return null!=n&&"number"==typeof n.length}const yn=new k("NgValidators"),fo=new k("NgAsyncValidators"),Z5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Q5{static min(t){return function Hk(n){return t=>{if(ho(t.value)||ho(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(ho(t.value)||ho(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function $k(n){return ho(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Uk(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function zk(n){return ho(n.value)||Z5.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function Wk(n){return t=>ho(t.value)||!Bk(t.value)?null:t.value.lengthBk(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function qk(n){if(!n)return ih;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ho(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Jk(t)}static composeAsync(t){return eA(t)}}function ih(n){return null}function Kk(n){return null!=n}function Yk(n){return Xa(n)?Mt(n):n}function Zk(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function Qk(n,t){return t.map(e=>e(n))}function Xk(n){return n.map(t=>function X5(n){return!n.validate}(t)?t:e=>t.validate(e))}function Jk(n){if(!n)return null;const t=n.filter(Kk);return 0==t.length?null:function(e){return Zk(Qk(e,t))}}function R_(n){return null!=n?Jk(Xk(n)):null}function eA(n){if(!n)return null;const t=n.filter(Kk);return 0==t.length?null:function(e){return O0(Qk(e,t).map(Yk)).pipe(L(Zk))}}function O_(n){return null!=n?eA(Xk(n)):null}function tA(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function nA(n){return n._rawValidators}function iA(n){return n._rawAsyncValidators}function F_(n){return n?Array.isArray(n)?n:[n]:[]}function rh(n,t){return Array.isArray(n)?n.includes(t):n===t}function rA(n,t){const e=F_(t);return F_(n).forEach(r=>{rh(e,r)||e.push(r)}),e}function oA(n,t){return F_(t).filter(e=>!rh(n,e))}class sA{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=R_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=O_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Tn extends sA{get formDirective(){return null}get path(){return null}}class Hr extends sA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}const ec="VALID",sh="INVALID",pa="PENDING",tc="DISABLED";function V_(n){return(ah(n)?n.validators:n)||null}function cA(n){return Array.isArray(n)?R_(n):n||null}function B_(n,t){return(ah(t)?t.asyncValidators:n)||null}function uA(n){return Array.isArray(n)?O_(n):n||null}function ah(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class fA{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=cA(this._rawValidators),this._composedAsyncValidatorFn=uA(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ec}get invalid(){return this.status===sh}get pending(){return this.status==pa}get disabled(){return this.status===tc}get enabled(){return this.status!==tc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=cA(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=uA(t)}addValidators(t){this.setValidators(rA(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(rA(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(oA(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(oA(t,this._rawAsyncValidators))}hasValidator(t){return rh(this._rawValidators,t)}hasAsyncValidator(t){return rh(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=pa,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=tc,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ec,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ec||this.status===pa)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?tc:ec}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=pa,this._hasOwnPendingAsyncValidator=!0;const e=Yk(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?tc:this.errors?sh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pa)?pa:this._anyControlsHaveStatus(sh)?sh:ec}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ah(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class H_ extends fA{constructor(t,e,i){super(V_(e),B_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function hA(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new E(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function dA(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new E(1e3,"");if(!i[e])throw new E(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function nc(n,t){j_(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function c8(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&pA(n,t)})}(n,t),function d8(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function u8(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&pA(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function l8(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function ch(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),dh(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function uh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function j_(n,t){const e=nA(n);null!==t.validator?n.setValidators(tA(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=iA(n);null!==t.asyncValidator?n.setAsyncValidators(tA(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();uh(t._rawValidators,r),uh(t._rawAsyncValidators,r)}function dh(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=nA(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=iA(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return uh(t._rawValidators,i),uh(t._rawAsyncValidators,i),e}function pA(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function mA(n,t){j_(n,t)}function _A(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const g8={provide:Tn,useExisting:ot(()=>hh)},ic=(()=>Promise.resolve())();let hh=(()=>{class n extends Tn{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new ve,this.form=new H_({},R_(e),O_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ic.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),nc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ic.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ic.then(()=>{const i=this._findContainer(e.path),r=new H_({});mA(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ic.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){ic.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,_A(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(m(yn,10),m(fo,10))},n.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Ge("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([g8]),j]}),n})();function yA(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function vA(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const bA=class extends fA{constructor(t=null,e,i){super(V_(e),B_(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ah(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=vA(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){yA(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){yA(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){vA(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},k8={provide:Tn,useExisting:ot(()=>fh)};let fh=(()=>{class n extends Tn{constructor(e,i){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(dh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return nc(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){ch(e.control||null,e,!1),function m8(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,_A(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(ch(i||null,e),(n=>n instanceof bA)(r)&&(nc(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);mA(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function h8(n,t){return dh(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){j_(this.form,this),this._oldForm&&dh(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(m(yn,10),m(fo,10))},n.\u0275dir=M({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Ge("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([k8]),j,zt]}),n})();const G8=["trigger"],q8=["panel"];function K8(n,t){if(1&n&&(x(0,"span",8),re(1),R()),2&n){const e=he();O(1),Vn(e.placeholder)}}function Y8(n,t){if(1&n&&(x(0,"span",12),re(1),R()),2&n){const e=he(2);O(1),Vn(e.triggerValue)}}function Z8(n,t){1&n&&kt(0,0,["*ngSwitchCase","true"])}function Q8(n,t){1&n&&(x(0,"span",9),W(1,Y8,2,1,"span",10),W(2,Z8,1,0,"ng-content",11),R()),2&n&&(F("ngSwitch",!!he().customTrigger),O(2),F("ngSwitchCase",!0))}function X8(n,t){if(1&n){const e=Yi();x(0,"div",13)(1,"div",14,15),Ge("@transformPanel.done",function(r){return ki(e),Ai(he()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return ki(e),Ai(he()._handleKeydown(r))}),kt(3,1),R()()}if(2&n){const e=he();F("@transformPanelWrap",void 0),O(1),eC("mat-select-panel ",e._getPanelTheme(),""),Mn("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),F("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),et("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const J8=[[["mat-select-trigger"]],"*"],e4=["mat-select-trigger","*"],UA={transformPanelWrap:$l("transformPanelWrap",[lo("* => void",j$("@transformPanel",[H$()],{optional:!0}))]),transformPanel:$l("transformPanel",[ao("void",xn({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ao("showing",xn({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ao("showing-multiple",xn({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),lo("void => *",Jo("120ms cubic-bezier(0, 0, 0.2, 1)")),lo("* => void",Jo("100ms 25ms linear",xn({opacity:0})))])};let zA=0;const GA=new k("mat-select-scroll-strategy"),o4=new k("MAT_SELECT_CONFIG"),s4={provide:GA,deps:[rs],useFactory:function r4(n){return()=>n.scrollStrategies.reposition()}};class a4{constructor(t,e){this.source=t,this.value=e}}const l4=w0(v2(b0(b2(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),c4=new k("MatSelectTrigger");let u4=(()=>{class n extends l4{constructor(e,i,r,o,s,a,l,c,u,d,h,f,p,g){super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=p,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(_,y)=>_===y,this._uid="mat-select-"+zA++,this._triggerAriaLabelledBy=null,this._destroy=new H,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+zA++,this._panelDoneAnimatingStream=new H,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Qu(()=>{const _=this.options;return _?_.changes.pipe(Rr(_),ii(()=>Do(..._.map(y=>y.onSelectionChange)))):this._ngZone.onStable.pipe(tn(1),ii(()=>this.optionSelectionChanges))}),this.openedChange=new ve,this._openedStream=this.openedChange.pipe(en(_=>_),L(()=>{})),this._closedStream=this.openedChange.pipe(en(_=>!_),L(()=>{})),this.selectionChange=new ve,this.valueChange=new ve,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Q5.required)??!1}set required(e){this._required=nn(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=nn(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=nn(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qs(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new jz(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fm(),Lt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Lt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Rr(null),Lt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!Zs(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||Zs(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(tn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new zB(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Lt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Lt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Do(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Lt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Do(...this.options.map(i=>i._stateChanges)).pipe(Lt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(m(Hd),m(er),m(Ie),m(C0),m(De),m(Go,8),m(hh,8),m(fh,8),m(Fk,8),m(Hr,10),Kr("tabindex"),m(GA),m(p0),m(o4,8))},n.\u0275dir=M({type:n,viewQuery:function(e,i){if(1&e&&(an(G8,5),an(q8,5),an(Ek,5)),2&e){let r;Me(r=ke())&&(i.trigger=r.first),Me(r=ke())&&(i.panel=r.first),Me(r=ke())&&(i._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[j,zt]}),n})(),qA=(()=>{class n extends u4{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Lt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(tn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=x0(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function O2(n,t,e,i){return ne+i?Math.max(0,n-i+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new a4(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=x0(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ve(n)))(i||n)}}(),n.\u0275cmp=He({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(ht(r,c4,5),ht(r,Um,5),ht(r,A0,5)),2&e){let o;Me(o=ke())&&(i.customTrigger=o.first),Me(o=ke())&&(i.options=o),Me(o=ke())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&Ge("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(et("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),It("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[ye([{provide:T_,useExisting:n},{provide:k0,useExisting:n}]),j],ngContentSelectors:e4,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Zi(J8),x(0,"div",0,1),Ge("click",function(){return i.toggle()}),x(3,"div",2),W(4,K8,2,1,"span",3),W(5,Q8,3,2,"span",4),R(),x(6,"div",5),_t(7,"div",6),R()(),W(8,X8,4,14,"ng-template",7),Ge("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=tu(1);et("aria-owns",i.panelOpen?i.id+"-panel":null),O(3),F("ngSwitch",i.empty),et("id",i._valueId),O(1),F("ngSwitchCase",!0),O(1),F("ngSwitchCase",!1),O(3),F("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Dk,$o,ml,CE,Ek,fm],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[UA.transformPanelWrap,UA.transformPanel]},changeDetection:0}),n})(),d4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[s4],imports:[[to,M_,T0,vt],o_,nh,T0,vt]}),n})();function h4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}function f4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}function p4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}function m4(n,t){if(1&n&&(xo(),_t(0,"circle",3)),2&n){const e=he();Mn("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),et("r",e._getCircleRadius())}}const y4=Dl(class{constructor(n){this._elementRef=n}},"primary"),KA=new k("mat-progress-spinner-default-options",{providedIn:"root",factory:function v4(){return{diameter:100}}});class jr extends y4{constructor(t,e,i,r,o){super(t),this._document=i,this._diameter=100,this._value=0,this.mode="determinate";const s=jr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Qs(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Qs(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Qs(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=o0(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=jr._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}jr._diameters=new WeakMap,jr.\u0275fac=function(t){return new(t||jr)(m(De),m(ln),m(ge,8),m(Dr,8),m(KA))},jr.\u0275cmp=He({type:jr,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(et("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Mn("width",e.diameter,"px")("height",e.diameter,"px"),It("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[j],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(xo(),x(0,"svg",0),W(1,h4,1,9,"circle",1),W(2,f4,1,7,"circle",2),R()),2&t&&(Mn("width",e.diameter,"px")("height",e.diameter,"px"),F("ngSwitch","indeterminate"===e.mode),et("viewBox",e._getViewBox()),O(1),F("ngSwitchCase",!0),O(1),F("ngSwitchCase",!1))},dependencies:[$o,ml],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let w4=(()=>{class n extends jr{constructor(e,i,r,o,s){super(e,i,r,o,s),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(m(De),m(ln),m(ge,8),m(Dr,8),m(KA))},n.\u0275cmp=He({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(Mn("width",i.diameter,"px")("height",i.diameter,"px"),It("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[j],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(xo(),x(0,"svg",0),W(1,p4,1,9,"circle",1),W(2,m4,1,7,"circle",2),R()),2&e&&(Mn("width",i.diameter,"px")("height",i.diameter,"px"),F("ngSwitch","indeterminate"===i.mode),et("viewBox",i._getViewBox()),O(1),F("ngSwitchCase",!0),O(1),F("ngSwitchCase",!1))},dependencies:[$o,ml],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),n})(),C4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[vt,to],vt]}),n})();const YA=new Set;let ga,D4=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S4}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function E4(n){if(!YA.has(n))try{ga||(ga=document.createElement("style"),ga.setAttribute("type","text/css"),document.head.appendChild(ga)),ga.sheet&&(ga.sheet.insertRule(`@media ${n} {body{ }}`,0),YA.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(b(ln))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function S4(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let M4=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new H}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ZA(Bu(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Jm(ZA(Bu(e)).map(s=>this._registerQuery(s).observable));return o=Zu(o.pipe(tn(1)),o.pipe(n0(1),Om(0))),o.pipe(L(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new ne(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Rr(i),L(({matches:s})=>({query:e,matches:s})),Lt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(b(D4),b(Ie))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ZA(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function A4(n,t){if(1&n){const e=Yi();x(0,"div",1)(1,"button",2),Ge("click",function(){return ki(e),Ai(he().action())}),re(2),R()()}if(2&n){const e=he();O(2),Vn(e.data.action)}}function x4(n,t){}const Z_=new k("MatSnackBarData");class mh{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const T4=Math.pow(2,31)-1;class Q_{constructor(t,e){this._overlayRef=e,this._afterDismissed=new H,this._afterOpened=new H,this._onAction=new H,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,T4))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let I4=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(m(Q_),m(Z_))},n.\u0275cmp=He({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(x(0,"span"),re(1),R(),W(2,A4,3,1,"div",0)),2&e&&(O(1),Vn(i.data.message),O(1),F("ngIf",i.hasAction))},dependencies:[Al,eo],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),n})();const R4={snackBarState:$l("state",[ao("void, hidden",xn({transform:"scale(0.8)",opacity:0})),ao("visible",xn({transform:"scale(1)",opacity:1})),lo("* => visible",Jo("150ms cubic-bezier(0, 0, 0.2, 1)")),lo("* => void, * => hidden",Jo("75ms cubic-bezier(0.4, 0.0, 1, 1)",xn({opacity:0})))])};let O4=(()=>{class n extends Qd{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new H,this._onExit=new H,this._onEnter=new H,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(tn(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(m(Ie),m(De),m(er),m(ln),m(mh))},n.\u0275cmp=He({type:n,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&an(Xd,7),2&e){let r;Me(r=ke())&&(i._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&nu("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&ou("@state",i._animationState)},features:[j],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(x(0,"div",0),W(1,x4,0,0,"ng-template",1),R(),_t(2,"div")),2&e&&(O(2),et("aria-live",i._live)("role",i._role))},dependencies:[Xd],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[R4.snackBarState]}}),n})(),QA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[[M_,D_,to,Y0,vt],vt]}),n})();const F4=new k("mat-snack-bar-default-options",{providedIn:"root",factory:function N4(){return new mh}});let XA=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=I4,this.snackBarContainerComponent=O4,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Dt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:mh,useValue:i}]}),s=new Xl(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new mh,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Q_(s,o);if(e instanceof Rt){const l=new Zd(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new Xl(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Lt(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Jd;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Dt.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Q_,useValue:i},{provide:Z_,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(b(rs),b(p0),b(Dt),b(M4),b(n,12),b(F4))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:QA}),n})();function JA(n){return n&&"?"!==n[0]?"?"+n:n}let P4=(()=>{class n{constructor(){this.urlChanges=[],this._history=[new ex("","",null)],this._historyIndex=0,this._subject=new ve,this._baseHref="",this._locationStrategy=null,this._urlChangeListeners=[],this._urlChangeSubscription=null}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}setInitialPath(e){this._history[this._historyIndex].path=e}setBaseHref(e){this._baseHref=e}path(){return this._history[this._historyIndex].path}getState(){return this._history[this._historyIndex].state}isCurrentPathEqualTo(e,i=""){const r=e.endsWith("/")?e.substring(0,e.length-1):e;return(this.path().endsWith("/")?this.path().substring(0,this.path().length-1):this.path())==r+(i.length>0?"?"+i:"")}simulateUrlPop(e){this._subject.emit({url:e,pop:!0,type:"popstate"})}simulateHashChange(e){const i=this.prepareExternalUrl(e);this.pushHistory(i,"",null),this.urlChanges.push("hash: "+e),this._subject.emit({url:e,pop:!0,type:"popstate"}),this._subject.emit({url:e,pop:!0,type:"hashchange"})}prepareExternalUrl(e){return e.length>0&&!e.startsWith("/")&&(e="/"+e),this._baseHref+e}go(e,i="",r=null){e=this.prepareExternalUrl(e),this.pushHistory(e,i,r);const o=this._history[this._historyIndex-1];o.path==e&&o.query==i||(this.urlChanges.push(e+(i.length>0?"?"+i:"")),this._notifyUrlChangeListeners(e+JA(i),r))}replaceState(e,i="",r=null){e=this.prepareExternalUrl(e);const o=this._history[this._historyIndex];o.path==e&&o.query==i||(o.path=e,o.query=i,o.state=r,this.urlChanges.push("replace: "+e+(i.length>0?"?"+i:"")),this._notifyUrlChangeListeners(e+JA(i),r))}forward(){this._historyIndex0&&(this._historyIndex--,this._subject.emit({url:this.path(),state:this.getState(),pop:!0,type:"popstate"}))}historyGo(e=0){const i=this._historyIndex+e;i>=0&&i{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}normalize(e){return null}pushHistory(e,i,r){this._historyIndex>0&&this._history.splice(this._historyIndex+1),this._history.push(new ex(e,i,r)),this._historyIndex=this._history.length-1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class ex{constructor(t,e,i){this.path=t,this.query=e,this.state=i}}let L4=(()=>{class n extends Ar{constructor(){super(),this.internalBaseHref="/",this.internalPath="/",this.internalTitle="",this.urlChanges=[],this._subject=new ve,this.stateChanges=[]}simulatePopState(e){this.internalPath=e,this._subject.emit(new V4(this.path()))}path(e=!1){return this.internalPath}prepareExternalUrl(e){return e.startsWith("/")&&this.internalBaseHref.endsWith("/")?this.internalBaseHref+e.substring(1):this.internalBaseHref+e}pushState(e,i,r,o){this.stateChanges.push(e),this.internalTitle=i;const s=r+(o.length>0?"?"+o:"");this.internalPath=s;const a=this.prepareExternalUrl(s);this.urlChanges.push(a)}replaceState(e,i,r,o){this.stateChanges[(this.stateChanges.length||1)-1]=e,this.internalTitle=i;const s=r+(o.length>0?"?"+o:"");this.internalPath=s;const a=this.prepareExternalUrl(s);this.urlChanges.push("replace: "+a)}onPopState(e){this._subject.subscribe({next:e})}getBaseHref(){return this.internalBaseHref}back(){this.urlChanges.length>0&&(this.urlChanges.pop(),this.stateChanges.pop(),this.simulatePopState(this.urlChanges.length>0?this.urlChanges[this.urlChanges.length-1]:""))}forward(){throw"not implemented"}getState(){return this.stateChanges[(this.stateChanges.length||1)-1]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class V4{constructor(t){this.newUrl=t,this.pop=!0,this.type="popstate"}}const H4=[];function $4(n,t,e,i,r,o,s,a,l,c){return function U4(n,t,e,i,r,o,s,a,l,c){const u=new Yt(null,n,t,e,r,i,ng(o));return s&&(function j4(n){return"shouldProcessUrl"in n}(s)?u.urlHandlingStrategy=s:QS(s,u)),a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),u.titleStrategy=c,u}(n,t,e,i,r,o,a,l,c,s)}let z4=(()=>{class n{static withRoutes(e,i){return{ngModule:n,providers:[jl(e),{provide:la,useValue:i||{}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({providers:[cM,H4,{provide:jo,useClass:P4},{provide:Ar,useClass:L4},{provide:Yt,useFactory:$4,deps:[rg,oa,jo,gu,Dt,md,Mg,la,[ZS,new xi],[KS,new xi]]},aM(b$).\u0275providers,jl([])],imports:[bd]}),n})();class W4 extends H{constructor(t=1/0,e=1/0,i=Tm){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(t),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s"']/,K4=new RegExp(nx.source,"g"),ix=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Y4=new RegExp(ix.source,"g"),Z4={"&":"&","<":"<",">":">",'"':""","'":"'"},rx=n=>Z4[n];function vn(n,t){if(t){if(nx.test(n))return n.replace(K4,rx)}else if(ix.test(n))return n.replace(Y4,rx);return n}const Q4=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ox(n){return n.replace(Q4,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const X4=/(^|[^\[])\^/g;function rt(n,t){n="string"==typeof n?n:n.source,t=t||"";const e={replace:(i,r)=>(r=(r=r.source||r).replace(X4,"$1"),n=n.replace(i,r),e),getRegex:()=>new RegExp(n,t)};return e}const J4=/[^\w:]/g,eW=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function sx(n,t,e){if(n){let i;try{i=decodeURIComponent(ox(e)).replace(J4,"").toLowerCase()}catch{return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!eW.test(e)&&(e=function rW(n,t){gh[" "+n]||(gh[" "+n]=tW.test(n)?n+"/":yh(n,"/",!0));const e=-1===(n=gh[" "+n]).indexOf(":");return"//"===t.substring(0,2)?e?t:n.replace(nW,"$1")+t:"/"===t.charAt(0)?e?t:n.replace(iW,"$1")+t:n+t}(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const gh={},tW=/^[^:]+:\/*[^/]*$/,nW=/^([^:]+:)[\s\S]*$/,iW=/^([^:]+:\/*[^/]*)[\s\S]*$/,_h={exec:function(){}};function ax(n,t){const i=n.replace(/\|/g,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length1;)1&t&&(e+=n),t>>=1,n+=n;return e+n}function cx(n,t,e,i){const r=t.href,o=t.title?vn(t.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;const a={type:"link",raw:e,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,a}return{type:"image",raw:e,href:r,title:o,text:vn(s)}}class X_{constructor(t){this.options=t||as}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const i=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:yh(i,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const i=e[0],r=function aW(n,t){const e=n.match(/^(\s+)(?:```)/);if(null===e)return t;const i=e[1];return t.split("\n").map(r=>{const o=r.match(/^\s+/);if(null===o)return r;const[s]=o;return s.length>=i.length?r.slice(i.length):r}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let i=e[2].trim();if(/#$/.test(i)){const r=yh(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const i=e[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(i);return this.lexer.state.top=r,{type:"blockquote",raw:e[0],tokens:o,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let i,r,o,s,a,l,c,u,d,h,f,p,g=e[1].trim();const _=g.length>1,y={type:"list",raw:"",ordered:_,start:_?+g.slice(0,-1):"",loose:!1,items:[]};g=_?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=_?g:"[*+-]");const D=new RegExp(`^( {0,3}${g})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(p=!1,(e=D.exec(t))&&!this.rules.block.hr.test(t));){if(i=e[0],t=t.substring(i.length),u=e[2].split("\n",1)[0].replace(/^\t+/,T=>" ".repeat(3*T.length)),d=t.split("\n",1)[0],this.options.pedantic?(s=2,f=u.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,f=u.slice(s),s+=e[1].length),l=!1,!u&&/^ *$/.test(d)&&(i+=d+"\n",t=t.substring(d.length+1),p=!0),!p){const T=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),Y=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),le=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),Qe=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;t&&(h=t.split("\n",1)[0],d=h,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(le.test(d)||Qe.test(d)||T.test(d)||Y.test(t)));){if(d.search(/[^ ]/)>=s||!d.trim())f+="\n"+d.slice(s);else{if(l||u.search(/[^ ]/)>=4||le.test(u)||Qe.test(u)||Y.test(u))break;f+="\n"+d}!l&&!d.trim()&&(l=!0),i+=h+"\n",t=t.substring(h.length+1),u=d.slice(s)}}y.loose||(c?y.loose=!0:/\n *\n *$/.test(i)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f),r&&(o="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,""))),y.items.push({type:"list_item",raw:i,task:!!r,checked:o,loose:!1,text:f}),y.raw+=i}y.items[y.items.length-1].raw=i.trimRight(),y.items[y.items.length-1].text=f.trimRight(),y.raw=y.raw.trimRight();const C=y.items.length;for(a=0;a"space"===le.type),Y=T.length>0&&T.some(le=>/\n.*\n/.test(le.raw));y.loose=Y}if(y.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:r,title:o}}}table(t){const e=this.rules.block.table.exec(t);if(e){const i={type:"table",header:ax(e[1]).map(r=>({text:r})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];let o,s,a,l,r=i.align.length;for(o=0;o({text:c}));for(r=i.header.length,s=0;s/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):vn(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const s=yh(i.slice(0,-1),"\\");if((i.length-s.length)%2==0)return}else{const s=function oW(n,t){if(-1===n.indexOf(t[1]))return-1;const e=n.length;let i=0,r=0;for(;r-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=e[3]?e[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),cx(e,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(t,e){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=e[r.toLowerCase()],!r){const o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return cx(i,r,i[0],this.lexer)}}emStrong(t,e,i=""){let r=this.rules.inline.emStrong.lDelim.exec(t);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){const s=r[0].length-1;let a,l,c=s,u=0;const d="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,e=e.slice(-1*t.length+s);null!=(r=d.exec(e));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=a.length,r[3]||r[4]){c+=l;continue}if((r[5]||r[6])&&s%3&&!((s+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const h=t.slice(0,s+r.index+(r[0].length-a.length)+l);if(Math.min(s,l)%2){const p=h.slice(1,-1);return{type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}const f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let i=e[2].replace(/\n/g," ");const r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=vn(i,!0),{type:"codespan",raw:e[0],text:i}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t,e){const i=this.rules.inline.autolink.exec(t);if(i){let r,o;return"@"===i[2]?(r=vn(this.options.mangle?e(i[1]):i[1]),o="mailto:"+r):(r=vn(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t,e){let i;if(i=this.rules.inline.url.exec(t)){let r,o;if("@"===i[2])r=vn(this.options.mangle?e(i[0]):i[0]),o="mailto:"+r;else{let s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);r=vn(i[0]),o="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t,e){const i=this.rules.inline.text.exec(t);if(i){let r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):vn(i[0]):i[0]:vn(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}}const Q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:_h,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Q.def=rt(Q.def).replace("label",Q._label).replace("title",Q._title).getRegex(),Q.bullet=/(?:[*+-]|\d{1,9}[.)])/,Q.listItemStart=rt(/^( *)(bull) */).replace("bull",Q.bullet).getRegex(),Q.list=rt(Q.list).replace(/bull/g,Q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Q.def.source+")").getRegex(),Q._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Q._comment=/|$)/,Q.html=rt(Q.html,"i").replace("comment",Q._comment).replace("tag",Q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q.paragraph=rt(Q._paragraph).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q._tag).getRegex(),Q.blockquote=rt(Q.blockquote).replace("paragraph",Q.paragraph).getRegex(),Q.normal={...Q},Q.gfm={...Q.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Q.gfm.table=rt(Q.gfm.table).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q._tag).getRegex(),Q.gfm.paragraph=rt(Q._paragraph).replace("hr",Q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Q.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q._tag).getRegex(),Q.pedantic={...Q.normal,html:rt("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Q._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:rt(Q.normal._paragraph).replace("hr",Q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:_h,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:_h,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),t+="&#"+i+";";return t}V._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",V.punctuation=rt(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,V._comment=rt(Q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=rt(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=rt(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=rt(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=rt(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=rt(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=rt(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=rt(V.reflink).replace("label",V._label).replace("ref",Q._label).getRegex(),V.nolink=rt(V.nolink).replace("ref",Q._label).getRegex(),V.reflinkSearch=rt(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal={...V},V.pedantic={...V.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:rt(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()},V.gfm={...V.normal,escape:rt(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(i=a.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?e.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),e.push(i);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=e[e.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i),s=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let i,r,o,a,l,c,s=t;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+lx("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+lx("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>!!(i=u.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),r=e[e.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(i=this.tokenizer.emStrong(t,s,c)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.autolink(t,ux)){t=t.substring(i.raw.length),e.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t,ux))){t=t.substring(i.raw.length),e.push(i);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=t.slice(1);let h;this.options.extensions.startInline.forEach(function(f){h=f.call({lexer:this},d),"number"==typeof h&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(o=t.substring(0,u+1))}if(i=this.tokenizer.inlineText(o,lW)){t=t.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(c=i.raw.slice(-1)),l=!0,r=e[e.length-1],r&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):e.push(i);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return e}}class oc{constructor(t){this.options=t||as}code(t,e,i){const r=(e||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(t,r);null!=o&&o!==t&&(i=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",r?'
    '+(i?t:vn(t,!0))+"
    \n":"
    "+(i?t:vn(t,!0))+"
    \n"}blockquote(t){return`
    \n${t}
    \n`}html(t){return t}heading(t,e,i,r){return this.options.headerIds?`${t}\n`:`${t}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(t,e,i){const r=e?"ol":"ul";return"<"+r+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"\n"}listitem(t){return`
  • ${t}
  • \n`}checkbox(t){return" "}paragraph(t){return`

    ${t}

    \n`}table(t,e){return e&&(e=`${e}`),"\n\n"+t+"\n"+e+"
    \n"}tablerow(t){return`\n${t}\n`}tablecell(t,e){const i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`\n`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,e,i){if(null===(t=sx(this.options.sanitize,this.options.baseUrl,t)))return i;let r='",r}image(t,e,i){if(null===(t=sx(this.options.sanitize,this.options.baseUrl,t)))return i;let r=`${i}":">",r}text(t){return t}}class dx{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,i){return""+i}image(t,e,i){return""+i}br(){return""}}class hx{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let i=t,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[t];do{r++,i=t+"-"+r}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=r,this.seen[i]=0),i}slug(t,e={}){const i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)}}class mo{constructor(t){this.options=t||as,this.options.renderer=this.options.renderer||new oc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dx,this.slugger=new hx}static parse(t,e){return new mo(e).parse(t)}static parseInline(t,e){return new mo(e).parseInline(t)}parse(t,e=!0){let r,o,s,a,l,c,u,d,h,f,p,g,_,y,D,C,T,Y,le,i="";const Qe=t.length;for(r=0;r0&&"paragraph"===D.tokens[0].type?(D.tokens[0].text=Y+" "+D.tokens[0].text,D.tokens[0].tokens&&D.tokens[0].tokens.length>0&&"text"===D.tokens[0].tokens[0].type&&(D.tokens[0].tokens[0].text=Y+" "+D.tokens[0].tokens[0].text)):D.tokens.unshift({type:"text",text:Y}):y+=Y),y+=this.parse(D.tokens,_),h+=this.renderer.listitem(y,T,C);i+=this.renderer.list(h,p,g);continue;case"html":i+=this.renderer.html(f.text);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(f.tokens));continue;case"text":for(h=f.tokens?this.parseInline(f.tokens):f.text;r+1{"function"==typeof i&&(r=i,i=null);const o={...i},s=function cW(n,t,e){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const r="

    An error occurred:

    "+vn(i.message+"",!0)+"
    ";return t?Promise.resolve(r):e?void e(null,r):r}if(t)return Promise.reject(i);if(!e)throw i;e(i)}}((i={...X.defaults,...o}).silent,i.async,r);if(typeof e>"u"||null===e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function sW(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),r){const a=i.highlight;let l;try{i.hooks&&(e=i.hooks.preprocess(e)),l=n(e,i)}catch(d){return s(d)}const c=function(d){let h;if(!d)try{i.walkTokens&&X.walkTokens(l,i.walkTokens),h=t(l,i),i.hooks&&(h=i.hooks.postprocess(h))}catch(f){d=f}return i.highlight=a,d?s(d):r(null,h)};if(!a||a.length<3||(delete i.highlight,!l.length))return c();let u=0;return X.walkTokens(l,function(d){"code"===d.type&&(u++,setTimeout(()=>{a(d.text,d.lang,function(h,f){if(h)return c(h);null!=f&&f!==d.text&&(d.text=f,d.escaped=!0),u--,0===u&&c()})},0))}),void(0===u&&c())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then(a=>n(a,i)).then(a=>i.walkTokens?Promise.all(X.walkTokens(a,i.walkTokens)).then(()=>a):a).then(a=>t(a,i)).then(a=>i.hooks?i.hooks.postprocess(a):a).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));const a=n(e,i);i.walkTokens&&X.walkTokens(a,i.walkTokens);let l=t(a,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(a){return s(a)}}}function X(n,t,e){return fx(po.lex,mo.parse)(n,t,e)}wx(vh,"passThroughHooks",new Set(["preprocess","postprocess"])),X.options=X.setOptions=function(n){return function q4(n){as=n}(X.defaults={...X.defaults,...n}),X},X.getDefaults=function tx(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},X.defaults=as,X.use=function(...n){const t=X.defaults.extensions||{renderers:{},childTokens:{}};n.forEach(e=>{const i={...e};if(i.async=X.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if(r.renderer){const o=t.renderers[r.name];t.renderers[r.name]=o?function(...s){let a=r.renderer.apply(this,s);return!1===a&&(a=o.apply(this,s)),a}:r.renderer}if(r.tokenizer){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");t[r.level]?t[r.level].unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&("block"===r.level?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:"inline"===r.level&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),i.extensions=t),e.renderer){const r=X.defaults.renderer||new oc;for(const o in e.renderer){const s=r[o];r[o]=(...a)=>{let l=e.renderer[o].apply(r,a);return!1===l&&(l=s.apply(r,a)),l}}i.renderer=r}if(e.tokenizer){const r=X.defaults.tokenizer||new X_;for(const o in e.tokenizer){const s=r[o];r[o]=(...a)=>{let l=e.tokenizer[o].apply(r,a);return!1===l&&(l=s.apply(r,a)),l}}i.tokenizer=r}if(e.hooks){const r=X.defaults.hooks||new vh;for(const o in e.hooks){const s=r[o];r[o]=vh.passThroughHooks.has(o)?a=>{if(X.defaults.async)return Promise.resolve(e.hooks[o].call(r,a)).then(c=>s.call(r,c));const l=e.hooks[o].call(r,a);return s.call(r,l)}:(...a)=>{let l=e.hooks[o].apply(r,a);return!1===l&&(l=s.apply(r,a)),l}}i.hooks=r}if(e.walkTokens){const r=X.defaults.walkTokens;i.walkTokens=function(o){let s=[];return s.push(e.walkTokens.call(this,o)),r&&(s=s.concat(r.call(this,o))),s}}X.setOptions(i)})},X.walkTokens=function(n,t){let e=[];for(const i of n)switch(e=e.concat(t.call(X,i)),i.type){case"table":for(const r of i.header)e=e.concat(X.walkTokens(r.tokens,t));for(const r of i.rows)for(const o of r)e=e.concat(X.walkTokens(o.tokens,t));break;case"list":e=e.concat(X.walkTokens(i.items,t));break;default:X.defaults.extensions&&X.defaults.extensions.childTokens&&X.defaults.extensions.childTokens[i.type]?X.defaults.extensions.childTokens[i.type].forEach(function(r){e=e.concat(X.walkTokens(i[r],t))}):i.tokens&&(e=e.concat(X.walkTokens(i.tokens,t)))}return e},X.parseInline=fx(po.lexInline,mo.parseInline),X.Parser=mo,X.parser=mo.parse,X.Renderer=oc,X.TextRenderer=dx,X.Lexer=po,X.lexer=po.lex,X.Tokenizer=X_,X.Slugger=hx,X.Hooks=vh,X.parse=X;const uW=["*"];let J_=(()=>{class n{constructor(){this._buttonClick$=new H,this.copied$=this._buttonClick$.pipe(ii(()=>Do($(!0),nk(3e3).pipe(nS(!1)))),Fm(),function G4(n,t,e){let i,r=!1;return n&&"object"==typeof n?({bufferSize:i=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=n):i=n??1/0,Eh({connector:()=>new W4(i,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}(1)),this.copiedText$=this.copied$.pipe(Rr(!1),L(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,i){1&e&&(x(0,"button",0),Ge("click",function(){return i.onCopyToClipboardClick()}),Tp(1,"async"),re(2),Tp(3,"async"),R()),2&e&&(It("copied",Ip(1,3,i.copied$)),O(2),Vn(Ip(3,5,i.copiedText$)))},dependencies:[EE],encapsulation:2,changeDetection:0}),n})();class fW{}var sc=(()=>{return(n=sc||(sc={})).CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers",sc;var n})();class mW{}const px=new k("SECURITY_CONTEXT");let ey=(()=>{class n{constructor(e,i,r,o,s,a){this.platform=e,this.securityContext=i,this.http=r,this.clipboardOptions=o,this.sanitizer=a,this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_MARKED_OPTIONS={renderer:new oc},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this._reload$=new H,this.reload$=this._reload$.asObservable(),this.options=s}get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}parse(e,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:s,mermaid:a,markedOptions:l=this.options}=i;a&&(this.renderer=this.extendRenderer(l.renderer||new oc));const c=this.trimIndentation(e),u=r?this.decodeHtml(c):c,d=s?this.parseEmoji(u):u,h=this.parseMarked(d,l,o);return this.sanitizer.sanitize(this.securityContext,h)||""}render(e,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:u}=i;o&&this.renderClipboard(e,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...u}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(L(i=>this.handleExtension(e,i)))}highlight(e){if(!no(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const i=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!no(this.platform))return e;const i=document.createElement("textarea");return i.innerHTML=e,i.value}extendRenderer(e){const i=e;if(!0===i.\u0275NgxMarkdownRendererExtended)return e;const r=e.code;return e.code=function(o,s,a){return"mermaid"===s?`
    ${o}
    `:r.call(this,o,s,a)},i.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,i){const r=e.lastIndexOf("://"),o=r>-1?e.substring(r+4):e,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+i+"\n```":i}parseMarked(e,i,r=!1){return no(this.platform)?r?X.parseInline(e,i):X.parse(e,i):e}parseEmoji(e){if(!no(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,i){if(no(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,i)}}renderClipboard(e,i,r){if(!no(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:s}=r,a=e.querySelectorAll("pre");for(let l=0;ld.style.opacity="1",c.onmouseout=()=>d.style.opacity="0",h=o?i.createComponent(o).hostView:s?i.createEmbeddedView(s):i.createComponent(J_).hostView,h.rootNodes.forEach(p=>{p.onmouseover=()=>d.style.opacity="1",d.appendChild(p),f=new ClipboardJS(p,{text:()=>c.innerText})}),h.onDestroy(()=>f.destroy())}}renderMermaid(e,i=this.DEFAULT_MERMAID_OPTIONS){if(!no(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=e.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.init(r))}trimIndentation(e){if(!e)return"";let i;return e.split("\n").map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join("\n")}}return n.\u0275fac=function(e){return new(e||n)(b(dl),b(px),b(Ml,8),b(fW,8),b(mW,8),b(vl))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),mx=(()=>{class n{constructor(e,i,r){this.element=e,this.markdownService=i,this.viewContainerRef=r,this.error=new ve,this.load=new ve,this.ready=new ve,this._commandLine=!1,this._clipboard=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new H}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Lt(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,i=!1){const o={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},s=this.markdownService.parse(e,{decodeHtml:i,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid});this.element.nativeElement.innerHTML=s,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,o,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,sc.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,sc.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,i){const r=e.querySelectorAll("pre");for(let o=0;o{const a=i[s];if(a){const l=this.toLispCase(s);r.item(o).setAttribute(l,a.toString())}})}toLispCase(e){const i=e.match(/([A-Z])/g);if(!i)return e;let r=e.toString();for(let o=0,s=i.length;o{class n{static forRoot(e){return{ngModule:n,providers:[ey,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:px,useValue:e&&null!=e.sanitize?e.sanitize:je.HTML}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[to]}),n})();var gx;!function(n){let t;var r;let e,i;(r=t=n.SecurityLevel||(n.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(e=n.Theme||(n.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(i=n.LogLevel||(n.LogLevel={}))}(gx||(gx={}));let DW=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=He({type:n,selectors:[["app-help-page"]],decls:2,vars:1,consts:[[2,"margin","auto","height","calc(100vh - 64px)","overflow","auto","padding","0 20em 0 20em"],[3,"src"]],template:function(e,i){1&e&&(x(0,"div",0),_t(1,"markdown",1),R()),2&e&&(O(1),F("src","assets/help.md"))},dependencies:[mx]}),n})();class _x{constructor(t,e,i,r,o,s,a,l){this.title=t,this.mdId=e,this.abstract=i,this.keywords=r,this.resourceOwner=o,this.resourceOwnerUrl=s,this.protocols=a,this.onlineResources=l}}var rn=(()=>{return(n=rn||(rn={})).InNgrWithKwInCSV="In NGR with keyword - In CSV",n.InNgrWithKwNotInCSV="In NGR with keyword - Not in CSV",n.NotInNgrInCSV="Not in NGR - In CSV",n.InNgrWithoutKwInCSV="In NGR without keyword - In CSV",rn;var n})();class EW extends _x{constructor(t,e,i,r,o,s,a,l,c){super(t,e,i,r,o,s,a,l),this.title=t,this.mdId=e,this.abstract=i,this.keywords=r,this.resourceOwner=o,this.resourceOwnerUrl=s,this.protocols=a,this.onlineResources=l,this.csvMatched=c}}function yx(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function vx(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){yx(o,i,r,s,a,"next",l)}function a(l){yx(o,i,r,s,a,"throw",l)}s(void 0)})}}var ty=(n,t,e="results")=>`${n}/?request=GetRecords&Service=CSW&Version=2.0.2&typeNames=gmd:MD_Metadata&constraint=${t}&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&resultType=${e}`,SW=function(){var n=vx(function*(t,e,i=-1,r=""){if(""!==r)return[fetch(r)];let o=`${ty(t,e,"hits")}`,s=yield fetch(o);if(!s.ok){let y=yield s.text();throw new qm({url:s.url,status:s.status,error:y})}let a=yield s.text(),d=(new DOMParser).parseFromString(a,"text/xml").querySelectorAll("SearchResults")[0].getAttribute("numberOfRecordsMatched"),h=parseInt(null!==d?d:"-1"),p=[],g=1,_=ty(t,e);for(;;){let D=fetch(`${_}&startPosition=${g}&maxRecords=20`);if(p.push(D),g+=20,g>h||-1!=i&&g>=i)break}return p});return function(e,i){return n.apply(this,arguments)}}(),ny=function(){var n=vx(function*(t,e,i=-1,r=""){let o=[];const a=yield SW(t,e,i,r);return(yield Promise.all(a).then(c=>Promise.all(c.map(u=>u.text())).then(u=>u))).forEach(c=>{let u=new DOMParser,h=u.parseFromString(c,"text/xml").querySelectorAll("MD_Metadata");for(let f=0;f{const t={csw:"http://www.opengis.net/cat/csw/2.0.2",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",gmd:"http://www.isotc211.org/2005/gmd",gco:"http://www.isotc211.org/2005/gco",geonet:"http://www.fao.org/geonetwork",gmx:"http://www.isotc211.org/2005/gmx",gts:"http://www.isotc211.org/2005/gts",srv:"http://www.isotc211.org/2005/srv",xlink:"http://www.w3.org/1999/xlink"};return null!==n&&Object.keys(t).includes(n)?t[n]:null}};function MW(n){return _a(n,"//gmd:fileIdentifier/gco:CharacterString")}function kW(n){return _a(n,"//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString/text()")}function AW(n){return _a(n,"//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString/text()")}var xW=Ht(28);function TW(n,t){if(1&n){const e=Yi();x(0,"button",9),Ge("click",function(){return ki(e),he(),Ai(tu(6).click())}),re(1," Choose File "),R()}}function IW(n,t){if(1&n&&(x(0,"mat-option",13),re(1),R()),2&n){const e=t.$implicit;F("value",e),O(1),ti(" ",e," ")}}function RW(n,t){if(1&n){const e=Yi();x(0,"mat-form-field",10)(1,"mat-label"),re(2,"Metadata identifier kolom"),R(),x(3,"mat-select",11),Ge("valueChange",function(r){return ki(e),Ai(he().selectedColumn=r)}),W(4,IW,2,2,"mat-option",12),R()()}if(2&n){const e=he();O(3),F("value",e.selectedColumn),O(1),F("ngForOf",e.columns)}}let OW=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.selectedColumn="",this.columns=[],this.fileLoaded=!1}onFileSelected(){const e=document.querySelector("#file");(0,xW.parse)(e.files[0],{skipEmptyLines:!0,header:!0,complete:i=>{this.fileLoaded=!0,this.columns=Object.keys(i.data[0]),this.selectedColumn=this.columns[0],this.data.csvData=i.data,this.data.mdIdColumn=this.selectedColumn}})}onNoClick(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(m(Jl),m(x_))},n.\u0275cmp=He({type:n,selectors:[["dialog-overview-example-dialog"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Open een CSV bestand (met headers)","type","button","color","primary","mat-raised-button","",3,"click",4,"ngIf"],["hidden","","type","file","id","file","accept",".csv",3,"change"],["fileInput",""],["appearance","fill",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],["color","primary","mat-button","","cdkFocusInitial","",3,"disabled","mat-dialog-close"],["title","Open een CSV bestand (met headers)","type","button","color","primary","mat-raised-button","",3,"click"],["appearance","fill"],["title","Selecteer metadata-identificatie kolom",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(x(0,"h1",0),re(1,"Open CSV file"),R(),x(2,"div",1)(3,"div"),W(4,TW,2,0,"button",2),x(5,"input",3,4),Ge("change",function(){return i.onFileSelected()}),R(),W(7,RW,5,2,"mat-form-field",5),R()(),x(8,"div",6)(9,"button",7),re(10,"CANCEL"),R(),x(11,"button",8),re(12," OK "),R()()),2&e&&(O(4),F("ngIf",!i.fileLoaded),O(3),F("ngIf",i.fileLoaded),O(2),F("mat-dialog-close",null),O(2),F("disabled",!i.fileLoaded)("mat-dialog-close",i.data))},dependencies:[Iu,eo,Al,Mk,kk,Ak,xk,Nk,th,qA,Um],encapsulation:2}),n})();function FW(n,t){if(1&n&&(x(0,"mat-option",8),re(1),R()),2&n){const e=t.$implicit;F("value",e),O(1),ti(" ",e," ")}}const NW=function(){return[]};function PW(n,t){1&n&&(x(0,"button",9),re(1," RESET FILTER "),R()),2&n&&F("mat-dialog-close",function qC(n,t,e){const i=Dn()+n,r=S();return r[i]===me?qi(r,i,e?t.call(e):t()):function Qa(n,t){return n[t]}(r,i)}(1,NW))}let LW=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.dataSource=[],this.column="",this.filterValues=[],this.selectedValues=[],this.column=i.column,this.dataSource=i.dataSource;let r=i.filter;void 0!==r&&(this.selectedValues=r.filterValues);const o=this.column;let s=this.dataSource.map(a=>a[o]);s=s.flat(),this.filterValues=s.filter((a,l,c)=>c.indexOf(a)===l).sort()}onNoClick(){this.dialogRef.close()}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(m(Jl),m(x_))},n.\u0275cmp=He({type:n,selectors:[["app-filter-dialog"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["appearance","fill"],["multiple","true",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close",4,"ngIf"],["color","primary","mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"],["mat-button","",3,"mat-dialog-close"]],template:function(e,i){1&e&&(x(0,"h1",0),re(1),R(),x(2,"div",1)(3,"div")(4,"mat-form-field",2)(5,"mat-label"),re(6,"Selecteer kolom met metadata identifier"),R(),x(7,"mat-select",3),Ge("valueChange",function(o){return i.selectedValues=o}),W(8,FW,2,2,"mat-option",4),R()()()(),x(9,"div",5),W(10,PW,2,2,"button",6),x(11,"button",7),re(12," OK "),R()()),2&e&&(O(1),ti("Filter ",i.column," column"),O(6),F("value",i.selectedValues),O(1),F("ngForOf",i.filterValues),O(2),F("ngIf",i.selectedValues.length>0),O(1),F("mat-dialog-close",i.selectedValues))},dependencies:[Iu,eo,Al,Mk,kk,Ak,xk,Nk,th,qA,Um]}),n})();var VW=Ht(327);function BW(n,t){1&n&&(x(0,"span",4)(1,"mat-icon"),re(2,"error"),R()())}let ry=(()=>{class n{constructor(e,i){this.data=e,this.snackBar=i,this.html="",this.error=!1,Object.keys(e).includes("html")&&(this.html=e.html),Object.keys(e).includes("error")&&(this.error=e.error)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(m(Z_),m(XA))},n.\u0275cmp=He({type:n,selectors:[["app-html-snackbar"]],decls:6,vars:2,consts:[[1,"snackbar"],["title","Error",4,"ngIf"],[3,"innerHTML"],[1,"dismiss",3,"click"],["title","Error"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"div"),W(2,BW,3,0,"span",1),_t(3,"span",2),R(),x(4,"a",3),Ge("click",function(){return i.snackBar.dismiss()}),re(5,"OK"),R()()),2&e&&(O(2),F("ngIf",i.error),O(1),F("innerHTML",i.html,rb))},dependencies:[eo,Xm],styles:[".snackbar a{color:#0060df} .snackbar a:visited{color:#ff4081} .snackbar a.dismiss{color:#ff4081;float:right;cursor:pointer}"]}),n})();function HW(n,t){1&n&&(x(0,"div",5),_t(1,"mat-spinner",6),x(2,"p",7),re(3," NGR metadata records ophalen "),R()())}function jW(n,t){1&n&&(x(0,"th",20),re(1,"metadata-identifier"),R())}function $W(n,t){if(1&n&&(x(0,"a",24),re(1),R()),2&n){const e=he().$implicit;iu("href","https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/",e.mdId,"",Oo),O(1),Vn(e.mdId)}}function UW(n,t){if(1&n&&(x(0,"span",25),re(1),R()),2&n){const e=he().$implicit;F("title","record ("+e.mdId+") from CSV file not found in catalog"),O(1),Vn(e.mdId)}}function zW(n,t){if(1&n&&(x(0,"td",21),W(1,$W,2,2,"ng-template",22),W(2,UW,2,2,"ng-template",null,23,aD),R()),2&n){const e=t.$implicit,i=tu(3),r=he(2);F("ngClass",r.getMatchedClass(e)),O(1),F("ngIf",e.csvMatched!==r.csvMatched.NotInNgrInCSV)("ngIfElse",i)}}function WW(n,t){if(1&n){const e=Yi();x(0,"th",20)(1,"span"),re(2,"resourceOwner "),x(3,"mat-icon",26),Ge("click",function(){ki(e);const r=he(2);return Ai(r.openFilterDialog("resourceOwner",r.filters))}),re(4,"filter_list"),R()()()}if(2&n){const e=he(2);O(3),F("ngClass",e.filterActive("resourceOwner")?"filterActive":"")}}function GW(n,t){if(1&n&&(x(0,"td",21)(1,"a",27),re(2),R()()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),F("href","#type='dataset' AND organisationName='"+e.resourceOwner+"'",Oo)("title","Haal alle records op van organisatie "+e.resourceOwner),O(1),Vn(e.resourceOwner)}}function qW(n,t){1&n&&(x(0,"th",20)(1,"span"),re(2,"keywords "),R()())}function KW(n,t){1&n&&(x(0,"span"),re(1,", "),R())}function YW(n,t){if(1&n&&(x(0,"span")(1,"a",27),re(2),R(),W(3,KW,2,0,"span",29),R()),2&n){const e=t.$implicit,i=t.last;O(1),F("href","#type='dataset' AND keyword='"+e.toLowerCase()+"'",Oo)("title","Haal alle records op met keyword "+e),O(1),Vn(e),O(1),F("ngIf",!i)}}function ZW(n,t){if(1&n&&(x(0,"td",21),W(1,YW,4,4,"span",28),R()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),F("ngForOf",e.keywords)}}function QW(n,t){1&n&&(x(0,"th",20),re(1,"title"),R())}function XW(n,t){if(1&n&&(x(0,"td",21),re(1),R()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),ti(" ",e.title," ")}}function JW(n,t){1&n&&(x(0,"th",20)(1,"span"),re(2,"protocols "),R()())}function eG(n,t){1&n&&(x(0,"span"),re(1,", "),R())}function tG(n,t){if(1&n&&(x(0,"span")(1,"a",30),re(2),R(),W(3,eG,2,0,"span",29),R()),2&n){const e=t.$implicit,i=t.index,r=t.last,o=he().$implicit;O(1),F("href",o.onlineResources[i],Oo),O(1),Vn(e),O(1),F("ngIf",!r)}}function nG(n,t){if(1&n&&(x(0,"td",21),W(1,tG,4,3,"span",28),R()),2&n){const e=t.$implicit;F("ngClass",he(2).getMatchedClass(e)),O(1),F("ngForOf",e.protocols)}}function iG(n,t){if(1&n){const e=Yi();x(0,"th",20)(1,"span"),re(2,"csvMatched "),x(3,"mat-icon",26),Ge("click",function(){ki(e);const r=he(2);return Ai(r.openFilterDialog("csvMatched",r.filters))}),re(4,"filter_list"),R()()()}if(2&n){const e=he(2);O(3),F("ngClass",e.filterActive("csvMatched")?"filterActive":"")}}function rG(n,t){if(1&n&&(x(0,"td",31),re(1),R()),2&n){const e=t.$implicit,i=he(2);F("ngClass",i.getMatchedClass(e))("title",i.getTooltipCsvMatched(e.csvMatched)),O(1),ti(" ",e.csvMatched," ")}}function oG(n,t){1&n&&_t(0,"tr",32)}function sG(n,t){1&n&&_t(0,"tr",33)}function aG(n,t){if(1&n&&(x(0,"table",8),Jn(1,9),W(2,jW,2,0,"th",10),W(3,zW,4,3,"td",11),ei(),Jn(4,12),W(5,WW,5,1,"th",10),W(6,GW,3,4,"td",11),ei(),Jn(7,13),W(8,qW,3,0,"th",10),W(9,ZW,2,2,"td",11),ei(),Jn(10,14),W(11,QW,2,0,"th",10),W(12,XW,2,2,"td",11),ei(),Jn(13,15),W(14,JW,3,0,"th",10),W(15,nG,2,2,"td",11),ei(),Jn(16,16),W(17,iG,5,1,"th",10),W(18,rG,2,3,"td",17),ei(),W(19,oG,1,0,"tr",18),W(20,sG,1,0,"tr",19),R()),2&n){const e=he();F("dataSource",e.dataView),O(19),F("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),O(1),F("matRowDefColumns",e.displayedColumns)}}function lG(n,t){if(1&n){const e=Yi();x(0,"button",34),Ge("click",function(){return ki(e),Ai(he().openDialog())}),x(1,"mat-icon"),re(2,"upload_file"),R()()}}function cG(n,t){if(1&n){const e=Yi();x(0,"button",35),Ge("click",function(){return ki(e),Ai(he().downloadResultSet())}),x(1,"mat-icon"),re(2,"download"),R()()}}const hG={scrollPositionRestoration:"enabled",anchorScrolling:"enabled",scrollOffset:[0,64]},fG=[{path:"help",component:DW},{path:"",component:(()=>{class n{constructor(e,i){this.dialog=e,this._snackBar=i,this.title="novex-dataset-app",this.cswEndpoint="https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw",this.displayedColumns=["mdId","title","resourceOwner","keywords","protocols"],this.dataSource=[],this.dataView=[],this.csvData=[],this.cswLoading=!0,this.mdIdColumnCsv="",this.filters=[]}openSnackBar(e,i){this._snackBar.open(e,i)}filterActive(e){let i=this.filters.find(r=>r.filterColumn===e);return!!(i&&i.filterValues.length>0)}openFilterDialog(e,i){let r=i.find(s=>s.filterColumn===e);this.dialog.open(LW,{data:{column:e,dataSource:this.dataSource,filter:r}}).afterClosed().subscribe(s=>{let l={filterColumn:e,filterValues:s};this.filters=this.filters.filter(c=>c.filterColumn!==l.filterColumn),l.filterValues.length>0&&this.filters.push(l),this.dataView=this.dataSource.filter(c=>{for(let u of this.filters){const d=u.filterColumn;return Array.isArray(c[d])?u.filterValues.filter(p=>c[d].includes(p)).length>0:u.filterValues.includes(c[d])}return 0===this.filters.length})})}downloadResultSet(){let e=this.dataView,r=["abstract","resourceOwnerUrl","onlineResources"];const o=Object.getOwnPropertyNames(e[0]).filter(c=>!r.includes(c));let s=e.map(c=>o.map(u=>(c=>null==c?'""':Array.isArray(c)?`"${c.join(",")}"`:"string"==typeof c?`"${c.replace('"','""')}"`:JSON.stringify(c))(c[u])).filter(u=>null!==u).join(","));s.unshift(o.map(c=>`"${c}"`).join(","));let a=s.join("\r\n");var l=new Blob([a],{type:"text/csv"});(0,VW.saveAs)(l,"myFile.csv")}openDialog(){this.dialog.open(OW,{data:{}}).afterClosed().subscribe(i=>{this.csvData=i.csvData,this.mdIdColumnCsv=i.mdIdColumn,this.csvData.map(s=>{let a=this.dataSource.find(l=>l.mdId===s[this.mdIdColumnCsv]);a&&(a.csvMatched=rn.InNgrWithKwInCSV,s.csvMatched=rn.InNgrWithKwInCSV)}),this.dataSource.filter(s=>s.csvMatched!==rn.InNgrWithKwInCSV).map(s=>s.csvMatched=rn.InNgrWithKwNotInCSV),this.csvData.filter(s=>!Object.keys(s).includes("csvMatched")).map(s=>s.csvMatched="false");let o=this.csvData.filter(s=>"false"===s.csvMatched).map(s=>s[this.mdIdColumnCsv]);if(o.length>0){let s=o.map(a=>`identifier='${a}'`).join(" OR ");ny(this.cswEndpoint,s).then(a=>{a=a.map(c=>c).sort(this.sortRecords);for(const c of o){let u=a.find(d=>d.mdId===c);if(void 0!==u)u.csvMatched=rn.InNgrWithoutKwInCSV,this.dataSource.push(u);else{let d=new EW;d.mdId=c,d.csvMatched=rn.NotInNgrInCSV,this.dataSource.push(d)}}this.displayedColumns.push("csvMatched")}).catch(a=>{console.error(a),this.cswLoading=!1,this.dataSource=[],this.dataView=this.dataSource,this._snackBar.openFromComponent(ry,{data:{html:`

    Ophalen van unmatched records uit NGR mislukt voor deze query. HTTP status code: ${a.status}

    `,error:!0}})})}else this.displayedColumns.push("csvMatched")})}get csvMatched(){return rn}getTooltipCsvMatched(e){switch(e){case rn.InNgrWithKwInCSV:return"Record in NGR en in CSV bestand";case rn.InNgrWithKwNotInCSV:return"Record in NGR maar niet in CSV bestand";case rn.NotInNgrInCSV:return"Record in CSV bestand maar niet in NGR";case rn.InNgrWithoutKwInCSV:return"Record in CSV bestand, in NGR maar zonder NOVEX keyword";default:return""}}getMatchedClass(e){if(!(this.csvData.length>0))return"";switch(e.csvMatched){case rn.InNgrWithKwInCSV:return"inCsv";case rn.InNgrWithKwNotInCSV:return"notInCsv";case rn.NotInNgrInCSV:return"notInNGR";case rn.InNgrWithoutKwInCSV:return"inNGRNoKeyword";default:return""}}sortRecords(e,i){return void 0===e.title&&void 0===i.title?0:void 0===e.title&&void 0!==i.title?-1:void 0!==e.title&&void 0===i.title?1:e.title.toLowerCase()i.title.toLowerCase()?1:0}getRecords(){let e;this.cswLoading=!0,qD(),e=ny(this.cswEndpoint,this.cqlQuery),e.then(i=>{this.dataSource=i.map(s=>s).sort(this.sortRecords),this.dataView=this.dataSource,this.cswLoading=!1;let o=ty(this.cswEndpoint,this.cqlQuery);this._snackBar.openFromComponent(ry,{data:{html:`

    ${this.dataSource.length} Metadata records opgehaald uit het NGR met de query:

    ${decodeURIComponent(this.cqlQuery)}
    `}})}).catch(i=>{this.cswLoading=!1,this.dataSource=[],this.dataView=this.dataSource,this._snackBar.openFromComponent(ry,{data:{html:`

    Ophalen van records uit NGR mislukt voor deze query. HTTP status code: ${i.status}

    `,error:!0}})})}get cqlQuery(){let e=location.hash;return e=e.replace("#",""),encodeURIComponent(e).replaceAll("%25","%")}set cqlQuery(e){location.hash=encodeURIComponent(e)}ngOnInit(){""===this.cqlQuery&&(this.cqlQuery="type='dataset' AND (Subject='basisset novex' OR Subject='Basisset novex' OR Subject='basisset NOVEX' OR Subject='Basisset NOVEX')"),this.getRecords(),window.addEventListener("hashchange",e=>{this.getRecords()})}}return n.\u0275fac=function(e){return new(e||n)(m(eh),m(XA))},n.\u0275cmp=He({type:n,selectors:[["app-csw-table"]],decls:6,vars:5,consts:[[1,"main",3,"ngClass"],["style","margin-top:4em",4,"ngIf"],["id","table","mat-table","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","primary","aria-label","Upload een CSV bestand om te vergelijken met de records uit NGR","title","Upload een CSV bestand om te vergelijken met de records uit NGR","style","position: fixed; right: 1em; bottom: 1em",3,"click",4,"ngIf"],["mat-fab","","color","secondary","aria-label","Exporteer huidige resultaatset naar een CSV bestand","title","Exporteer huidige resultaatset naar een CSV bestand","style","position: fixed; right: 1em; bottom: 1em",3,"click",4,"ngIf"],[2,"margin-top","4em"],[2,"margin","auto"],[2,"text-align","center","margin-top","2em"],["id","table","mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","mdId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","resourceOwner"],["matColumnDef","keywords"],["matColumnDef","title"],["matColumnDef","protocols"],["matColumnDef","csvMatched"],["mat-cell","","style","cursor: pointer",3,"ngClass","title",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"ngClass"],[3,"ngIf","ngIfElse"],["recordNotInCatalog",""],["target","_blank","title","Bekijk dit record in het NGR",3,"href"],[3,"title"],["title","Filter","aria-label","Filter",2,"vertical-align","middle","float","right","cursor","pointer","margin-right","1em",3,"ngClass","click"],[3,"href","title"],[4,"ngFor","ngForOf"],[4,"ngIf"],["target","_blank",3,"href"],["mat-cell","",2,"cursor","pointer",3,"ngClass","title"],["mat-header-row",""],["mat-row",""],["mat-fab","","color","primary","aria-label","Upload een CSV bestand om te vergelijken met de records uit NGR","title","Upload een CSV bestand om te vergelijken met de records uit NGR",2,"position","fixed","right","1em","bottom","1em",3,"click"],["mat-fab","","color","secondary","aria-label","Exporteer huidige resultaatset naar een CSV bestand","title","Exporteer huidige resultaatset naar een CSV bestand",2,"position","fixed","right","1em","bottom","1em",3,"click"]],template:function(e,i){1&e&&(x(0,"div")(1,"div",0),W(2,HW,4,0,"div",1),W(3,aG,21,4,"table",2),R(),W(4,lG,3,0,"button",3),W(5,cG,3,0,"button",4),R()),2&e&&(O(1),F("ngClass",i.cswLoading?"loading":"loaded"),O(1),F("ngIf",i.cswLoading),O(1),F("ngIf",!i.cswLoading),O(1),F("ngIf",0===i.csvData.length),O(1),F("ngIf",i.csvData.length>0))},dependencies:[fm,Iu,eo,ck,y_,uk,v_,__,dk,b_,w_,hk,fk,Xm,Al,w4],styles:[".main[_ngcontent-%COMP%]{height:calc(100vh - 64px);overflow:auto;width:100%}.loading[_ngcontent-%COMP%]{justify-content:center;vertical-align:middle;align-items:center}#table[_ngcontent-%COMP%]{width:100vw}.inCsv[_ngcontent-%COMP%]{background-color:#e6ffec}.notInCsv[_ngcontent-%COMP%]{background-color:#ffebe9}.notInNGR[_ngcontent-%COMP%]{background-color:#fffce9}.inNGRNoKeyword[_ngcontent-%COMP%]{background-color:#ebe9ff}.filterActive[_ngcontent-%COMP%]{background-color:#ff4081;color:#fff;border-radius:4px}"]}),n})()},{path:"",redirectTo:"/",pathMatch:"full"}];let pG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n}),n.\u0275inj=Oe({imports:[to,bd.forRoot(fG,hG),bd]}),n})(),mG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Pe({type:n,bootstrap:[V$]}),n.\u0275inj=Oe({imports:[qE,Hz,P3,dH,Y0,m5,nh,z5,d4,C4,QA,z4,bd,pG,eH,L$,CW.forRoot({loader:Ml,sanitize:je.NONE})]}),n})();(function $P(){if(GD)throw new Error("Cannot enable prod mode after platform setup.");WD=!1})(),fB().bootstrapModule(mG).catch(n=>console.error(n))},327:function(Rn,On){var vi;void 0!==(vi=function(){"use strict";function Ue(be,we,jt){var ze=new XMLHttpRequest;ze.open("GET",be),ze.responseType="blob",ze.onload=function(){K(ze.response,we,jt)},ze.onerror=function(){console.error("could not download file")},ze.send()}function Be(be){var we=new XMLHttpRequest;we.open("HEAD",be,!1);try{we.send()}catch{}return 200<=we.status&&299>=we.status}function bi(be){try{be.dispatchEvent(new MouseEvent("click"))}catch{var we=document.createEvent("MouseEvents");we.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),be.dispatchEvent(we)}}var Qt="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,_o=Qt.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=Qt.saveAs||("object"!=typeof window||window!==Qt?function(){}:"download"in HTMLAnchorElement.prototype&&!_o?function(be,we,jt){var ze=Qt.URL||Qt.webkitURL,St=document.createElement("a");St.download=we=we||be.name||"download",St.rel="noopener","string"==typeof be?(St.href=be,St.origin===location.origin?bi(St):Be(St.href)?Ue(be,we,jt):bi(St,St.target="_blank")):(St.href=ze.createObjectURL(be),setTimeout(function(){ze.revokeObjectURL(St.href)},4e4),setTimeout(function(){bi(St)},0))}:"msSaveOrOpenBlob"in navigator?function(be,we,jt){if(we=we||be.name||"download","string"!=typeof be)navigator.msSaveOrOpenBlob(function sr(be,we){return typeof we>"u"?we={autoBom:!1}:"object"!=typeof we&&(console.warn("Deprecated: Expected third argument to be a object"),we={autoBom:!we}),we.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(be.type)?new Blob(["\ufeff",be],{type:be.type}):be}(be,jt),we);else if(Be(be))Ue(be,we,jt);else{var ze=document.createElement("a");ze.href=be,ze.target="_blank",setTimeout(function(){bi(ze)})}}:function(be,we,jt,ze){if((ze=ze||open("","_blank"))&&(ze.document.title=ze.document.body.innerText="downloading..."),"string"==typeof be)return Ue(be,we,jt);var St="application/octet-stream"===be.type,Ur=/constructor/i.test(Qt.HTMLElement)||Qt.safari,ar=/CriOS\/[\d]+/.test(navigator.userAgent);if((ar||St&&Ur||_o)&&typeof FileReader<"u"){var sn=new FileReader;sn.onloadend=function(){var ai=sn.result;ai=ar?ai:ai.replace(/^data:[^;]*;/,"data:attachment/file;"),ze?ze.location.href=ai:location=ai,ze=null},sn.readAsDataURL(be)}else{var wi=Qt.URL||Qt.webkitURL,yo=wi.createObjectURL(be);ze?ze.location=yo:location.href=yo,ze=null,setTimeout(function(){wi.revokeObjectURL(yo)},4e4)}});Qt.saveAs=K.saveAs=K,Rn.exports=K}.apply(On,[]))&&(Rn.exports=vi)},28:function(Rn,On){var Ht,vi;Ht=function sr(){"use strict";var Ue=typeof self<"u"?self:typeof window<"u"?window:void 0!==Ue?Ue:{},Be=!Ue.document&&!!Ue.postMessage,bi=Be&&/blob:/i.test((Ue.location||{}).protocol),Qt={},_o=0,K={parse:function(w,v){var A=(v=v||{}).dynamicTyping||!1;if(qe(A)&&(v.dynamicTypingFunction=A,A={}),v.dynamicTyping=A,v.transform=!!qe(v.transform)&&v.transform,v.worker&&K.WORKERS_SUPPORTED){var z=function(){if(!K.WORKERS_SUPPORTED)return!1;var xt,ne,ie=(xt=Ue.URL||Ue.webkitURL||null,ne=sr.toString(),K.BLOB_URL||(K.BLOB_URL=xt.createObjectURL(new Blob(["(",ne,")();"],{type:"text/javascript"})))),Ne=new Ue.Worker(ie);return Ne.onmessage=yo,Ne.id=_o++,Qt[Ne.id]=Ne}();return z.userStep=v.step,z.userChunk=v.chunk,z.userComplete=v.complete,z.userError=v.error,v.step=qe(v.step),v.chunk=qe(v.chunk),v.complete=qe(v.complete),v.error=qe(v.error),delete v.worker,void z.postMessage({input:w,config:v,workerId:z.id})}var G=null;return"string"==typeof w?G=v.download?new jt(v):new St(v):!0===w.readable&&qe(w.read)&&qe(w.on)?G=new Ur(v):(Ue.File&&w instanceof File||w instanceof Object)&&(G=new ze(v)),G.stream(w)},unparse:function(w,v){var A=!1,z=!0,G=",",ie="\r\n",Ne='"',xt=Ne+Ne,ne=!1,q=null,ft=!1;!function(){if("object"==typeof v){if("string"!=typeof v.delimiter||K.BAD_DELIMITERS.filter(function(U){return-1!==v.delimiter.indexOf(U)}).length||(G=v.delimiter),("boolean"==typeof v.quotes||"function"==typeof v.quotes||Array.isArray(v.quotes))&&(A=v.quotes),"boolean"!=typeof v.skipEmptyLines&&"string"!=typeof v.skipEmptyLines||(ne=v.skipEmptyLines),"string"==typeof v.newline&&(ie=v.newline),"string"==typeof v.quoteChar&&(Ne=v.quoteChar),"boolean"==typeof v.header&&(z=v.header),Array.isArray(v.columns)){if(0===v.columns.length)throw new Error("Option columns is empty");q=v.columns}void 0!==v.escapeChar&&(xt=v.escapeChar+Ne),("boolean"==typeof v.escapeFormulae||v.escapeFormulae instanceof RegExp)&&(ft=v.escapeFormulae instanceof RegExp?v.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var ue=new RegExp(sn(Ne),"g");if("string"==typeof w&&(w=JSON.parse(w)),Array.isArray(w)){if(!w.length||Array.isArray(w[0]))return li(null,w,ne);if("object"==typeof w[0])return li(q||Object.keys(w[0]),w,ne)}else if("object"==typeof w)return"string"==typeof w.data&&(w.data=JSON.parse(w.data)),Array.isArray(w.data)&&(w.fields||(w.fields=w.meta&&w.meta.fields||q),w.fields||(w.fields=Array.isArray(w.data[0])?w.fields:"object"==typeof w.data[0]?Object.keys(w.data[0]):[]),Array.isArray(w.data[0])||"object"==typeof w.data[0]||(w.data=[w.data])),li(w.fields||[],w.data||[],ne);throw new Error("Unable to serialize unrecognized input");function li(U,tt,Ae){var ce="";"string"==typeof U&&(U=JSON.parse(U)),"string"==typeof tt&&(tt=JSON.parse(tt));var $t=Array.isArray(U)&&0=this._config.preview;if(bi)Ue.postMessage({results:ie,workerId:K.WORKER_ID,finished:xt});else if(qe(this._config.chunk)&&!A){if(this._config.chunk(ie,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);ie=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(ie.data),this._completeResults.errors=this._completeResults.errors.concat(ie.errors),this._completeResults.meta=ie.meta),this._completed||!xt||!qe(this._config.complete)||ie&&ie.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),xt||ie&&ie.meta.paused||this._nextChunk(),ie}this._halted=!0},this._sendError=function(v){qe(this._config.error)?this._config.error(v):bi&&this._config.error&&Ue.postMessage({workerId:K.WORKER_ID,error:v,finished:!1})}}function jt(w){var v;(w=w||{}).chunkSize||(w.chunkSize=K.RemoteChunkSize),we.call(this,w),this._nextChunk=Be?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(A){this._input=A,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(v=new XMLHttpRequest,this._config.withCredentials&&(v.withCredentials=this._config.withCredentials),Be||(v.onload=Bi(this._chunkLoaded,this),v.onerror=Bi(this._chunkError,this)),v.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Be),this._config.downloadRequestHeaders){var A=this._config.downloadRequestHeaders;for(var z in A)v.setRequestHeader(z,A[z])}this._config.chunkSize&&v.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{v.send(this._config.downloadRequestBody)}catch(ie){this._chunkError(ie.message)}Be&&0===v.status&&this._chunkError()}},this._chunkLoaded=function(){var z;4===v.readyState&&(v.status<200||400<=v.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:v.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null===(z=v.getResponseHeader("Content-Range"))?-1:parseInt(z.substring(z.lastIndexOf("/")+1))),this.parseChunk(v.responseText)))},this._chunkError=function(A){this._sendError(new Error(v.statusText||A))}}function ze(w){var v,A;(w=w||{}).chunkSize||(w.chunkSize=K.LocalChunkSize),we.call(this,w);var z=typeof FileReader<"u";this.stream=function(G){this._input=G,A=G.slice||G.webkitSlice||G.mozSlice,z?((v=new FileReader).onload=Bi(this._chunkLoaded,this),v.onerror=Bi(this._chunkError,this)):v=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(G.target.result)},this._chunkError=function(){this._sendError(v.error)}}function St(w){var v;we.call(this,w=w||{}),this.stream=function(A){return v=A,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var A,z=this._config.chunkSize;return z?(A=v.substring(0,z),v=v.substring(z)):(A=v,v=""),this._finished=!v,this.parseChunk(A)}}}function Ur(w){we.call(this,w=w||{});var v=[],A=!0,z=!1;this.pause=function(){we.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){we.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(G){this._input=G,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){z&&1===v.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),v.length?this.parseChunk(v.shift()):A=!0},this._streamData=Bi(function(G){try{v.push("string"==typeof G?G:G.toString(this._config.encoding)),A&&(A=!1,this._checkIsFinished(),this.parseChunk(v.shift()))}catch(ie){this._streamError(ie)}},this),this._streamError=Bi(function(G){this._streamCleanUp(),this._sendError(G)},this),this._streamEnd=Bi(function(){this._streamCleanUp(),z=!0,this._streamData("")},this),this._streamCleanUp=Bi(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ar(w){var v,A,z,G=Math.pow(2,53),ie=-G,Ne=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,xt=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,ne=this,q=0,ft=0,ue=!1,li=!1,H=[],U={data:[],errors:[],meta:{}};if(qe(w.step)){var tt=w.step;w.step=function(J){if(U=J,$t())ce();else{if(ce(),0===U.data.length)return;q+=J.data.length,w.preview&&q>w.preview?A.abort():(U.data=U.data[0],tt(U,ne))}}}function Ae(J){return"greedy"===w.skipEmptyLines?""===J.join("").trim():1===J.length&&0===J[0].length}function ce(){return U&&z&&(wt("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+K.DefaultDelimiter+"'"),z=!1),w.skipEmptyLines&&(U.data=U.data.filter(function(J){return!Ae(J)})),$t()&&function(){if(U)if(Array.isArray(U.data[0])){for(var We=0;$t()&&We=H.length?"__parsed_extra":H[xe]),w.transform&&(fe=w.transform(fe,mt)),fe=L(mt,fe),"__parsed_extra"===mt?(Ke[mt]=Ke[mt]||[],Ke[mt].push(fe)):Ke[mt]=fe}return w.header&&(xe>H.length?wt("FieldMismatch","TooManyFields","Too many fields: expected "+H.length+" fields but parsed "+xe,ft+pt):xe=Hn.length/2?"\r\n":"\r"}(J,w.quoteChar||'"')),z=!1,w.delimiter)qe(w.delimiter)&&(w.delimiter=w.delimiter(J),U.meta.delimiter=w.delimiter);else{var xe=function(mt,fe,lr,Hn,Fn){var cr,jn,$n,Ut;Fn=Fn||[",","\t","|",";",K.RECORD_SEP,K.UNIT_SEP];for(var Hi=0;Hi=Ne)return Ut(!0)}else for(fe=q,q++;;){if(-1===(fe=ue.indexOf(v,fe+1)))return H||wt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:L.length,index:q}),jn();if(fe===U-1)return jn(ue.substring(q,fe).replace(mt,v));if(v!==ne||ue[fe+1]!==ne){if(v===ne||0===fe||ue[fe-1]!==ne){-1!==xe&&xe=Ne)return Ut(!0);break}wt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:L.length,index:q}),fe++}}else fe++}return jn();function Fn(dn){L.push(dn),We=q}function cr(dn){var bo=0;if(-1!==dn){var ji=ue.substring(fe+1,dn);ji&&""===ji.trim()&&(bo=ji.length)}return bo}function jn(dn){return H||(void 0===dn&&(dn=ue.substring(q)),J.push(dn),q=U,Fn(J),$t&&Hi()),Ut()}function $n(dn){q=dn,Fn(J),J=[],Ke=ue.indexOf(z,q)}function Ut(dn){return{data:L,errors:wt,meta:{delimiter:A,linebreak:z,aborted:ft,truncated:!!dn,cursor:We+(li||0)}}}function Hi(){ie(Ut()),L=[],wt=[]}},this.abort=function(){ft=!0},this.getCharIndex=function(){return q}}function yo(w){var v=w.data,A=Qt[v.workerId],z=!1;if(v.error)A.userError(v.error,v.file);else if(v.results&&v.results.data){var G={abort:function(){z=!0,ai(v.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ac,resume:ac};if(qe(A.userStep)){for(var ie=0;ie{Rn(Rn.s=483)}]); \ No newline at end of file