diff --git a/404.html b/404.html index 556aaf8..17a6674 100644 --- a/404.html +++ b/404.html @@ -25,6 +25,6 @@ - + \ No newline at end of file diff --git a/index.html b/index.html index 949cf3e..26a6c52 100644 --- a/index.html +++ b/index.html @@ -22,6 +22,6 @@ - + \ No newline at end of file diff --git a/main.6c3b5acd3aa0c965.js b/main.39677e5a0735eed9.js similarity index 95% rename from main.6c3b5acd3aa0c965.js rename to main.39677e5a0735eed9.js index a7fb3ef..6fafcdd 100644 --- a/main.6c3b5acd3aa0c965.js +++ b/main.39677e5a0735eed9.js @@ -1 +1 @@ -"use strict";(self.webpackChunksr_app=self.webpackChunksr_app||[]).push([[179],{431:()=>{function De(t){return"function"==typeof t}function Os(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const yl=Os(t=>function(e){t(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 co(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class hn{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;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(De(i))try{i()}catch(o){n=o instanceof yl?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Um(o)}catch(s){n=n??[],s instanceof yl?n=[...n,...s.errors]:n.push(s)}}if(n)throw new yl(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Um(n);else{if(n instanceof hn){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&co(e,n)}remove(n){const{_finalizers:e}=this;e&&co(e,n),n instanceof hn&&n._removeParent(this)}}hn.EMPTY=(()=>{const t=new hn;return t.closed=!0,t})();const $m=hn.EMPTY;function zm(t){return t instanceof hn||t&&"closed"in t&&De(t.remove)&&De(t.add)&&De(t.unsubscribe)}function Um(t){De(t)?t():t.unsubscribe()}const xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vl={setTimeout(t,n,...e){const{delegate:i}=vl;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=vl;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function jm(t){vl.setTimeout(()=>{const{onUnhandledError:n}=xr;if(!n)throw t;n(t)})}function bl(){}const cE=Ed("C",void 0,void 0);function Ed(t,n,e){return{kind:t,value:n,error:e}}let Mr=null;function Cl(t){if(xr.useDeprecatedSynchronousErrorHandling){const n=!Mr;if(n&&(Mr={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Mr;if(Mr=null,e)throw i}}else t()}class Id extends hn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,zm(n)&&n.add(this)):this.destination=mE}static create(n,e,i){return new As(n,e,i)}next(n){this.isStopped?Md(function dE(t){return Ed("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Md(function uE(t){return Ed("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Md(cE,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const hE=Function.prototype.bind;function xd(t,n){return hE.call(t,n)}class fE{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){wl(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){wl(i)}else wl(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){wl(e)}}}class As extends Id{constructor(n,e,i){let r;if(super(),De(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&xr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&xd(n.next,o),error:n.error&&xd(n.error,o),complete:n.complete&&xd(n.complete,o)}):r=n}this.destination=new fE(r)}}function wl(t){xr.useDeprecatedSynchronousErrorHandling?function pE(t){xr.useDeprecatedSynchronousErrorHandling&&Mr&&(Mr.errorThrown=!0,Mr.error=t)}(t):jm(t)}function Md(t,n){const{onStoppedNotification:e}=xr;e&&vl.setTimeout(()=>e(t,n))}const mE={closed:!0,next:bl,error:function gE(t){throw t},complete:bl},kd="function"==typeof Symbol&&Symbol.observable||"@@observable";function nr(t){return t}function Gm(t){return 0===t.length?nr:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let ot=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function vE(t){return t&&t instanceof Id||function yE(t){return t&&De(t.next)&&De(t.error)&&De(t.complete)}(t)&&zm(t)}(e)?e:new As(e,i,r);return Cl(()=>{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=Wm(i))((r,o)=>{const s=new As({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)}[kd](){return this}pipe(...e){return Gm(e)(this)}toPromise(e){return new(e=Wm(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Wm(t){var n;return null!==(n=t??xr.Promise)&&void 0!==n?n:Promise}const bE=Os(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Oe=(()=>{class t extends ot{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new qm(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new bE}next(e){Cl(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Cl(()=>{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(){Cl(()=>{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?$m:(this.currentObservers=null,o.push(e),new hn(()=>{this.currentObservers=null,co(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ot;return e.source=this,e}}return t.create=(n,e)=>new qm(n,e),t})();class qm extends Oe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:$m}}function Km(t){return De(t?.lift)}function ut(t){return n=>{if(Km(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function nt(t,n,e,i,r){return new CE(t,n,e,i,r)}class CE extends Id{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Se(t,n){return ut((e,i)=>{let r=0;e.subscribe(nt(i,o=>{i.next(t.call(n,o,r++))}))})}function kr(t){return this instanceof kr?(this.v=t,this):new kr(t)}function SE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Qm(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[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=t[o](s)).done,s.value)})}}}const Ad=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Jm(t){return De(t?.then)}function Xm(t){return De(t[kd])}function e_(t){return Symbol.asyncIterator&&De(t?.[Symbol.asyncIterator])}function t_(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const n_=function IE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function i_(t){return De(t?.[n_])}function r_(t){return function DE(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(m){i[m]&&(r[m]=function(_){return new Promise(function(b,C){o.push([m,_,b,C])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof kr?Promise.resolve(m.value.v).then(c,u):d(o[0][2],m)}(i[m](_))}catch(b){d(o[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function d(m,_){m(_),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield kr(e.read());if(r)return yield kr(void 0);yield yield kr(i)}}finally{e.releaseLock()}})}function o_(t){return De(t?.getReader)}function qt(t){if(t instanceof ot)return t;if(null!=t){if(Xm(t))return function xE(t){return new ot(n=>{const e=t[kd]();if(De(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Ad(t))return function ME(t){return new ot(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,jm)})}(t);if(e_(t))return s_(t);if(i_(t))return function OE(t){return new ot(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(o_(t))return function AE(t){return s_(r_(t))}(t)}throw t_(t)}function s_(t){return new ot(n=>{(function RE(t,n){var e,i,r,o;return function wE(t,n,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(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=SE(t);!(i=yield e.next()).done;)if(n.next(i.value),n.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}}n.complete()})})(t,n).catch(e=>n.error(e))})}function ki(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function vt(t,n,e=1/0){return De(n)?vt((i,r)=>Se((o,s)=>n(i,o,r,s))(qt(t(i,r))),e):("number"==typeof n&&(e=n),ut((i,r)=>function PE(t,n,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const m=()=>{d&&!l.length&&!c&&n.complete()},_=C=>c{o&&n.next(C),c++;let T=!1;qt(e(C,u++)).subscribe(nt(n,M=>{r?.(M),o?_(M):n.next(M)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cb(M)):b(M)}m()}catch(M){n.error(M)}}))};return t.subscribe(nt(n,_,()=>{d=!0,m()})),()=>{a?.()}}(i,r,t,e)))}function uo(t=1/0){return vt(nr,t)}const hi=new ot(t=>t.complete());function a_(t){return t&&De(t.schedule)}function Rd(t){return t[t.length-1]}function l_(t){return De(Rd(t))?t.pop():void 0}function Rs(t){return a_(Rd(t))?t.pop():void 0}function c_(t,n=0){return ut((e,i)=>{e.subscribe(nt(i,r=>ki(i,t,()=>i.next(r),n),()=>ki(i,t,()=>i.complete(),n),r=>ki(i,t,()=>i.error(r),n)))})}function u_(t,n=0){return ut((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function d_(t,n){if(!t)throw new Error("Iterable cannot be null");return new ot(e=>{ki(e,n,()=>{const i=t[Symbol.asyncIterator]();ki(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Dt(t,n){return n?function zE(t,n){if(null!=t){if(Xm(t))return function NE(t,n){return qt(t).pipe(u_(n),c_(n))}(t,n);if(Ad(t))return function BE(t,n){return new ot(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(Jm(t))return function VE(t,n){return qt(t).pipe(u_(n),c_(n))}(t,n);if(e_(t))return d_(t,n);if(i_(t))return function HE(t,n){return new ot(e=>{let i;return ki(e,n,()=>{i=t[n_](),ki(e,n,()=>{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)}),()=>De(i?.return)&&i.return()})}(t,n);if(o_(t))return function $E(t,n){return d_(r_(t),n)}(t,n)}throw t_(t)}(t,n):qt(t)}class en extends Oe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function oe(...t){return Dt(t,Rs(t))}function p_(t={}){const{connector:n=(()=>new Oe),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),s=l=void 0,u=d=!1},b=()=>{const C=s;_(),C?.unsubscribe()};return ut((C,T)=>{c++,!d&&!u&&m();const M=l=l??n();T.add(()=>{c--,0===c&&!d&&!u&&(a=Pd(b,r))}),M.subscribe(T),!s&&c>0&&(s=new As({next:I=>M.next(I),error:I=>{d=!0,m(),a=Pd(_,e,I),M.error(I)},complete:()=>{u=!0,m(),a=Pd(_,i),M.complete()}}),qt(C).subscribe(s))})(o)}}function Pd(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new As({next:()=>{i.unsubscribe(),t()}});return qt(n(...e)).subscribe(i)}function Jn(t,n){return ut((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(nt(i,l=>{r?.unsubscribe();let c=0;const u=o++;qt(t(l,u)).subscribe(r=nt(i,d=>i.next(n?n(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function h_(t,n=nr){return t=t??jE,ut((e,i)=>{let r,o=!0;e.subscribe(nt(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function jE(t,n){return t===n}function He(t){for(let n in t)if(t[n]===He)return n;throw Error("Could not find renamed property on target object.")}function Tl(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function St(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(St).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Fd(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const GE=He({__forward_ref__:He});function Ee(t){return t.__forward_ref__=Ee,t.toString=function(){return St(this())},t}function de(t){return Ld(t)?t():t}function Ld(t){return"function"==typeof t&&t.hasOwnProperty(GE)&&t.__forward_ref__===Ee}function Nd(t){return t&&!!t.\u0275providers}const f_="https://g.co/ng/security#xss";class k extends Error{constructor(n,e){super(function Dl(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function he(t){return"string"==typeof t?t:null==t?"":String(t)}function Vd(t,n){throw new k(-201,!1)}function Ln(t,n){null==t&&function ae(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Me(t){return{providers:t.providers||[],imports:t.imports||[]}}function Sl(t){return g_(t,Il)||g_(t,m_)}function g_(t,n){return t.hasOwnProperty(n)?t[n]:null}function El(t){return t&&(t.hasOwnProperty(Bd)||t.hasOwnProperty(XE))?t[Bd]:null}const Il=He({\u0275prov:He}),Bd=He({\u0275inj:He}),m_=He({ngInjectableDef:He}),XE=He({ngInjectorDef:He});var Ce=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ce||{});let Hd;function fn(t){const n=Hd;return Hd=t,n}function y_(t,n,e){const i=Sl(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ce.Optional?null:void 0!==n?n:void Vd(St(t))}const qe=globalThis;class G{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ps={},Gd="__NG_DI_FLAG__",xl="ngTempTokenPath",nI=/\n/gm,b_="__source";let po;function ir(t){const n=po;return po=t,n}function oI(t,n=Ce.Default){if(void 0===po)throw new k(-203,!1);return null===po?y_(t,void 0,n):po.get(t,n&Ce.Optional?null:void 0,n)}function H(t,n=Ce.Default){return(function __(){return Hd}()||oI)(de(t),n)}function j(t,n=Ce.Default){return H(t,Ml(n))}function Ml(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Wd(t){const n=[];for(let e=0;en){s=o-1;break}}}for(;oo?"":r[d+1].toLowerCase();const _=8&i?m:null;if(_&&-1!==D_(_,c,0)||2&i&&c!==m){if(Xn(i))return!1;s=!0}}}}else{if(!s&&!Xn(i)&&!Xn(l))return!1;if(s&&Xn(l))continue;s=!1,i=l|1&i}}return Xn(i)||s}function Xn(t){return 0==(1&t)}function pI(t,n,e,i){if(null===n)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&&!Xn(s)&&(n+=O_(o,r),r=""),i=s,o=o||!Xn(i);e++}return""!==r&&(n+=O_(o,r)),n}function J(t){return Oi(()=>{const n=R_(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===kl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Nn.Emulated,styles:t.styles||Ae,_:null,schemas:t.schemas||null,tView:null,id:""};P_(e);const i=t.dependencies;return e.directiveDefs=Al(i,!1),e.pipeDefs=Al(i,!0),e.id=function SI(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function CI(t){return Ie(t)||At(t)}function wI(t){return null!==t}function Re(t){return Oi(()=>({type:t.type,bootstrap:t.bootstrap||Ae,declarations:t.declarations||Ae,imports:t.imports||Ae,exports:t.exports||Ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function A_(t,n){if(null==t)return fi;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function ne(t){return Oi(()=>{const n=R_(t);return P_(n),n})}function tn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ie(t){return t[Ol]||null}function At(t){return t[qd]||null}function nn(t){return t[Kd]||null}function Sn(t,n){const e=t[w_]||null;if(!e&&!0===n)throw new Error(`Type ${St(t)} does not have '\u0275mod' property.`);return e}function R_(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||fi,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Ae,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:A_(t.inputs,n),outputs:A_(t.outputs)}}function P_(t){t.features?.forEach(n=>n(t))}function Al(t,n){if(!t)return null;const e=n?nn:CI;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(wI)}const dt=0,z=1,_e=2,it=3,ei=4,Vs=5,Kt=6,fo=7,ft=8,rr=9,go=10,fe=11,Bs=12,F_=13,mo=14,gt=15,Hs=16,_o=17,gi=18,$s=19,L_=20,or=21,Ri=22,zs=23,Us=24,we=25,Yd=1,N_=2,mi=7,yo=9,Rt=11;function gn(t){return Array.isArray(t)&&"object"==typeof t[Yd]}function rn(t){return Array.isArray(t)&&!0===t[Yd]}function Qd(t){return 0!=(4&t.flags)}function Ar(t){return t.componentOffset>-1}function Pl(t){return 1==(1&t.flags)}function ti(t){return!!t.template}function Jd(t){return 0!=(512&t[_e])}function Rr(t,n){return t.hasOwnProperty(Ai)?t[Ai]:null}let Pt=null,Fl=!1;function Vn(t){const n=Pt;return Pt=t,n}const H_={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function z_(t){if(!Gs(t)||t.dirty){if(!t.producerMustRecompute(t)&&!G_(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function j_(t){t.dirty=!0,function U_(t){if(void 0===t.liveConsumerNode)return;const n=Fl;Fl=!0;try{for(const e of t.liveConsumerNode)e.dirty||j_(e)}finally{Fl=n}}(t),t.consumerMarkedDirty?.(t)}function ep(t){return t&&(t.nextProducerIndex=0),Vn(t)}function tp(t,n){if(Vn(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(Gs(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function G_(t){vo(t);for(let n=0;n0}function vo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z_=null;const X_=()=>{},VI=(()=>({...H_,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:X_}))();class BI{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ft(){return ey}function ey(t){return t.type.prototype.ngOnChanges&&(t.setInput=$I),HI}function HI(){const t=ny(this),n=t?.current;if(n){const e=t.previous;if(e===fi)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function $I(t,n,e,i){const r=this.declaredInputs[e],o=ny(t)||function zI(t,n){return t[ty]=n}(t,{previous:fi,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new BI(l&&l.currentValue,n,a===fi),t[i]=n}Ft.ngInherit=!0;const ty="__ngSimpleChanges__";function ny(t){return t[ty]||null}const _i=function(t,n,e){};function Ke(t){for(;Array.isArray(t);)t=t[dt];return t}function Nl(t,n){return Ke(n[t])}function mn(t,n){return Ke(n[t.index])}function oy(t,n){return t.data[n]}function bo(t,n){return t[n]}function En(t,n){const e=n[t];return gn(e)?e:e[dt]}function ar(t,n){return null==n?null:t[n]}function sy(t){t[_o]=0}function KI(t){1024&t[_e]||(t[_e]|=1024,ly(t,1))}function ay(t){1024&t[_e]&&(t[_e]&=-1025,ly(t,-1))}function ly(t,n){let e=t[it];if(null===e)return;e[Vs]+=n;let i=e;for(e=e[it];null!==e&&(1===n&&1===i[Vs]||-1===n&&0===i[Vs]);)e[Vs]+=n,i=e,e=e[it]}const le={lFrame:vy(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function dy(){return le.bindingsEnabled}function Co(){return null!==le.skipHydrationRootTNode}function R(){return le.lFrame.lView}function xe(){return le.lFrame.tView}function D(t){return le.lFrame.contextLView=t,t[ft]}function S(t){return le.lFrame.contextLView=null,t}function Lt(){let t=py();for(;null!==t&&64===t.type;)t=t.parent;return t}function py(){return le.lFrame.currentTNode}function yi(t,n){const e=le.lFrame;e.currentTNode=t,e.isParent=n}function sp(){return le.lFrame.isParent}function ap(){le.lFrame.isParent=!1}function on(){const t=le.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function wo(){return le.lFrame.bindingIndex++}function Fi(t){const n=le.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function sx(t,n){const e=le.lFrame;e.bindingIndex=e.bindingRootIndex=t,lp(n)}function lp(t){le.lFrame.currentDirectiveIndex=t}function my(){return le.lFrame.currentQueryIndex}function up(t){le.lFrame.currentQueryIndex=t}function lx(t){const n=t[z];return 2===n.type?n.declTNode:1===n.type?t[Kt]:null}function _y(t,n,e){if(e&Ce.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Ce.Host||(r=lx(o),null===r||(o=o[mo],10&r.type))););if(null===r)return!1;n=r,t=o}const i=le.lFrame=yy();return i.currentTNode=n,i.lView=t,!0}function dp(t){const n=yy(),e=t[z];le.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function yy(){const t=le.lFrame,n=null===t?null:t.child;return null===n?vy(t):n}function vy(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function by(){const t=le.lFrame;return le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Cy=by;function pp(){const t=by();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function sn(){return le.lFrame.selectedIndex}function Pr(t){le.lFrame.selectedIndex=t}function st(){const t=le.lFrame;return oy(t.tView,t.selectedIndex)}function Ze(){le.lFrame.currentNamespace="svg"}let Ty=!0;function Vl(){return Ty}function lr(t){Ty=t}function Bl(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[_o]+=65536),(a>13>16&&(3&t[_e])===n&&(t[_e]+=8192,Sy(a,o)):Sy(a,o)}const To=-1;class qs{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function gp(t){return t!==To}function Ks(t){return 32767&t}function Zs(t,n){let e=function vx(t){return t>>16}(t),i=n;for(;e>0;)i=i[mo],e--;return i}let mp=!0;function zl(t){const n=mp;return mp=t,n}const Ey=255,Iy=5;let bx=0;const vi={};function Ul(t,n){const e=xy(t,n);if(-1!==e)return e;const i=n[z];i.firstCreatePass&&(t.injectorIndex=n.length,_p(i.data,t),_p(n,null),_p(i.blueprint,null));const r=jl(t,n),o=t.injectorIndex;if(gp(r)){const s=Ks(r),a=Zs(r,n),l=a[z].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function _p(t,n){t.push(0,0,0,0,0,0,0,0,n)}function xy(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function jl(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=Fy(r),null===i)return To;if(e++,r=r[mo],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return To}function yp(t,n,e){!function Cx(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ls)&&(i=e[Ls]),null==i&&(i=e[Ls]=bx++);const r=i&Ey;n.data[t+(r>>Iy)]|=1<=0?n&Ey:Ex:n}(e);if("function"==typeof o){if(!_y(n,t,i))return i&Ce.Host?My(r,0,i):ky(n,e,i,r);try{let s;if(s=o(i),null!=s||i&Ce.Optional)return s;Vd()}finally{Cy()}}else if("number"==typeof o){let s=null,a=xy(t,n),l=To,c=i&Ce.Host?n[gt][Kt]:null;for((-1===a||i&Ce.SkipSelf)&&(l=-1===a?jl(t,n):n[a+8],l!==To&&Py(i,!1)?(s=n[z],a=Ks(l),n=Zs(l,n)):a=-1);-1!==a;){const u=n[z];if(Ry(o,a,u.data)){const d=Tx(a,n,e,s,i,c);if(d!==vi)return d}l=n[a+8],l!==To&&Py(i,n[z].data[a+8]===c)&&Ry(o,a,n)?(s=u,a=Ks(l),n=Zs(l,n)):a=-1}}return r}function Tx(t,n,e,i,r,o){const s=n[z],a=s.data[t+8],u=Gl(a,s,e,null==i?Ar(a)&&mp:i!=s&&0!=(3&a.type),r&Ce.Host&&o===a);return null!==u?Fr(n,s,u,a):vi}function Gl(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,m=r?a+u:t.directiveEnd;for(let _=i?a:a+u;_=l&&b.type===e)return _}if(r){const _=s[l];if(_&&ti(_)&&_.type===e)return l}return null}function Fr(t,n,e,i){let r=t[e];const o=n.data;if(function mx(t){return t instanceof qs}(r)){const s=r;s.resolving&&function WE(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new k(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Be(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():he(t)}(o[e]));const a=zl(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?fn(s.injectImpl):null;_y(t,i,Ce.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function fx(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=ey(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],n)}finally{null!==c&&fn(c),zl(a),s.resolving=!1,Cy()}}return r}function Ry(t,n,e){return!!(e[n+(t>>Iy)]&1<{const n=t.prototype.constructor,e=n[Ai]||vp(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Ai]||vp(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function vp(t){return Ld(t)?()=>{const n=vp(de(t));return n&&n()}:Rr(t)}function Fy(t){const n=t[z],e=n.type;return 2===e?n.declTNode:1===e?t[Kt]:null}const So="__parameters__";function Io(t,n,e){return Oi(()=>{const i=function bp(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);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(So)?l[So]:Object.defineProperty(l,So,{value:[]})[So];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=t,r.annotationCls=r,r})}function Mo(t,n){t.forEach(e=>Array.isArray(e)?Mo(e,n):n(e))}function Ny(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ql(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Js(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function Px(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Cp(t,n){const e=ko(t,n);if(e>=0)return t[1|e]}function ko(t,n){return function Vy(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<|^->||--!>|)/g,iM="\u200b$1\u200b";const Ep=new Map;let rM=0;const xp="__ngContext__";function Zt(t,n){gn(n)?(t[xp]=n[$s],function sM(t){Ep.set(t[$s],t)}(n)):t[xp]=n}let Mp;function kp(t,n){return Mp(t,n)}function ta(t){const n=t[it];return rn(n)?n[it]:n}function o1(t){return a1(t[Bs])}function s1(t){return a1(t[ei])}function a1(t){for(;null!==t&&!rn(t);)t=t[ei];return t}function Ro(t,n,e,i,r){if(null!=i){let o,s=!1;rn(i)?o=i:gn(i)&&(s=!0,i=i[dt]);const a=Ke(i);0===t&&null!==e?null==r?d1(n,e,a):Lr(n,e,a,r||null,!0):1===t&&null!==e?Lr(n,e,a,r||null,!0):2===t?function lc(t,n,e){const i=sc(t,n);i&&function SM(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function xM(t,n,e,i,r){const o=e[mi];o!==Ke(e)&&Ro(n,t,i,o,r);for(let a=Rt;an.replace(nM,iM))}(n))}function rc(t,n,e){return t.createElement(n,e)}function c1(t,n){const e=t[yo],i=e.indexOf(n);ay(n),e.splice(i,1)}function oc(t,n){if(t.length<=Rt)return;const e=Rt+n,i=t[e];if(i){const r=i[Hs];null!==r&&r!==t&&c1(r,i),n>0&&(t[e-1][ei]=i[ei]);const o=ql(t,Rt+n);!function _M(t,n){ia(t,n,n[fe],2,null,null),n[dt]=null,n[Kt]=null}(i[z],i);const s=o[gi];null!==s&&s.detachView(o[z]),i[it]=null,i[ei]=null,i[_e]&=-129}return i}function Ap(t,n){if(!(256&n[_e])){const e=n[fe];n[zs]&&W_(n[zs]),n[Us]&&W_(n[Us]),e.destroyNode&&ia(t,n,e,3,null,null),function bM(t){let n=t[Bs];if(!n)return Rp(t[z],t);for(;n;){let e=null;if(gn(n))e=n[Bs];else{const i=n[Rt];i&&(e=i)}if(!e){for(;n&&!n[ei]&&n!==t;)gn(n)&&Rp(n[z],n),n=n[it];null===n&&(n=t),gn(n)&&Rp(n[z],n),e=n&&n[ei]}n=e}}(n)}}function Rp(t,n){if(!(256&n[_e])){n[_e]&=-129,n[_e]|=256,function DM(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[s]():i[-s].unsubscribe(),o+=2}else e[o].call(i[e[o+1]]);null!==i&&(n[fo]=null);const r=n[or];if(null!==r){n[or]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===Nn.None||o===Nn.Emulated)return null}return mn(i,e)}}(t,n.parent,e)}function Lr(t,n,e,i,r){t.insertBefore(n,e,i,r)}function d1(t,n,e){t.appendChild(n,e)}function p1(t,n,e,i,r){null!==i?Lr(t,n,e,i,r):d1(t,n,e)}function sc(t,n){return t.parentNode(n)}function h1(t,n,e){return g1(t,n,e)}let Fp,Bp,uc,g1=function f1(t,n,e){return 40&t.type?mn(t,e):null};function ac(t,n,e,i){const r=Pp(t,i,n),o=n[fe],a=h1(i.parent||n[Kt],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return uc}()?.createScriptURL(t)||t}class S1{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${f_})`}}function ur(t){return t instanceof S1?t.changingThisBreaksApplicationSecurity:t}function ra(t,n){const e=function HM(t){return t instanceof S1&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${f_})`)}return e===n}const jM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Lo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Lo||{});function Hn(t){const n=sa();return n?n.sanitize(Lo.URL,t)||"":ra(t,"URL")?ur(t):function $p(t){return(t=String(t)).match(jM)?t:"unsafe:"+t}(he(t))}function A1(t){const n=sa();if(n)return D1(n.sanitize(Lo.RESOURCE_URL,t)||"");if(ra(t,"ResourceURL"))return D1(ur(t));throw new k(904,!1)}function sa(){const t=R();return t&&t[go].sanitizer}const aa=new G("ENVIRONMENT_INITIALIZER"),P1=new G("INJECTOR",-1),F1=new G("INJECTOR_DEF_TYPES");class Gp{get(n,e=Ps){if(e===Ps){const i=new Error(`NullInjectorError: No provider for ${St(n)}!`);throw i.name="NullInjectorError",i}return e}}function i3(...t){return{\u0275providers:L1(0,t),\u0275fromNgModule:!0}}function L1(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return Mo(n,s=>{const a=s;pc(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&N1(r,o),e}function N1(t,n){for(let e=0;e{n(o,i)})}}function pc(t,n,e,i){if(!(t=de(t)))return!1;let r=null,o=El(t);const s=!o&&Ie(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=El(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)pc(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Mo(o.imports,u=>{pc(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&N1(c,n)}if(!a){const c=Rr(r)||(()=>new r);n({provide:r,useFactory:c,deps:Ae},r),n({provide:F1,useValue:r,multi:!0},r),n({provide:aa,useValue:()=>H(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=t;qp(l,u=>{n(u,c)})}}}return r!==t&&void 0!==t.providers}function qp(t,n){for(let e of t)Nd(e)&&(e=e.\u0275providers),Array.isArray(e)?qp(e,n):n(e)}const r3=He({provide:String,useValue:He});function Kp(t){return null!==t&&"object"==typeof t&&r3 in t}function Nr(t){return"function"==typeof t}const Zp=new G("Set Injector scope."),hc={},s3={};let Yp;function fc(){return void 0===Yp&&(Yp=new Gp),Yp}class xn{}class No extends xn{get destroyed(){return this._destroyed}constructor(n,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,Jp(n,s=>this.processProvider(s)),this.records.set(P1,Vo(void 0,this)),r.has("environment")&&this.records.set(xn,Vo(void 0,this));const o=this.records.get(Zp);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(F1.multi,Ae,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ir(this),i=fn(void 0);try{return n()}finally{ir(e),fn(i)}}get(n,e=Ps,i=Ce.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(T_))return n[T_](this);i=Ml(i);const o=ir(this),s=fn(void 0);try{if(!(i&Ce.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function d3(t){return"function"==typeof t||"object"==typeof t&&t instanceof G}(n)&&Sl(n);l=c&&this.injectableDefInScope(c)?Vo(Qp(n),hc):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&Ce.Self?fc():this.parent).get(n,e=i&Ce.Optional&&e===Ps?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[xl]=a[xl]||[]).unshift(St(n)),o)throw a;return function aI(t,n,e,i){const r=t[xl];throw n[b_]&&r.unshift(n[b_]),t.message=function lI(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=St(n);if(Array.isArray(n))r=n.map(St).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):St(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(nI,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[xl]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{fn(s),ir(o)}}resolveInjectorInitializers(){const n=ir(this),e=fn(void 0);try{const r=this.get(aa.multi,Ae,Ce.Self);for(const o of r)o()}finally{ir(n),fn(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(St(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(n){let e=Nr(n=de(n))?n:de(n&&n.provide);const i=function l3(t){return Kp(t)?Vo(void 0,t.useValue):Vo(H1(t),hc)}(n);if(Nr(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Vo(void 0,hc,!0),r.factory=()=>Wd(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===hc&&(e.value=s3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function u3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=de(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Qp(t){const n=Sl(t),e=null!==n?n.factory:Rr(t);if(null!==e)return e;if(t instanceof G)throw new k(204,!1);if(t instanceof Function)return function a3(t){const n=t.length;if(n>0)throw Js(n,"?"),new k(204,!1);const e=function JE(t){return t&&(t[Il]||t[m_])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new k(204,!1)}function H1(t,n,e){let i;if(Nr(t)){const r=de(t);return Rr(r)||Qp(r)}if(Kp(t))i=()=>de(t.useValue);else if(function B1(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Wd(t.deps||[]));else if(function V1(t){return!(!t||!t.useExisting)}(t))i=()=>H(de(t.useExisting));else{const r=de(t&&(t.useClass||t.provide));if(!function c3(t){return!!t.deps}(t))return Rr(r)||Qp(r);i=()=>new r(...Wd(t.deps))}return i}function Vo(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Jp(t,n){for(const e of t)Array.isArray(e)?Jp(e,n):e&&Nd(e)?Jp(e.\u0275providers,n):n(e)}const gc=new G("AppId",{providedIn:"root",factory:()=>p3}),p3="ng",$1=new G("Platform Initializer"),$n=new G("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),z1=new G("AnimationModuleType"),U1=new G("CSP nonce",{providedIn:"root",factory:()=>function Fo(){if(void 0!==Bp)return Bp;if(typeof document<"u")return document;throw new k(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let j1=(t,n,e)=>null;function sh(t,n,e=!1){return j1(t,n,e)}class w3{}class q1{}class D3{resolveComponentFactory(n){throw function T3(t){const n=Error(`No component factory found for ${St(t)}.`);return n.ngComponent=t,n}(n)}}let Cc=(()=>{class t{static#e=this.NULL=new D3}return t})();function S3(){return $o(Lt(),R())}function $o(t,n){return new Ue(mn(t,n))}let Ue=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=S3}return t})();function E3(t){return t instanceof Ue?t.nativeElement:t}class ua{}let xt=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function I3(){const t=R(),e=En(Lt().index,t);return(gn(e)?e:t)[fe]}()}return t})(),x3=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();class da{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const M3=new da("16.2.11"),ch={};function J1(t,n=null,e=null,i){const r=X1(t,n,e,i);return r.resolveInjectorInitializers(),r}function X1(t,n=null,e=null,i,r=new Set){const o=[e||Ae,i3(t)];return i=i||("object"==typeof t?void 0:St(t)),new No(o,n||fc(),i||null,r)}let yn=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Ps;static#t=this.NULL=new Gp;static create(e,i){if(Array.isArray(e))return J1({name:""},i,e,"");{const r=e.name??"";return J1({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=$({token:t,providedIn:"any",factory:()=>H(P1)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function dh(t){return t.ngOriginalError}class Ni{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&dh(n);for(;e&&dh(e);)e=dh(e);return e||null}}function hh(t){return n=>{setTimeout(t,void 0,n)}}const F=class L3 extends Oe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=hh(o),r&&(r=hh(r)),s&&(s=hh(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof hn&&n.add(a),a}};function tv(...t){}class Te{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new F(!1),this.onMicrotaskEmpty=new F(!1),this.onStable=new F(!1),this.onError=new F(!1),typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function N3(){const t="function"==typeof qe.requestAnimationFrame;let n=qe[t?"requestAnimationFrame":"setTimeout"],e=qe[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function H3(t){const n=()=>{!function B3(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(qe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gh(t),t.isCheckStableRunning=!0,fh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gh(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{if(function z3(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(r,o,s,a);try{return nv(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),iv(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return nv(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),iv(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,gh(t),fh(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new k(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,V3,tv,tv);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const V3={};function fh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function nv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function iv(t){t._nesting--,fh(t)}class $3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new F,this.onMicrotaskEmpty=new F,this.onStable=new F,this.onError=new F}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const rv=new G("",{providedIn:"root",factory:ov});function ov(){const t=j(Te);let n=!0;return function UE(...t){const n=Rs(t),e=function LE(t,n){return"number"==typeof Rd(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?qt(i[0]):uo(e)(Dt(i,n)):hi}(new ot(r=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(n),r.complete()})}),new ot(r=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{Te.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,r.next(!0))})})});const s=t.onUnstable.subscribe(()=>{Te.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(p_()))}function sv(t){return t.ownerDocument}function Vi(t){return t instanceof Function?t():t}let mh=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})();function pa(t){for(;t;){t[_e]|=64;const n=ta(t);if(Jd(t)&&!n)return t;t=n}return null}const dv=new G("",{providedIn:"root",factory:()=>!1});let Tc=null;function gv(t,n){return t[n]??yv()}function mv(t,n){const e=yv();e.producerNode?.length&&(t[n]=Tc,e.lView=t,Tc=_v())}const Q3={...H_,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{pa(t.lView)},lView:null};function _v(){return Object.create(Q3)}function yv(){return Tc??=_v(),Tc}const ge={};function p(t){vv(xe(),R(),sn()+t,!1)}function vv(t,n,e,i){if(!i)if(3==(3&n[_e])){const o=t.preOrderCheckHooks;null!==o&&Hl(n,o,e)}else{const o=t.preOrderHooks;null!==o&&$l(n,o,0,e)}Pr(e)}function w(t,n=Ce.Default){const e=R();return null===e?H(t,n):Oy(Lt(),e,de(t),n)}function Dc(t,n,e,i,r,o,s,a,l,c,u){const d=n.blueprint.slice();return d[dt]=r,d[_e]=140|i,(null!==c||t&&2048&t[_e])&&(d[_e]|=2048),sy(d),d[it]=d[mo]=t,d[ft]=e,d[go]=s||t&&t[go],d[fe]=a||t&&t[fe],d[rr]=l||t&&t[rr]||null,d[Kt]=o,d[$s]=function oM(){return rM++}(),d[Ri]=u,d[L_]=c,d[gt]=2==n.type?t[gt]:d,d}function jo(t,n,e,i,r){let o=t.data[n];if(null===o)o=function _h(t,n,e,i,r){const o=py(),s=sp(),l=t.data[n]=function ok(t,n,e,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Co()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(t,n,e,i,r),function ox(){return le.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const s=function Ws(){const t=le.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return yi(o,!0),o}function ha(t,n,e,i){if(0===e)return-1;const r=n.length;for(let o=0;owe&&vv(t,n,we,!1),_i(a?2:0,r);const c=a?o:null,u=ep(c);try{null!==c&&(c.dirty=!1),e(i,r)}finally{tp(c,u)}}finally{a&&null===n[zs]&&mv(n,zs),Pr(s),_i(a?3:1,r)}}function yh(t,n,e){if(Qd(n)){const i=Vn(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function Dv(t,n,e,i){for(let r in t)if(t.hasOwnProperty(r)){e=null===e?{}:e;const o=t[r];null===i?Sv(e,n,r,o):i.hasOwnProperty(r)&&Sv(e,n,i[r],o)}return e}function Sv(t,n,e,i){t.hasOwnProperty(e)?t[e].push(n,i):t[e]=[n,i]}function Mn(t,n,e,i,r,o,s,a){const l=mn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(Eh(t,e,u,i,r),Ar(n)&&function lk(t,n){const e=En(n,t);16&e[_e]||(e[_e]|=64)}(e,n.index)):3&n.type&&(i=function ak(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function wh(t,n,e,i){if(dy()){const r=null===i?null:{"":-1},o=function fk(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let o=0;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,ha(t,e,r.hostVars,ge),r)}function bi(t,n,e,i,r,o){const s=mn(t,n);!function Dh(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?he(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[fe],s,o,t.value,e,i,r)}function bk(t,n,e,i,r,o){const s=o[n];if(null!==s)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,i,r){const o=typeof Zone>"u"?null:Zone.current,s=function NI(t,n,e){const i=Object.create(VI);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;const r=s=>{i.cleanupFn=s};return i.ref={notify:()=>j_(i),run:()=>{if(i.dirty=!1,i.hasRun&&!G_(i))return;i.hasRun=!0;const s=ep(i);try{i.cleanupFn(),i.cleanupFn=X_,i.fn(r)}finally{tp(i,s)}},cleanup:()=>i.cleanupFn()},i.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,o)},r);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=i?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,i]of this.queue)this.queue.delete(e),i?i.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})();function Ec(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s0){Vv(t,1);const r=e.components;null!==r&&Hv(t,r,1)}}function Hv(t,n,e){for(let i=0;i-1&&(oc(n,i),ql(e,i))}this._attachedToViewContainer=!1}Ap(this._lView[z],this._lView)}onDestroy(n){!function cy(t,n){if(256==(256&t[_e]))throw new k(911,!1);null===t[or]&&(t[or]=[]),t[or].push(n)}(this._lView,n)}markForCheck(){pa(this._cdRefInjectingView||this._lView)}detach(){this._lView[_e]&=-129}reattach(){this._lView[_e]|=128}detectChanges(){Ic(this._lView[z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vM(t,n){ia(t,n,n[fe],2,null,null)}(this._lView[z],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=n}}class Mk extends ga{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Ic(n[z],n,n[ft],!1)}checkNoChanges(){}get context(){return null}}class $v extends Cc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Ie(n);return new ma(e,this.ngModule)}}function zv(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Ok{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Ml(i);const r=this.injector.get(n,ch,i);return r!==ch||e===ch?r:this.parentInjector.get(n,e,i)}}class ma extends q1{get inputs(){const n=this.componentDef,e=n.inputTransforms,i=zv(n.inputs);if(null!==e)for(const r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return zv(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function yI(t){return t.map(_I).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof xn?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new Ok(n,o):n,a=s.get(ua,null);if(null===a)throw new k(407,!1);const d={rendererFactory:a,sanitizer:s.get(x3,null),effectManager:s.get(Fv,null),afterRenderEventManager:s.get(mh,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=i?function ek(t,n,e,i){const o=i.get(dv,!1)||e===Nn.ShadowDom,s=t.selectRootElement(n,o);return function tk(t){Tv(t)}(s),s}(m,i,this.componentDef.encapsulation,s):rc(m,_,function kk(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(_)),M=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let I=null;null!==b&&(I=sh(b,s,!0));const P=Ch(0,null,null,1,0,null,null,null,null,null,null),N=Dc(null,P,null,M,null,null,d,m,s,null,I);let X,be;dp(N);try{const Ve=this.componentDef;let We,tt=null;Ve.findHostDirectiveDefs?(We=[],tt=new Map,Ve.findHostDirectiveDefs(Ve,We,tt),We.push(Ve)):We=[Ve];const Wt=function Rk(t,n){const e=t[z],i=we;return t[i]=n,jo(e,i,2,"#host",null)}(N,b),Dd=function Pk(t,n,e,i,r,o,s){const a=r[z];!function Fk(t,n,e,i){for(const r of t)n.mergedAttrs=Ns(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Ec(n,n.mergedAttrs,!0),null!==e&&C1(i,e,n))}(i,t,n,s);let l=null;null!==n&&(l=sh(n,r[rr]));const c=o.rendererFactory.createRenderer(n,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const d=Dc(r,wv(e),null,u,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&Th(a,t,i.length-1),Sc(r,d),r[t.index]=d}(Wt,b,Ve,We,N,d,m);be=oy(P,we),b&&function Nk(t,n,e,i){if(i)Zd(t,e,["ng-version",M3.full]);else{const{attrs:r,classes:o}=function vI(t){const n=[],e=[];let i=1,r=2;for(;i0&&b1(t,e,o.join(" "))}}(m,Ve,b,i),void 0!==e&&function Vk(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Ns(r.hostAttrs,e=Ns(e,r.hostAttrs))}}(i)}function xc(t){return t===fi?{}:t===Ae?[]:t}function $k(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function zk(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Uk(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function qv(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[2]&&(e[i]=r[2])}t.inputTransforms=e}function Mc(t){return!!xh(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function xh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ci(t,n,e){return t[n]=e}function _a(t,n){return t[n]}function Yt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Vr(t,n,e,i){const r=Yt(t,n,e);return Yt(t,n+1,i)||r}function kc(t,n,e,i,r){const o=Vr(t,n,e,i);return Yt(t,n+2,r)||o}function zn(t,n,e,i,r,o){const s=Vr(t,n,e,i);return Vr(t,n+2,r,o)||s}function L(t,n,e,i){const r=R();return Yt(r,wo(),n)&&(xe(),bi(st(),r,t,n,e,i)),L}function Wo(t,n,e,i){return Yt(t,wo(),e)?n+he(e)+i:ge}function qo(t,n,e,i,r,o){const a=Vr(t,function Pi(){return le.lFrame.bindingIndex}(),e,r);return Fi(2),a?n+he(e)+i+he(r)+o:ge}function g(t,n,e,i,r,o,s,a){const l=R(),c=xe(),u=t+we,d=c.firstCreatePass?function fO(t,n,e,i,r,o,s,a,l){const c=n.consts,u=jo(n,t,4,s||null,ar(c,a));wh(n,e,u,ar(c,l)),Bl(n,u);const d=u.tView=Ch(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];yi(d,!1);const m=a0(c,l,d,t);Vl()&&ac(c,l,m,d),Zt(m,l),Sc(l,l[u]=Mv(m,l,m,d)),Pl(d)&&vh(c,l,d),null!=s&&bh(l,d,a)}let a0=function l0(t,n,e,i){return lr(!0),n[fe].createComment("")};function Xe(t){return bo(function rx(){return le.lFrame.contextLView}(),we+t)}function h(t,n,e){const i=R();return Yt(i,wo(),n)&&Mn(xe(),st(),i,t,n,i[fe],e,!1),h}function Ph(t,n,e,i,r){const s=r?"class":"style";Eh(t,e,n.inputs[s],s,i)}function v(t,n,e,i){const r=R(),o=xe(),s=we+t,a=r[fe],l=o.firstCreatePass?function yO(t,n,e,i,r,o){const s=n.consts,l=jo(n,t,2,i,ar(s,r));return wh(n,e,l,ar(s,o)),null!==l.attrs&&Ec(l,l.attrs,!1),null!==l.mergedAttrs&&Ec(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=c0(o,r,l,a,n,t);r[s]=c;const u=Pl(l);return yi(l,!0),C1(a,c,l),32!=(32&l.flags)&&Vl()&&ac(o,r,c,l),0===function YI(){return le.lFrame.elementDepthCount}()&&Zt(c,r),function QI(){le.lFrame.elementDepthCount++}(),u&&(vh(o,r,l),yh(o,l,r)),null!==i&&bh(r,l),v}function y(){let t=Lt();sp()?ap():(t=t.parent,yi(t,!1));const n=t;(function XI(t){return le.skipHydrationRootTNode===t})(n)&&function ix(){le.skipHydrationRootTNode=null}(),function JI(){le.lFrame.elementDepthCount--}();const e=xe();return e.firstCreatePass&&(Bl(e,t),Qd(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function _x(t){return 0!=(8&t.flags)}(n)&&Ph(e,n,R(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function yx(t){return 0!=(16&t.flags)}(n)&&Ph(e,n,R(),n.stylesWithoutHost,!1),y}function x(t,n,e,i){return v(t,n,e,i),y(),x}let c0=(t,n,e,i,r,o)=>(lr(!0),rc(i,r,function wy(){return le.lFrame.currentNamespace}()));function W(t,n,e){const i=R(),r=xe(),o=t+we,s=r.firstCreatePass?function CO(t,n,e,i,r){const o=n.consts,s=ar(o,i),a=jo(n,t,8,"ng-container",s);return null!==s&&Ec(a,s,!0),wh(n,e,a,ar(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];yi(s,!0);const a=u0(r,i,s,t);return i[o]=a,Vl()&&ac(r,i,a,s),Zt(a,i),Pl(s)&&(vh(r,i,s),yh(r,s,i)),null!=e&&bh(i,s),W}function q(){let t=Lt();const n=xe();return sp()?ap():(t=t.parent,yi(t,!1)),n.firstCreatePass&&(Bl(n,t),Qd(t)&&n.queries.elementEnd(t)),q}function Z(t,n,e){return W(t,n,e),q(),Z}let u0=(t,n,e,i)=>(lr(!0),Op(n[fe],""));function B(){return R()}function Ca(t){return!!t&&"function"==typeof t.then}function d0(t){return!!t&&"function"==typeof t.subscribe}function O(t,n,e,i){const r=R(),o=xe(),s=Lt();return function h0(t,n,e,i,r,o,s){const a=Pl(i),c=t.firstCreatePass&&Av(t),u=n[ft],d=Ov(n);let m=!0;if(3&i.type||s){const C=mn(i,n),T=s?s(C):C,M=d.length,I=s?N=>s(Ke(N[i.index])):i.index;let P=null;if(!s&&a&&(P=function DO(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=o,P.__ngLastListenerFn__=o,m=!1;else{o=g0(i,n,u,o,!1);const N=e.listen(T,r,o);d.push(o,N),c&&c.push(r,I,M,M+1)}}else o=g0(i,n,u,o,!1);const _=i.outputs;let b;if(m&&null!==_&&(b=_[r])){const C=b.length;if(C)for(let T=0;T-1?En(t.index,n):n);let l=f0(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=f0(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&s.preventDefault(),l}}function f(t=1){return function cx(t){return(le.lFrame.contextLView=function ux(t,n){for(;t>0;)n=n[mo],t--;return n}(t,le.lFrame.contextLView))[ft]}(t)}function SO(t,n){let e=null;const i=function hI(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function Lh(t){return 2|t}function Br(t){return(131068&t)>>2}function Nh(t,n){return-131069&t|n<<2}function Vh(t){return 1|t}function D0(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?dr(o):Br(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];OO(t[a],n)&&(l=!0,t[a+1]=i?Vh(u):Lh(u)),a=i?dr(u):Br(u)}l&&(t[e+1]=i?Lh(o):Vh(o))}function OO(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ko(t,n)>=0}const It={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S0(t){return t.substring(It.key,It.keyEnd)}function AO(t){return t.substring(It.value,It.valueEnd)}function E0(t,n){const e=It.textEnd;return e===n?-1:(n=It.keyEnd=function FO(t,n,e){for(;n32;)n++;return n}(t,It.key=n,e),es(t,n,e))}function I0(t,n){const e=It.textEnd;let i=It.key=es(t,n,e);return e===i?-1:(i=It.keyEnd=function LO(t,n,e){let i;for(;n=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=M0(t,i,e),i=It.value=es(t,i,e),i=It.valueEnd=function NO(t,n,e){let i=-1,r=-1,o=-1,s=n,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(t,i,e),M0(t,i,e))}function x0(t){It.key=0,It.keyEnd=0,It.value=0,It.valueEnd=0,It.textEnd=t.length}function es(t,n,e){for(;n=0;e=I0(n,e))R0(t,S0(n),AO(n))}function ee(t){oi(jO,wi,t,!0)}function wi(t,n){for(let e=function RO(t){return x0(t),E0(t,es(t,0,It.textEnd))}(n);e>=0;e=E0(n,e))In(t,S0(n),!0)}function ri(t,n,e,i){const r=R(),o=xe(),s=Fi(2);o.firstUpdatePass&&A0(o,t,s,i),n!==ge&&Yt(r,s,n)&&P0(o,o.data[sn()],r,r[fe],t,r[s+1]=function WO(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=St(ur(t)))),t}(n,e),i,s)}function oi(t,n,e,i){const r=xe(),o=Fi(2);r.firstUpdatePass&&A0(r,null,o,i);const s=R();if(e!==ge&&Yt(s,o,e)){const a=r.data[sn()];if(L0(a,i)&&!O0(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Fd(l,e||"")),Ph(r,a,s,e,i)}else!function GO(t,n,e,i,r,o,s,a){r===ge&&(r=Ae);let l=0,c=0,u=0=t.expandoStartIndex}function A0(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[sn()],s=O0(t,e);L0(o,i)&&null===n&&!s&&(n=!1),n=function BO(t,n,e,i){const r=function cp(t){const n=le.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=wa(e=Bh(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=Bh(r,t,n,e,i),null===o){let l=function HO(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Br(i))return t[dr(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Bh(null,t,n,l[1],i),l=wa(l,n.attrs,i),function $O(t,n,e,i){t[dr(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function zO(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const m=dr(t[a+1]);t[i+1]=Pc(m,a),0!==m&&(t[m+1]=Nh(t[m+1],i)),t[a+1]=function IO(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Pc(a,0),0!==a&&(t[a+1]=Nh(t[a+1],i)),a=i;else t[i+1]=Pc(l,0),0===a?a=i:t[l+1]=Nh(t[l+1],i),l=i;c&&(t[i+1]=Lh(t[i+1])),D0(t,u,i,!0),D0(t,u,i,!1),function kO(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&ko(o,n)>=0&&(e[i+1]=Vh(e[i+1]))}(n,u,t,i,o),s=Pc(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function Bh(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let m=e[r+1];m===ge&&(m=d?Ae:void 0);let _=d?Cp(m,i):u===i?m:void 0;if(c&&!Lc(_)&&(_=Cp(l,i)),Lc(_)&&(a=_,s))return a;const b=t[r+1];r=s?dr(b):Br(b)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Cp(l,i))}return a}function Lc(t){return void 0!==t}function L0(t,n){return 0!=(t.flags&(n?8:16))}function A(t,n=""){const e=R(),i=xe(),r=t+we,o=i.firstCreatePass?jo(i,r,1,n,null):i.data[r],s=N0(i,e,o,n,t);e[r]=s,Vl()&&ac(i,e,s,o),yi(o,!1)}let N0=(t,n,e,i,r)=>(lr(!0),function ic(t,n){return t.createText(n)}(n[fe],i));function Y(t){return pe("",t,""),Y}function pe(t,n,e){const i=R(),r=Wo(i,t,n,e);return r!==ge&&Bi(i,sn(),r),pe}function pr(t,n,e,i,r){const o=R(),s=qo(o,t,n,e,i,r);return s!==ge&&Bi(o,sn(),s),pr}const Hr=void 0;var fA=["en",[["a","p"],["AM","PM"],Hr],[["AM","PM"],Hr,Hr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hr,"{1} 'at' {0}",Hr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function hA(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ts={};function ln(t){const n=function mA(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=ib(n);if(e)return e;const i=n.split("-")[0];if(e=ib(i),e)return e;if("en"===i)return fA;throw new k(701,!1)}function ib(t){return t in ts||(ts[t]=qe.ng&&qe.ng.common&&qe.ng.common.locales&&qe.ng.common.locales[t]),ts[t]}var Ye=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ye||{});const ns="en-US";let rb=ns;function zh(t,n,e,i,r){if(t=de(t),Array.isArray(t))for(let o=0;o>20;if(Nr(t)||!t.multi){const _=new qs(c,r,w),b=jh(l,n,r?u:u+m,d);-1===b?(yp(Ul(a,s),o,l),Uh(o,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(_),s.push(_)):(e[b]=_,s[b]=_)}else{const _=jh(l,n,u+m,d),b=jh(l,n,u,u+m),T=b>=0&&e[b];if(r&&!T||!r&&!(_>=0&&e[_])){yp(Ul(a,s),o,l);const M=function f4(t,n,e,i,r){const o=new qs(t,e,w);return o.multi=[],o.index=n,o.componentProviders=0,Mb(o,r,i&&!e),o}(r?h4:p4,e.length,r,i,c);!r&&T&&(e[b].providerFactory=M),Uh(o,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(M),s.push(M)}else Uh(o,t,_>-1?_:b,Mb(e[r?b:_],c,!r&&i));!r&&i&&T&&e[b].componentProviders++}}}function Uh(t,n,e,i){const r=Nr(n),o=function o3(t){return!!t.useClass}(n);if(r||o){const l=(o?de(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.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 Mb(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function jh(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function d4(t,n,e){const i=xe();if(i.firstCreatePass){const r=ti(t);zh(e,i.data,i.blueprint,r,!0),zh(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class $r{}class kb{}class Wh extends $r{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $v(this);const r=Sn(n);this._bootstrapComponents=Vi(r.bootstrap),this._r3Injector=X1(n,e,[{provide:$r,useValue:this},{provide:Cc,useValue:this.componentFactoryResolver},...i],St(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class qh extends kb{constructor(n){super(),this.moduleType=n}create(n){return new Wh(this.moduleType,n,[])}}class Ob extends $r{constructor(n){super(),this.componentFactoryResolver=new $v(this),this.instance=null;const e=new No([...n.providers,{provide:$r,useValue:this},{provide:Cc,useValue:this.componentFactoryResolver}],n.parent||fc(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Kh(t,n,e=null){return new Ob({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let _4=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=L1(0,e.type),r=i.length>0?Kh([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(H(xn))})}return t})();function ze(t){t.getStandaloneInjector=n=>n.get(_4).getOrCreateStandaloneInjector(t)}function $i(t,n,e){const i=on()+t,r=R();return r[i]===ge?Ci(r,i,e?n.call(e):n()):_a(r,i)}function te(t,n,e,i){return Hb(R(),on(),t,n,e,i)}function at(t,n,e,i,r){return $b(R(),on(),t,n,e,i,r)}function Un(t,n,e,i,r,o){return function zb(t,n,e,i,r,o,s,a){const l=n+e;return kc(t,l,r,o,s)?Ci(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):xa(t,l+3)}(R(),on(),t,n,e,i,r,o)}function is(t,n,e,i,r,o,s){return function Ub(t,n,e,i,r,o,s,a,l){const c=n+e;return zn(t,c,r,o,s,a)?Ci(t,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):xa(t,c+4)}(R(),on(),t,n,e,i,r,o,s)}function $c(t,n,e,i,r,o,s,a){const l=on()+t,c=R(),u=zn(c,l,e,i,r,o);return Yt(c,l+4,s)||u?Ci(c,l+5,a?n.call(a,e,i,r,o,s):n(e,i,r,o,s)):_a(c,l+5)}function zr(t,n,e,i,r,o,s,a,l){const c=on()+t,u=R(),d=zn(u,c,e,i,r,o);return Vr(u,c+4,s,a)||d?Ci(u,c+6,l?n.call(l,e,i,r,o,s,a):n(e,i,r,o,s,a)):_a(u,c+6)}function Bb(t,n,e,i){return function jb(t,n,e,i,r,o){let s=n+e,a=!1;for(let l=0;l=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Rr(i.type)),a=fn(w);try{const l=zl(!1),c=o();return zl(l),function _O(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,R(),r,c),c}finally{fn(a)}}function K(t,n,e){const i=t+we,r=R(),o=bo(r,i);return Ma(r,i)?Hb(r,on(),n,o.transform,e,o):o.transform(e)}function zi(t,n,e,i){const r=t+we,o=R(),s=bo(o,r);return Ma(o,r)?$b(o,on(),n,s.transform,e,i,s):s.transform(e,i)}function Ma(t,n){return t[z].data[n].pure}function O4(){return this._results[Symbol.iterator]()}class Yh{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new F)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Yh.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=O4)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Bn(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Ax(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i0&&(e[r-1][ei]=n),i{class t{static#e=this.__NG_ELEMENT_ID__=L4}return t})();const P4=si,F4=class extends P4{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const r=function A4(t,n,e,i){const r=n.tView,a=Dc(t,r,e,4096&t[_e]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);a[Hs]=t[n.index];const c=t[gi];return null!==c&&(a[gi]=c.createEmbeddedView(r)),Ih(r,a,e),a}(this._declarationLView,this._declarationTContainer,n,{injector:e,hydrationInfo:i});return new ga(r)}};function L4(){return zc(Lt(),R())}function zc(t,n){return 4&t.type?new F4(n,t,$o(t,n)):null}let jn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=z4}return t})();function z4(){return Qb(Lt(),R())}const U4=jn,Zb=class extends U4{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return $o(this._hostTNode,this._hostLView)}get injector(){return new an(this._hostTNode,this._hostLView)}get parentInjector(){const n=jl(this._hostTNode,this._hostLView);if(gp(n)){const e=Zs(n,this._hostLView),i=Ks(n);return new an(e[z].data[i+8],e)}return new an(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Yb(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedViewImpl(e||{},o,null);return this.insertImpl(a,r,false),a}createComponent(n,e,i,r,o){const s=n&&!function Qs(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const C=e||{};a=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}const l=s?n:new ma(Ie(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const T=(s?c:this.parentInjector).get(xn,null);T&&(o=T)}Ie(l.componentType??{});const _=l.create(c,r,null,o);return this.insertImpl(_.hostView,a,false),_}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,i){const r=n._lView;if(function qI(t){return rn(t[it])}(r)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=r[it],u=new Zb(c,c[Kt],c[it]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(e),a=this._lContainer;return R4(a,r,s,!i),n.attachToViewContainerRef(),Ny(Qh(a),s,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Yb(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=oc(this._lContainer,e);i&&(ql(Qh(this._lContainer),e),Ap(i[z],i))}detach(n){const e=this._adjustIndex(n,-1),i=oc(this._lContainer,e);return i&&null!=ql(Qh(this._lContainer),e)?new ga(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function Yb(t){return t[8]}function Qh(t){return t[8]||(t[8]=[])}function Qb(t,n){let e;const i=n[t.index];return rn(i)?e=i:(e=Mv(i,n,null,t),n[t.index]=e,Sc(n,e)),Jb(e,n,t,i),new Zb(e,t,n)}let Jb=function Xb(t,n,e,i){if(t[mi])return;let r;r=8&e.type?Ke(i):function j4(t,n){const e=t[fe],i=e.createComment(""),r=mn(n,t);return Lr(e,sc(e,r),i,function EM(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[mi]=r};class Jh{constructor(n){this.queryList=n,this.matches=null}clone(){return new Jh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Xh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=Rt;d{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=j(uf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(Ca(o))e.push(o);else if(d0(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CC=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const Ti=new G("LocaleId",{providedIn:"root",factory:()=>j(Ti,Ce.Optional|Ce.SkipSelf)||function vR(){return typeof $localize<"u"&&$localize.locale||ns}()});let Gc=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new en(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class wR{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let wC=(()=>{class t{compileModuleSync(e){return new qh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Vi(Sn(e).declarations).reduce((s,a)=>{const l=Ie(a);return l&&s.push(new ma(l)),s},[]);return new wR(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const EC=new G(""),qc=new G("");let mf,ff=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,mf||(function jR(t){mf=t}(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:()=>{Te.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let 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[]}static#e=this.\u0275fac=function(i){return new(i||t)(H(Te),H(gf),H(qc))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),gf=(()=>{class t{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 mf?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),hr=null;const IC=new G("AllowMultipleToken"),_f=new G("PlatformDestroyListeners"),yf=new G("appBootstrapListener");class MC{constructor(n,e){this.name=n,this.token=e}}function OC(t,n,e=[]){const i=`Platform: ${n}`,r=new G(i);return(o=[])=>{let s=vf();if(!s||s.injector.get(IC,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function qR(t){if(hr&&!hr.get(IC,!1))throw new k(400,!1);(function xC(){!function AI(t){Z_=t}(()=>{throw new k(600,!1)})})(),hr=t;const n=t.get(RC);(function kC(t){t.get($1,null)?.forEach(e=>e())})(t)}(function AC(t=[],n){return yn.create({name:n,providers:[{provide:Zp,useValue:"platform"},{provide:_f,useValue:new Set([()=>hr=null])},...t]})}(a,i))}return function ZR(t){const n=vf();if(!n)throw new k(401,!1);return n}()}}function vf(){return hr?.get(RC)??null}let RC=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function YR(t="zone.js",n){return"noop"===t?new $3:"zone.js"===t?new Te(n):t}(i?.ngZone,function PC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function m4(t,n,e){return new Wh(t,n,e)}(e.moduleType,this.injector,function BC(t){return[{provide:Te,useFactory:t},{provide:aa,multi:!0,useFactory:()=>{const n=j(JR,{optional:!0});return()=>n.initialize()}},{provide:VC,useFactory:QR},{provide:rv,useFactory:ov}]}(()=>r)),s=o.injector.get(Ni,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{Kc(this._modules,o),a.unsubscribe()})}),function FC(t,n,e){try{const i=e();return Ca(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(s,r,()=>{const a=o.injector.get(df);return a.runInitializers(),a.donePromise.then(()=>(function ob(t){Ln(t,"Expected localeId to be defined"),"string"==typeof t&&(rb=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Ti,ns)||ns),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,i=[]){const r=LC({},i);return function GR(t,n,e){const i=new qh(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ur);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new k(-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 k(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(_f,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(H(yn))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function LC(t,n){return Array.isArray(n)?n.reduce(LC,t):{...t,...n}}let Ur=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=j(VC),this.zoneIsStable=j(rv),this.componentTypes=[],this.components=[],this.isStable=j(Gc).hasPendingTasks.pipe(Jn(e=>e?oe(!1):this.zoneIsStable),h_(),p_()),this._injector=j(xn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof q1;if(!this._injector.get(df).done)throw!r&&function ho(t){const n=Ie(t)||At(t)||nn(t);return null!==n&&n.standalone}(e),new k(405,!1);let s;s=r?e:this._injector.get(Cc).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function WR(t){return t.isBoundToModule}(s)?void 0:this._injector.get($r),c=s.create(yn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(EC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Kc(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new k(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Kc(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(yf,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Kc(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new k(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kc(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const VC=new G("",{providedIn:"root",factory:()=>j(Ni).handleError.bind(void 0)});function QR(){const t=j(Te),n=j(Ni);return e=>t.runOutsideAngular(()=>n.handleError(e))}let JR=(()=>{class t{constructor(){this.zone=j(Te),this.applicationRef=j(Ur)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let bt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=eP}return t})();function eP(t){return function tP(t,n,e){if(Ar(t)&&!e){const i=En(t.index,n);return new ga(i,i)}return 47&t.type?new ga(n[gt],n):null}(Lt(),R(),16==(16&t))}class UC{constructor(){}supports(n){return Mc(n)}create(n){return new aP(n)}}const sP=(t,n)=>n;class aP{constructor(n){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=n||sP}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){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=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new lP(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new jC),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jC),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class lP{constructor(n,e){this.item=n,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 cP{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class jC{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new cP,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function GC(t,n,e){const i=t.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(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);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 dP(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class dP{constructor(n){this.key=n,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 qC(){return new Qc([new UC])}let Qc=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:qC});constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||qC()),deps:[[t,new Yl,new Zl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new k(901,!1)}}return t})();function KC(){return new Aa([new WC])}let Aa=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:KC});constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||KC()),deps:[[t,new Yl,new Zl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new k(901,!1)}}return t})();const fP=OC(null,"core",[]);let gP=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(H(Ur))};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})();function ss(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let Sf=null;function fr(){return Sf}class MP{}const rt=new G("DocumentToken");let Ef=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(OP)},providedIn:"platform"})}return t})();const kP=new G("Location Initialized");let OP=(()=>{class t extends Ef{constructor(){super(),this._doc=j(rt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fr().getBaseHref(this._doc)}onPopState(e){const i=fr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=fr().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){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function If(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function iw(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ui(t){return t&&"?"!==t[0]?"?"+t:t}let Gr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(ow)},providedIn:"root"})}return t})();const rw=new G("appBaseHref");let ow=(()=>{class t extends Gr{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??j(rt).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 If(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ui(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ui(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ui(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)}static#e=this.\u0275fac=function(i){return new(i||t)(H(Ef),H(rw,8))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AP=(()=>{class t extends Gr{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=If(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Ui(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Ui(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)}static#e=this.\u0275fac=function(i){return new(i||t)(H(Ef),H(rw,8))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Xc=(()=>{class t{constructor(e){this._subject=new F,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function FP(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(iw(sw(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+Ui(i))}normalize(e){return t.stripTrailingSlash(function PP(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,sw(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+Ui(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ui(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})}static#e=this.normalizeQueryParams=Ui;static#t=this.joinWithSlash=If;static#n=this.stripTrailingSlash=iw;static#i=this.\u0275fac=function(i){return new(i||t)(H(Gr))};static#r=this.\u0275prov=$({token:t,factory:function(){return function RP(){return new Xc(H(Gr))}()},providedIn:"root"})}return t})();function sw(t){return t.replace(/\/index.html$/,"")}var un=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(un||{}),je=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(je||{}),kn=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(kn||{}),mt=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(mt||{});function tu(t,n){return Wn(ln(t)[Ye.DateFormat],n)}function nu(t,n){return Wn(ln(t)[Ye.TimeFormat],n)}function iu(t,n){return Wn(ln(t)[Ye.DateTimeFormat],n)}function Gn(t,n){const e=ln(t),i=e[Ye.NumberSymbols][n];if(typeof i>"u"){if(n===mt.CurrencyDecimal)return e[Ye.NumberSymbols][mt.Decimal];if(n===mt.CurrencyGroup)return e[Ye.NumberSymbols][mt.Group]}return i}function lw(t){if(!t[Ye.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ye.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Wn(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function Mf(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const ZP=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ra={},YP=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ji=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ji||{}),Le=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Le||{}),Ne=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Ne||{});function QP(t,n,e,i){let r=function sF(t){if(dw(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return ru(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(ZP))return function aF(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!dw(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Gi(e,n)||n;let a,s=[];for(;n;){if(a=YP.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=uw(i,l),r=function oF(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function rF(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(uw(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function iF(t){if(Of[t])return Of[t];let n;switch(t){case"G":case"GG":case"GGG":n=Qe(Ne.Eras,je.Abbreviated);break;case"GGGG":n=Qe(Ne.Eras,je.Wide);break;case"GGGGG":n=Qe(Ne.Eras,je.Narrow);break;case"y":n=Ct(Le.FullYear,1,0,!1,!0);break;case"yy":n=Ct(Le.FullYear,2,0,!0,!0);break;case"yyy":n=Ct(Le.FullYear,3,0,!1,!0);break;case"yyyy":n=Ct(Le.FullYear,4,0,!1,!0);break;case"Y":n=lu(1);break;case"YY":n=lu(2,!0);break;case"YYY":n=lu(3);break;case"YYYY":n=lu(4);break;case"M":case"L":n=Ct(Le.Month,1,1);break;case"MM":case"LL":n=Ct(Le.Month,2,1);break;case"MMM":n=Qe(Ne.Months,je.Abbreviated);break;case"MMMM":n=Qe(Ne.Months,je.Wide);break;case"MMMMM":n=Qe(Ne.Months,je.Narrow);break;case"LLL":n=Qe(Ne.Months,je.Abbreviated,un.Standalone);break;case"LLLL":n=Qe(Ne.Months,je.Wide,un.Standalone);break;case"LLLLL":n=Qe(Ne.Months,je.Narrow,un.Standalone);break;case"w":n=kf(1);break;case"ww":n=kf(2);break;case"W":n=kf(1,!0);break;case"d":n=Ct(Le.Date,1);break;case"dd":n=Ct(Le.Date,2);break;case"c":case"cc":n=Ct(Le.Day,1);break;case"ccc":n=Qe(Ne.Days,je.Abbreviated,un.Standalone);break;case"cccc":n=Qe(Ne.Days,je.Wide,un.Standalone);break;case"ccccc":n=Qe(Ne.Days,je.Narrow,un.Standalone);break;case"cccccc":n=Qe(Ne.Days,je.Short,un.Standalone);break;case"E":case"EE":case"EEE":n=Qe(Ne.Days,je.Abbreviated);break;case"EEEE":n=Qe(Ne.Days,je.Wide);break;case"EEEEE":n=Qe(Ne.Days,je.Narrow);break;case"EEEEEE":n=Qe(Ne.Days,je.Short);break;case"a":case"aa":case"aaa":n=Qe(Ne.DayPeriods,je.Abbreviated);break;case"aaaa":n=Qe(Ne.DayPeriods,je.Wide);break;case"aaaaa":n=Qe(Ne.DayPeriods,je.Narrow);break;case"b":case"bb":case"bbb":n=Qe(Ne.DayPeriods,je.Abbreviated,un.Standalone,!0);break;case"bbbb":n=Qe(Ne.DayPeriods,je.Wide,un.Standalone,!0);break;case"bbbbb":n=Qe(Ne.DayPeriods,je.Narrow,un.Standalone,!0);break;case"B":case"BB":case"BBB":n=Qe(Ne.DayPeriods,je.Abbreviated,un.Format,!0);break;case"BBBB":n=Qe(Ne.DayPeriods,je.Wide,un.Format,!0);break;case"BBBBB":n=Qe(Ne.DayPeriods,je.Narrow,un.Format,!0);break;case"h":n=Ct(Le.Hours,1,-12);break;case"hh":n=Ct(Le.Hours,2,-12);break;case"H":n=Ct(Le.Hours,1);break;case"HH":n=Ct(Le.Hours,2);break;case"m":n=Ct(Le.Minutes,1);break;case"mm":n=Ct(Le.Minutes,2);break;case"s":n=Ct(Le.Seconds,1);break;case"ss":n=Ct(Le.Seconds,2);break;case"S":n=Ct(Le.FractionalSeconds,1);break;case"SS":n=Ct(Le.FractionalSeconds,2);break;case"SSS":n=Ct(Le.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=su(ji.Short);break;case"ZZZZZ":n=su(ji.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=su(ji.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=su(ji.Long);break;default:return null}return Of[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ru(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Gi(t,n){const e=function NP(t){return ln(t)[Ye.LocaleId]}(t);if(Ra[e]=Ra[e]||{},Ra[e][n])return Ra[e][n];let i="";switch(n){case"shortDate":i=tu(t,kn.Short);break;case"mediumDate":i=tu(t,kn.Medium);break;case"longDate":i=tu(t,kn.Long);break;case"fullDate":i=tu(t,kn.Full);break;case"shortTime":i=nu(t,kn.Short);break;case"mediumTime":i=nu(t,kn.Medium);break;case"longTime":i=nu(t,kn.Long);break;case"fullTime":i=nu(t,kn.Full);break;case"short":const r=Gi(t,"shortTime"),o=Gi(t,"shortDate");i=ou(iu(t,kn.Short),[r,o]);break;case"medium":const s=Gi(t,"mediumTime"),a=Gi(t,"mediumDate");i=ou(iu(t,kn.Medium),[s,a]);break;case"long":const l=Gi(t,"longTime"),c=Gi(t,"longDate");i=ou(iu(t,kn.Long),[l,c]);break;case"full":const u=Gi(t,"fullTime"),d=Gi(t,"fullDate");i=ou(iu(t,kn.Full),[u,d])}return i&&(Ra[e][n]=i),i}function ou(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function li(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Le.Hours)0===a&&-12===e&&(a=12);else if(t===Le.FractionalSeconds)return function JP(t,n){return li(t,3).substring(0,n)}(a,n);const l=Gn(s,mt.MinusSign);return li(a,n,l,i,r)}}function Qe(t,n,e=un.Format,i=!1){return function(r,o){return function eF(t,n,e,i,r,o){switch(e){case Ne.Months:return function HP(t,n,e){const i=ln(t),o=Wn([i[Ye.MonthsFormat],i[Ye.MonthsStandalone]],n);return Wn(o,e)}(n,r,i)[t.getMonth()];case Ne.Days:return function BP(t,n,e){const i=ln(t),o=Wn([i[Ye.DaysFormat],i[Ye.DaysStandalone]],n);return Wn(o,e)}(n,r,i)[t.getDay()];case Ne.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function jP(t){const n=ln(t);return lw(n),(n[Ye.ExtraData][2]||[]).map(i=>"string"==typeof i?Mf(i):[Mf(i[0]),Mf(i[1])])}(n),u=function GP(t,n,e){const i=ln(t);lw(i);const o=Wn([i[Ye.ExtraData][0],i[Ye.ExtraData][1]],n)||[];return Wn(o,e)||[]}(n,r,i),d=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,C=s>=_.hours&&a>=_.minutes,T=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case ji.Short:return(r>=0?"+":"")+li(s,2,o)+li(Math.abs(r%60),2,o);case ji.ShortGMT:return"GMT"+(r>=0?"+":"")+li(s,1,o);case ji.Long:return"GMT"+(r>=0?"+":"")+li(s,2,o)+":"+li(Math.abs(r%60),2,o);case ji.Extended:return 0===i?"Z":(r>=0?"+":"")+li(s,2,o)+":"+li(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const tF=0,au=4;function cw(t){return ru(t.getFullYear(),t.getMonth(),t.getDate()+(au-t.getDay()))}function kf(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=cw(e),s=function nF(t){const n=ru(t,tF,1).getDay();return ru(t,0,1+(n<=au?au:au+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return li(r,t,Gn(i,mt.MinusSign))}}function lu(t,n=!1){return function(e,i){return li(cw(e).getFullYear(),t,Gn(i,mt.MinusSign),n)}}const Of={};function uw(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function dw(t){return t instanceof Date&&!isNaN(t.valueOf())}function gw(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const Nf=/\s+/,mw=[];let pt=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=mw,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Nf):mw}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Nf):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Nf).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||t)(w(Qc),w(Aa),w(Ue),w(xt))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class CF{constructor(n,e,i,r){this.$implicit=n,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 Wi=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 CF(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),yw(a,r)}});for(let r=0,o=i.length;r{yw(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(w(jn),w(si),w(Qc))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function yw(t,n){t.context.$implicit=n.item}let Je=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new wF,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){vw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){vw("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}static#e=this.\u0275fac=function(i){return new(i||t)(w(jn),w(si))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class wF{constructor(){this.$implicit=null,this.ngIf=null}}function vw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${St(n)}'.`)}let Bt=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:cr.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ue),w(Aa),w(xt))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(i){return new(i||t)(w(jn))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ft]})}return t})();function ci(t,n){return new k(2100,!1)}let ls=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw ci();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=tn({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})();const FF=new G("DATE_PIPE_DEFAULT_TIMEZONE"),LF=new G("DATE_PIPE_DEFAULT_OPTIONS");let cs=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(null==e||""===e||e!=e)return null;try{return QP(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw ci()}}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ti,16),w(FF,24),w(LF,24))};static#t=this.\u0275pipe=tn({name:"date",type:t,pure:!0,standalone:!0})}return t})(),_t=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})();const ww="browser";function Wr(t){return t===ww}function Tw(t){return"server"===t}let ZF=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>new YF(H(rt),window)})}return t})();class YF{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function QF(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const e=n.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])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Dw{}class bL extends MP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jf extends bL{static makeCurrent(){!function xP(t){Sf||(Sf=t)}(new jf)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function CL(){return La=La||document.querySelector("base"),La?La.getAttribute("href"):null}();return null==e?null:function wL(t){pu=pu||document.createElement("a"),pu.setAttribute("href",t);const n=pu.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){La=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gw(document.cookie,n)}}let pu,La=null,DL=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const Gf=new G("EventManagerPlugins");let Mw=(()=>{class t{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)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new k(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(H(Gf),H(Te))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class kw{constructor(n){this._doc=n}}const Wf="ng-app-id";let Ow=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Tw(o),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Wf}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){const r=this.styleRef;if(r.has(e)){const o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(Wf),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(Wf,this.appId),s}}addStyleToHost(e,i){const r=this.getStyleElement(e,i);e.appendChild(r);const o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt),H(gc),H(U1,8),H($n))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const qf={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/"},Kf=/%COMP%/g,xL=new G("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Rw(t,n){return n.map(e=>e.replace(Kf,t))}let Zf=(()=>{class t{constructor(e,i,r,o,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Tw(a),this.defaultRenderer=new Yf(e,s,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Nn.ShadowDom&&(i={...i,encapsulation:Nn.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof Fw?r.applyToHost(e):r instanceof Qf&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Nn.Emulated:o=new Fw(l,c,i,this.appId,u,s,a,d);break;case Nn.ShadowDom:return new AL(l,c,e,i,s,a,this.nonce,d);default:o=new Qf(l,c,i,u,s,a,d)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(H(Mw),H(Ow),H(gc),H(xL),H(rt),H($n),H(Te),H(U1))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class Yf{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(qf[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Pw(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(Pw(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new k(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=qf[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=qf[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(cr.DashCase|cr.Important)?n.style.setProperty(e,i,r&cr.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&cr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=fr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function Pw(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class AL extends Yf{constructor(n,e,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=Rw(r.id,r.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Qf extends Yf{constructor(n,e,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?Rw(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Fw extends Qf{constructor(n,e,i,r,o,s,a,l){const c=r+"-"+i.id;super(n,e,i,o,s,a,l,c),this.contentAttr=function ML(t){return"_ngcontent-%COMP%".replace(Kf,t)}(c),this.hostAttr=function kL(t){return"_nghost-%COMP%".replace(Kf,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let RL=(()=>{class t extends kw{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)}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const Lw=["alt","control","meta","shift"],PL={"\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"},FL={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let LL=(()=>{class t extends kw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fr().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=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),Lw.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=PL[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"),Lw.forEach(s=>{s!==r&&(0,FL[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const HL=OC(fP,"browser",[{provide:$n,useValue:ww},{provide:$1,useValue:function NL(){jf.makeCurrent()},multi:!0},{provide:rt,useFactory:function BL(){return function PM(t){Bp=t}(document),document},deps:[]}]),$L=new G(""),Bw=[{provide:qc,useClass:class TL{addToWindow(n){qe.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new k(5103,!1);return o},qe.getAllAngularTestabilities=()=>n.getAllTestabilities(),qe.getAllAngularRootElements=()=>n.getAllRootElements(),qe.frameworkStabilizers||(qe.frameworkStabilizers=[]),qe.frameworkStabilizers.push(i=>{const r=qe.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?fr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:EC,useClass:ff,deps:[Te,gf,qc]},{provide:ff,useClass:ff,deps:[Te,gf,qc]}],Hw=[{provide:Zp,useValue:"root"},{provide:Ni,useFactory:function VL(){return new Ni},deps:[]},{provide:Gf,useClass:RL,multi:!0,deps:[rt,Te,$n]},{provide:Gf,useClass:LL,multi:!0,deps:[rt]},Zf,Ow,Mw,{provide:ua,useExisting:Zf},{provide:Dw,useClass:DL,deps:[]},[]];let $w=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:gc,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(H($L,12))};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({providers:[...Hw,...Bw],imports:[_t,gP]})}return t})(),zw=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt))};static#t=this.\u0275prov=$({token:t,factory:function(i){let r=null;return r=i?new i:function UL(){return new zw(H(rt))}(),r},providedIn:"root"})}return t})();function us(t,n){return De(n)?vt(t,n,1):vt(t,1)}function wt(t,n){return ut((e,i)=>{let r=0;e.subscribe(nt(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Na(t){return ut((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}typeof window<"u"&&window;class hu{}class fu{}class Di{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.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])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Di?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Di;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Di?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.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)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class KL{encodeKey(n){return Ww(n)}encodeValue(n){return Ww(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const YL=/%(\d[a-f0-9])/gi,QL={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ww(t){return encodeURIComponent(t).replace(YL,(n,e)=>QL[e]??n)}function gu(t){return`${t}`}class mr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new KL,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ZL(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(gu):[gu(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[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(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new mr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(gu(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(gu(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class JL{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function qw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Kw(t){return typeof Blob<"u"&&t instanceof Blob}function Zw(t){return typeof FormData<"u"&&t instanceof FormData}class Va{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function XL(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==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 Di),this.context||(this.context=new JL),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(m,n.setHeaders[m]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,m)=>d.set(m,n.setParams[m]),c)),new Va(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ds=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ds||{});class Xf{constructor(n,e=200,i="OK"){this.headers=n.headers||new Di,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class eg extends Xf{constructor(n={}){super(n),this.type=ds.ResponseHeader}clone(n={}){return new eg({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ps extends Xf{constructor(n={}){super(n),this.type=ds.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ps({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Yw extends Xf{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function tg(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let mu=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Va)o=e;else{let l,c;l=r.headers instanceof Di?r.headers:new Di(r.headers),r.params&&(c=r.params instanceof mr?r.params:new mr({fromObject:r.params})),o=new Va(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=oe(o).pipe(us(l=>this.handler.handle(l)));if(e instanceof Va||"events"===r.observe)return s;const a=s.pipe(wt(l=>l instanceof ps));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Se(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(Se(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(Se(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Se(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 mr).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,tg(r,i))}post(e,i,r={}){return this.request("POST",e,tg(r,i))}put(e,i,r={}){return this.request("PUT",e,tg(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(H(hu))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function Xw(t,n){return n(t)}function nN(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const eT=new G(""),Ba=new G(""),tT=new G("");function rN(){let t=null;return(n,e)=>{null===t&&(t=(j(eT,{optional:!0})??[]).reduceRight(nN,Xw));const i=j(Gc),r=i.add();return t(n,e).pipe(Na(()=>i.remove(r)))}}let nT=(()=>{class t extends hu{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=j(Gc)}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Ba),...this.injector.get(tT,[])]));this.chain=r.reduceRight((o,s)=>function iN(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(o,s,this.injector),Xw)}const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Na(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(H(fu),H(xn))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const lN=/^\)\]\}',?\n/;let rT=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new k(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Dt(i.\u0275loadImpl()):oe(null)).pipe(Jn(()=>new ot(o=>{const s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,T)=>s.setRequestHeader(C,T.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const C=e.detectContentTypeHeader();null!==C&&s.setRequestHeader("Content-Type",C)}if(e.responseType){const C=e.responseType.toLowerCase();s.responseType="json"!==C?C:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const C=s.statusText||"OK",T=new Di(s.getAllResponseHeaders()),M=function cN(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return l=new eg({headers:T,status:s.status,statusText:C,url:M}),l},u=()=>{let{headers:C,status:T,statusText:M,url:I}=c(),P=null;204!==T&&(P=typeof s.response>"u"?s.responseText:s.response),0===T&&(T=P?200:0);let N=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof P){const X=P;P=P.replace(lN,"");try{P=""!==P?JSON.parse(P):null}catch(be){P=X,N&&(N=!1,P={error:be,text:P})}}N?(o.next(new ps({body:P,headers:C,status:T,statusText:M,url:I||void 0})),o.complete()):o.error(new Yw({error:P,headers:C,status:T,statusText:M,url:I||void 0}))},d=C=>{const{url:T}=c(),M=new Yw({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(M)};let m=!1;const _=C=>{m||(o.next(c()),m=!0);let T={type:ds.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(T.total=C.total),"text"===e.responseType&&s.responseText&&(T.partialText=s.responseText),o.next(T)},b=C=>{let T={type:ds.UploadProgress,loaded:C.loaded};C.lengthComputable&&(T.total=C.total),o.next(T)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",_),null!==a&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:ds.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),e.reportProgress&&(s.removeEventListener("progress",_),null!==a&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(H(Dw))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const ng=new G("XSRF_ENABLED"),oT=new G("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),sT=new G("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class aT{}let pN=(()=>{class t{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=gw(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt),H($n),H(oT))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function hN(t,n){const e=t.url.toLowerCase();if(!j(ng)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=j(aT).getToken(),r=j(sT);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var _r=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(_r||{});function fN(...t){const n=[mu,rT,nT,{provide:hu,useExisting:nT},{provide:fu,useExisting:rT},{provide:Ba,useValue:hN,multi:!0},{provide:ng,useValue:!0},{provide:aT,useClass:pN}];for(const e of t)n.push(...e.\u0275providers);return function Wp(t){return{\u0275providers:t}}(n)}const lT=new G("LEGACY_INTERCEPTOR_FN");function gN(){return function qr(t,n){return{\u0275kind:t,\u0275providers:n}}(_r.LegacyInterceptors,[{provide:lT,useFactory:rN},{provide:Ba,useExisting:lT,multi:!0}])}let mN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({providers:[fN(gN())]})}return t})();const yt=void 0,TN=["sv",[["fm","em"],yt,yt],[["fm","em"],["f.m.","e.m."],["f\xf6rmiddag","eftermiddag"]],[["S","M","T","O","T","F","L"],["s\xf6n","m\xe5n","tis","ons","tors","fre","l\xf6r"],["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"],["s\xf6","m\xe5","ti","on","to","fr","l\xf6"]],yt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]],yt,[["f.Kr.","e.Kr."],yt,["f\xf6re Kristus","efter Kristus"]],1,[6,0],["y-MM-dd","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",yt,yt,yt],[",","\xa0",";","%","+","\u2212","\xd710^","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"SEK","kr","svensk krona",{AUD:[yt,"$"],BBD:["Bds$","$"],BMD:["BM$","$"],BRL:["BR$","R$"],BSD:["BS$","$"],BYN:[yt,"\u0440."],BZD:["BZ$","$"],CNY:[yt,"\xa5"],DKK:["Dkr","kr"],DOP:["RD$","$"],EEK:["Ekr"],EGP:["EG\xa3","E\xa3"],ESP:[],GBP:[yt,"\xa3"],HKD:[yt,"$"],IEP:["IE\xa3"],INR:[yt,"\u20b9"],ISK:["Ikr","kr"],JMD:["JM$","$"],JPY:[yt,"\xa5"],KRW:[yt,"\u20a9"],NOK:["Nkr","kr"],NZD:[yt,"$"],PHP:[yt,"\u20b1"],RON:[yt,"L"],SEK:["kr"],TWD:[yt,"NT$"],USD:["US$","$"],VND:[yt,"\u20ab"]},"ltr",function wN(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],{isArray:DN}=Array,{getPrototypeOf:SN,prototype:EN,keys:IN}=Object;function cT(t){if(1===t.length){const n=t[0];if(DN(n))return{args:n,keys:null};if(function xN(t){return t&&"object"==typeof t&&SN(t)===EN}(n)){const e=IN(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:MN}=Array;function ig(t){return Se(n=>function kN(t,n){return MN(n)?t(...n):t(n)}(t,n))}function uT(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}let dT=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(xt),w(Ue))};static#t=this.\u0275dir=ne({type:t})}return t})(),Kr=(()=>{class t extends dT{static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static#t=this.\u0275dir=ne({type:t,features:[ie]})}return t})();const $t=new G("NgValueAccessor"),RN={provide:$t,useExisting:Ee(()=>yu),multi:!0},FN=new G("CompositionEventMode");let yu=(()=>{class t extends dT{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function PN(){const t=fr()?fr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(xt),w(Ue),w(FN,8))};static#t=this.\u0275dir=ne({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&O("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Pe([RN]),ie]})}return t})();const Qt=new G("NgValidators"),vr=new G("NgAsyncValidators");function wT(t){return null!=t}function TT(t){return Ca(t)?Dt(t):t}function DT(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function ST(t,n){return n.map(e=>e(t))}function ET(t){return t.map(n=>function NN(t){return!t.validate}(n)?n:e=>n.validate(e))}function rg(t){return null!=t?function IT(t){if(!t)return null;const n=t.filter(wT);return 0==n.length?null:function(e){return DT(ST(e,n))}}(ET(t)):null}function og(t){return null!=t?function xT(t){if(!t)return null;const n=t.filter(wT);return 0==n.length?null:function(e){return function ON(...t){const n=l_(t),{args:e,keys:i}=cT(t),r=new ot(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]=m},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?uT(i,a):a),o.complete())}))}});return n?r.pipe(ig(n)):r}(ST(e,n).map(TT)).pipe(Se(DT))}}(ET(t)):null}function MT(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function sg(t){return t?Array.isArray(t)?t:[t]:[]}function bu(t,n){return Array.isArray(t)?t.includes(n):t===n}function AT(t,n){const e=sg(n);return sg(t).forEach(r=>{bu(e,r)||e.push(r)}),e}function RT(t,n){return sg(n).filter(e=>!bu(t,e))}class PT{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(n){this._rawValidators=n||[],this._composedValidatorFn=rg(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=og(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class dn extends PT{get formDirective(){return null}get path(){return null}}class qi extends PT{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class FT{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cu=(()=>{class t extends FT{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(qi,2))};static#t=this.\u0275dir=ne({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&ii("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ie]})}return t})();const Ha="VALID",Tu="INVALID",hs="PENDING",$a="DISABLED";function Du(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class BT{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ha}get invalid(){return this.status===Tu}get pending(){return this.status==hs}get disabled(){return this.status===$a}get enabled(){return this.status!==$a}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(AT(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(AT(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(RT(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(RT(n,this._rawAsyncValidators))}hasValidator(n){return bu(this._rawValidators,n)}hasAsyncValidator(n){return bu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=hs,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=$a,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ha,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ha||this.status===hs)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$a:Ha}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=hs,this._hasOwnPendingAsyncValidator=!0;const e=TT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?$a:this.errors?Tu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(hs)?hs:this._anyControlsHaveStatus(Tu)?Tu:Ha}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Du(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function zN(t){return Array.isArray(t)?rg(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function UN(t){return Array.isArray(t)?og(t):t||null}(this._rawAsyncValidators)}}const fs=new G("CallSetDisabledState",{providedIn:"root",factory:()=>Su}),Su="always";function za(t,n,e=Su){(function pg(t,n){const e=function kT(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(MT(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function OT(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(MT(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();xu(n._rawValidators,r),xu(n._rawAsyncValidators,r)})(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function WN(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&HT(t,n)})}(t,n),function KN(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function qN(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&HT(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function GN(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function xu(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function HT(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function UT(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function jT(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const GT=class extends BT{constructor(n=null,e,i){super(function cg(t){return(Du(t)?t.validators:t)||null}(e),function ug(t,n){return(Du(n)?n.asyncValidators:t)||null}(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Du(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=jT(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){UT(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){UT(this._onDisabledChange,n)}_forEachChild(n){}_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(n){jT(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},n9={provide:qi,useExisting:Ee(()=>gs)},KT=(()=>Promise.resolve())();let gs=(()=>{class t extends qi{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new GT,this._registered=!1,this.name="",this.update=new F,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function gg(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===yu?e=o:function QN(t){return Object.getPrototypeOf(t.constructor)===Kr}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function fg(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){za(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){KT.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&ss(i);KT.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Eu(t,n){return[...n.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(w(dn,9),w(Qt,10),w(vr,10),w($t,10),w(bt,8),w(fs,8))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Pe([n9]),ie,Ft]})}return t})(),YT=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})(),x9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({imports:[YT]})}return t})(),ku=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:fs,useValue:e.callSetDisabledState??Su}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({imports:[x9]})}return t})();class fD{}class k9{}const Ki="*";function Yr(t,n){return{type:7,name:t,definitions:n,options:{}}}function Jt(t,n=null){return{type:4,styles:n,timings:t}}function gD(t,n=null){return{type:3,steps:t,options:n}}function mD(t,n=null){return{type:2,steps:t,options:n}}function Ge(t){return{type:6,styles:t,offset:null}}function Ou(t,n,e){return{type:0,name:t,styles:n,options:e}}function pn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Au(t,n=null){return{type:8,animation:t,options:n}}function ja(t=null){return{type:9,options:t}}function Ru(t,n=null){return{type:10,animation:t,options:n}}function On(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}class Ga{constructor(n=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=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class _D{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>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(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function yD(t){return new k(3e3,!1)}function br(t){switch(t.length){case 0:return new Ga;case 1:return t[0];default:return new _D(t)}}function vD(t,n,e=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((m,_)=>{let b=_,C=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,r),C){case"!":C=e.get(_);break;case Ki:C=i.get(_);break;default:C=t.normalizeStyleValue(_,b,C,r)}d.set(b,C)}),u||o.push(d),a=d,s=c}),r.length)throw function X9(t){return new k(3502,!1)}();return o}function Dg(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Sg(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Sg(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Sg(e,"destroy",t)))}}function Sg(t,n,e){const o=Eg(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function Eg(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function An(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function bD(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const p6=(()=>typeof document>"u"?null:document.documentElement)();function Ig(t){const n=t.parentNode||t.host||null;return n===p6?null:n}let Qr=null,CD=!1;function wD(t,n){for(;n;){if(n===t)return!0;n=Ig(n)}return!1}function TD(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let DD=(()=>{class t{validateStyleProperty(e){return function f6(t){Qr||(Qr=function g6(){return typeof document<"u"?document.body:null}()||{},CD=!!Qr.style&&"WebkitAppearance"in Qr.style);let n=!0;return Qr.style&&!function h6(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Qr.style,!n&&CD&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Qr.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return wD(e,i)}getParentElement(e){return Ig(e)}query(e,i,r){return TD(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Ga(r,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),xg=(()=>{class t{static#e=this.NOOP=new DD}return t})();const m6=1e3,Mg="ng-enter",Pu="ng-leave",Fu="ng-trigger",Lu=".ng-trigger",ED="ng-animating",kg=".ng-animating";function Zi(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Og(parseFloat(n[1]),n[2])}function Og(t,n){return"s"===n?t*m6:t}function Nu(t,n,e){return t.hasOwnProperty("duration")?t:function y6(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(yD()),{duration:0,delay:0,easing:""};r=Og(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Og(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function O9(){return new k(3100,!1)}()),a=!0),o<0&&(n.push(function A9(){return new k(3101,!1)}()),a=!0),a&&n.splice(l,0,yD())}return{duration:r,delay:o,easing:s}}(t,n,e)}function Wa(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function ID(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cr(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function Si(t,n,e){n.forEach((i,r)=>{const o=Rg(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Jr(t,n){n.forEach((e,i)=>{const r=Rg(i);t.style[r]=""})}function qa(t){return Array.isArray(t)?1==t.length?t[0]:mD(t):t}const Ag=new RegExp("{{\\s*(.+?)\\s*}}","g");function MD(t){let n=[];if("string"==typeof t){let e;for(;e=Ag.exec(t);)n.push(e[1]);Ag.lastIndex=0}return n}function Ka(t,n,e){const i=t.toString(),r=i.replace(Ag,(o,s)=>{let a=n[s];return null==a&&(e.push(function P9(t){return new k(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Vu(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const C6=/-+([a-z0-9])/g;function Rg(t){return t.replace(C6,(...n)=>n[1].toUpperCase())}function Rn(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function F9(t){return new k(3004,!1)}()}}function kD(t,n){return window.getComputedStyle(t)[n]}const Bu="*";function D6(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function S6(t,n,e){if(":"==t[0]){const l=function E6(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function K9(t){return new k(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(OD(r,s));"<"==o[0]&&!(r==Bu&&s==Bu)&&n.push(OD(s,r))}(i,e,n)):e.push(t),e}const Hu=new Set(["true","1"]),$u=new Set(["false","0"]);function OD(t,n){const e=Hu.has(t)||$u.has(t),i=Hu.has(n)||$u.has(n);return(r,o)=>{let s=t==Bu||t==r,a=n==Bu||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Hu.has(t):$u.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Hu.has(n):$u.has(n)),s&&a}}const I6=new RegExp("s*:selfs*,?","g");function Pg(t,n,e,i){return new x6(t).build(n,e,i)}class x6{constructor(n){this._driver=n}build(n,e,i){const r=new O6(e);return this._resetContextStyleTimingState(r),Rn(this,qa(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function N9(){return new k(3006,!1)}()),n.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 V9(){return new k(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{MD(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Vu(o.values()),e.errors.push(function B9(t,n){return new k(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Rn(this,qa(n.animation),e);return{type:1,matchers:D6(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Xr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Rn(this,i,e)),options:Xr(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=Rn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Xr(n.options)}}visitAnimate(n,e){const i=function R6(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Fg(Nu(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Fg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Nu(e,n);return Fg(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Ge({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Ge(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(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Ki?i.push(a):e.errors.push(new k(3002,!1)):i.push(ID(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:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.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 $9(t,n,e,i,r){return new k(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function b6(t,n,e){const i=n.params||{},r=MD(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function R9(t){return new k(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function z9(){return new k(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(M=>{const I=this._makeStyleAst(M,e);let P=null!=I.offset?I.offset:function A6(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(I.styles),N=0;return null!=P&&(o++,N=I.offset=P),l=l||N<0||N>1,a=a||N0&&o{const P=m>0?I==_?1:m*I:s[I],N=P*T;e.currentTime=b+C.delay+N,C.duration=N,this._validateStyleAst(M,e),M.offset=P,i.styles.push(M)}),i}visitReference(n,e){return{type:8,animation:Rn(this,qa(n.animation),e),options:Xr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Xr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Xr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function M6(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(I6,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.slice(1)).replace(/:animating/g,kg),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,An(e.collectedStyles,e.currentQuerySelector,new Map);const a=Rn(this,qa(n.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:n.selector,options:Xr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function W9(){return new k(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Nu(n.timings,e.errors,!0);return{type:12,animation:Rn(this,qa(n.animation),e),timings:i,options:null}}}class O6{constructor(n){this.errors=n,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 Xr(t){return t?(t=Wa(t)).params&&(t.params=function k6(t){return t?Wa(t):null}(t.params)):t={},t}function Fg(t,n,e){return{duration:t,delay:n,easing:e}}function Lg(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class zu{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const L6=new RegExp(":enter","g"),V6=new RegExp(":leave","g");function Ng(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new B6).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class B6{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new zu;const d=new Vg(n,e,c,r,o,u,[]);d.options=l;const m=l.delay?Zi(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([s],null,d.errors,l),Rn(this,i,d);const _=d.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let C=_.length-1;C>=0;C--){const T=_[C];if(T.element===e){b=T;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,d.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[Lg(e,[],[],[],0,m,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Zi(Ka(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Zi(i.duration):null,a=null!=i.delay?Zi(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Rn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.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=Uu);const s=Zi(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Rn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Zi(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),Rn(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=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Nu(e.params?Ka(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.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=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Zi(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Rn(this,n.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=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.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;Rn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Uu={};class Vg{constructor(n,e,i,r,o,s,a,l){this._driver=n,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=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ju(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Zi(i.duration)),null!=i.delay&&(r.delay=Zi(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]=Ka(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new Vg(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(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Uu,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new H6(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(L6,"."+this._enterClassName)).replace(V6,"."+this._leaveClassName);let c=this._driver.query(this.element,n,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 q9(t){return new k(3014,!1)}()),a}}class ju{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new ju(this._driver,n,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(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ki),this._currentKeyframe.set(e,Ki);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function $6(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,Ki)}else Cr(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=Ka(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ki),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cr(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===Ki&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?Vu(n.values()):[],s=e.size?Vu(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Lg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class H6 extends ju{constructor(n,e,i,r,o,s,a=!1){super(n,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 n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cr(n[0]);l.set("offset",0),o.push(l);const c=Cr(n[0]);c.set("offset",PD(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let m=Cr(n[d]);const _=m.get("offset");m.set("offset",PD((e+_*i)/s)),o.push(m)}i=s,e=0,r="",n=o}return Lg(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function PD(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Bg{}const z6=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 U6 extends Bg{normalizePropertyName(n,e){return Rg(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(z6.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 L9(t,n){return new k(3005,!1)}())}return s+o}}function FD(t,n,e,i,r,o,s,a,l,c,u,d,m){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:m}}const Hg={};class LD{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function j6(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],m=this.ast.options&&this.ast.options.params||Hg,b=this.buildStyles(i,a&&a.params||Hg,d),C=l&&l.params||Hg,T=this.buildStyles(r,C,d),M=new Set,I=new Map,P=new Map,N="void"===r,X={params:G6(C,m),delay:this.ast.options?.delay},be=u?[]:Ng(n,e,this.ast.animation,o,s,b,T,X,c,d);let Ve=0;if(be.forEach(tt=>{Ve=Math.max(tt.duration+tt.delay,Ve)}),d.length)return FD(e,this._triggerName,i,r,N,b,T,[],[],I,P,Ve,d);be.forEach(tt=>{const Wt=tt.element,Dd=An(I,Wt,new Set);tt.preStyleProps.forEach(ao=>Dd.add(ao));const _l=An(P,Wt,new Set);tt.postStyleProps.forEach(ao=>_l.add(ao)),Wt!==e&&M.add(Wt)});const We=Vu(M.values());return FD(e,this._triggerName,i,r,N,b,T,be,We,I,P,Ve)}}function G6(t,n){const e=Wa(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class W6{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=Wa(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Ka(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class K6{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new W6(r.style,r.options&&r.options.params||{},i))}),ND(this.states,"true","1"),ND(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new LD(n,r,this.states))}),this.fallbackTransition=function Z6(t,n,e){return new LD(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function ND(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Y6=new zu;class Q6{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],o=Pg(this._driver,e,i,[]);if(i.length)throw function e6(t){return new k(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=vD(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=Ng(this._driver,e,o,Mg,Pu,new Map,new Map,i,Y6,r),s.forEach(u=>{const d=An(a,u.element,new Map);u.postStyleProps.forEach(m=>d.set(m,null))})):(r.push(function t6(){return new k(3300,!1)}()),s=[]),r.length)throw function n6(t){return new k(3504,!1)}();a.forEach((u,d)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(d,_,Ki))})});const c=br(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function r6(t){return new k(3301,!1)}();return e}listen(n,e,i,r){const o=Eg(e,"","","");return Dg(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);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(n)}}}const VD="ng-animate-queued",$g="ng-animate-disabled",n5=[],BD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},r5={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ui="__ng_removed";class zg{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function l5(t){return t??null}(i?n.value:n),i){const o=Wa(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Za="void",Ug=new zg(Za);class o5{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,qn(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function o6(t,n){return new k(3302,!1)}();if(null==i||0==i.length)throw function s6(t){return new k(3303,!1)}();if(!function c5(t){return"start"==t||"done"==t}(i))throw function a6(t,n){return new k(3400,!1)}();const o=An(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=An(this._engine.statesByElement,n,new Map);return a.has(e)||(qn(n,Fu),qn(n,Fu+"-"+e),a.set(e,Ug)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function l6(t){return new k(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new jg(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(qn(n,Fu),qn(n,Fu+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new zg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Ug),c.value!==Za&&l.value===c.value){if(!function p5(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Jr(n,T),Si(n,M)})}return}const m=An(this._engine.playersByElement,n,[]);m.forEach(C=>{C.namespaceId==this.id&&C.triggerName==e&&C.queued&&C.destroy()});let _=o.matchTransition(l.value,c.value,n,c.params),b=!1;if(!_){if(!r)return;_=o.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:_,fromState:l,toState:c,player:s,isFallbackTransition:b}),b||(qn(n,VD),s.onStart(()=>{ms(n,VD)})),s.onDone(()=>{let C=this.players.indexOf(s);C>=0&&this.players.splice(C,1);const T=this._engine.playersByElement.get(n);if(T){let M=T.indexOf(s);M>=0&&T.splice(M,1)}}),this.players.push(s),m.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Lu,!0);i.forEach(r=>{if(r[ui])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(n,e,i,r){const o=this._engine.statesByElement.get(n),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(n,c,Za,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&br(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);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)||Ug,u=new zg(Za),d=new jg(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[ui];(!o||o===BD)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){qn(n,this._hostClassName)}drainQueuedTransitions(n){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=Eg(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Dg(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(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class s5{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,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)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new o5(n,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[n]=i}_balanceNamespaceList(n,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,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Gu(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Gu(e))return;const o=e[ui];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),qn(n,$g)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ms(n,$g))}removeNode(n,e,i){if(Gu(e)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[ui]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Gu(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Lu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,kg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return br(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[ui];if(e&&e.setForRemoval){if(n[ui]=BD,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains($g)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-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?br(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function c6(t){return new k(3402,!1)}()}_flushAnimations(n,e){const i=new zu,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Q=>{u.add(Q);const re=this.driver.query(Q,".ng-animate-queued",!0);for(let se=0;se{const se=Mg+C++;b.set(re,se),Q.forEach(ke=>qn(ke,se))});const T=[],M=new Set,I=new Set;for(let Q=0;QM.add(ke)):I.add(re))}const P=new Map,N=zD(m,Array.from(M));N.forEach((Q,re)=>{const se=Pu+C++;P.set(re,se),Q.forEach(ke=>qn(ke,se))}),n.push(()=>{_.forEach((Q,re)=>{const se=b.get(re);Q.forEach(ke=>ms(ke,se))}),N.forEach((Q,re)=>{const se=P.get(re);Q.forEach(ke=>ms(ke,se))}),T.forEach(Q=>{this.processLeaveNode(Q)})});const X=[],be=[];for(let Q=this._namespaceList.length-1;Q>=0;Q--)this._namespaceList[Q].drainQueuedTransitions(e).forEach(se=>{const ke=se.player,Ot=se.element;if(X.push(ke),this.collectedEnterElements.length){const Xt=Ot[ui];if(Xt&&Xt.setForMove){if(Xt.previousTriggersValues&&Xt.previousTriggersValues.has(se.triggerName)){const lo=Xt.previousTriggersValues.get(se.triggerName),Qn=this.statesByElement.get(se.element);if(Qn&&Qn.has(se.triggerName)){const Sd=Qn.get(se.triggerName);Sd.value=lo,Qn.set(se.triggerName,Sd)}}return void ke.destroy()}}const Mi=!d||!this.driver.containsElement(d,Ot),Fn=P.get(Ot),Ir=b.get(Ot),ct=this._buildInstruction(se,i,Ir,Fn,Mi);if(ct.errors&&ct.errors.length)return void be.push(ct);if(Mi)return ke.onStart(()=>Jr(Ot,ct.fromStyles)),ke.onDestroy(()=>Si(Ot,ct.toStyles)),void r.push(ke);if(se.isFallbackTransition)return ke.onStart(()=>Jr(Ot,ct.fromStyles)),ke.onDestroy(()=>Si(Ot,ct.toStyles)),void r.push(ke);const lE=[];ct.timelines.forEach(Xt=>{Xt.stretchStartingKeyframe=!0,this.disabledNodes.has(Xt.element)||lE.push(Xt)}),ct.timelines=lE,i.append(Ot,ct.timelines),s.push({instruction:ct,player:ke,element:Ot}),ct.queriedElements.forEach(Xt=>An(a,Xt,[]).push(ke)),ct.preStyleProps.forEach((Xt,lo)=>{if(Xt.size){let Qn=l.get(lo);Qn||l.set(lo,Qn=new Set),Xt.forEach((Sd,Hm)=>Qn.add(Hm))}}),ct.postStyleProps.forEach((Xt,lo)=>{let Qn=c.get(lo);Qn||c.set(lo,Qn=new Set),Xt.forEach((Sd,Hm)=>Qn.add(Hm))})});if(be.length){const Q=[];be.forEach(re=>{Q.push(function u6(t,n){return new k(3505,!1)}())}),X.forEach(re=>re.destroy()),this.reportError(Q)}const Ve=new Map,We=new Map;s.forEach(Q=>{const re=Q.element;i.has(re)&&(We.set(re,re),this._beforeAnimationBuild(Q.player.namespaceId,Q.instruction,Ve))}),r.forEach(Q=>{const re=Q.element;this._getPreviousPlayers(re,!1,Q.namespaceId,Q.triggerName,null).forEach(ke=>{An(Ve,re,[]).push(ke),ke.destroy()})});const tt=T.filter(Q=>jD(Q,l,c)),Wt=new Map;$D(Wt,this.driver,I,c,Ki).forEach(Q=>{jD(Q,l,c)&&tt.push(Q)});const _l=new Map;_.forEach((Q,re)=>{$D(_l,this.driver,new Set(Q),l,"!")}),tt.forEach(Q=>{const re=Wt.get(Q),se=_l.get(Q);Wt.set(Q,new Map([...re?.entries()??[],...se?.entries()??[]]))});const ao=[],sE=[],aE={};s.forEach(Q=>{const{element:re,player:se,instruction:ke}=Q;if(i.has(re)){if(u.has(re))return se.onDestroy(()=>Si(re,ke.toStyles)),se.disabled=!0,se.overrideTotalTime(ke.totalTime),void r.push(se);let Ot=aE;if(We.size>1){let Fn=re;const Ir=[];for(;Fn=Fn.parentNode;){const ct=We.get(Fn);if(ct){Ot=ct;break}Ir.push(Fn)}Ir.forEach(ct=>We.set(ct,Ot))}const Mi=this._buildAnimation(se.namespaceId,ke,Ve,o,_l,Wt);if(se.setRealPlayer(Mi),Ot===aE)ao.push(se);else{const Fn=this.playersByElement.get(Ot);Fn&&Fn.length&&(se.parentPlayer=br(Fn)),r.push(se)}}else Jr(re,ke.fromStyles),se.onDestroy(()=>Si(re,ke.toStyles)),sE.push(se),u.has(re)&&r.push(se)}),sE.forEach(Q=>{const re=o.get(Q.element);if(re&&re.length){const se=br(re);Q.setRealPlayer(se)}}),r.forEach(Q=>{Q.parentPlayer?Q.syncPlayerEvents(Q.parentPlayer):Q.destroy()});for(let Q=0;Q!Mi.destroyed);Ot.length?u5(this,re,Ot):this.processLeaveNode(re)}return T.length=0,ao.forEach(Q=>{this.players.push(Q),Q.onDone(()=>{Q.destroy();const re=this.players.indexOf(Q);this.players.splice(re,1)}),Q.play()}),ao}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Za;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(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=An(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),d.push(_)})}Jr(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,m=e.timelines.map(b=>{const C=b.element;u.add(C);const T=C[ui];if(T&&T.removedBeforeQueried)return new Ga(b.duration,b.delay);const M=C!==l,I=function d5(t){const n=[];return UD(t,n),n}((i.get(C)||n5).map(Ve=>Ve.getRealPlayer())).filter(Ve=>!!Ve.element&&Ve.element===C),P=o.get(C),N=s.get(C),X=vD(this._normalizer,b.keyframes,P,N),be=this._buildPlayer(b,X,I);if(b.subTimeline&&r&&d.add(C),M){const Ve=new jg(n,a,C);Ve.setRealPlayer(be),c.push(Ve)}return be});c.forEach(b=>{An(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function a5(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>qn(b,ED));const _=br(m);return _.onDestroy(()=>{u.forEach(b=>ms(b,ED)),Si(l,e.toStyles)}),d.forEach(b=>{An(r,b,[]).push(_)}),_}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Ga(n.duration,n.delay)}}class jg{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Ga,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Dg(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){An(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Gu(t){return t&&1===t.nodeType}function HD(t,n){const e=t.style.display;return t.style.display=n??"none",e}function $D(t,n,e,i,r){const o=[];e.forEach(l=>o.push(HD(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const m=n.computeStyle(c,d,r);u.set(d,m),(!m||0==m.length)&&(c[ui]=r5,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>HD(l,o[a++])),s}function zD(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),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 n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function qn(t,n){t.classList?.add(n)}function ms(t,n){t.classList?.remove(n)}function u5(t,n,e){br(e).onDone(()=>t.processLeaveNode(n))}function UD(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Wu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new s5(n,e,i),this._timelineEngine=new Q6(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Pg(this._driver,o,l,[]);if(l.length)throw function J9(t,n){return new k(3404,!1)}();a=function q6(t,n,e){return new K6(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=bD(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=bD(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let f5=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Si(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Si(this._element,this._initialStyles),this._endStyles&&(Si(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Jr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jr(this._element,this._endStyles),this._endStyles=null),Si(this._element,this._initialStyles),this._state=3)}}return t})();function Gg(t){let n=null;return t.forEach((e,i)=>{(function g5(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class GD{constructor(n,e,i,r){this.element=n,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(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:kD(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class m5{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return wD(n,e)}getParentElement(n){return Ig(n)}query(n,e,i){return TD(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,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(_=>_ instanceof GD);(function w6(t,n){return 0===t||0===n})(i,r)&&u.forEach(_=>{_.currentSnapshot.forEach((b,C)=>c.set(C,b))});let d=function v6(t){return t.length?t[0]instanceof Map?t:t.map(n=>ID(n)):[]}(e).map(_=>Cr(_));d=function T6(t,n,e){if(e.size&&n.length){let i=n[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,kD(t,a)))}}return n}(n,d,c);const m=function h5(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Gg(n[0]),n.length>1&&(i=Gg(n[n.length-1]))):n instanceof Map&&(e=Gg(n)),e||i?new f5(t,e,i):null}(n,d);return new GD(n,d,l,m)}}let _5=(()=>{class t extends fD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Nn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?mD(e):e;return WD(this._renderer,null,i,"register",[r]),new y5(i,this._renderer)}static#e=this.\u0275fac=function(i){return new(i||t)(H(ua),H(rt))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class y5 extends k9{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new v5(this._id,n,e||{},this._renderer)}}class v5{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return WD(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}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(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function WD(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const qD="@.disabled";let b5=(()=>{class t{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,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 KD("",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 C5(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{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()}static#e=this.\u0275fac=function(i){return new(i||t)(H(ua),H(Wu),H(Te))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class KD{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==qD?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class C5 extends KD{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qD?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function w5(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function T5(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const ZD=[{provide:fD,useClass:_5},{provide:Bg,useFactory:function S5(){return new U6}},{provide:Wu,useClass:(()=>{class t extends Wu{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt),H(xg),H(Bg),H(Ur))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})()},{provide:ua,useFactory:function E5(t,n,e){return new b5(t,n,e)},deps:[Zf,Wu,Te]}],Wg=[{provide:xg,useFactory:()=>new m5},{provide:z1,useValue:"BrowserAnimations"},...ZD],YD=[{provide:xg,useClass:DD},{provide:z1,useValue:"NoopAnimations"},...ZD];let I5=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?YD:Wg}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({providers:Wg,imports:[$w]})}return t})();function qg(...t){const n=Rs(t),e=l_(t),{args:i,keys:r}=cT(t);if(0===i.length)return Dt([],n);const o=new ot(function M5(t,n,e=nr){return i=>{QD(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Dt(t[l],n);let u=!1;c.subscribe(nt(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>uT(r,s):nr));return e?o.pipe(ig(e)):o}function QD(t,n,e){t?ki(e,t,n):n()}const Ya=Os(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Ku(...t){return function k5(){return uo(1)}()(Dt(t,Rs(t)))}function JD(t){return new ot(n=>{qt(t()).subscribe(n)})}function eo(t,n){const e=De(t)?t:()=>t,i=r=>r.error(e());return new ot(n?r=>n.schedule(i,0,r):i)}function Kg(){return ut((t,n)=>{let e=null;t._refCount++;const i=nt(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class XD extends ot{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Km(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new hn;const e=this.getSubject();n.add(this.source.subscribe(nt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=hn.EMPTY)}return n}refCount(){return Kg()(this)}}function wr(t){return t<=0?()=>hi:ut((n,e)=>{let i=0;n.subscribe(nt(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Zu(t){return ut((n,e)=>{let i=!1;n.subscribe(nt(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function eS(t=A5){return ut((n,e)=>{let i=!1;n.subscribe(nt(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function A5(){return new Ya}function to(t,n){const e=arguments.length>=2;return i=>i.pipe(t?wt((r,o)=>t(r,o,i)):nr,wr(1),e?Zu(n):eS(()=>new Ya))}function zt(t,n,e){const i=De(t)||n||e?{next:t,error:n,complete:e}:t;return i?ut((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(nt(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)}))}):nr}function Tr(t){return ut((n,e)=>{let o,i=null,r=!1;i=n.subscribe(nt(e,void 0,void 0,s=>{o=qt(t(s,Tr(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Zg(t){return t<=0?()=>hi:ut((n,e)=>{let i=[];n.subscribe(nt(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function tS(t){return Se(()=>t)}function Ut(t){return ut((n,e)=>{qt(t).subscribe(nt(e,()=>e.complete(),bl)),!e.closed&&n.subscribe(e)})}const ve="primary",Qa=Symbol("RouteTitle");class L5{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function _s(t){return new L5(t)}function N5(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function iS(t){return t.length>0?t[t.length-1]:null}function Dr(t){return function x5(t){return!!t&&(t instanceof ot||De(t.lift)&&De(t.subscribe))}(t)?t:Ca(t)?Dt(Promise.resolve(t)):oe(t)}const B5={exact:function sS(t,n,e){if(!no(t.segments,n.segments)||!Yu(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!sS(t.children[i],n.children[i],e))return!1;return!0},subset:aS},rS={exact:function H5(t,n){return Ei(t,n)},subset:function $5(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>nS(t[e],n[e]))},ignored:()=>!0};function oS(t,n,e){return B5[e.paths](t.root,n.root,e.matrixParams)&&rS[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function aS(t,n,e){return lS(t,n,n.segments,e)}function lS(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!no(r,e)||n.hasChildren()||!Yu(r,e,i))}if(t.segments.length===e.length){if(!no(t.segments,e)||!Yu(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!aS(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(no(t.segments,r)&&Yu(t.segments,r,i)&&t.children[ve])&&lS(t.children[ve],n,o,i)}}function Yu(t,n,e){return n.every((i,r)=>rS[e](t[r].parameters,i.parameters))}class ys{constructor(n=new $e([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_s(this.queryParams)),this._queryParamMap}toString(){return j5.serialize(this)}}class $e{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qu(this)}}class Ja{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_s(this.parameters)),this._parameterMap}toString(){return dS(this)}}function no(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Xa=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return new Yg},providedIn:"root"})}return t})();class Yg{parse(n){const e=new t8(n);return new ys(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${el(n.root,!0)}`,i=function q5(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Ju(e)}=${Ju(r)}`).join("&"):`${Ju(e)}=${Ju(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function G5(t){return encodeURI(t)}(n.fragment)}`:""}`}}const j5=new Yg;function Qu(t){return t.segments.map(n=>dS(n)).join("/")}function el(t,n){if(!t.hasChildren())return Qu(t);if(n){const e=t.children[ve]?el(t.children[ve],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==ve&&i.push(`${r}:${el(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function U5(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===ve&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==ve&&(e=e.concat(n(r,i)))}),e}(t,(i,r)=>r===ve?[el(t.children[ve],!1)]:[`${r}:${el(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[ve]?`${Qu(t)}/${e[0]}`:`${Qu(t)}/(${e.join("//")})`}}function cS(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ju(t){return cS(t).replace(/%3B/gi,";")}function Qg(t){return cS(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xu(t){return decodeURIComponent(t)}function uS(t){return Xu(t.replace(/\+/g,"%20"))}function dS(t){return`${Qg(t.path)}${function W5(t){return Object.keys(t).map(n=>`;${Qg(n)}=${Qg(t[n])}`).join("")}(t.parameters)}`}const K5=/^[^\/()?;#]+/;function Jg(t){const n=t.match(K5);return n?n[0]:""}const Z5=/^[^\/()?;=#]+/,Q5=/^[^=?&#]+/,X5=/^[^&#]+/;class t8{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[ve]=new $e(n,e)),i}parseSegment(){const n=Jg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new k(4009,!1);return this.capture(n),new Ja(Xu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function Y5(t){const n=t.match(Z5);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Jg(this.remaining);r&&(i=r,this.capture(i))}n[Xu(e)]=Xu(i)}parseQueryParam(n){const e=function J5(t){const n=t.match(Q5);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function e8(t){const n=t.match(X5);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=uS(e),o=uS(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Jg(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new k(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=ve);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[ve]:new $e([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new k(4011,!1)}}function pS(t){return t.segments.length>0?new $e([],{[ve]:t}):t}function hS(t){const n={};for(const i of Object.keys(t.children)){const o=hS(t.children[i]);if(i===ve&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function n8(t){if(1===t.numberOfChildren&&t.children[ve]){const n=t.children[ve];return new $e(t.segments.concat(n.segments),n.children)}return t}(new $e(t.segments,n))}function io(t){return t instanceof ys}function fS(t){let n;const r=pS(function e(o){const s={};for(const l of o.children){const c=e(l);s[l.outlet]=c}const a=new $e(o.url,s);return o===t&&(n=a),a}(t.root));return n??r}function gS(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return Xg(r,r,r,e,i);const o=function o8(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new _S(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new _S(e,n,i)}(n);if(o.toRoot())return Xg(r,r,new $e([],{}),e,i);const s=function s8(t,n,e){if(t.isAbsolute)return new td(n,!0,0);if(!e)return new td(n,!1,NaN);if(null===e.parent)return new td(e,!0,0);const i=ed(t.commands[0])?0:1;return function a8(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new k(4005,!1);r=i.segments.length}return new td(i,!1,r-o)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?nl(s.segmentGroup,s.index,o.commands):yS(s.segmentGroup,s.index,o.commands);return Xg(r,s.segmentGroup,a,e,i)}function ed(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function tl(t){return"object"==typeof t&&null!=t&&t.outlets}function Xg(t,n,e,i,r){let s,o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=t===n?e:mS(t,n,e);const a=pS(hS(s));return new ys(a,o,r)}function mS(t,n,e){const i={};return Object.entries(t.children).forEach(([r,o])=>{i[r]=o===n?e:mS(o,n,e)}),new $e(t.segments,i)}class _S{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ed(i[0]))throw new k(4003,!1);const r=i.find(tl);if(r&&r!==iS(i))throw new k(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class td{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function yS(t,n,e){if(t||(t=new $e([],{})),0===t.segments.length&&t.hasChildren())return nl(t,n,e);const i=function c8(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(tl(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!bS(l,c,s))return o;i+=2}else{if(!bS(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==ve)&&t.children[ve]&&1===t.numberOfChildren&&0===t.children[ve].segments.length){const o=nl(t.children[ve],n,e);return new $e(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=yS(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new $e(t.segments,r)}}function em(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=em(new $e([],{}),0,i))}),n}function vS(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function bS(t,n,e){return t==e.path&&Ei(n,e.parameters)}const il="imperative";class Ii{constructor(n,e){this.id=n,this.url=e}}class nd extends Ii{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Yi extends Ii{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class rl extends Ii{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vs extends Ii{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class id extends Ii{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class CS extends Ii{constructor(n,e,i,r){super(n,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 d8 extends Ii{constructor(n,e,i,r){super(n,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 p8 extends Ii{constructor(n,e,i,r,o){super(n,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 h8 extends Ii{constructor(n,e,i,r){super(n,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 f8 extends Ii{constructor(n,e,i,r){super(n,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 g8{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class m8{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _8{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class y8{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class v8{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b8{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wS{constructor(n,e,i){this.routerEvent=n,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 tm{}class nm{constructor(n){this.url=n}}class C8{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ol,this.attachRef=null}}let ol=(()=>{class t{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 C8,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class TS{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=im(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=im(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=rm(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return rm(n,this._root).map(e=>e.value)}}function im(t,n){if(t===n.value)return n;for(const e of n.children){const i=im(t,e);if(i)return i}return null}function rm(t,n){if(t===n.value)return[n];for(const e of n.children){const i=rm(t,e);if(i.length)return i.unshift(n),i}return[]}class Qi{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function bs(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class DS extends TS{constructor(n,e){super(n),this.snapshot=e,om(this,n)}toString(){return this.snapshot.toString()}}function SS(t,n){const e=function w8(t,n){const s=new rd([],{},{},"",{},ve,n,null,{});return new IS("",new Qi(s,[]))}(0,n),i=new en([new Ja("",{})]),r=new en({}),o=new en({}),s=new en({}),a=new en(""),l=new Ji(i,r,s,a,o,ve,n,e.root);return l.snapshot=e.root,new DS(new Qi(l,[]),e)}class Ji{constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Se(c=>c[Qa]))??oe(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Se(n=>_s(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Se(n=>_s(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ES(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)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 T8(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class rd{get title(){return this.data?.[Qa]}constructor(n,e,i,r,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_s(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_s(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class IS extends TS{constructor(n,e){super(e),this.url=n,om(this,e)}toString(){return xS(this._root)}}function om(t,n){n.value._routerState=t,n.children.forEach(e=>om(t,e))}function xS(t){const n=t.children.length>0?` { ${t.children.map(xS).join(", ")} } `:"";return`${t.value}${n}`}function sm(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ei(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Ei(n.params,e.params)||t.paramsSubject.next(e.params),function V5(t,n){if(t.length!==n.length)return!1;for(let e=0;eEi(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||am(t.parent,n.parent))}let lm=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ve,this.activateEvents=new F,this.deactivateEvents=new F,this.attachEvents=new F,this.detachEvents=new F,this.parentContexts=j(ol),this.location=j(jn),this.changeDetector=j(bt),this.environmentInjector=j(xn),this.inputBinder=j(od,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);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 k(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new k(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new k(4012,!1);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.inputBinder?.bindActivatedRouteToOutletComponent(this),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 k(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new D8(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ne({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ft]})}return t})();class D8{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Ji?this.route:n===ol?this.childContexts:this.parent.get(n,e)}}const od=new G("");let MS=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,r=qg([i.queryParams,i.params,i.data]).pipe(Jn(([o,s,a],l)=>(a={...o,...s,...a},0===l?oe(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const s=function IP(t){const n=Ie(t);if(!n)return null;const e=new ma(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function sl(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function E8(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return sl(t,i,r);return sl(t,i)})}(t,n,e);return new Qi(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>sl(t,a)),s}}const i=function I8(t){return new Ji(new en(t.url),new en(t.params),new en(t.queryParams),new en(t.fragment),new en(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>sl(t,o));return new Qi(i,r)}}const cm="ngNavigationCancelingError";function kS(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=io(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=OS(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function OS(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[cm]=!0,i.cancellationCode=n,e&&(i.url=e),i}function AS(t){return t&&t[cm]}let RS=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=J({type:t,selectors:[["ng-component"]],standalone:!0,features:[ze],decls:1,vars:0,template:function(i,r){1&i&&x(0,"router-outlet")},dependencies:[lm],encapsulation:2})}return t})();function um(t){const n=t.children&&t.children.map(um),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==ve&&(e.component=RS),e}function di(t){return t.outlet||ve}function al(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class F8{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),sm(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=bs(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bs(n);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(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bs(n);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.route=null)}activateChildRoutes(n,e,i){const r=bs(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new b8(o.value.snapshot))}),n.children.length&&this.forwardEvent(new y8(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(sm(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,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),sm(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=al(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class PS{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class sd{constructor(n,e){this.component=n,this.route=e}}function L8(t,n,e){const i=t._root;return ll(i,n?n._root:null,e,[i.value])}function Cs(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function QE(t){return null!==Sl(t)}(t)?n.get(t):t:i}function ll(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bs(n);return t.children.forEach(s=>{(function V8(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function B8(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!no(t.url,n.url);case"pathParamsOrQueryParamsChange":return!no(t.url,n.url)||!Ei(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!am(t,n)||!Ei(t.queryParams,n.queryParams);default:return!am(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new PS(i)):(o.data=s.data,o._resolvedData=s._resolvedData),ll(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new sd(a.outlet.component,s))}else s&&cl(n,a,r),r.canActivateChecks.push(new PS(i)),ll(t,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]}),Object.entries(o).forEach(([s,a])=>cl(a,e.getContext(s),r)),r}function cl(t,n,e){const i=bs(t),r=t.value;Object.entries(i).forEach(([o,s])=>{cl(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new sd(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ul(t){return"function"==typeof t}function FS(t){return t instanceof Ya||"EmptyError"===t?.name}const ad=Symbol("INITIAL_VALUE");function ws(){return Jn(t=>qg(t.map(n=>n.pipe(wr(1),function O5(...t){const n=Rs(t);return ut((e,i)=>{(n?Ku(t,e,n):Ku(t,e)).subscribe(i)})}(ad)))).pipe(Se(n=>{for(const e of n)if(!0!==e){if(e===ad)return ad;if(!1===e||e instanceof ys)return e}return!0}),wt(n=>n!==ad),wr(1)))}function LS(t){return function _E(...t){return Gm(t)}(zt(n=>{if(io(n))throw kS(0,n)}),Se(n=>!0===n))}class ld{constructor(n){this.segmentGroup=n||null}}class NS{constructor(n){this.urlTree=n}}function Ts(t){return eo(new ld(t))}function VS(t){return eo(new NS(t))}class s7{constructor(n,e){this.urlSerializer=n,this.urlTree=e}noMatchError(n){return new k(4002,!1)}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return oe(i);if(r.numberOfChildren>1||!r.children[ve])return eo(new k(4e3,!1));r=r.children[ve]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new ys(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new $e(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new k(4001,!1);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}const dm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function a7(t,n,e,i,r){const o=pm(t,n,e);return o.matched?(i=function M8(t,n){return t.providers&&!t._injector&&(t._injector=Kh(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function n7(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?oe(r.map(s=>{const a=Cs(s,t);return Dr(function G8(t){return t&&ul(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(ws(),LS()):oe(!0)}(i,n,e).pipe(Se(s=>!0===s?o:{...dm}))):oe(o)}function pm(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...dm}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||N5)(e,t,n);if(!r)return{...dm};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function BS(t,n,e,i){return e.length>0&&function u7(t,n,e){return e.some(i=>cd(t,n,i)&&di(i)!==ve)}(t,e,i)?{segmentGroup:new $e(n,c7(i,new $e(e,t.children))),slicedSegments:[]}:0===e.length&&function d7(t,n,e){return e.some(i=>cd(t,n,i))}(t,e,i)?{segmentGroup:new $e(t.segments,l7(t,0,e,i,t.children)),slicedSegments:e}:{segmentGroup:new $e(t.segments,t.children),slicedSegments:e}}function l7(t,n,e,i,r){const o={};for(const s of i)if(cd(t,e,s)&&!r[di(s)]){const a=new $e([],{});o[di(s)]=a}return{...r,...o}}function c7(t,n){const e={};e[ve]=n;for(const i of t)if(""===i.path&&di(i)!==ve){const r=new $e([],{});e[di(i)]=r}return e}function cd(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class g7{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new s7(this.urlSerializer,this.urlTree)}noMatchError(n){return new k(4002,!1)}recognize(){const n=BS(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,ve).pipe(Tr(e=>{if(e instanceof NS)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof ld?this.noMatchError(e):e}),Se(e=>{const i=new rd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ve,this.rootComponentType,null,{}),r=new Qi(i,e),o=new IS("",r),s=function r8(t,n,e=null,i=null){return gS(fS(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,ve).pipe(Tr(i=>{throw i instanceof ld?this.noMatchError(i):i}))}inheritParamsAndData(n){const e=n.value,i=ES(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r,!0)}processChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Dt(r).pipe(us(o=>{const s=i.children[o],a=function R8(t,n){const e=t.filter(i=>di(i)===n);return e.push(...t.filter(i=>di(i)!==n)),e}(e,o);return this.processSegmentGroup(n,a,s,o)}),function P5(t,n){return ut(function R5(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(nt(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(t,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Zu(null),function F5(t,n){const e=arguments.length>=2;return i=>i.pipe(t?wt((r,o)=>t(r,o,i)):nr,Zg(1),e?Zu(n):eS(()=>new Ya))}(),vt(o=>{if(null===o)return Ts(i);const s=HS(o);return function m7(t){t.sort((n,e)=>n.value.outlet===ve?-1:e.value.outlet===ve?1:n.value.outlet.localeCompare(e.value.outlet))}(s),oe(s)}))}processSegment(n,e,i,r,o,s){return Dt(e).pipe(us(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,o,s).pipe(Tr(l=>{if(l instanceof ld)return oe(null);throw l}))),to(a=>!!a),Tr(a=>{if(FS(a))return function h7(t,n,e){return 0===n.length&&!t.children[e]}(i,r,o)?oe([]):Ts(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,o,s,a){return function p7(t,n,e,i){return!!(di(t)===i||i!==ve&&cd(n,e,t))&&("**"===t.path||pm(n,t,e).matched)}(i,r,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s):Ts(r):Ts(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirects.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?VS(o):this.applyRedirects.lineralizeSegments(i,o).pipe(vt(s=>{const a=new $e(s,{});return this.processSegment(n,e,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=pm(e,r,o);if(!a)return Ts(e);const d=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?VS(d):this.applyRedirects.lineralizeSegments(r,d).pipe(vt(m=>this.processSegment(n,i,e,m.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a;if("**"===i.path){const l=r.length>0?iS(r).parameters:{};a=oe({snapshot:new rd(r,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$S(i),di(i),i.component??i._loadedComponent??null,i,zS(i)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=a7(e,i,r,n).pipe(Se(({matched:l,consumedSegments:c,remainingSegments:u,parameters:d})=>l?{snapshot:new rd(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$S(i),di(i),i.component??i._loadedComponent??null,i,zS(i)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Jn(l=>null===l?Ts(e):this.getChildConfig(n=i._injector??n,i,r).pipe(Jn(({routes:c})=>{const u=i._loadedInjector??n,{snapshot:d,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:C}=BS(e,m,_,c);if(0===C.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(Se(M=>null===M?null:[new Qi(d,M)]));if(0===c.length&&0===C.length)return oe([new Qi(d,[])]);const T=di(i)===o;return this.processSegment(u,c,b,C,T?ve:o,!0).pipe(Se(M=>[new Qi(d,M)]))}))))}getChildConfig(n,e,i){return e.children?oe({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?oe({routes:e._loadedRoutes,injector:e._loadedInjector}):function t7(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?oe(!0):oe(r.map(s=>{const a=Cs(s,t);return Dr(function $8(t){return t&&ul(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(ws(),LS())}(n,e,i).pipe(vt(r=>r?this.configLoader.loadChildren(n,e).pipe(zt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function o7(t){return eo(OS(!1,3))}())):oe({routes:[],injector:n})}}function _7(t){const n=t.value.routeConfig;return n&&""===n.path}function HS(t){const n=[],e=new Set;for(const i of t){if(!_7(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=HS(i.children);n.push(new Qi(i.value,r))}return n.filter(i=>!e.has(i))}function $S(t){return t.data||{}}function zS(t){return t.resolve||{}}function US(t){return"string"==typeof t.title||null===t.title}function hm(t){return Jn(n=>{const e=t(n);return e?Dt(e).pipe(Se(()=>n)):oe(n)})}const Ds=new G("ROUTES");let fm=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=j(wC)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return oe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Dr(e.loadComponent()).pipe(Se(jS),zt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Na(()=>{this.componentLoaders.delete(e)})),r=new XD(i,()=>new Oe).pipe(Kg());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return oe({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function D7(t,n,e,i){return Dr(t.loadChildren()).pipe(Se(jS),vt(r=>r instanceof kb||Array.isArray(r)?oe(r):Dt(n.compileModuleAsync(r))),Se(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(e).injector,s=o.get(Ds,[],{optional:!0,self:!0}).flat()),{routes:s.map(um),injector:o}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Na(()=>{this.childrenLoaders.delete(i)})),s=new XD(o,()=>new Oe).pipe(Kg());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jS(t){return function S7(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let ud=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Oe,this.transitionAbortSubject=new Oe,this.configLoader=j(fm),this.environmentInjector=j(xn),this.urlSerializer=j(Xa),this.rootContexts=j(ol),this.inputBindingEnabled=null!==j(od,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>oe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new m8(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new g8(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,r){return this.transitions=new en({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:e.urlHandlingStrategy.extract(i),urlAfterRedirects:e.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:il,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(wt(o=>0!==o.id),Se(o=>({...o,extractedUrl:e.urlHandlingStrategy.extract(o.rawUrl)})),Jn(o=>{this.currentTransition=o;let s=!1,a=!1;return oe(o).pipe(zt(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Jn(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new vs(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),hi}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return oe(l).pipe(Jn(m=>{const _=this.transitions?.getValue();return this.events.next(new nd(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?hi:Promise.resolve(m)}),function y7(t,n,e,i,r,o){return vt(s=>function f7(t,n,e,i,r,o,s="emptyOnly"){return new g7(t,n,e,i,r,s,o).recognize()}(t,n,e,i,s.extractedUrl,r,o).pipe(Se(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),zt(m=>{o.targetSnapshot=m.targetSnapshot,o.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new CS(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:C,extras:T}=l,M=new nd(m,this.urlSerializer.serialize(_),b,C);this.events.next(M);const I=SS(0,this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:I,urlAfterRedirects:_,extras:{...T,skipLocationChange:!1,replaceUrl:!1}},oe(o)}{const m="";return this.events.next(new vs(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),hi}}),zt(l=>{const c=new d8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Se(l=>(this.currentTransition=o={...l,guards:L8(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function q8(t,n){return vt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?oe({...e,guardsResult:!0}):function K8(t,n,e,i){return Dt(t).pipe(vt(r=>function e7(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?oe(o.map(a=>{const l=al(n)??r,c=Cs(a,l);return Dr(function j8(t){return t&&ul(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(to())})).pipe(ws()):oe(!0)}(r.component,r.route,e,n,i)),to(r=>!0!==r,!0))}(s,i,r,t).pipe(vt(a=>a&&function H8(t){return"boolean"==typeof t}(a)?function Z8(t,n,e,i){return Dt(n).pipe(us(r=>Ku(function Q8(t,n){return null!==t&&n&&n(new _8(t)),oe(!0)}(r.route.parent,i),function Y8(t,n){return null!==t&&n&&n(new v8(t)),oe(!0)}(r.route,i),function X8(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function N8(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>JD(()=>oe(s.guards.map(l=>{const c=al(s.node)??e,u=Cs(l,c);return Dr(function U8(t){return t&&ul(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(to())})).pipe(ws())));return oe(o).pipe(ws())}(t,r.path,e),function J8(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return oe(!0);const r=i.map(o=>JD(()=>{const s=al(n)??e,a=Cs(o,s);return Dr(function z8(t){return t&&ul(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(to())}));return oe(r).pipe(ws())}(t,r.route,e))),to(r=>!0!==r,!0))}(i,o,t,n):oe(a)),Se(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),zt(l=>{if(o.guardsResult=l.guardsResult,io(l.guardsResult))throw kS(0,l.guardsResult);const c=new p8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),wt(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),hm(l=>{if(l.guards.canActivateChecks.length)return oe(l).pipe(zt(c=>{const u=new h8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Jn(c=>{let u=!1;return oe(c).pipe(function v7(t,n){return vt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return oe(e);let o=0;return Dt(r).pipe(us(s=>function b7(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!US(r)&&(o[Qa]=r.title),function C7(t,n,e,i){const r=function w7(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return oe({});const o={};return Dt(r).pipe(vt(s=>function T7(t,n,e,i){const r=al(n)??i,o=Cs(t,r);return Dr(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(to(),zt(a=>{o[s]=a}))),Zg(1),tS(o),Tr(s=>FS(s)?hi:eo(s)))}(o,t,n,i).pipe(Se(s=>(t._resolvedData=s,t.data=ES(t,e).resolve,r&&US(r)&&(t.data[Qa]=r.title),null)))}(s.route,i,t,n)),zt(()=>o++),Zg(1),vt(s=>o===r.length?oe(e):hi))})}(e.paramsInheritanceStrategy,this.environmentInjector),zt({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),zt(c=>{const u=new f8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),hm(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(zt(m=>{u.component=m}),Se(()=>{})));for(const m of u.children)d.push(...c(m));return d};return qg(c(l.targetSnapshot.root)).pipe(Zu(),wr(1))}),hm(()=>this.afterPreactivation()),Se(l=>{const c=function S8(t,n,e){const i=sl(t,n._root,e?e._root:void 0);return new DS(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},o}),zt(()=>{this.events.next(new tm)}),((t,n,e,i)=>Se(r=>(new F8(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),wr(1),zt({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Yi(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),Ut(this.transitionAbortSubject.pipe(zt(l=>{throw l}))),Na(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Tr(l=>{if(a=!0,AS(l))this.events.next(new rl(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function x8(t){return AS(t)&&io(t.url)}(l)?this.events.next(new nm(l.url)):o.resolve(!1);else{this.events.next(new id(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(l))}catch(c){o.reject(c)}}return hi}))}))}cancelNavigationTransition(e,i,r){const o=new rl(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function GS(t){return t!==il}let WS=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===ve);return i}getResolvedTitleForRoute(e){return e.data[Qa]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(E7)},providedIn:"root"})}return t})(),E7=(()=>{class t extends WS{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(H(zw))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qS=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(x7)},providedIn:"root"})}return t})();class I7{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let x7=(()=>{class t extends I7{static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dd=new G("",{providedIn:"root",factory:()=>({})});let M7=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(k7)},providedIn:"root"})}return t})(),k7=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dl=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(dl||{});function KS(t,n){t.events.pipe(wt(e=>e instanceof Yi||e instanceof rl||e instanceof id||e instanceof vs),Se(e=>e instanceof Yi||e instanceof vs?dl.COMPLETE:e instanceof rl&&(0===e.code||1===e.code)?dl.REDIRECTING:dl.FAILED),wt(e=>e!==dl.REDIRECTING),wr(1)).subscribe(()=>{n()})}function O7(t){throw t}function A7(t,n,e){return n.parse("/")}const R7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},P7={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Cn=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=j(CC),this.isNgZoneEnabled=!1,this._events=new Oe,this.options=j(dd,{optional:!0})||{},this.pendingTasks=j(Gc),this.errorHandler=this.options.errorHandler||O7,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||A7,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=j(M7),this.routeReuseStrategy=j(qS),this.titleStrategy=j(WS),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=j(Ds,{optional:!0})?.flat()??[],this.navigationTransitions=j(ud),this.urlSerializer=j(Xa),this.location=j(Xc),this.componentInputBindingEnabled=!!j(od,{optional:!0}),this.eventsSubscription=new hn,this.isNgZoneEnabled=j(Te)instanceof Te&&Te.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ys,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=SS(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:r}=this.navigationTransitions;if(null===r)return void(ZS(i)&&this._events.next(i));if(i instanceof nd)GS(r.source)&&(this.browserUrlTree=r.extractedUrl);else if(i instanceof vs)this.rawUrlTree=r.rawUrl;else if(i instanceof CS){if("eager"===this.urlUpdateStrategy){if(!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl);this.setBrowserUrl(o,r)}this.browserUrlTree=r.urlAfterRedirects}}else if(i instanceof tm)this.currentUrlTree=r.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r),this.browserUrlTree=r.urlAfterRedirects);else if(i instanceof rl)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(r);else if(i instanceof nm){const o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),s={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||GS(r.source)};this.scheduleNavigation(o,il,null,s,{resolve:r.resolve,reject:r.reject,promise:r.promise})}i instanceof id&&this.restoreHistory(r,!0),i instanceof Yi&&(this.navigated=!0),ZS(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),il,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(um),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{d=fS(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return gS(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=io(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,il,null,i)}navigate(e,i={skipLocationChange:!1}){return function F7(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}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((d,m)=>{a=d,l=m});const u=this.pendingTasks.add();return KS(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}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))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ZS(t){return!(t instanceof tm||t instanceof nm)}let pd=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new Oe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Yi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),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(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function R1(t,n,e){return function n3(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?A1:Hn}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}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})}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cn),w(Ji),function Wl(t){return function wx(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new F,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Yi&&this.update()})}ngAfterContentInit(){oe(this.links.changes,oe(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Dt(e).pipe(uo()).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.router.navigated||queueMicrotask(()=>{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 L7(t){return!!t.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.links.some(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cn),w(Ue),w(xt),w(bt),w(pd,8))};static#t=this.\u0275dir=ne({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(1&i&&Vt(o,pd,5),2&i){let s;ce(s=ue())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ft]})}return t})();class QS{}let N7=(()=>{class t{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(wt(e=>e instanceof Yi),us(()=>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=Kh(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 Dt(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):oe(null);const o=r.pipe(vt(s=>null===s?oe(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Dt([o,this.loader.loadComponent(i)]).pipe(uo()):o})}static#e=this.\u0275fac=function(i){return new(i||t)(H(Cn),H(wC),H(xn),H(QS),H(fm))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const gm=new G("");let JS=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Yi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof vs&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof wS&&(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.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new wS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){!function bv(){throw new Error("invalid")}()};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function Xi(t,n){return{\u0275kind:t,\u0275providers:n}}function e2(){const t=j(yn);return n=>{const e=t.get(Ur);if(n!==e.components[0])return;const i=t.get(Cn),r=t.get(t2);1===t.get(mm)&&i.initialNavigation(),t.get(n2,null,Ce.Optional)?.setUpPreloading(),t.get(gm,null,Ce.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const t2=new G("",{factory:()=>new Oe}),mm=new G("",{providedIn:"root",factory:()=>1}),n2=new G("");function $7(t){return Xi(0,[{provide:n2,useExisting:N7},{provide:QS,useExisting:t}])}const r2=new G("ROUTER_FORROOT_GUARD"),U7=[Xc,{provide:Xa,useClass:Yg},Cn,ol,{provide:Ji,useFactory:function XS(t){return t.routerState.root},deps:[Cn]},fm,[]];function j7(){return new MC("Router",Cn)}let o2=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[U7,[],{provide:Ds,multi:!0,useValue:e},{provide:r2,useFactory:K7,deps:[[Cn,new Zl,new Yl]]},{provide:dd,useValue:i||{}},i?.useHash?{provide:Gr,useClass:AP}:{provide:Gr,useClass:ow},{provide:gm,useFactory:()=>{const t=j(ZF),n=j(Te),e=j(dd),i=j(ud),r=j(Xa);return e.scrollOffset&&t.setOffset(e.scrollOffset),new JS(r,i,t,n,e)}},i?.preloadingStrategy?$7(i.preloadingStrategy).\u0275providers:[],{provide:MC,multi:!0,useFactory:j7},i?.initialNavigation?Z7(i):[],i?.bindToComponentInputs?Xi(8,[MS,{provide:od,useExisting:MS}]).\u0275providers:[],[{provide:s2,useFactory:e2},{provide:yf,multi:!0,useExisting:s2}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ds,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(H(r2,8))};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})();function K7(t){return"guarded"}function Z7(t){return["disabled"===t.initialNavigation?Xi(3,[{provide:uf,multi:!0,useFactory:()=>{const n=j(Cn);return()=>{n.setUpLocationChangeListener()}}},{provide:mm,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Xi(2,[{provide:mm,useValue:0},{provide:uf,multi:!0,deps:[yn],useFactory:n=>{const e=n.get(kP,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(Cn),o=n.get(t2);KS(r,()=>{i(!0)}),n.get(ud).afterPreactivation=()=>(i(!0),o.closed?oe(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const s2=new G("");class V{static equals(n,e,i){return i?this.resolveFieldData(n,i)===this.resolveFieldData(e,i):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var o,s,a,i=Array.isArray(n),r=Array.isArray(e);if(i&&r){if((s=n.length)!=e.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(n[o],e[o]))return!1;return!0}if(i!=r)return!1;var l=this.isDate(n),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var u=n instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==e.toString();var m=Object.keys(n);if((s=m.length)!==Object.keys(e).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(n[a=m[o]],e[a]))return!1;return!0}return n!=n&&e!=e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(-1==e.indexOf("."))return n[e];{let i=e.split("."),r=n;for(let o=0,s=i.length;o=n.length&&(i%=n.length,e%=n.length),n.splice(i,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,i,r){if(i.length>0){let o=!1;for(let s=0;se){i.splice(s,0,n),o=!0;break}o||i.push(n)}else i.push(n)}static findIndexInList(n,e){let i=-1;if(e)for(let r=0;r-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}static isDate(n){return"[object Date]"===Object.prototype.toString.call(n)}static isEmpty(n){return null==n||""===n||Array.isArray(n)&&0===n.length||!this.isDate(n)&&"object"==typeof n&&0===Object.keys(n).length}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,e,i,r=1){let o=-1;const s=this.isEmpty(n),a=this.isEmpty(e);return o=s&&a?0:s?r:a?-r:"string"==typeof n&&"string"==typeof e?n.localeCompare(e,i,{numeric:!0}):ne?1:0,o}static sort(n,e,i=1,r,o=1){return(1===o?i:o)*V.compare(n,e,r,i)}static merge(n,e){if(null!=n||null!=e)return null!=n&&"object"!=typeof n||null!=e&&"object"!=typeof e?null!=n&&"string"!=typeof n||null!=e&&"string"!=typeof e?e||n:[n||"",e||""].join(" "):{...n||{},...e||{}}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&1===n.length&&n.match(/\S| /)}static getItemValue(n,...e){return this.isFunction(n)?n(...e):n}static findLastIndex(n,e){let i=-1;if(this.isNotEmpty(n))try{i=n.findLastIndex(e)}catch{i=n.lastIndexOf([...n].reverse().find(e))}return i}static findLast(n,e){let i;if(this.isNotEmpty(n))try{i=n.findLast(e)}catch{i=[...n].reverse().find(e)}return i}}var a2=0;function kt(t="pn_id_"){return`${t}${++a2}`}var jt=function Q7(){let t=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=t.length>0?t[t.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+2;return t.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{t=t.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const J7=["*"];let Gt=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),l2=(()=>class t{static AND="and";static OR="or"})(),c2=(()=>{class t{filter(e,i,r,o,s){let a=[];if(e)for(let l of e)for(let c of i){let u=V.resolveFieldData(l,c);if(this.filters[o](u,r,s)){a.push(l);break}}return a}filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r);return V.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==V.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===V.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r),s=V.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==s.indexOf(o,s.length-o.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;rnull==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()null==i||null!=e&&e.getTime()>i.getTime()};register(e,i){this.filters[e]=i}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_m=(()=>{class t{messageSource=new Oe;clearSource=new Oe;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),ym=(()=>{class t{clickSource=new Oe;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ro=(()=>{class t{ripple=!1;overlayOptions={};filterMatchModeOptions={text:[Gt.STARTS_WITH,Gt.CONTAINS,Gt.NOT_CONTAINS,Gt.ENDS_WITH,Gt.EQUALS,Gt.NOT_EQUALS],numeric:[Gt.EQUALS,Gt.NOT_EQUALS,Gt.LESS_THAN,Gt.LESS_THAN_OR_EQUAL_TO,Gt.GREATER_THAN,Gt.GREATER_THAN_OR_EQUAL_TO],date:[Gt.DATE_IS,Gt.DATE_IS_NOT,Gt.DATE_BEFORE,Gt.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new Oe;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=J({type:t,selectors:[["p-header"]],ngContentSelectors:J7,decls:1,vars:0,template:function(i,r){1&i&&(Hi(),ni(0))},encapsulation:2})}return t})(),Tt=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(i){return new(i||t)(w(si))};static \u0275dir=ne({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),lt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})(),Kn=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),E=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(M)return"relative"===getComputedStyle(M).getPropertyValue("position")?M:r(M.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+s+o.height>u.height?(_=a.top-m.top-o.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=s+a.top-m.top,e.style.transformOrigin="top");const C=a.left+o.width-u.width;b=o.width>u.width?-1*(a.left-m.left):C>0?a.left-m.left-C:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+o>m.height?(_=c.top+u-o,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+s>m.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+_>m&&(e.scrollTop=d+u-m+_)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!(i&&i.el&&i.el.nativeElement))throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)(o.offsetWidth||o.offsetHeight||o.getClientRects().length)&&r.push(o);return r}static getNextFocusableElement(e,i=!1){const r=t.getFocusableElements(e);let o=0;if(r&&r.length>0){const s=r.indexOf(r[0].ownerDocument.activeElement);i?o=-1==s||0===s?r.length-1:s-1:-1!=s&&s!==r.length-1&&(o=s+1)}return r[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,i){if(e){const r=e.getAttribute(i);return isNaN(r)?"true"===r||"false"===r?"true"===r:r:+r}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class vm{element;listener;scrollableParents;constructor(n,e=(()=>{})){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=E.getScrollableParents(this.element);for(let n=0;n{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=V.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=J({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[ze],ngContentSelectors:tV,decls:1,vars:0,template:function(i,r){1&i&&(Hi(),ni(0))},encapsulation:2,changeDetection:0})}return t})(),Ss=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),hd=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();function nV(t,n){if(1&t&&x(0,"span",11),2&t){const e=f(3);ee(e.accordion.collapseIcon),h("ngClass",e.iconClass),L("aria-hidden",!0)}}function iV(t,n){1&t&&x(0,"ChevronDownIcon",11),2&t&&(h("ngClass",f(3).iconClass),L("aria-hidden",!0))}function rV(t,n){if(1&t&&(W(0),g(1,nV,1,4,"span",9),g(2,iV,1,2,"ChevronDownIcon",10),q()),2&t){const e=f(2);p(1),h("ngIf",e.accordion.collapseIcon),p(1),h("ngIf",!e.accordion.collapseIcon)}}function oV(t,n){if(1&t&&x(0,"span",11),2&t){const e=f(3);ee(e.accordion.expandIcon),h("ngClass",e.iconClass),L("aria-hidden",!0)}}function sV(t,n){1&t&&x(0,"ChevronRightIcon",11),2&t&&(h("ngClass",f(3).iconClass),L("aria-hidden",!0))}function aV(t,n){if(1&t&&(W(0),g(1,oV,1,4,"span",9),g(2,sV,1,2,"ChevronRightIcon",10),q()),2&t){const e=f(2);p(1),h("ngIf",e.accordion.expandIcon),p(1),h("ngIf",!e.accordion.expandIcon)}}function lV(t,n){if(1&t&&(W(0),g(1,rV,3,2,"ng-container",3),g(2,aV,3,2,"ng-container",3),q()),2&t){const e=f();p(1),h("ngIf",e.selected),p(1),h("ngIf",!e.selected)}}function cV(t,n){}function uV(t,n){1&t&&g(0,cV,0,0,"ng-template")}function dV(t,n){if(1&t&&(v(0,"span",12),A(1),y()),2&t){const e=f();p(1),pe(" ",e.header," ")}}function pV(t,n){1&t&&Z(0)}function hV(t,n){1&t&&ni(0,1,["*ngIf","hasHeaderFacet"])}function fV(t,n){1&t&&Z(0)}function gV(t,n){if(1&t&&(W(0),g(1,fV,1,0,"ng-container",6),q()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.contentTemplate)}}const mV=["*",[["p-header"]]],_V=function(t){return{$implicit:t}},u2=function(t){return{transitionParams:t}},yV=function(t){return{value:"visible",params:t}},vV=function(t){return{value:"hidden",params:t}},bV=["*","p-header"],CV=["*"];let d2=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new F;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,i,r){this.el=i,this.changeDetector=r,this.accordion=e,this.id=kt()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let i=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:i});else{if(!this.accordion.multiple)for(var r=0;r0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(i){return new(i||t)(w(Ee(()=>p2)),w(Ue),w(bt))};static \u0275cmp=J({type:t,selectors:[["p-accordionTab"]],contentQueries:function(i,r,o){if(1&i&&(Vt(o,eV,4),Vt(o,Tt,4)),2&i){let s;ce(s=ue())&&(r.headerFacet=s),ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:bV,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(i,r){1&i&&(Hi(mV),v(0,"div",0)(1,"div",1)(2,"a",2),O("click",function(s){return r.toggle(s)})("keydown",function(s){return r.onKeydown(s)}),g(3,lV,3,2,"ng-container",3),g(4,uV,1,0,null,4),g(5,dV,2,1,"span",5),g(6,pV,1,0,"ng-container",6),g(7,hV,1,0,"ng-content",3),y()(),v(8,"div",7)(9,"div",8),ni(10),g(11,gV,2,1,"ng-container",3),y()()()),2&i&&(ii("p-accordion-tab-active",r.selected),h("ngClass",r.tabStyleClass)("ngStyle",r.tabStyle),L("data-pc-name","accordiontab"),p(1),ii("p-highlight",r.selected)("p-disabled",r.disabled),L("aria-level",r.headerAriaLevel)("data-p-disabled",r.disabled)("data-pc-section","header"),p(1),Nt(r.headerStyle),h("ngClass",r.headerStyleClass),L("tabindex",r.disabled?null:0)("id",r.getTabHeaderActionId(r.id))("aria-controls",r.getTabContentId(r.id))("aria-expanded",r.selected)("aria-disabled",r.disabled)("data-pc-section","headeraction"),p(1),h("ngIf",!r.iconTemplate),p(1),h("ngTemplateOutlet",r.iconTemplate)("ngTemplateOutletContext",te(35,_V,r.selected)),p(1),h("ngIf",!r.hasHeaderFacet),p(1),h("ngTemplateOutlet",r.headerTemplate),p(1),h("ngIf",r.hasHeaderFacet),p(1),h("@tabContent",r.selected?te(39,yV,te(37,u2,r.transitionOptions)):te(43,vV,te(41,u2,r.transitionOptions))),L("id",r.getTabContentId(r.id))("aria-hidden",!r.selected)("aria-labelledby",r.getTabHeaderActionId(r.id))("data-pc-section","toggleablecontent"),p(1),h("ngClass",r.contentStyleClass)("ngStyle",r.contentStyle),p(2),h("ngIf",r.contentTemplate&&(r.cache?r.loaded:r.selected)))},dependencies:function(){return[pt,Je,Ht,Bt,hd,Ss]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Yr("tabContent",[Ou("hidden",Ge({height:"0"})),Ou("visible",Ge({height:"*"})),pn("visible <=> hidden",[Jt("{{transitionParams}}")]),pn("void => *",Jt(0))])]},changeDetection:0})}return t})(),p2=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new F;onOpen=new F;activeIndexChange=new F;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,i){this.el=e,this.changeDetector=i}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const i=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);i?this.changeFocusedTab(i):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const i=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);i?this.changeFocusedTab(i):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const i=this.findFirstHeaderAction();this.changeFocusedTab(i),e.preventDefault()}changeFocusedTab(e){e&&(E.focus(e),this.selectOnFocus&&this.tabs.forEach((i,r)=>{let o=this.multiple?this._activeIndex.includes(r):r===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),i.id==e.id&&(i.selected=!i.selected,this._activeIndex.includes(r)?this._activeIndex=this._activeIndex.filter(s=>s!==r):this._activeIndex.push(r))):i.id==e.id?(i.selected=!i.selected,this._activeIndex=r):i.selected=!1,i.selectedChange.emit(o),this.activeIndexChange.emit(this._activeIndex),i.changeDetector.markForCheck()}))}findNextHeaderAction(e,i=!1){const o=E.findSingle(i?e:e.nextElementSibling,'[data-pc-section="header"]');return o?E.getAttribute(o,"data-p-disabled")?this.findNextHeaderAction(o.parentElement.parentElement):E.findSingle(o,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,i=!1){const o=E.findSingle(i?e:e.previousElementSibling,'[data-pc-section="header"]');return o?E.getAttribute(o,"data-p-disabled")?this.findPrevHeaderAction(o.parentElement.parentElement):E.findSingle(o,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const i=this.findLastHeaderAction();this.changeFocusedTab(i),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(i.selected){if(!this.multiple)return void(e=r);e.push(r)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(w(Ue),w(bt))};static \u0275cmp=J({type:t,selectors:[["p-accordion"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,d2,4),2&i){let s;ce(s=ue())&&(r.tabList=s)}},hostAttrs:[1,"p-element"],hostBindings:function(i,r){1&i&&O("keydown",function(s){return r.onKeydown(s)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:CV,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(i,r){1&i&&(Hi(),v(0,"div",0),ni(1),y()),2&i&&(ee(r.styleClass),h("ngClass","p-accordion p-component")("ngStyle",r.style))},dependencies:[pt,Bt],encapsulation:2,changeDetection:0})}return t})(),wV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,hd,Ss,lt]})}return t})(),pl=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),Es=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,i,r,o,s,a){this.document=e,this.platformId=i,this.renderer=r,this.el=o,this.zone=s,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){Wr(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let i=this.getInk();if(!i||"none"===this.document.defaultView?.getComputedStyle(i,null).display)return;if(E.removeClass(i,"p-ink-active"),!E.getHeight(i)&&!E.getWidth(i)){let a=Math.max(E.getOuterWidth(this.el.nativeElement),E.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=E.getOffset(this.el.nativeElement),o=e.pageX-r.left+this.document.body.scrollTop-E.getWidth(i)/2,s=e.pageY-r.top+this.document.body.scrollLeft-E.getHeight(i)/2;this.renderer.setStyle(i,"top",s+"px"),this.renderer.setStyle(i,"left",o+"px"),E.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&E.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let i=0;i{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();const Sr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let h2=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(Sr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,i){this.el=e,this.document=i}ngAfterViewInit(){E.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[Sr.button,Sr.component];return this.icon&&!this.label&&V.isEmpty(this.htmlElement.textContent)&&e.push(Sr.iconOnly),this.loading&&(e.push(Sr.disabled,Sr.loading),!this.icon&&this.label&&e.push(Sr.labelOnly),this.icon&&!this.label&&!V.isEmpty(this.htmlElement.textContent)&&e.push(Sr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&E.addClass(e,i);let r=this.getIconClass();r&&E.addMultipleClasses(e,r),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=E.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=E.findSingle(this.htmlElement,".p-button-icon"),i=E.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(i?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(i){return new(i||t)(w(Ue),w(rt))};static \u0275dir=ne({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),hl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,lt,pl,lt]})}return t})(),so=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();const RV=["cb"];function PV(t,n){1&t&&x(0,"span",10),2&t&&h("ngClass",f(3).checkboxIcon)}function FV(t,n){1&t&&x(0,"CheckIcon",11),2&t&&h("styleClass","p-checkbox-icon")}function LV(t,n){if(1&t&&(W(0),g(1,PV,1,1,"span",8),g(2,FV,1,1,"CheckIcon",9),q()),2&t){const e=f(2);p(1),h("ngIf",e.checkboxIcon),p(1),h("ngIf",!e.checkboxIcon)}}function NV(t,n){}function VV(t,n){1&t&&g(0,NV,0,0,"ng-template")}function BV(t,n){if(1&t&&(v(0,"span",12),g(1,VV,1,0,null,13),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.checkboxIconTemplate)}}function HV(t,n){if(1&t&&(W(0),g(1,LV,3,2,"ng-container",5),g(2,BV,2,1,"span",7),q()),2&t){const e=f();p(1),h("ngIf",!e.checkboxIconTemplate),p(1),h("ngIf",e.checkboxIconTemplate)}}const $V=function(t,n,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function zV(t,n){if(1&t){const e=B();v(0,"label",14),O("click",function(r){D(e);const o=f(),s=Xe(3);return S(o.onClick(r,s,!0))}),A(1),y()}if(2&t){const e=f();ee(e.labelStyleClass),h("ngClass",Un(5,$V,e.checked(),e.disabled,e.focused)),L("for",e.inputId),p(1),Y(e.label)}}const UV=function(t,n,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":n,"p-checkbox-focused":e}},jV=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-focus":e}},GV={provide:$t,useExisting:Ee(()=>bm),multi:!0};let bm=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new F;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!V.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:V.contains(this.value,this.model)}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-checkbox"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&Fe(RV,5),2&i){let o;ce(o=ue())&&(r.inputViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([GV])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(i,r){if(1&i){const o=B();v(0,"div",0)(1,"div",1)(2,"input",2,3),O("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()})("change",function(a){return r.handleChange(a)}),y()(),v(4,"div",4),O("click",function(a){D(o);const l=Xe(3);return S(r.onClick(a,l,!0))}),g(5,HV,3,2,"ng-container",5),y()(),g(6,zV,2,9,"label",6)}2&i&&(ee(r.styleClass),h("ngStyle",r.style)("ngClass",Un(18,UV,r.checked(),r.disabled,r.focused)),p(2),h("readonly",r.readonly)("value",r.value)("checked",r.checked())("disabled",r.disabled),L("id",r.inputId)("name",r.name)("tabindex",r.tabindex)("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("aria-checked",r.checked())("required",r.required),p(2),h("ngClass",Un(22,jV,r.checked(),r.disabled,r.focused)),p(1),h("ngIf",r.checked()),p(1),h("ngIf",r.label))},dependencies:function(){return[pt,Je,Ht,Bt,so]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),WV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,so,lt]})}return t})(),qV=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=E.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(i){return new(i||t)(w(Ue))};static \u0275dir=ne({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),KV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();const ZV=["overlay"],YV=["content"];function QV(t,n){1&t&&Z(0)}const JV=function(t,n,e){return{showTransitionParams:t,hideTransitionParams:n,transform:e}},XV=function(t){return{value:"visible",params:t}},eB=function(t){return{mode:t}},tB=function(t){return{$implicit:t}};function nB(t,n){if(1&t){const e=B();v(0,"div",1,3),O("click",function(r){return D(e),S(f(2).onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){return D(e),S(f(2).onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){return D(e),S(f(2).onOverlayContentAnimationDone(r))}),ni(2),g(3,QV,1,0,"ng-container",4),y()}if(2&t){const e=f(2);ee(e.contentStyleClass),h("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",te(11,XV,Un(7,JV,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),p(3),h("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",te(15,tB,te(13,eB,e.overlayMode)))}}const iB=function(t,n,e,i,r,o,s,a,l,c,u,d,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":n,"p-overlay-top":e,"p-overlay-top-start":i,"p-overlay-top-end":r,"p-overlay-bottom":o,"p-overlay-bottom-start":s,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":d,"p-overlay-right-start":m,"p-overlay-right-end":_}};function rB(t,n){if(1&t){const e=B();v(0,"div",1,2),O("click",function(r){return D(e),S(f().onOverlayClick(r))}),g(2,nB,4,17,"div",0),y()}if(2&t){const e=f();ee(e.styleClass),h("ngStyle",e.style)("ngClass",Bb(5,iB,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),p(2),h("ngIf",e.visible)}}const oB=["*"],sB={provide:$t,useExisting:Ee(()=>f2),multi:!0},aB=Au([Ge({transform:"{{transform}}",opacity:0}),Jt("{{showTransitionParams}}")]),lB=Au([Jt("{{hideTransitionParams}}",Ge({transform:"{{transform}}",opacity:0}))]);let f2=(()=>{class t{document;platformId;el;renderer;config;overlayService;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return V.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return V.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return V.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return V.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new F;onBeforeShow=new F;onShow=new F;onBeforeHide=new F;onHide=new F;onAnimationStart=new F;onAnimationDone=new F;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(Wr(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return E.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,i,r,o,s,a,l){this.document=e,this.platformId=i,this.el=r,this.renderer=o,this.config=s,this.overlayService=a,this.zone=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&E.focus(this.targetEl),this.modal&&E.addClass(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&E.focus(this.targetEl),this.modal&&E.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&E.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&jt.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),E.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&E.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(i,!0),this.bindListeners();break;case"void":this.hide(i,!0),this.unbindListeners(),E.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),jt.clear(i),this.modalVisible=!1}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vm(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const r=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&r}):r)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!E.isTouchDevice()}):!E.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{this.overlayOptions.hideOnEscape&&27===e.keyCode&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!E.isTouchDevice()}):!E.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(E.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),jt.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(w(rt),w($n),w(Ue),w(xt),w(ro),w(ym),w(Te))};static \u0275cmp=J({type:t,selectors:[["p-overlay"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(ZV,5),Fe(YV,5)),2&i){let o;ce(o=ue())&&(r.overlayViewChild=o.first),ce(o=ue())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Pe([sB])],ngContentSelectors:oB,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(Hi(),g(0,rB,3,20,"div",0)),2&i&&h("ngIf",r.modalVisible)},dependencies:[pt,Je,Ht,Bt],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Yr("overlayContentAnimation",[pn(":enter",[Ru(aB)]),pn(":leave",[Ru(lB)])])]},changeDetection:0})}return t})(),g2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,lt,lt]})}return t})();const cB=["element"],uB=["content"];function dB(t,n){1&t&&Z(0)}const Cm=function(t,n){return{$implicit:t,options:n}};function pB(t,n){if(1&t&&(W(0),g(1,dB,1,0,"ng-container",7),q()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",at(2,Cm,e.loadedItems,e.getContentOptions()))}}function hB(t,n){1&t&&Z(0)}function fB(t,n){if(1&t&&(W(0),g(1,hB,1,0,"ng-container",7),q()),2&t){const e=n.$implicit,i=n.index,r=f(3);p(1),h("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",at(2,Cm,e,r.getOptions(i)))}}const gB=function(t){return{"p-scroller-loading":t}};function mB(t,n){if(1&t&&(v(0,"div",8,9),g(2,fB,2,5,"ng-container",10),y()),2&t){const e=f(2);h("ngClass",te(4,gB,e.d_loading))("ngStyle",e.contentStyle),p(2),h("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function _B(t,n){1&t&&x(0,"div",11),2&t&&h("ngStyle",f(2).spacerStyle)}function yB(t,n){1&t&&Z(0)}const vB=function(t){return{numCols:t}},m2=function(t){return{options:t}};function bB(t,n){if(1&t&&(W(0),g(1,yB,1,0,"ng-container",7),q()),2&t){const e=n.index,i=f(4);p(1),h("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",te(4,m2,i.getLoaderOptions(e,i.both&&te(2,vB,i._numItemsInViewport.cols))))}}function CB(t,n){if(1&t&&(W(0),g(1,bB,2,6,"ng-container",14),q()),2&t){const e=f(3);p(1),h("ngForOf",e.loaderArr)}}function wB(t,n){1&t&&Z(0)}const TB=function(){return{styleClass:"p-scroller-loading-icon"}};function DB(t,n){if(1&t&&(W(0),g(1,wB,1,0,"ng-container",7),q()),2&t){const e=f(4);p(1),h("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",te(3,m2,$i(2,TB)))}}function SB(t,n){1&t&&x(0,"SpinnerIcon",16),2&t&&h("styleClass","p-scroller-loading-icon")}function EB(t,n){if(1&t&&(g(0,DB,2,5,"ng-container",0),g(1,SB,1,1,"ng-template",null,15,ai)),2&t){const e=Xe(2);h("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const IB=function(t){return{"p-component-overlay":t}};function xB(t,n){if(1&t&&(v(0,"div",12),g(1,CB,2,1,"ng-container",0),g(2,EB,3,2,"ng-template",null,13,ai),y()),2&t){const e=Xe(3),i=f(2);h("ngClass",te(3,IB,!i.loaderTemplate)),p(1),h("ngIf",i.loaderTemplate)("ngIfElse",e)}}const MB=function(t,n,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":n,"p-horizontal-scroll":e}};function kB(t,n){if(1&t){const e=B();W(0),v(1,"div",2,3),O("scroll",function(r){return D(e),S(f().onContainerScroll(r))}),g(3,pB,2,5,"ng-container",0),g(4,mB,3,6,"ng-template",null,4,ai),g(6,_B,1,1,"div",5),g(7,xB,4,5,"div",6),y(),q()}if(2&t){const e=Xe(5),i=f();p(1),ee(i._styleClass),h("ngStyle",i._style)("ngClass",Un(10,MB,i.inline,i.both,i.horizontal)),L("id",i._id)("tabindex",i.tabindex),p(2),h("ngIf",i.contentTemplate)("ngIfElse",e),p(3),h("ngIf",i._showSpacer),p(1),h("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function OB(t,n){1&t&&Z(0)}const AB=function(t,n){return{rows:t,columns:n}};function RB(t,n){if(1&t&&(W(0),g(1,OB,1,0,"ng-container",7),q()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",at(5,Cm,e.items,at(2,AB,e._items,e.loadedColumns)))}}function PB(t,n){if(1&t&&(ni(0),g(1,RB,2,8,"ng-container",17)),2&t){const e=f();p(1),h("ngIf",e.contentTemplate)}}const FB=["*"];let _2=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}onLazyLoad=new F;onScroll=new F;onScrollIndexChange=new F;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,i,r,o,s){this.document=e,this.platformId=i,this.renderer=r,this.cd=o,this.zone=s}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Wr(this.platformId)&&E.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=E.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=E.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=E.getWidth(this.contentEl),this.defaultContentHeight=E.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||E.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),o=this.getContentPosition(),s=(u=0,d)=>u<=d?0:u,a=(u,d,m)=>u*d+m,l=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:i});let c=0;this.both?(c={rows:s(e[0],r[0]),cols:s(e[1],r[1])},l(a(c.cols,this._itemSize[1],o.left),a(c.rows,this._itemSize[0],o.top))):(c=s(e,r),this.horizontal?l(a(c,this._itemSize,o.left),0):l(0,a(c,this._itemSize,o.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,i,r="auto"){if(i){const{first:o,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(o,s)=>Math.floor(o/(s||o));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?s:o,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,i]=[E.getWidth(this.contentEl),E.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[r,o]=[E.getWidth(this.elementViewChild.nativeElement),E.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=rthis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(o||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),o=(T,M)=>T?T>M?T-M:T:0,s=(T,M)=>Math.floor(T/(M||T)),a=(T,M,I,P,N,X)=>T<=N?N:X?I-P-N:M+N-1,l=(T,M,I,P,N,X,be)=>T<=X?0:Math.max(0,be?TM?I:T-2*X),c=(T,M,I,P,N,X=!1)=>{let be=M+P+2*N;return T>=N&&(be+=N+1),this.getLast(be,X)},u=o(i.scrollTop,r.top),d=o(i.scrollLeft,r.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,C=this.lastScrollPos;if(this.both){const T=this.lastScrollPos.top<=u,M=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(T||M)){const I={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},P={rows:a(I.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],T),cols:a(I.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],M)};m={rows:l(I.rows,P.rows,this.first.rows,0,0,this.d_numToleratedItems[0],T),cols:l(I.cols,P.cols,this.first.cols,0,0,this.d_numToleratedItems[1],M)},_={rows:c(I.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(I.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,C={top:u,left:d}}}else{const T=this.horizontal?d:u,M=this.lastScrollPos<=T;if(!this._appendOnly||this._appendOnly&&M){const I=s(T,this._itemSize);m=l(I,a(I,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,M),this.first,0,0,this.d_numToleratedItems,M),_=c(I,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,C=T}}return{first:m,last:_,isRangeChanged:b,scrollPos:C}}onScrollChange(e){const{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){const a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){Wr(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,i=E.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(E.isVisible(this.elementViewChild?.nativeElement)){const[e,i]=[E.getWidth(this.elementViewChild?.nativeElement),E.getHeight(this.elementViewChild?.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=E.getWidth(this.contentEl),this.defaultContentHeight=E.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}static \u0275fac=function(i){return new(i||t)(w(rt),w($n),w(xt),w(bt),w(Te))};static \u0275cmp=J({type:t,selectors:[["p-scroller"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(cB,5),Fe(uB,5)),2&i){let o;ce(o=ue())&&(r.elementViewChild=o.first),ce(o=ue())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Ft],ngContentSelectors:FB,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(i,r){if(1&i&&(Hi(),g(0,kB,8,14,"ng-container",0),g(1,PB,2,1,"ng-template",null,1,ai)),2&i){const o=Xe(2);h("ngIf",!r._disabled)("ngIfElse",o)}},dependencies:function(){return[pt,Wi,Je,Ht,Bt,pl]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),fd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,lt,pl,lt]})}return t})(),LB=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:kt()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,i,r,o,s,a){this.platformId=e,this.el=i,this.zone=r,this.config=o,this.renderer=s,this.viewContainer=a}ngAfterViewInit(){Wr(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(E.hasClass(e.target,"p-tooltip")||E.hasClass(e.target,"p-tooltip-arrow")||E.hasClass(e.target,"p-tooltip-text")||E.hasClass(e.relatedTarget,"p-tooltip")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?E.appendChild(this.container,this.el.nativeElement):E.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",i=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),E.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?jt.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&jt.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof si){const i=this.viewContainer.createEmbeddedView(e);i.detectChanges(),i.rootNodes.forEach(r=>this.tooltipText.appendChild(r))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+E.getWindowScrollLeft(),top:e.top+E.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+E.getOuterWidth(this.el.nativeElement),r=e.top+(E.getOuterHeight(this.el.nativeElement)-E.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-E.getOuterWidth(this.container),r=e.top+(E.getOuterHeight(this.el.nativeElement)-E.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(E.getOuterWidth(this.el.nativeElement)-E.getOuterWidth(this.container))/2,r=e.top-E.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(E.getOuterWidth(this.el.nativeElement)-E.getOuterWidth(this.container))/2,r=e.top+E.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return E.hasClass(e,"p-inputwrapper")?E.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,o=E.getOuterWidth(this.container),s=E.getOuterHeight(this.container),a=E.getViewport();return r+o>a.width||r<0||i<0||i+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vm(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):E.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&jt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(i){return new(i||t)(w($n),w(Ue),w(Te),w(ro),w(xt),w(jn))};static \u0275dir=ne({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(i,r){1&i&&O("keydown.escape",function(s){return r.onPressEscape(s)},0,sv)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Ft]})}return t})(),NB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})(),Zn=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),y2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})();function VB(t,n){if(1&t&&(v(0,"span"),A(1),y()),2&t){const e=f();let i;p(1),Y(null!==(i=e.label)&&void 0!==i?i:"empty")}}function BB(t,n){1&t&&Z(0)}const fl=function(t){return{height:t}},HB=function(t,n){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":n}},wm=function(t){return{$implicit:t}},$B=["container"],zB=["filter"],UB=["in"],jB=["editableInput"],GB=["items"],WB=["scroller"],qB=["overlay"];function KB(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(2);p(1),Y(e.label||"empty")}}function ZB(t,n){1&t&&Z(0)}const YB=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function QB(t,n){if(1&t&&(v(0,"span",14),g(1,KB,2,1,"ng-container",8),g(2,ZB,1,0,"ng-container",15),y()),2&t){const e=f();h("ngClass",te(9,YB,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),L("id",e.labelId),p(1),h("ngIf",!e.selectedItemTemplate),p(1),h("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",te(11,wm,e.selectedOption))}}const JB=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function XB(t,n){if(1&t&&(v(0,"span",16),A(1),y()),2&t){const e=f();h("ngClass",te(2,JB,null==e.placeholder||0===e.placeholder.length)),p(1),Y(e.placeholder||"empty")}}function eH(t,n){if(1&t){const e=B();v(0,"input",17,18),O("input",function(r){return D(e),S(f().onEditableInputChange(r))})("focus",function(r){return D(e),S(f().onEditableInputFocus(r))})("blur",function(r){return D(e),S(f().onInputBlur(r))}),y()}if(2&t){const e=f();h("disabled",e.disabled),L("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function tH(t,n){if(1&t){const e=B();v(0,"TimesIcon",21),O("click",function(r){return D(e),S(f(2).clear(r))}),y()}2&t&&h("styleClass","p-dropdown-clear-icon")}function nH(t,n){}function iH(t,n){1&t&&g(0,nH,0,0,"ng-template")}function rH(t,n){if(1&t){const e=B();v(0,"span",22),O("click",function(r){return D(e),S(f(2).clear(r))}),g(1,iH,1,0,null,23),y()}if(2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.clearIconTemplate)}}function oH(t,n){if(1&t&&(W(0),g(1,tH,1,1,"TimesIcon",19),g(2,rH,2,1,"span",20),q()),2&t){const e=f();p(1),h("ngIf",!e.clearIconTemplate),p(1),h("ngIf",e.clearIconTemplate)}}function sH(t,n){1&t&&x(0,"span",26),2&t&&h("ngClass",f(2).dropdownIcon)}function aH(t,n){1&t&&x(0,"ChevronDownIcon",27),2&t&&h("styleClass","p-dropdown-trigger-icon")}function lH(t,n){if(1&t&&(W(0),g(1,sH,1,1,"span",24),g(2,aH,1,1,"ChevronDownIcon",25),q()),2&t){const e=f();p(1),h("ngIf",e.dropdownIcon),p(1),h("ngIf",!e.dropdownIcon)}}function cH(t,n){}function uH(t,n){1&t&&g(0,cH,0,0,"ng-template")}function dH(t,n){if(1&t&&(v(0,"span",28),g(1,uH,1,0,null,23),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dropdownIconTemplate)}}function pH(t,n){1&t&&Z(0)}function hH(t,n){1&t&&Z(0)}const v2=function(t){return{options:t}};function fH(t,n){if(1&t&&(W(0),g(1,hH,1,0,"ng-container",15),q()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",te(2,v2,e.filterOptions))}}function gH(t,n){1&t&&x(0,"SearchIcon",27),2&t&&h("styleClass","p-dropdown-filter-icon")}function mH(t,n){}function _H(t,n){1&t&&g(0,mH,0,0,"ng-template")}function yH(t,n){if(1&t&&(v(0,"span",41),g(1,_H,1,0,null,23),y()),2&t){const e=f(4);p(1),h("ngTemplateOutlet",e.filterIconTemplate)}}function vH(t,n){if(1&t){const e=B();v(0,"div",37)(1,"input",38,39),O("keydown.enter",function(r){return r.preventDefault()})("keydown",function(r){return D(e),S(f(3).onKeydown(r,!1))})("input",function(r){return D(e),S(f(3).onFilterInputChange(r))}),y(),g(3,gH,1,1,"SearchIcon",25),g(4,yH,2,1,"span",40),y()}if(2&t){const e=f(3);p(1),h("value",e.filterValue||""),L("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId),p(2),h("ngIf",!e.filterIconTemplate),p(1),h("ngIf",e.filterIconTemplate)}}function bH(t,n){if(1&t&&(v(0,"div",34),O("click",function(i){return i.stopPropagation()}),g(1,fH,2,4,"ng-container",35),g(2,vH,5,6,"ng-template",null,36,ai),y()),2&t){const e=Xe(3),i=f(2);p(1),h("ngIf",i.filterTemplate)("ngIfElse",e)}}function CH(t,n){1&t&&Z(0)}const b2=function(t,n){return{$implicit:t,options:n}};function wH(t,n){if(1&t&&g(0,CH,1,0,"ng-container",15),2&t){const e=n.$implicit,i=n.options;f(2),h("ngTemplateOutlet",Xe(7))("ngTemplateOutletContext",at(2,b2,e,i))}}function TH(t,n){1&t&&Z(0)}function DH(t,n){if(1&t&&g(0,TH,1,0,"ng-container",15),2&t){const e=n.options;h("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",te(2,v2,e))}}function SH(t,n){1&t&&(W(0),g(1,DH,1,4,"ng-template",44),q())}function EH(t,n){if(1&t){const e=B();v(0,"p-scroller",42,43),O("onLazyLoad",function(r){return D(e),S(f(2).onLazyLoad.emit(r))}),g(2,wH,1,5,"ng-template",13),g(3,SH,2,0,"ng-container",8),y()}if(2&t){const e=f(2);Nt(te(8,fl,e.scrollHeight)),h("items",e.optionsToDisplay)("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),p(3),h("ngIf",e.loaderTemplate)}}function IH(t,n){1&t&&Z(0)}const xH=function(){return{}};function MH(t,n){if(1&t&&(W(0),g(1,IH,1,0,"ng-container",15),q()),2&t){f();const e=Xe(7),i=f();p(1),h("ngTemplateOutlet",e)("ngTemplateOutletContext",at(3,b2,i.optionsToDisplay,$i(2,xH)))}}function kH(t,n){if(1&t&&(v(0,"span"),A(1),y()),2&t){const e=f().$implicit,i=f(4);p(1),Y(i.getOptionGroupLabel(e)||"empty")}}function OH(t,n){1&t&&Z(0)}function AH(t,n){1&t&&Z(0)}const C2=function(t,n){return{$implicit:t,selectedOption:n}};function RH(t,n){if(1&t&&(v(0,"li",50),g(1,kH,2,1,"span",8),g(2,OH,1,0,"ng-container",15),y(),g(3,AH,1,0,"ng-container",15)),2&t){const e=n.$implicit,i=f(2).options,r=Xe(5),o=f(2);h("ngStyle",te(6,fl,i.itemSize+"px")),p(1),h("ngIf",!o.groupTemplate),p(1),h("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",te(8,wm,e)),p(1),h("ngTemplateOutlet",r)("ngTemplateOutletContext",at(10,C2,o.getOptionGroupChildren(e),o.selectedOption))}}function PH(t,n){if(1&t&&(W(0),g(1,RH,4,13,"ng-template",49),q()),2&t){const e=f().$implicit;p(1),h("ngForOf",e)}}function FH(t,n){1&t&&Z(0)}function LH(t,n){if(1&t&&(W(0),g(1,FH,1,0,"ng-container",15),q()),2&t){const e=f().$implicit,i=Xe(5),r=f(2);p(1),h("ngTemplateOutlet",i)("ngTemplateOutletContext",at(2,C2,e,r.selectedOption))}}function NH(t,n){if(1&t){const e=B();v(0,"p-dropdownItem",51),O("onClick",function(r){return D(e),S(f(4).onItemClick(r))}),y()}if(2&t){const e=n.$implicit,i=f().selectedOption,r=f(3);h("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function VH(t,n){1&t&&g(0,NH,1,5,"ng-template",49),2&t&&h("ngForOf",n.$implicit)}function BH(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(4);p(1),pe(" ",e.emptyFilterMessageLabel," ")}}function HH(t,n){1&t&&Z(0,null,53)}function $H(t,n){if(1&t&&(v(0,"li",52),g(1,BH,2,1,"ng-container",35),g(2,HH,2,0,"ng-container",23),y()),2&t){const e=f().options,i=f(2);h("ngStyle",te(4,fl,e.itemSize+"px")),p(1),h("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),p(1),h("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function zH(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(4);p(1),pe(" ",e.emptyMessageLabel," ")}}function UH(t,n){1&t&&Z(0,null,54)}function jH(t,n){if(1&t&&(v(0,"li",52),g(1,zH,2,1,"ng-container",35),g(2,UH,2,0,"ng-container",23),y()),2&t){const e=f().options,i=f(2);h("ngStyle",te(4,fl,e.itemSize+"px")),p(1),h("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),p(1),h("ngTemplateOutlet",i.emptyTemplate)}}function GH(t,n){if(1&t&&(v(0,"ul",45,46),g(2,PH,2,1,"ng-container",8),g(3,LH,2,5,"ng-container",8),g(4,VH,1,1,"ng-template",null,47,ai),g(6,$H,3,6,"li",48),g(7,jH,3,6,"li",48),y()),2&t){const e=n.options,i=f(2);Nt(e.contentStyle),h("ngClass",e.contentStyleClass),L("id",i.listId),p(2),h("ngIf",i.group),p(1),h("ngIf",!i.group),p(3),h("ngIf",i.filterValue&&i.isEmpty()),p(1),h("ngIf",!i.filterValue&&i.isEmpty())}}function WH(t,n){1&t&&Z(0)}function qH(t,n){if(1&t&&(v(0,"div",29),g(1,pH,1,0,"ng-container",23),g(2,bH,4,2,"div",30),v(3,"div",31),g(4,EH,4,10,"p-scroller",32),g(5,MH,2,6,"ng-container",8),g(6,GH,8,8,"ng-template",null,33,ai),y(),g(8,WH,1,0,"ng-container",23),y()),2&t){const e=f();ee(e.panelStyleClass),h("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),p(1),h("ngTemplateOutlet",e.headerTemplate),p(1),h("ngIf",e.filter),p(1),Fc("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),p(1),h("ngIf",e.virtualScroll),p(1),h("ngIf",!e.virtualScroll),p(3),h("ngTemplateOutlet",e.footerTemplate)}}const KH=function(t,n,e,i){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":n,"p-focus":e,"p-dropdown-clearable":i}},ZH={provide:$t,useExisting:Ee(()=>Tm),multi:!0};let YH=(()=>{class t{option;selected;label;disabled;visible;itemSize;template;onClick=new F;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=J({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(v(0,"li",0),O("click",function(s){return r.onOptionClick(s)}),g(1,VB,2,1,"span",1),g(2,BB,1,0,"ng-container",2),y()),2&i&&(h("ngStyle",te(8,fl,r.itemSize+"px"))("id",r.selected?"p-highlighted-option":"")("ngClass",at(10,HB,r.selected,r.disabled)),L("aria-label",r.label)("aria-selected",r.selected),p(1),h("ngIf",!r.template),p(1),h("ngTemplateOutlet",r.template)("ngTemplateOutletContext",te(13,wm,r.option)))},dependencies:[pt,Je,Ht,Bt,Es],encapsulation:2})}return t})(),Tm=(()=>{class t{el;renderer;cd;zone;filterService;config;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel;optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}get options(){return this._options}set options(e){this._options=e,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&V.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}onChange=new F;onFilter=new F;onFocus=new F;onBlur=new F;onClick=new F;onShow=new F;onHide=new F;onClear=new F;onLazyLoad=new F;containerViewChild;filterViewChild;accessibleViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;selectedOption;_options;value;onModelChange=()=>{};onModelTouched=()=>{};optionsToDisplay;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue;searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;id=kt();labelId;listId;constructor(e,i,r,o,s,a){this.el=e,this.renderer=i,this.cd=r,this.zone=o,this.filterService=s,this.config=a}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return"number"==typeof this.selectedOption&&(this.selectedOption=this.selectedOption.toString()),this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Kn.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Kn.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.value?!!this.value:this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?V.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?V.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const i=e.option;this.isOptionDisabled(i)||(this.selectItem(e.originalEvent,i),this.accessibleViewChild?.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(e,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=E.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&E.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.updateSelectedOption(e),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.getOptionGroupChildren(this.optionsToDisplay[0])[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onMouseclick(e){this.disabled||this.readonly||this.isInputClick(e)||(this.onClick.emit(e),this.accessibleViewChild?.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}isInputClick(e){const i=e.target;return E.hasClass(i,"p-dropdown-clear-icon")||null!==i.closest(".p-dropdown-clear-icon")||i.isSameNode(this.accessibleViewChild?.nativeElement)||this.editableInputViewChild&&i.isSameNode(this.editableInputViewChild.nativeElement)}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputFocus(e){this.focused=!0,this.hide(),this.onFocus.emit(e)}onEditableInputChange(e){this.value=e.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=E.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==i&&this.scroller?.scrollToIndex(i)}else{let i=E.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e-1;0<=r;r--){let o=this.optionsToDisplay[r];if(!this.isOptionDisabled(o)){i=o;break}}if(!i)for(let r=this.optionsToDisplay.length-1;r>=e;r--){let o=this.optionsToDisplay[r];if(!this.isOptionDisabled(o)){i=o;break}}}return i}findNextEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e+1;r0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findNextEnabledOption(r);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 38:if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let o=r.itemIndex-1;if(o>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[o]),this.selectedOptionUpdated=!0;else if(o<0){let s=this.optionsToDisplay[r.groupIndex-1];s&&(this.selectItem(e,this.getOptionGroupChildren(s)[this.getOptionGroupChildren(s).length-1]),this.selectedOptionUpdated=!0)}}}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findPrevEnabledOption(r);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case 27:case 9:this.hide(),e.preventDefault();break;default:i&&!e.metaKey&&17!==e.which&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=e.key;let r;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+i:i,this.group){let o=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};r=this.searchOptionWithinGroup(o)}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;r=this.searchOption(++o)}r&&!this.isOptionDisabled(r)&&(this.selectItem(e,r),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let i;return this.searchValue&&(i=this.searchOptionInRange(e,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,e))),i}searchOptionInRange(e,i){for(let r=e;r{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,g2,lt,NB,oo,fd,KV,Zn,Ss,y2,g2,lt,fd]})}return t})(),md=(()=>{class t{el;ngModel;cd;filled;constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(i){return new(i||t)(w(Ue),w(gs,8),w(bt))};static \u0275dir=ne({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(i,r){1&i&&O("input",function(s){return r.onInput(s)}),2&i&&ii("p-filled",r.filled)}})}return t})(),Dm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();function QH(t,n){1&t&&Z(0)}function JH(t,n){1&t&&x(0,"TimesIcon",11),2&t&&(h("styleClass","p-sidebar-close-icon"),L("data-pc-section","closeicon"))}function XH(t,n){}function e$(t,n){1&t&&g(0,XH,0,0,"ng-template")}function t$(t,n){if(1&t&&(v(0,"span",12),g(1,e$,1,0,null,4),y()),2&t){const e=f(3);L("data-pc-section","closeicon"),p(1),h("ngTemplateOutlet",e.closeIconTemplate)}}function n$(t,n){if(1&t){const e=B();v(0,"button",8),O("click",function(r){return D(e),S(f(2).close(r))})("keydown.enter",function(r){return D(e),S(f(2).close(r))}),g(1,JH,1,2,"TimesIcon",9),g(2,t$,2,2,"span",10),y()}if(2&t){const e=f(2);L("aria-label",e.ariaCloseLabel)("data-pc-section","closebutton")("data-pc-group-section","iconcontainer"),p(1),h("ngIf",!e.closeIconTemplate),p(1),h("ngIf",e.closeIconTemplate)}}function i$(t,n){1&t&&Z(0)}function r$(t,n){1&t&&Z(0)}const o$=function(t,n,e,i,r,o){return{"p-sidebar":!0,"p-sidebar-active":t,"p-sidebar-left":n,"p-sidebar-right":e,"p-sidebar-top":i,"p-sidebar-bottom":r,"p-sidebar-full":o}},s$=function(t,n){return{transform:t,transition:n}},a$=function(t){return{value:"visible",params:t}};function l$(t,n){if(1&t){const e=B();v(0,"div",1,2),O("@panelState.start",function(r){return D(e),S(f().onAnimationStart(r))})("@panelState.done",function(r){return D(e),S(f().onAnimationEnd(r))})("keydown",function(r){return D(e),S(f().onKeyDown(r))}),v(2,"div",3),g(3,QH,1,0,"ng-container",4),g(4,n$,3,5,"button",5),y(),v(5,"div",6),ni(6),g(7,i$,1,0,"ng-container",4),y(),v(8,"div",7),g(9,r$,1,0,"ng-container",4),y()()}if(2&t){const e=f();ee(e.styleClass),h("ngClass",zr(15,o$,e.visible,"left"===e.position&&!e.fullScreen,"right"===e.position&&!e.fullScreen,"top"===e.position&&!e.fullScreen,"bottom"===e.position&&!e.fullScreen,e.fullScreen))("@panelState",te(25,a$,at(22,s$,e.transformOptions,e.transitionOptions)))("ngStyle",e.style),L("data-pc-name","sidebar")("data-pc-section","root")("aria-modal",e.modal),p(2),L("data-pc-section","header"),p(1),h("ngTemplateOutlet",e.headerTemplate),p(1),h("ngIf",e.showCloseIcon),p(1),L("data-pc-section","content"),p(2),h("ngTemplateOutlet",e.contentTemplate),p(1),L("data-pc-section","footer"),p(1),h("ngTemplateOutlet",e.footerTemplate)}}const c$=["*"],u$=Au([Ge({transform:"{{transform}}",opacity:0}),Jt("{{transition}}")]),d$=Au([Jt("{{transition}}",Ge({transform:"{{transform}}",opacity:0}))]);let p$=(()=>{class t{document;el;renderer;cd;config;appendTo;blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){switch(this._position=e,e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)"}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}templates;onShow=new F;onHide=new F;visibleChange=new F;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;contentTemplate;headerTemplate;footerTemplate;closeIconTemplate;constructor(e,i,r,o,s){this.document=e,this.el=i,this.renderer=r,this.cd=o,this.config=s}ngAfterViewInit(){this.initialized=!0}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template}})}onKeyDown(e){"Escape"===e.code&&this.hide()}show(){this.autoZIndex&&jt.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(this.container.style.zIndex)-1)),E.addMultipleClasses(this.mask,"p-component-overlay p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",e=>{this.dismissible&&this.close(e)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&E.blockBodyScroll())}disableModality(){this.mask&&(E.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&E.unblockBodyScroll(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener())}onAnimationEnd(e){"void"===e.toState&&(this.hide(!1),jt.clear(this.container),this.unbindGlobalListeners())}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):E.appendChild(this.container,this.appendTo))}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"keydown",i=>{27==i.which&&parseInt(this.container.style.zIndex)===jt.get(this.container)&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&jt.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=function(i){return new(i||t)(w(rt),w(Ue),w(xt),w(bt),w(ro))};static \u0275cmp=J({type:t,selectors:[["p-sidebar"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{appendTo:"appendTo",blockScroll:"blockScroll",style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",modal:"modal",dismissible:"dismissible",showCloseIcon:"showCloseIcon",closeOnEscape:"closeOnEscape",transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},ngContentSelectors:c$,decls:1,vars:1,consts:[["role","complementary",3,"ngClass","ngStyle","class","keydown",4,"ngIf"],["role","complementary",3,"ngClass","ngStyle","keydown"],["container",""],[1,"p-sidebar-header"],[4,"ngTemplateOutlet"],["type","button","class","p-sidebar-close p-sidebar-icon p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[1,"p-sidebar-content"],[1,"p-sidebar-footer"],["type","button","pRipple","",1,"p-sidebar-close","p-sidebar-icon","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],["class","p-sidebar-close-icon",4,"ngIf"],[3,"styleClass"],[1,"p-sidebar-close-icon"]],template:function(i,r){1&i&&(Hi(),g(0,l$,10,27,"div",0)),2&i&&h("ngIf",r.visible)},dependencies:function(){return[pt,Je,Ht,Bt,Es,Zn]},styles:["@layer primeng{.p-sidebar{position:fixed;transition:transform .3s;display:flex;flex-direction:column}.p-sidebar-content{position:relative;overflow-y:auto;flex-grow:1}.p-sidebar-header{display:flex;align-items:center}.p-sidebar-footer{margin-top:auto}.p-sidebar-icon{display:flex;align-items:center;justify-content:center;margin-left:auto}.p-sidebar-left{top:0;left:0;width:20rem;height:100%}.p-sidebar-right{top:0;right:0;width:20rem;height:100%}.p-sidebar-top{top:0;left:0;width:100%;height:10rem}.p-sidebar-bottom{bottom:0;left:0;width:100%;height:10rem}.p-sidebar-full{width:100%;height:100%;top:0;left:0;transition:none}.p-sidebar-left.p-sidebar-sm,.p-sidebar-right.p-sidebar-sm{width:20rem}.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-md{width:40rem}.p-sidebar-left.p-sidebar-lg,.p-sidebar-right.p-sidebar-lg{width:60rem}.p-sidebar-top.p-sidebar-sm,.p-sidebar-bottom.p-sidebar-sm{height:10rem}.p-sidebar-top.p-sidebar-md,.p-sidebar-bottom.p-sidebar-md{height:20rem}.p-sidebar-top.p-sidebar-lg,.p-sidebar-bottom.p-sidebar-lg{height:30rem}@media screen and (max-width: 64em){.p-sidebar-left.p-sidebar-lg,.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-lg,.p-sidebar-right.p-sidebar-md{width:20rem}}}\n"],encapsulation:2,data:{animation:[Yr("panelState",[pn("void => visible",[Ru(u$)]),pn("visible => void",[Ru(d$)])])]},changeDetection:0})}return t})(),h$=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,lt,Zn,lt]})}return t})(),w2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),T2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),D2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();const f$=["container"],g$=["inputfield"],m$=["contentWrapper"];function _$(t,n){if(1&t){const e=B();v(0,"TimesIcon",10),O("click",function(){return D(e),S(f(3).clear())}),y()}2&t&&h("styleClass","p-calendar-clear-icon")}function y$(t,n){}function v$(t,n){1&t&&g(0,y$,0,0,"ng-template")}function b$(t,n){if(1&t){const e=B();v(0,"span",11),O("click",function(){return D(e),S(f(3).clear())}),g(1,v$,1,0,null,12),y()}if(2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.clearIconTemplate)}}function C$(t,n){if(1&t&&(W(0),g(1,_$,1,1,"TimesIcon",8),g(2,b$,2,1,"span",9),q()),2&t){const e=f(2);p(1),h("ngIf",!e.clearIconTemplate),p(1),h("ngIf",e.clearIconTemplate)}}function w$(t,n){1&t&&x(0,"span",15),2&t&&h("ngClass",f(3).icon)}function T$(t,n){1&t&&x(0,"CalendarIcon")}function D$(t,n){}function S$(t,n){1&t&&g(0,D$,0,0,"ng-template")}function E$(t,n){if(1&t&&(W(0),g(1,T$,1,0,"CalendarIcon",6),g(2,S$,1,0,null,12),q()),2&t){const e=f(3);p(1),h("ngIf",!e.triggerIconTemplate),p(1),h("ngTemplateOutlet",e.triggerIconTemplate)}}function I$(t,n){if(1&t){const e=B();v(0,"button",13),O("click",function(r){D(e),f();const o=Xe(1);return S(f().onButtonClick(r,o))}),g(1,w$,1,1,"span",14),g(2,E$,3,2,"ng-container",6),y()}if(2&t){const e=f(2);h("disabled",e.disabled),L("aria-label",e.iconAriaLabel),p(1),h("ngIf",e.icon),p(1),h("ngIf",!e.icon)}}function x$(t,n){if(1&t){const e=B();v(0,"input",4,5),O("focus",function(r){return D(e),S(f().onInputFocus(r))})("keydown",function(r){return D(e),S(f().onInputKeydown(r))})("click",function(){return D(e),S(f().onInputClick())})("blur",function(r){return D(e),S(f().onInputBlur(r))})("input",function(r){return D(e),S(f().onUserInput(r))}),y(),g(2,C$,3,2,"ng-container",6),g(3,I$,3,4,"button",7)}if(2&t){const e=f();ee(e.inputStyleClass),h("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),L("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null)("aria-labelledby",e.ariaLabelledBy),p(2),h("ngIf",e.showClear&&!e.disabled&&null!=e.value),p(1),h("ngIf",e.showIcon)}}function M$(t,n){1&t&&Z(0)}function k$(t,n){1&t&&x(0,"ChevronLeftIcon",37),2&t&&h("styleClass","p-datepicker-prev-icon")}function O$(t,n){}function A$(t,n){1&t&&g(0,O$,0,0,"ng-template")}function R$(t,n){if(1&t&&(v(0,"span",38),g(1,A$,1,0,null,12),y()),2&t){const e=f(5);p(1),h("ngTemplateOutlet",e.previousIconTemplate)}}function P$(t,n){if(1&t){const e=B();v(0,"button",35),O("keydown",function(r){return D(e),S(f(4).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(4).onPrevButtonClick(r))}),g(1,k$,1,1,"ChevronLeftIcon",32),g(2,R$,2,1,"span",36),y()}if(2&t){const e=f(4);p(1),h("ngIf",!e.previousIconTemplate),p(1),h("ngIf",e.previousIconTemplate)}}function F$(t,n){if(1&t){const e=B();v(0,"button",39),O("click",function(r){return D(e),S(f(4).switchToMonthView(r))})("keydown",function(r){return D(e),S(f(4).onContainerButtonKeydown(r))}),A(1),y()}if(2&t){const e=f().$implicit,i=f(3);h("disabled",i.switchViewButtonDisabled()),p(1),pe(" ",i.getMonthName(e.month)," ")}}function L$(t,n){if(1&t){const e=B();v(0,"button",40),O("click",function(r){return D(e),S(f(4).switchToYearView(r))})("keydown",function(r){return D(e),S(f(4).onContainerButtonKeydown(r))}),A(1),y()}if(2&t){const e=f().$implicit,i=f(3);h("disabled",i.switchViewButtonDisabled()),p(1),pe(" ",i.getYear(e)," ")}}function N$(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(5);p(1),pr("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function V$(t,n){1&t&&Z(0)}const Sm=function(t){return{$implicit:t}};function B$(t,n){if(1&t&&(v(0,"span",41),g(1,N$,2,2,"ng-container",6),g(2,V$,1,0,"ng-container",42),y()),2&t){const e=f(4);p(1),h("ngIf",!e.decadeTemplate),p(1),h("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",te(3,Sm,e.yearPickerValues))}}function H$(t,n){1&t&&x(0,"ChevronRightIcon",37),2&t&&h("styleClass","p-datepicker-next-icon")}function $$(t,n){}function z$(t,n){1&t&&g(0,$$,0,0,"ng-template")}function U$(t,n){if(1&t&&(v(0,"span",43),g(1,z$,1,0,null,12),y()),2&t){const e=f(4);p(1),h("ngTemplateOutlet",e.nextIconTemplate)}}function j$(t,n){if(1&t&&(v(0,"th",49)(1,"span"),A(2),y()()),2&t){const e=f(5);p(2),Y(e.getTranslation("weekHeader"))}}function G$(t,n){if(1&t&&(v(0,"th",50)(1,"span"),A(2),y()()),2&t){const e=n.$implicit;p(2),Y(e)}}function W$(t,n){if(1&t&&(v(0,"td",53)(1,"span",54),A(2),y()()),2&t){const e=f().index,i=f(2).$implicit;p(2),pe(" ",i.weekNumbers[e]," ")}}function q$(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(2).$implicit;p(1),Y(e.day)}}function K$(t,n){1&t&&Z(0)}function Z$(t,n){if(1&t&&(W(0),g(1,K$,1,0,"ng-container",42),q()),2&t){const e=f(2).$implicit,i=f(6);p(1),h("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",te(2,Sm,e))}}function Y$(t,n){1&t&&Z(0)}function Q$(t,n){if(1&t&&(W(0),g(1,Y$,1,0,"ng-container",42),q()),2&t){const e=f(2).$implicit,i=f(6);p(1),h("ngTemplateOutlet",i.disabledDateTemplate)("ngTemplateOutletContext",te(2,Sm,e))}}const Em=function(t,n){return{"p-highlight":t,"p-disabled":n}};function J$(t,n){if(1&t){const e=B();W(0),v(1,"span",55),O("click",function(r){D(e);const o=f().$implicit;return S(f(6).onDateSelect(r,o))})("keydown",function(r){D(e);const o=f().$implicit,s=f(3).index;return S(f(3).onDateCellKeydown(r,o,s))}),g(2,q$,2,1,"ng-container",6),g(3,Z$,2,4,"ng-container",6),g(4,Q$,2,4,"ng-container",6),y(),q()}if(2&t){const e=f().$implicit,i=f(6);p(1),h("ngClass",at(4,Em,i.isSelected(e)&&e.selectable,!e.selectable)),p(1),h("ngIf",!i.dateTemplate&&(e.selectable||!i.disabledDateTemplate)),p(1),h("ngIf",e.selectable||!i.disabledDateTemplate),p(1),h("ngIf",!e.selectable)}}const X$=function(t,n){return{"p-datepicker-other-month":t,"p-datepicker-today":n}};function ez(t,n){if(1&t&&(v(0,"td",15),g(1,J$,5,7,"ng-container",6),y()),2&t){const e=n.$implicit,i=f(6);h("ngClass",at(2,X$,e.otherMonth,e.today)),p(1),h("ngIf",!e.otherMonth||i.showOtherMonths)}}function tz(t,n){if(1&t&&(v(0,"tr"),g(1,W$,3,1,"td",51),g(2,ez,2,5,"td",52),y()),2&t){const e=n.$implicit,i=f(5);p(1),h("ngIf",i.showWeek),p(1),h("ngForOf",e)}}function nz(t,n){if(1&t&&(v(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,j$,3,1,"th",46),g(5,G$,3,1,"th",47),y()(),v(6,"tbody"),g(7,tz,3,2,"tr",48),y()()()),2&t){const e=f().$implicit,i=f(3);p(4),h("ngIf",i.showWeek),p(1),h("ngForOf",i.weekDays),p(2),h("ngForOf",e.dates)}}function iz(t,n){if(1&t){const e=B();v(0,"div",24)(1,"div",25),g(2,P$,3,2,"button",26),v(3,"div",27),g(4,F$,2,2,"button",28),g(5,L$,2,2,"button",29),g(6,B$,3,5,"span",30),y(),v(7,"button",31),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(3).onNextButtonClick(r))}),g(8,H$,1,1,"ChevronRightIcon",32),g(9,U$,2,1,"span",33),y()(),g(10,nz,8,3,"div",34),y()}if(2&t){const e=n.index,i=f(3);p(2),h("ngIf",0===e),p(2),h("ngIf","date"===i.currentView),p(1),h("ngIf","year"!==i.currentView),p(1),h("ngIf","year"===i.currentView),p(1),Fc("display",1===i.numberOfMonths||e===i.numberOfMonths-1?"inline-flex":"none"),p(1),h("ngIf",!i.nextIconTemplate),p(1),h("ngIf",i.nextIconTemplate),p(1),h("ngIf","date"===i.currentView)}}function rz(t,n){if(1&t){const e=B();v(0,"span",58),O("click",function(r){const s=D(e).index;return S(f(4).onMonthSelect(r,s))})("keydown",function(r){const s=D(e).index;return S(f(4).onMonthCellKeydown(r,s))}),A(1),y()}if(2&t){const e=n.$implicit,i=n.index,r=f(4);h("ngClass",at(2,Em,r.isMonthSelected(i),r.isMonthDisabled(i))),p(1),pe(" ",e," ")}}function oz(t,n){if(1&t&&(v(0,"div",56),g(1,rz,2,5,"span",57),y()),2&t){const e=f(3);p(1),h("ngForOf",e.monthPickerValues())}}function sz(t,n){if(1&t){const e=B();v(0,"span",61),O("click",function(r){const s=D(e).$implicit;return S(f(4).onYearSelect(r,s))})("keydown",function(r){const s=D(e).$implicit;return S(f(4).onYearCellKeydown(r,s))}),A(1),y()}if(2&t){const e=n.$implicit,i=f(4);h("ngClass",at(2,Em,i.isYearSelected(e),i.isYearDisabled(e))),p(1),pe(" ",e," ")}}function az(t,n){if(1&t&&(v(0,"div",59),g(1,sz,2,5,"span",60),y()),2&t){const e=f(3);p(1),h("ngForOf",e.yearPickerValues())}}function lz(t,n){if(1&t&&(W(0),v(1,"div",20),g(2,iz,11,9,"div",21),y(),g(3,oz,2,1,"div",22),g(4,az,2,1,"div",23),q()),2&t){const e=f(2);p(2),h("ngForOf",e.months),p(1),h("ngIf","month"===e.currentView),p(1),h("ngIf","year"===e.currentView)}}function cz(t,n){1&t&&x(0,"ChevronUpIcon")}function uz(t,n){}function dz(t,n){1&t&&g(0,uz,0,0,"ng-template")}function pz(t,n){1&t&&(W(0),A(1,"0"),q())}function hz(t,n){1&t&&x(0,"ChevronDownIcon")}function fz(t,n){}function gz(t,n){1&t&&g(0,fz,0,0,"ng-template")}function mz(t,n){1&t&&x(0,"ChevronUpIcon")}function _z(t,n){}function yz(t,n){1&t&&g(0,_z,0,0,"ng-template")}function vz(t,n){1&t&&(W(0),A(1,"0"),q())}function bz(t,n){1&t&&x(0,"ChevronDownIcon")}function Cz(t,n){}function wz(t,n){1&t&&g(0,Cz,0,0,"ng-template")}function Tz(t,n){if(1&t&&(v(0,"div",65)(1,"span"),A(2),y()()),2&t){const e=f(3);p(2),Y(e.timeSeparator)}}function Dz(t,n){1&t&&x(0,"ChevronUpIcon")}function Sz(t,n){}function Ez(t,n){1&t&&g(0,Sz,0,0,"ng-template")}function Iz(t,n){1&t&&(W(0),A(1,"0"),q())}function xz(t,n){1&t&&x(0,"ChevronDownIcon")}function Mz(t,n){}function kz(t,n){1&t&&g(0,Mz,0,0,"ng-template")}function Oz(t,n){if(1&t){const e=B();v(0,"div",70)(1,"button",64),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(3).incrementSecond(r))})("keydown.space",function(r){return D(e),S(f(3).incrementSecond(r))})("mousedown",function(r){return D(e),S(f(3).onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(3).onTimePickerElementMouseLeave())}),g(2,Dz,1,0,"ChevronUpIcon",6),g(3,Ez,1,0,null,12),y(),v(4,"span"),g(5,Iz,2,0,"ng-container",6),A(6),y(),v(7,"button",64),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(3).decrementSecond(r))})("keydown.space",function(r){return D(e),S(f(3).decrementSecond(r))})("mousedown",function(r){return D(e),S(f(3).onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(3).onTimePickerElementMouseLeave())}),g(8,xz,1,0,"ChevronDownIcon",6),g(9,kz,1,0,null,12),y()()}if(2&t){const e=f(3);p(2),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),h("ngIf",e.currentSecond<10),p(1),Y(e.currentSecond),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate)}}function Az(t,n){1&t&&x(0,"ChevronUpIcon")}function Rz(t,n){}function Pz(t,n){1&t&&g(0,Rz,0,0,"ng-template")}function Fz(t,n){1&t&&x(0,"ChevronDownIcon")}function Lz(t,n){}function Nz(t,n){1&t&&g(0,Lz,0,0,"ng-template")}function Vz(t,n){if(1&t){const e=B();v(0,"div",71)(1,"button",72),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(3).toggleAMPM(r))})("keydown.enter",function(r){return D(e),S(f(3).toggleAMPM(r))}),g(2,Az,1,0,"ChevronUpIcon",6),g(3,Pz,1,0,null,12),y(),v(4,"span"),A(5),y(),v(6,"button",72),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(3).toggleAMPM(r))})("keydown.enter",function(r){return D(e),S(f(3).toggleAMPM(r))}),g(7,Fz,1,0,"ChevronDownIcon",6),g(8,Nz,1,0,null,12),y()()}if(2&t){const e=f(3);p(2),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),Y(e.pm?"PM":"AM"),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate)}}function Bz(t,n){if(1&t){const e=B();v(0,"div",62)(1,"div",63)(2,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).incrementHour(r))})("keydown.space",function(r){return D(e),S(f(2).incrementHour(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(3,cz,1,0,"ChevronUpIcon",6),g(4,dz,1,0,null,12),y(),v(5,"span"),g(6,pz,2,0,"ng-container",6),A(7),y(),v(8,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).decrementHour(r))})("keydown.space",function(r){return D(e),S(f(2).decrementHour(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(9,hz,1,0,"ChevronDownIcon",6),g(10,gz,1,0,null,12),y()(),v(11,"div",65)(12,"span"),A(13),y()(),v(14,"div",66)(15,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).incrementMinute(r))})("keydown.space",function(r){return D(e),S(f(2).incrementMinute(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(16,mz,1,0,"ChevronUpIcon",6),g(17,yz,1,0,null,12),y(),v(18,"span"),g(19,vz,2,0,"ng-container",6),A(20),y(),v(21,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).decrementMinute(r))})("keydown.space",function(r){return D(e),S(f(2).decrementMinute(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(22,bz,1,0,"ChevronDownIcon",6),g(23,wz,1,0,null,12),y()(),g(24,Tz,3,1,"div",67),g(25,Oz,10,6,"div",68),g(26,Vz,9,5,"div",69),y()}if(2&t){const e=f(2);p(3),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),h("ngIf",e.currentHour<10),p(1),Y(e.currentHour),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate),p(3),Y(e.timeSeparator),p(3),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),h("ngIf",e.currentMinute<10),p(1),Y(e.currentMinute),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate),p(1),h("ngIf",e.showSeconds),p(1),h("ngIf",e.showSeconds),p(1),h("ngIf","12"==e.hourFormat)}}const S2=function(t){return[t]};function Hz(t,n){if(1&t){const e=B();v(0,"div",73)(1,"button",74),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(2).onTodayButtonClick(r))}),y(),v(2,"button",74),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(2).onClearButtonClick(r))}),y()()}if(2&t){const e=f(2);p(1),h("label",e.getTranslation("today"))("ngClass",te(4,S2,e.todayButtonStyleClass)),p(1),h("label",e.getTranslation("clear"))("ngClass",te(6,S2,e.clearButtonStyleClass))}}function $z(t,n){1&t&&Z(0)}const zz=function(t,n,e,i,r,o){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":n,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":o}},E2=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},Uz=function(t){return{value:"visibleTouchUI",params:t}},jz=function(t){return{value:"visible",params:t}};function Gz(t,n){if(1&t){const e=B();v(0,"div",16,17),O("@overlayAnimation.start",function(r){return D(e),S(f().onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){return D(e),S(f().onOverlayAnimationDone(r))})("click",function(r){return D(e),S(f().onOverlayClick(r))}),ni(2),g(3,M$,1,0,"ng-container",12),g(4,lz,5,3,"ng-container",6),g(5,Bz,27,16,"div",18),g(6,Hz,3,8,"div",19),ni(7,1),g(8,$z,1,0,"ng-container",12),y()}if(2&t){const e=f();ee(e.panelStyleClass),h("ngStyle",e.panelStyle)("ngClass",zr(11,zz,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?te(21,Uz,at(18,E2,e.showTransitionOptions,e.hideTransitionOptions)):te(26,jz,at(23,E2,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),p(3),h("ngTemplateOutlet",e.headerTemplate),p(1),h("ngIf",!e.timeOnly),p(1),h("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),p(1),h("ngIf",e.showButtonBar),p(2),h("ngTemplateOutlet",e.footerTemplate)}}const Wz=[[["p-header"]],[["p-footer"]]],qz=function(t,n,e,i){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":n,"p-calendar-disabled":e,"p-focus":i}},Kz=["p-header","p-footer"],Zz={provide:$t,useExisting:Ee(()=>Yz),multi:!0};let Yz=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const i=e.split(":"),r=parseInt(i[0]),o=parseInt(i[1]);this.populateYearOptions(r,o)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new F;onBlur=new F;onClose=new F;onSelect=new F;onClear=new F;onInput=new F;onTodayClick=new F;onClearClick=new F;onMonthChange=new F;onYearChange=new F;onClickOutside=new F;onShow=new F;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}constructor(e,i,r,o,s,a,l){this.document=e,this.el=i,this.renderer=r,this.cd=o,this.zone=s,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=kt();const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=E.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Kn.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r11&&(o=o%11-1,s=i+1),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let i=new Date(e.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],o=this.getFirstDayOfMonthIndex(e,i),s=this.getDaysCountInMonth(e,i),a=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,u=[],d=Math.ceil((s+o)/7);for(let m=0;ms){let C=this.getNextMonthAndYear(e,i);_.push({day:l-s,month:C.month,year:C.year,otherMonth:!0,today:this.isToday(c,l-s,C.month,C.year),selectable:this.isSelectable(l-s,C.month,C.year,!0)})}else _.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),r.push(_)}return{month:e,year:i,dates:r,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]+i,e[e.length-1]+i)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,o)=>!this.isDateEquals(r,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=new Date(e.year,e.month,e.day);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate=r.getTime()?o=i:(r=i,o=null),this.updateModel([r,o])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;Array.isArray(this.value)&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(i);let o=r.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let r=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,i){let r,o;return 0===e?(r=11,o=i-1):(r=e-1,o=i),{month:r,year:o}}getNextMonthAndYear(e,i){let r,o;return 11===e?(r=0,o=i+1):(r=e+1,o=i),{month:r,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,e),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[i,r]=this.isRangeSelection()?this.value:[this.value,this.value],o=new Date(this.currentYear,e,1);return o>=i&&o<=(r??i)}return!1}isMonthDisabled(e){for(let i=1;i=s.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,i,r,o){return e.getDate()===i&&e.getMonth()===r&&e.getFullYear()===o}isSelectable(e,i,r,o){let s=!0,a=!0,l=!0,c=!0;return!(o&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode||13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(E.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,r){const o=e.currentTarget,s=o.parentElement;switch(e.which){case 40:{o.tabIndex="-1";let a=E.index(s),l=s.parentElement.nextElementSibling;l?E.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{o.tabIndex="-1";let a=E.index(s),l=s.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];E.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let a=s.previousElementSibling;if(a){let l=a.children[0];E.hasClass(l,"p-disabled")||E.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{o.tabIndex="-1";let a=s.nextElementSibling;if(a){let l=a.children[0];E.hasClass(l,"p-disabled")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=E.index(r);let a=o[40===e.which?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=E.index(r);let a=o[40===e.which?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this.navBackward(event);else{let o=E.find(this.contentViewChild.nativeElement.children[i-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),s=o[o.length-1];s.tabIndex="0",s.focus()}else if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let o=E.findSingle(this.contentViewChild.nativeElement.children[i+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");o.tabIndex="0",o.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?E.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():E.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=E.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=E.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let i;if("month"===this.currentView){let r=E.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=E.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");r.forEach(s=>s.tabIndex=-1),i=o||r[0],0===r.length&&E.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let r=E.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=E.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");r.forEach(s=>s.tabIndex=-1),i=o||r[0],0===r.length&&E.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(i=E.findSingle(e,"span.p-highlight"),!i){let r=E.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i=r||E.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||i.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=E.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==r||0===r)if(this.focusTrap)i[i.length-1].focus();else{if(-1===r)return this.hideOverlay();if(0===r)return}else i[r-1].focus();else if(-1==r||r===i.length-1){if(!this.focusTrap&&-1!=r)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour=function(e,i){return"12"==this.hourFormat?12===e?i?12:0:i?e+12:e:e};validateTime(e,i,r,o){let s=this.value;const a=this.convertTo24Hour(e,o);this.isRangeSelection()&&(s=this.value[1]||this.value[0]),this.isMultipleSelection()&&(s=this.value[this.value.length-1]);const l=s?s.toDateString():null;return!(this.minDate&&l&&this.minDate.toDateString()===l&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?r-24:r:"12"==this.hourFormat&&(this.currentHour<12&&r>11&&(o=!this.pm),r=r>=13?r-12:r),this.validateTime(r,this.currentMinute,this.currentSecond,o)&&(this.currentHour=r,this.pm=o),e.preventDefault()}onTimePickerElementMouseDown(e,i,r){this.disabled||(this.repeat(e,null,i,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,r,o){let s=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,o),this.cd.markForCheck()},s),r){case 0:1===o?this.incrementHour(e):this.decrementHour(e);break;case 1:1===o?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===o?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=this.currentHour-this.stepHour,r=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(r=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,r)&&(this.currentHour=i,this.pm=r),e.preventDefault()}incrementMinute(e){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}decrementMinute(e){let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)?(this.updateModel(r),this.updateUI()):this.keepInvalid&&this.updateModel(r)}catch{this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){let i=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(i=!1):e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1))&&this.isRangeSelection()&&(i=e.length>1&&e[1]>e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);i=[];for(let o of r)i.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");i=[];for(let o=0;o{this.disableModality()}),this.renderer.appendChild(this.document.body,this.mask),E.blockBodyScroll())}disableModality(){this.mask&&(E.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let i,e=this.document.body.children;for(let r=0;r{const d=r+1{let _=""+d;if(o(u))for(;_.lengtho(u)?_[d]:m[d];let l="",c=!1;if(e)for(r=0;r11&&12!=r&&(r-=12),i+="12"==this.hourFormat&&0===r?12:r<10?"0"+r:r,i+=":",i+=o<10?"0"+o:o,this.showSeconds&&(i+=":",i+=s<10?"0"+s:s),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let o=parseInt(i[0]),s=parseInt(i[1]),a=this.showSeconds?parseInt(i[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||"12"==this.hourFormat&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==o&&this.pm?o+=12:!this.pm&&12===o&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,i){if(null==i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let r,o,s,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,d=-1,m=-1,_=!1,C=P=>{let N=r+1{let N=C(P),X="@"===P?14:"!"===P?20:"y"===P&&N?4:"o"===P?3:2,Ve=new RegExp("^\\d{"+("y"===P?X:1)+","+X+"}"),We=e.substring(a).match(Ve);if(!We)throw"Missing number at position "+a;return a+=We[0].length,parseInt(We[0],10)},M=(P,N,X)=>{let be=-1,Ve=C(P)?X:N,We=[];for(let tt=0;tt-(tt[1].length-Wt[1].length));for(let tt=0;tt{if(e.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(d=1),r=0;r-1)for(u=1,d=m;o=this.getDaysCountInMonth(c,u-1),!(d<=o);)u++,d-=o;if("year"===this.view&&(u=-1===u?1:u,d=-1===d?1:d),b=this.daylightSavingAdjust(new Date(c,u-1,d)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==d)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,r),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!(!r.breakpoint||!r.numMonths)).sort((r,o)=>-1*r.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let r=0;r{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vm(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return E.hasClass(e.target,"p-datepicker-prev")||E.hasClass(e.target,"p-datepicker-prev-icon")||E.hasClass(e.target,"p-datepicker-next")||E.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!E.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&jt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(i){return new(i||t)(w(rt),w(Ue),w(xt),w(bt),w(Te),w(ro),w(ym))};static \u0275cmp=J({type:t,selectors:[["p-calendar"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(f$,5),Fe(g$,5),Fe(m$,5)),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first),ce(o=ue())&&(r.inputfieldViewChild=o.first),ce(o=ue())&&(r.content=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){2&i&&ii("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focus)("p-calendar-clearable",r.showClear&&!r.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([Zz])],ngContentSelectors:Kz,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(i,r){1&i&&(Hi(Wz),v(0,"span",0,1),g(2,x$,4,17,"ng-template",2),g(3,Gz,9,28,"div",3),y()),2&i&&(ee(r.styleClass),h("ngClass",is(6,qz,r.showIcon,r.timeOnly,r.disabled,r.focus))("ngStyle",r.style),p(2),h("ngIf",!r.inline),p(1),h("ngIf",r.inline||r.overlayVisible))},dependencies:function(){return[pt,Wi,Je,Ht,Bt,h2,Es,w2,hd,T2,Ss,Zn,D2]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Yr("overlayAnimation",[Ou("visibleTouchUI",Ge({transform:"translate(-50%,-50%)",opacity:1})),pn("void => visible",[Ge({opacity:0,transform:"scaleY(0.8)"}),Jt("{{showTransitionParams}}",Ge({opacity:1,transform:"*"}))]),pn("visible => void",[Jt("{{hideTransitionParams}}",Ge({opacity:0}))]),pn("void => visibleTouchUI",[Ge({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Jt("{{showTransitionParams}}")]),pn("visibleTouchUI => void",[Jt("{{hideTransitionParams}}",Ge({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),Qz=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,hl,lt,oo,w2,hd,T2,Ss,Zn,D2,hl,lt]})}return t})(),I2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),x2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();const Jz=["input"];function Xz(t,n){if(1&t){const e=B();v(0,"TimesIcon",8),O("click",function(){return D(e),S(f(2).clear())}),y()}2&t&&h("ngClass","p-inputnumber-clear-icon")}function eU(t,n){}function tU(t,n){1&t&&g(0,eU,0,0,"ng-template")}function nU(t,n){if(1&t){const e=B();v(0,"span",9),O("click",function(){return D(e),S(f(2).clear())}),g(1,tU,1,0,null,10),y()}if(2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.clearIconTemplate)}}function iU(t,n){if(1&t&&(W(0),g(1,Xz,1,1,"TimesIcon",6),g(2,nU,2,1,"span",7),q()),2&t){const e=f();p(1),h("ngIf",!e.clearIconTemplate),p(1),h("ngIf",e.clearIconTemplate)}}function rU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).incrementButtonIcon)}function oU(t,n){1&t&&x(0,"AngleUpIcon")}function sU(t,n){}function aU(t,n){1&t&&g(0,sU,0,0,"ng-template")}function lU(t,n){if(1&t&&(W(0),g(1,oU,1,0,"AngleUpIcon",3),g(2,aU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.incrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function cU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).decrementButtonIcon)}function uU(t,n){1&t&&x(0,"AngleDownIcon")}function dU(t,n){}function pU(t,n){1&t&&g(0,dU,0,0,"ng-template")}function hU(t,n){if(1&t&&(W(0),g(1,uU,1,0,"AngleDownIcon",3),g(2,pU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.decrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const M2=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},k2=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function fU(t,n){if(1&t){const e=B();v(0,"span",11)(1,"button",12),O("mousedown",function(r){return D(e),S(f().onUpButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onUpButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onUpButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onUpButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onUpButtonKeyUp())}),g(2,rU,1,1,"span",13),g(3,lU,3,2,"ng-container",3),y(),v(4,"button",12),O("mousedown",function(r){return D(e),S(f().onDownButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onDownButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onDownButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onDownButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onDownButtonKeyUp())}),g(5,cU,1,1,"span",13),g(6,hU,3,2,"ng-container",3),y()()}if(2&t){const e=f();p(1),ee(e.incrementButtonClass),h("ngClass",$i(12,M2))("disabled",e.disabled),p(1),h("ngIf",e.incrementButtonIcon),p(1),h("ngIf",!e.incrementButtonIcon),p(1),ee(e.decrementButtonClass),h("ngClass",$i(13,k2))("disabled",e.disabled),p(1),h("ngIf",e.decrementButtonIcon),p(1),h("ngIf",!e.decrementButtonIcon)}}function gU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).incrementButtonIcon)}function mU(t,n){1&t&&x(0,"AngleUpIcon")}function _U(t,n){}function yU(t,n){1&t&&g(0,_U,0,0,"ng-template")}function vU(t,n){if(1&t&&(W(0),g(1,mU,1,0,"AngleUpIcon",3),g(2,yU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.incrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function bU(t,n){if(1&t){const e=B();v(0,"button",12),O("mousedown",function(r){return D(e),S(f().onUpButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onUpButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onUpButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onUpButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onUpButtonKeyUp())}),g(1,gU,1,1,"span",13),g(2,vU,3,2,"ng-container",3),y()}if(2&t){const e=f();ee(e.incrementButtonClass),h("ngClass",$i(6,M2))("disabled",e.disabled),p(1),h("ngIf",e.incrementButtonIcon),p(1),h("ngIf",!e.incrementButtonIcon)}}function CU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).decrementButtonIcon)}function wU(t,n){1&t&&x(0,"AngleDownIcon")}function TU(t,n){}function DU(t,n){1&t&&g(0,TU,0,0,"ng-template")}function SU(t,n){if(1&t&&(W(0),g(1,wU,1,0,"AngleDownIcon",3),g(2,DU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.decrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function EU(t,n){if(1&t){const e=B();v(0,"button",12),O("mousedown",function(r){return D(e),S(f().onDownButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onDownButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onDownButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onDownButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onDownButtonKeyUp())}),g(1,CU,1,1,"span",13),g(2,SU,3,2,"ng-container",3),y()}if(2&t){const e=f();ee(e.decrementButtonClass),h("ngClass",$i(6,k2))("disabled",e.disabled),p(1),h("ngIf",e.decrementButtonIcon),p(1),h("ngIf",!e.decrementButtonIcon)}}const IU=function(t,n,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":n,"p-inputnumber-buttons-vertical":e}},xU={provide:$t,useExisting:Ee(()=>O2),multi:!0};let O2=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new F;onFocus=new F;onBlur=new F;onKeyDown=new F;onClear=new F;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,i,r,o){this.document=e,this.el=i,this.cd=r,this.injector=o}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(qi,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((r,o)=>[r,o]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r+=this.suffix),r}return e.toString()}return""}parseValue(e){let i=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(i){if("-"===i)return i;let r=+i;return isNaN(r)?null:r}return null}repeat(e,i,r){if(this.readonly)return;let o=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},o),this.spin(e,r)}spin(e,i){let r=this.step*i,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+r);this.maxlength&&this.maxlength0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i-1)+o.slice(i)}this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range");break;case 46:if(e.preventDefault(),i===r){const a=o.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){const u=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,i)+o.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(i+1,i+1):s=o.slice(0,i)+o.slice(i+1);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i)+o.slice(i+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let i=e.which||e.keyCode,r=String.fromCharCode(i);const o=this.isDecimalSign(r),s=this.isMinusSign(r);13!=i&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+r),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=i&&i<=57||s||o)&&this.insert(e,r,{isDecimalSign:o,isMinusSign:s})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(i){this.maxlength&&(i=i.toString().substring(0,this.maxlength));let r=this.parseValue(i);null!=r&&this.insert(e,r.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){const i=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.search(this._minusSign);this._minusSign.lastIndex=0;const o=e.search(this._suffix);this._suffix.lastIndex=0;const s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:s}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){const o=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==o)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:d,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(r.isMinusSign)0===s&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,i,0,a)),this.updateValue(e,_,i,"insert"));else if(r.isDecimalSign)c>0&&s===c?this.updateValue(e,l,i,"insert"):(c>s&&c0&&s>c){if(s+i.length-(c+1)<=b){const T=m>=s?m-1:d>=s?d:l.length;_=l.slice(0,s)+i+l.slice(s+i.length,T)+l.slice(T),this.updateValue(e,_,i,C)}}else _=this.insertText(l,i,s,a),this.updateValue(e,_,i,C)}}insertText(e,i,r,o){if(2===("."===i?i:i.split(".")).length){const a=e.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+e.slice(o):e||this.formatValue(i)}return o-r===e.length?this.formatValue(i):0===r?i+e.slice(o):o===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(o)}deleteRange(e,i,r){let o;return o=r-i===e.length?"":0===i?e.slice(r):r===e.length?e.slice(0,i):e.slice(0,i)+e.slice(r),o}initCursor(){let e=this.input?.nativeElement.selectionStart,i=this.input?.nativeElement.value,r=i.length,o=null,s=(this.prefixChar||"").length;i=i.replace(this._prefix,""),e-=s;let a=i.charAt(e);if(this.isNumeralChar(a))return e+s;let l=e-1;for(;l>=0;){if(a=i.charAt(l),this.isNumeralChar(a)){o=l+s;break}l--}if(null!==o)this.input?.nativeElement.setSelectionRange(o+1,o+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,i,r,o){i=i||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(i){return new(i||t)(w(rt),w(Ue),w(bt),w(yn))};static \u0275cmp=J({type:t,selectors:[["p-inputNumber"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&Fe(Jz,5),2&i){let o;ce(o=ue())&&(r.input=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){2&i&&ii("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focused)("p-inputnumber-clearable",r.showClear&&"vertical"!=r.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([xU]),Ft],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,r){1&i&&(v(0,"span",0)(1,"input",1,2),O("input",function(s){return r.onUserInput(s)})("keydown",function(s){return r.onInputKeyDown(s)})("keypress",function(s){return r.onInputKeyPress(s)})("paste",function(s){return r.onPaste(s)})("click",function(){return r.onInputClick()})("focus",function(s){return r.onInputFocus(s)})("blur",function(s){return r.onInputBlur(s)}),y(),g(3,iU,3,2,"ng-container",3),g(4,fU,7,14,"span",4),g(5,bU,3,7,"button",5),g(6,EU,3,7,"button",5),y()),2&i&&(ee(r.styleClass),h("ngClass",Un(28,IU,r.showButtons&&"stacked"===r.buttonLayout,r.showButtons&&"horizontal"===r.buttonLayout,r.showButtons&&"vertical"===r.buttonLayout))("ngStyle",r.style),p(1),ee(r.inputStyleClass),h("ngClass","p-inputnumber-input")("ngStyle",r.inputStyle)("value",r.formattedValue())("disabled",r.disabled)("readonly",r.readonly),L("placeholder",r.placeholder)("title",r.title)("id",r.inputId)("size",r.size)("name",r.name)("autocomplete",r.autocomplete)("maxlength",r.maxlength)("tabindex",r.tabindex)("aria-label",r.ariaLabel)("aria-required",r.ariaRequired)("required",r.required)("min",r.min)("max",r.max),p(2),h("ngIf","vertical"!=r.buttonLayout&&r.showClear&&(r.value||0===r.value)),p(1),h("ngIf",r.showButtons&&"stacked"===r.buttonLayout),p(1),h("ngIf",r.showButtons&&"stacked"!==r.buttonLayout),p(1),h("ngIf",r.showButtons&&"stacked"!==r.buttonLayout))},dependencies:function(){return[pt,Je,Ht,Bt,md,h2,Zn,I2,x2]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Im=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,Dm,hl,Zn,I2,x2,lt]})}return t})(),A2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),R2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),P2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),F2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();function MU(t,n){1&t&&Z(0)}const xm=function(t){return{$implicit:t}};function kU(t,n){if(1&t&&(v(0,"div",15),g(1,MU,1,0,"ng-container",16),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",te(2,xm,e.paginatorState))}}function OU(t,n){if(1&t&&(v(0,"span",17),A(1),y()),2&t){const e=f(2);p(1),Y(e.currentPageReport)}}function AU(t,n){1&t&&x(0,"AngleDoubleLeftIcon",19),2&t&&h("styleClass","p-paginator-icon")}function RU(t,n){}function PU(t,n){1&t&&g(0,RU,0,0,"ng-template")}function FU(t,n){if(1&t&&(v(0,"span",20),g(1,PU,1,0,null,21),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const _d=function(t){return{"p-disabled":t}};function LU(t,n){if(1&t){const e=B();v(0,"button",18),O("click",function(r){return D(e),S(f(2).changePageToFirst(r))}),g(1,AU,1,1,"AngleDoubleLeftIcon",6),g(2,FU,2,1,"span",7),y()}if(2&t){const e=f(2);h("disabled",e.isFirstPage()||e.empty())("ngClass",te(4,_d,e.isFirstPage()||e.empty())),p(1),h("ngIf",!e.firstPageLinkIconTemplate),p(1),h("ngIf",e.firstPageLinkIconTemplate)}}function NU(t,n){1&t&&x(0,"AngleLeftIcon",19),2&t&&h("styleClass","p-paginator-icon")}function VU(t,n){}function BU(t,n){1&t&&g(0,VU,0,0,"ng-template")}function HU(t,n){if(1&t&&(v(0,"span",20),g(1,BU,1,0,null,21),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const $U=function(t){return{"p-highlight":t}};function zU(t,n){if(1&t){const e=B();v(0,"button",24),O("click",function(r){const s=D(e).$implicit;return S(f(3).onPageLinkClick(r,s-1))}),A(1),y()}if(2&t){const e=n.$implicit,i=f(3);h("ngClass",te(2,$U,e-1==i.getPage())),p(1),pe(" ",i.getLocalization(e)," ")}}function UU(t,n){if(1&t&&(v(0,"span",22),g(1,zU,2,4,"button",23),y()),2&t){const e=f(2);p(1),h("ngForOf",e.pageLinks)}}function jU(t,n){1&t&&A(0),2&t&&Y(f(3).currentPageReport)}function GU(t,n){if(1&t){const e=B();v(0,"p-dropdown",25),O("onChange",function(r){return D(e),S(f(2).onPageDropdownChange(r))}),g(1,jU,1,1,"ng-template",26),y()}if(2&t){const e=f(2);h("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function WU(t,n){1&t&&x(0,"AngleRightIcon",19),2&t&&h("styleClass","p-paginator-icon")}function qU(t,n){}function KU(t,n){1&t&&g(0,qU,0,0,"ng-template")}function ZU(t,n){if(1&t&&(v(0,"span",20),g(1,KU,1,0,null,21),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function YU(t,n){1&t&&x(0,"AngleDoubleRightIcon",19),2&t&&h("styleClass","p-paginator-icon")}function QU(t,n){}function JU(t,n){1&t&&g(0,QU,0,0,"ng-template")}function XU(t,n){if(1&t&&(v(0,"span",20),g(1,JU,1,0,null,21),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function ej(t,n){if(1&t){const e=B();v(0,"button",27),O("click",function(r){return D(e),S(f(2).changePageToLast(r))}),g(1,YU,1,1,"AngleDoubleRightIcon",6),g(2,XU,2,1,"span",7),y()}if(2&t){const e=f(2);h("disabled",e.isLastPage()||e.empty())("ngClass",te(4,_d,e.isLastPage()||e.empty())),p(1),h("ngIf",!e.lastPageLinkIconTemplate),p(1),h("ngIf",e.lastPageLinkIconTemplate)}}function tj(t,n){if(1&t){const e=B();v(0,"p-inputNumber",28),O("ngModelChange",function(r){return D(e),S(f(2).changePage(r-1))}),y()}if(2&t){const e=f(2);h("ngModel",e.currentPage())("disabled",e.empty())}}function nj(t,n){1&t&&Z(0)}function ij(t,n){if(1&t&&g(0,nj,1,0,"ng-container",16),2&t){const e=n.$implicit;h("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",te(2,xm,e))}}function rj(t,n){1&t&&(W(0),g(1,ij,1,4,"ng-template",31),q())}function oj(t,n){if(1&t){const e=B();v(0,"p-dropdown",29),O("ngModelChange",function(r){return D(e),S(f(2).rows=r)})("onChange",function(r){return D(e),S(f(2).onRppChange(r))}),g(1,rj,2,0,"ng-container",30),y()}if(2&t){const e=f(2);h("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),p(1),h("ngIf",e.dropdownItemTemplate)}}function sj(t,n){1&t&&Z(0)}function aj(t,n){if(1&t&&(v(0,"div",32),g(1,sj,1,0,"ng-container",16),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",te(2,xm,e.paginatorState))}}function lj(t,n){if(1&t){const e=B();v(0,"div",1),g(1,kU,2,4,"div",2),g(2,OU,2,1,"span",3),g(3,LU,3,6,"button",4),v(4,"button",5),O("click",function(r){return D(e),S(f().changePageToPrev(r))}),g(5,NU,1,1,"AngleLeftIcon",6),g(6,HU,2,1,"span",7),y(),g(7,UU,2,1,"span",8),g(8,GU,2,5,"p-dropdown",9),v(9,"button",10),O("click",function(r){return D(e),S(f().changePageToNext(r))}),g(10,WU,1,1,"AngleRightIcon",6),g(11,ZU,2,1,"span",7),y(),g(12,ej,3,6,"button",11),g(13,tj,1,2,"p-inputNumber",12),g(14,oj,2,6,"p-dropdown",13),g(15,aj,2,4,"div",14),y()}if(2&t){const e=f();ee(e.styleClass),h("ngStyle",e.style)("ngClass","p-paginator p-component"),p(1),h("ngIf",e.templateLeft),p(1),h("ngIf",e.showCurrentPageReport),p(1),h("ngIf",e.showFirstLastIcon),p(1),h("disabled",e.isFirstPage()||e.empty())("ngClass",te(21,_d,e.isFirstPage()||e.empty())),p(1),h("ngIf",!e.previousPageLinkIconTemplate),p(1),h("ngIf",e.previousPageLinkIconTemplate),p(1),h("ngIf",e.showPageLinks),p(1),h("ngIf",e.showJumpToPageDropdown),p(1),h("disabled",e.isLastPage()||e.empty())("ngClass",te(23,_d,e.isLastPage()||e.empty())),p(1),h("ngIf",!e.nextPageLinkIconTemplate),p(1),h("ngIf",e.nextPageLinkIconTemplate),p(1),h("ngIf",e.showFirstLastIcon),p(1),h("ngIf",e.showJumpToPageInput),p(1),h("ngIf",e.rowsPerPageOptions),p(1),h("ngIf",e.templateRight)}}let cj=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new F;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),r=new Map(i.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>r.get(Number(s))).join(""):r.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-i/2)),o=Math.min(e-1,r+i-1);return r=Math.max(0,r-(this.pageLinkSize-(o-r+1))),[r,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),r=e[1];for(let o=e[0];o<=r;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-paginator"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Ft],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(i,r){1&i&&g(0,lj,16,25,"div",0),2&i&&h("ngIf",!!r.alwaysShow||r.pageLinks&&r.pageLinks.length>1)},dependencies:function(){return[pt,Wi,Je,Ht,Bt,Tm,Tt,O2,Cu,gs,Es,A2,R2,P2,F2]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),uj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,gd,Im,ku,lt,oo,A2,R2,P2,F2,gd,Im,ku,lt]})}return t})();function dj(t,n){1&t&&x(0,"span",8),2&t&&(ee(f(2).$implicit.icon),h("ngClass","p-button-icon p-button-icon-left"))}function pj(t,n){if(1&t&&(W(0),g(1,dj,1,3,"span",6),v(2,"span",7),A(3),y(),q()),2&t){const e=f().$implicit,i=f();p(1),h("ngIf",e.icon),p(2),Y(i.getOptionLabel(e))}}function hj(t,n){1&t&&Z(0)}const fj=function(t,n){return{$implicit:t,index:n}};function gj(t,n){if(1&t&&g(0,hj,1,0,"ng-container",9),2&t){const e=f(),i=e.$implicit,r=e.index;h("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",at(2,fj,i,r))}}const mj=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-button-icon-only":e}};function _j(t,n){if(1&t){const e=B();v(0,"div",2,3),O("click",function(r){const o=D(e),s=o.$implicit,a=o.index;return S(f().onItemClick(r,s,a))})("keydown.enter",function(r){const o=D(e),s=o.$implicit,a=o.index;return S(f().onItemClick(r,s,a))})("blur",function(){return D(e),S(f().onBlur())}),g(2,pj,4,2,"ng-container",4),g(3,gj,1,5,"ng-template",null,5,ai),y()}if(2&t){const e=n.$implicit,i=Xe(4),r=f();ee(e.styleClass),h("ngClass",Un(10,mj,r.isSelected(e),r.disabled||r.isOptionDisabled(e),e.icon&&!r.getOptionLabel(e))),L("aria-pressed",r.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",r.disabled?null:r.tabindex)("aria-labelledby",r.getOptionLabel(e)),p(2),h("ngIf",!r.itemTemplate)("ngIfElse",i)}}const yj={provide:$t,useExisting:Ee(()=>vj),multi:!0};let vj=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new F;onChange=new F;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}value;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onItemClick(e,i,r){if(this.disabled||this.isOptionDisabled(i))return;const o=this.getOptionValue(i);let s=this.isSelected(i);s&&!this.allowEmpty||(this.multiple?this.isSelected(i)?this.removeOption(i):this.value=[...this.value||[],o]:this.value=s?null:o,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:i,index:r}))}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!V.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1;const r=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let o of this.value)if(V.equals(o,r,this.dataKey)){i=!0;break}}else i=V.equals(r,this.value,this.dataKey);return i}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-selectButton"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,5),2&i){let s;ce(s=ue())&&(r.itemTemplate=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Pe([yj])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(v(0,"div",0),g(1,_j,5,14,"div",1),y()),2&i&&(ee(r.styleClass),h("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",r.style),p(1),h("ngForOf",r.options))},dependencies:[pt,Wi,Je,Ht,Bt,Es],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),bj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,lt,lt]})}return t})();function Cj(t,n){1&t&&x(0,"span",8),2&t&&h("ngClass",f(2).checkboxTrueIcon)}function wj(t,n){1&t&&x(0,"CheckIcon",11),2&t&&h("styleClass","p-checkbox-icon")}function Tj(t,n){}function Dj(t,n){1&t&&g(0,Tj,0,0,"ng-template")}function Sj(t,n){if(1&t&&(v(0,"span",12),g(1,Dj,1,0,null,13),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.checkIconTemplate)}}function Ej(t,n){if(1&t&&(W(0),g(1,wj,1,1,"CheckIcon",9),g(2,Sj,2,1,"span",10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.checkIconTemplate),p(1),h("ngIf",e.checkIconTemplate)}}function Ij(t,n){if(1&t&&(W(0),g(1,Cj,1,1,"span",7),g(2,Ej,3,2,"ng-container",5),q()),2&t){const e=f();p(1),h("ngIf",e.checkboxTrueIcon),p(1),h("ngIf",!e.checkboxTrueIcon)}}function xj(t,n){1&t&&x(0,"span",8),2&t&&h("ngClass",f(2).checkboxFalseIcon)}function Mj(t,n){1&t&&x(0,"TimesIcon",11),2&t&&h("styleClass","p-checkbox-icon")}function kj(t,n){}function Oj(t,n){1&t&&g(0,kj,0,0,"ng-template")}function Aj(t,n){if(1&t&&(v(0,"span",12),g(1,Oj,1,0,null,13),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.uncheckIconTemplate)}}function Rj(t,n){if(1&t&&(W(0),g(1,Mj,1,1,"TimesIcon",9),g(2,Aj,2,1,"span",10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.uncheckIconTemplate),p(1),h("ngIf",e.uncheckIconTemplate)}}function Pj(t,n){if(1&t&&(W(0),g(1,xj,1,1,"span",7),g(2,Rj,3,2,"ng-container",5),q()),2&t){const e=f();p(1),h("ngIf",e.checkboxFalseIcon),p(1),h("ngIf",!e.checkboxFalseIcon)}}const Fj=function(t,n,e){return{"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function Lj(t,n){if(1&t){const e=B();v(0,"label",14),O("click",function(r){D(e);const o=f(),s=Xe(3);return S(o.onClick(r,s))}),A(1),y()}if(2&t){const e=f();h("ngClass",Un(3,Fj,null!=e.value,e.disabled,e.focused)),L("for",e.inputId),p(1),Y(e.label)}}const Nj=function(t,n){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":n}},Vj=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-focus":e}},Bj={provide:$t,useExisting:Ee(()=>Hj),multi:!0};let Hj=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new F;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,i){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,i.focus())}onKeydown(e){32==e.keyCode&&e.preventDefault()}onKeyup(e){32==e.keyCode&&!this.readonly&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[Pe([Bj])],decls:8,vars:22,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(i,r){if(1&i){const o=B();v(0,"div",0)(1,"div",1)(2,"input",2,3),O("keyup",function(a){return r.onKeyup(a)})("keydown",function(a){return r.onKeydown(a)})("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),y()(),v(4,"div",4),O("click",function(a){D(o);const l=Xe(3);return S(r.onClick(a,l))}),g(5,Ij,3,2,"ng-container",5),g(6,Pj,3,2,"ng-container",5),y()(),g(7,Lj,2,7,"label",6)}2&i&&(ee(r.styleClass),h("ngStyle",r.style)("ngClass",at(15,Nj,r.disabled,r.focused)),p(2),h("name",r.name)("readonly",r.readonly)("disabled",r.disabled),L("id",r.inputId)("tabindex",r.tabindex)("aria-labelledby",r.ariaLabelledBy),p(2),h("ngClass",Un(18,Vj,null!=r.value,r.disabled,r.focused)),L("aria-checked",!0===r.value),p(1),h("ngIf",!0===r.value),p(1),h("ngIf",!1===r.value),p(1),h("ngIf",r.label))},dependencies:function(){return[pt,Je,Ht,Bt,so,Zn]},encapsulation:2,changeDetection:0})}return t})(),$j=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,lt,so,Zn,lt]})}return t})(),L2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),N2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),zj=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),V2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[ie,ze],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),y(),v(6,"defs")(7,"clipPath",5),x(8,"rect",6),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(6),h("id",r.pathId))},encapsulation:2})}return t})(),B2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[ie,ze],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),y(),v(8,"defs")(9,"clipPath",7),x(10,"rect",8),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(8),h("id",r.pathId))},encapsulation:2})}return t})(),H2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[ie,ze],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),y(),v(8,"defs")(9,"clipPath",7),x(10,"rect",8),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(8),h("id",r.pathId))},encapsulation:2})}return t})(),Uj=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})();const jj=["container"],Gj=["resizeHelper"],Wj=["reorderIndicatorUp"],qj=["reorderIndicatorDown"],Kj=["wrapper"],Zj=["table"],Yj=["thead"],Qj=["tfoot"],Jj=["scroller"];function Xj(t,n){1&t&&x(0,"i"),2&t&&ee("p-datatable-loading-icon "+f(2).loadingIcon)}function eG(t,n){1&t&&x(0,"SpinnerIcon",19),2&t&&h("spin",!0)("styleClass","p-datatable-loading-icon")}function tG(t,n){}function nG(t,n){1&t&&g(0,tG,0,0,"ng-template")}function iG(t,n){if(1&t&&(v(0,"span",20),g(1,nG,1,0,null,21),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.loadingIconTemplate)}}function rG(t,n){if(1&t&&(W(0),g(1,eG,1,2,"SpinnerIcon",17),g(2,iG,2,1,"span",18),q()),2&t){const e=f(2);p(1),h("ngIf",!e.loadingIconTemplate),p(1),h("ngIf",e.loadingIconTemplate)}}function oG(t,n){if(1&t&&(v(0,"div",15),g(1,Xj,1,2,"i",16),g(2,rG,3,2,"ng-container",8),y()),2&t){const e=f();p(1),h("ngIf",e.loadingIcon),p(1),h("ngIf",!e.loadingIcon)}}function sG(t,n){1&t&&Z(0)}function aG(t,n){if(1&t&&(v(0,"div",22),g(1,sG,1,0,"ng-container",21),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.captionTemplate)}}function lG(t,n){1&t&&Z(0)}function cG(t,n){1&t&&g(0,lG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function uG(t,n){1&t&&g(0,cG,1,1,"ng-template",24)}function dG(t,n){1&t&&Z(0)}function pG(t,n){1&t&&g(0,dG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function hG(t,n){1&t&&g(0,pG,1,1,"ng-template",25)}function fG(t,n){1&t&&Z(0)}function gG(t,n){1&t&&g(0,fG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function mG(t,n){1&t&&g(0,gG,1,1,"ng-template",26)}function _G(t,n){1&t&&Z(0)}function yG(t,n){1&t&&g(0,_G,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vG(t,n){1&t&&g(0,yG,1,1,"ng-template",27)}function bG(t,n){if(1&t){const e=B();v(0,"p-paginator",23),O("onPageChange",function(r){return D(e),S(f().onPageChange(r))}),g(1,uG,1,0,null,8),g(2,hG,1,0,null,8),g(3,mG,1,0,null,8),g(4,vG,1,0,null,8),y()}if(2&t){const e=f();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),p(1),h("ngIf",e.paginatorFirstPageLinkIconTemplate),p(1),h("ngIf",e.paginatorPreviousPageLinkIconTemplate),p(1),h("ngIf",e.paginatorLastPageLinkIconTemplate),p(1),h("ngIf",e.paginatorNextPageLinkIconTemplate)}}function CG(t,n){1&t&&Z(0)}const $2=function(t,n){return{$implicit:t,options:n}};function wG(t,n){if(1&t&&g(0,CG,1,0,"ng-container",31),2&t){const e=n.$implicit,i=n.options;f(2),h("ngTemplateOutlet",Xe(10))("ngTemplateOutletContext",at(2,$2,e,i))}}const TG=function(t){return{height:t}};function DG(t,n){if(1&t){const e=B();v(0,"p-scroller",28,29),O("onLazyLoad",function(r){return D(e),S(f().onLazyItemLoad(r))}),g(2,wG,1,5,"ng-template",30),y()}if(2&t){const e=f();Nt(te(15,TG,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),h("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function SG(t,n){1&t&&Z(0)}const EG=function(t){return{columns:t}};function IG(t,n){if(1&t&&(W(0),g(1,SG,1,0,"ng-container",31),q()),2&t){const e=f(),i=Xe(10);p(1),h("ngTemplateOutlet",i)("ngTemplateOutletContext",at(4,$2,e.processedData,te(2,EG,e.columns)))}}function xG(t,n){1&t&&Z(0)}function MG(t,n){1&t&&Z(0)}function kG(t,n){if(1&t&&x(0,"tbody",40),2&t){const e=f().options,i=f();h("value",i.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",i.frozenBodyTemplate)("frozen",!0)}}function OG(t,n){if(1&t&&x(0,"tbody",41),2&t){const e=f().options;Nt("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function AG(t,n){1&t&&Z(0)}const Er=function(t){return{$implicit:t}};function RG(t,n){if(1&t&&(v(0,"tfoot",42,43),g(2,AG,1,0,"ng-container",31),y()),2&t){const e=f().options,i=f();p(2),h("ngTemplateOutlet",i.footerGroupedTemplate||i.footerTemplate)("ngTemplateOutletContext",te(2,Er,e.columns))}}const PG=function(t,n,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":n,"p-datatable-resizable-table-fit":e}};function FG(t,n){if(1&t&&(v(0,"table",32,33),g(2,xG,1,0,"ng-container",31),v(3,"thead",34,35),g(5,MG,1,0,"ng-container",31),y(),g(6,kG,1,5,"tbody",36),x(7,"tbody",37),g(8,OG,1,2,"tbody",38),g(9,RG,3,4,"tfoot",39),y()),2&t){const e=n.options,i=f();Nt(i.tableStyle),ee(i.tableStyleClass),h("ngClass",Un(20,PG,i.scrollable,i.resizableColumns,i.resizableColumns&&"fit"===i.columnResizeMode)),L("id",i.id+"-table"),p(2),h("ngTemplateOutlet",i.colGroupTemplate)("ngTemplateOutletContext",te(24,Er,e.columns)),p(3),h("ngTemplateOutlet",i.headerGroupedTemplate||i.headerTemplate)("ngTemplateOutletContext",te(26,Er,e.columns)),p(1),h("ngIf",i.frozenValue||i.frozenBodyTemplate),p(1),Nt(e.contentStyle),h("ngClass",e.contentStyleClass)("value",i.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",i.bodyTemplate)("scrollerOptions",e),p(1),h("ngIf",e.spacerStyle),p(1),h("ngIf",i.footerGroupedTemplate||i.footerTemplate)}}function LG(t,n){1&t&&Z(0)}function NG(t,n){1&t&&g(0,LG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function VG(t,n){1&t&&g(0,NG,1,1,"ng-template",24)}function BG(t,n){1&t&&Z(0)}function HG(t,n){1&t&&g(0,BG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function $G(t,n){1&t&&g(0,HG,1,1,"ng-template",25)}function zG(t,n){1&t&&Z(0)}function UG(t,n){1&t&&g(0,zG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function jG(t,n){1&t&&g(0,UG,1,1,"ng-template",26)}function GG(t,n){1&t&&Z(0)}function WG(t,n){1&t&&g(0,GG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function qG(t,n){1&t&&g(0,WG,1,1,"ng-template",27)}function KG(t,n){if(1&t){const e=B();v(0,"p-paginator",44),O("onPageChange",function(r){return D(e),S(f().onPageChange(r))}),g(1,VG,1,0,null,8),g(2,$G,1,0,null,8),g(3,jG,1,0,null,8),g(4,qG,1,0,null,8),y()}if(2&t){const e=f();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),p(1),h("ngIf",e.paginatorFirstPageLinkIconTemplate),p(1),h("ngIf",e.paginatorPreviousPageLinkIconTemplate),p(1),h("ngIf",e.paginatorLastPageLinkIconTemplate),p(1),h("ngIf",e.paginatorNextPageLinkIconTemplate)}}function ZG(t,n){1&t&&Z(0)}function YG(t,n){if(1&t&&(v(0,"div",45),g(1,ZG,1,0,"ng-container",21),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.summaryTemplate)}}function QG(t,n){1&t&&x(0,"div",46,47)}function JG(t,n){1&t&&x(0,"ArrowDownIcon")}function XG(t,n){}function eW(t,n){1&t&&g(0,XG,0,0,"ng-template")}function tW(t,n){if(1&t&&(v(0,"span",48,49),g(2,JG,1,0,"ArrowDownIcon",8),g(3,eW,1,0,null,21),y()),2&t){const e=f();p(2),h("ngIf",!e.reorderIndicatorUpIconTemplate),p(1),h("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function nW(t,n){1&t&&x(0,"ArrowUpIcon")}function iW(t,n){}function rW(t,n){1&t&&g(0,iW,0,0,"ng-template")}function oW(t,n){if(1&t&&(v(0,"span",50,51),g(2,nW,1,0,"ArrowUpIcon",8),g(3,rW,1,0,null,21),y()),2&t){const e=f();p(2),h("ngIf",!e.reorderIndicatorDownIconTemplate),p(1),h("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const sW=function(t,n,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":n,"p-datatable-flex-scrollable":e}},aW=function(t){return{maxHeight:t}},lW=["pTableBody",""];function cW(t,n){1&t&&Z(0)}const Mm=function(t,n,e,i,r){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r}};function uW(t,n){if(1&t&&(W(0,3),g(1,cW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",$c(2,Mm,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function dW(t,n){1&t&&Z(0)}function pW(t,n){if(1&t&&(W(0),g(1,dW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",i?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",$c(2,Mm,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function hW(t,n){1&t&&Z(0)}const fW=function(t,n,e,i,r,o,s){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r,rowgroup:o,rowspan:s}};function gW(t,n){if(1&t&&(W(0),g(1,hW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",i?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Vb(t,n,e,i,r,o,s,a,l,c){const u=on()+t,d=R();let m=zn(d,u,e,i,r,o);return kc(d,u+4,s,a,l)||m?Ci(d,u+7,c?n.call(c,e,i,r,o,s,a,l):n(e,i,r,o,s,a,l)):_a(d,u+7)}(2,fW,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen,o.shouldRenderRowspan(o.value,i,r),o.calculateRowGroupSize(o.value,i,r)))}}function mW(t,n){1&t&&Z(0)}function _W(t,n){if(1&t&&(W(0,3),g(1,mW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",$c(2,Mm,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function yW(t,n){if(1&t&&(g(0,uW,2,8,"ng-container",2),g(1,pW,2,8,"ng-container",0),g(2,gW,2,10,"ng-container",0),g(3,_W,2,8,"ng-container",2)),2&t){const e=n.$implicit,i=n.index,r=f(2);h("ngIf",r.dt.groupHeaderTemplate&&!r.dt.virtualScroll&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,i)),p(1),h("ngIf","rowspan"!==r.dt.rowGroupMode),p(1),h("ngIf","rowspan"===r.dt.rowGroupMode),p(1),h("ngIf",r.dt.groupFooterTemplate&&!r.dt.virtualScroll&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,e,i))}}function vW(t,n){if(1&t&&(W(0),g(1,yW,4,4,"ng-template",1),q()),2&t){const e=f();p(1),h("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function bW(t,n){1&t&&Z(0)}const yd=function(t,n,e,i,r,o){return{$implicit:t,rowIndex:n,columns:e,expanded:i,editing:r,frozen:o}};function CW(t,n){if(1&t&&(W(0),g(1,bW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.template)("ngTemplateOutletContext",zr(2,yd,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function wW(t,n){1&t&&Z(0)}function TW(t,n){if(1&t&&(W(0,3),g(1,wW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",zr(2,yd,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function DW(t,n){1&t&&Z(0)}function SW(t,n){1&t&&Z(0)}function EW(t,n){if(1&t&&(W(0,3),g(1,SW,1,0,"ng-container",4),q()),2&t){const e=f(2),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",zr(2,yd,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}const z2=function(t,n,e,i){return{$implicit:t,rowIndex:n,columns:e,frozen:i}};function IW(t,n){if(1&t&&(W(0),g(1,DW,1,0,"ng-container",4),g(2,EW,2,9,"ng-container",2),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.expandedRowTemplate)("ngTemplateOutletContext",is(3,z2,i,o.getRowIndex(r),o.columns,o.frozen)),p(1),h("ngIf",o.dt.groupFooterTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,i,o.getRowIndex(r)))}}function xW(t,n){if(1&t&&(g(0,CW,2,9,"ng-container",0),g(1,TW,2,9,"ng-container",2),g(2,IW,3,8,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);h("ngIf",!r.dt.groupHeaderTemplate),p(1),h("ngIf",r.dt.groupHeaderTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,r.getRowIndex(i))),p(1),h("ngIf",r.dt.isRowExpanded(e))}}function MW(t,n){if(1&t&&(W(0),g(1,xW,3,3,"ng-template",1),q()),2&t){const e=f();p(1),h("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function kW(t,n){1&t&&Z(0)}function OW(t,n){1&t&&Z(0)}function AW(t,n){if(1&t&&(W(0),g(1,OW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",is(2,z2,i,o.getRowIndex(r),o.columns,o.frozen))}}function RW(t,n){if(1&t&&(g(0,kW,1,0,"ng-container",4),g(1,AW,2,7,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);h("ngTemplateOutlet",r.template)("ngTemplateOutletContext",zr(3,yd,e,r.getRowIndex(i),r.columns,r.dt.isRowExpanded(e),"row"===r.dt.editMode&&r.dt.isRowEditing(e),r.frozen)),p(1),h("ngIf",r.dt.isRowExpanded(e))}}function PW(t,n){if(1&t&&(W(0),g(1,RW,2,10,"ng-template",1),q()),2&t){const e=f();p(1),h("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function FW(t,n){1&t&&Z(0)}const U2=function(t,n){return{$implicit:t,frozen:n}};function LW(t,n){if(1&t&&(W(0),g(1,FW,1,0,"ng-container",4),q()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",at(2,U2,e.columns,e.frozen))}}function NW(t,n){1&t&&Z(0)}function VW(t,n){if(1&t&&(W(0),g(1,NW,1,0,"ng-container",4),q()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",at(2,U2,e.columns,e.frozen))}}function BW(t,n){1&t&&x(0,"SortAltIcon",4),2&t&&h("styleClass","p-sortable-column-icon")}function HW(t,n){1&t&&x(0,"SortAmountUpAltIcon",4),2&t&&h("styleClass","p-sortable-column-icon")}function $W(t,n){1&t&&x(0,"SortAmountDownIcon",4),2&t&&h("styleClass","p-sortable-column-icon")}function zW(t,n){if(1&t&&(W(0),g(1,BW,1,1,"SortAltIcon",3),g(2,HW,1,1,"SortAmountUpAltIcon",3),g(3,$W,1,1,"SortAmountDownIcon",3),q()),2&t){const e=f();p(1),h("ngIf",0===e.sortOrder),p(1),h("ngIf",1===e.sortOrder),p(1),h("ngIf",-1===e.sortOrder)}}function UW(t,n){}function jW(t,n){1&t&&g(0,UW,0,0,"ng-template")}function GW(t,n){if(1&t&&(v(0,"span",5),g(1,jW,1,0,null,6),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dt.sortIconTemplate)("ngTemplateOutletContext",te(2,Er,e.sortOrder))}}function WW(t,n){if(1&t&&(v(0,"span",7),A(1),y()),2&t){const e=f();p(1),Y(e.getBadgeValue())}}let km=(()=>{class t{sortSource=new Oe;selectionSource=new Oe;contextMenuSource=new Oe;valueSource=new Oe;totalRecordsSource=new Oe;columnsSource=new Oe;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),er=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new F;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,i)=>i;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new F;selectionChange=new F;onRowSelect=new F;onRowUnselect=new F;onPage=new F;onSort=new F;onFilter=new F;onLazyLoad=new F;onRowExpand=new F;onRowCollapse=new F;onContextMenuSelect=new F;onColResize=new F;onColReorder=new F;onRowReorder=new F;onEditInit=new F;onEditComplete=new F;onEditCancel=new F;onHeaderCheckboxToggle=new F;sortFunction=new F;firstChange=new F;rowsChange=new F;onStateSave=new F;onStateRestore=new F;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=kt();styleElement;responsiveStyleElement;window;constructor(e,i,r,o,s,a,l,c,u){this.document=e,this.platformId=i,this.renderer=r,this.el=o,this.zone=s,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const i=e||this.processedData;if(i&&this.paginator){const r=this.lazy?0:this.first;return i.slice(r,r+this.rows)}return i}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(V.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(V.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let r=i.metaKey||i.ctrlKey,o=this.getSortMeta(e.field);o?r?o.order=-1*o.order:(this._multiSortMeta=[{field:e.field,order:-1*o.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((o,s)=>{let a=V.resolveFieldData(o,e),l=V.resolveFieldData(s,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,i*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let r={field:e,order:i};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,r,o){const s=V.resolveFieldData(e,r[o].field),a=V.resolveFieldData(i,r[o].field);return 0===V.compare(s,a,this.filterLocale)?r.length-1>o?this.multisortField(e,i,r,o+1):0:this.compareValuesOnSort(s,a,r[o].order)}compareValuesOnSort(e,i,r){return V.sort(e,i,r,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let i=0;ib!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row"})}else this.isSingleSelectionMode()?(this._selection=s,this.selectionChange.emit(s),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(d?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,s],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})):(this._selection=s,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let d=this.findIndexInSelection(s);this._selection=this.selection.filter((m,_)=>_!=d),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,s]:[s],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const i=e.rowData,r=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(i);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(i),s=this.dataKey?String(V.resolveFieldData(i,this.dataKey)):null;if(!o){if(!this.isRowSelectable(i,r))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),s&&(this.selectionKeys={},this.selectionKeys[s]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),s&&(this.selectionKeys[s]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i){let r,o;this.anchorRowIndex>i?(r=i,o=this.anchorRowIndex):this.anchorRowIndexs?(i=this.anchorRowIndex,r=this.rangeRowIndex):om!=c);let u=this.dataKey?String(V.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[V.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length)for(let r=0;rl!=s),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,i){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:i});else{const r=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let o=this.selectionPageOnly&&this._selection?this._selection.filter(s=>!r.some(a=>this.equals(s,a))):[];i&&(o=this.frozenValue?[...o,...this.frozenValue,...r]:[...o,...r],o=this.rowSelectable?o.filter((s,a)=>this.rowSelectable({data:s,index:a})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return"equals"===this.compareSelectionBy?e===i:V.equals(e,i,this.dataKey)}filter(e,i,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:r},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;ithis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let i of e)i.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let i,r="",o=this.columns;e&&e.selectionOnly?i=this.selection||[]:e&&e.allValues?i=this.value||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));for(let l=0;l{r+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(E.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(0===E.find(i,".ng-invalid.ng-dirty").length){let r=String(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let r=String(V.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[r]?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:i,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(V.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(V.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let i=E.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=E.getOffset(this.containerViewChild?.nativeElement).left;E.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+e;if(r>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;r>15&&a>15&&this.resizeTableCells(r,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(r,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",E.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const i=E.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return E.find(i,"tr > th").forEach(o=>e.push(E.getOuterWidth(o))),e}onColumnDragStart(e,i){this.reorderIconWidth=E.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=E.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let r=E.getOffset(this.containerViewChild?.nativeElement),o=E.getOffset(i);if(this.draggedColumn!=i){E.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),E.indexWithinGroup(i,"preorderablecolumn");let l=o.left-r.left,u=o.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-r.top+i.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let r=E.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=E.indexWithinGroup(i,"preorderablecolumn"),s=r!=o;if(s&&(o-r==1&&-1===this.dropPosition||r-o==1&&1===this.dropPosition)&&(s=!1),s&&or&&-1===this.dropPosition&&(o-=1),s&&(V.reorderArray(this.columns,r,o),this.onColReorder.emit({dragIndex:r,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();V.reorderArray(a,r+1,o+1),this.updateStyleElement(a,r,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,i){let r=E.index(this.resizeColumnElement),o="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(o,r,e,i)}updateStyleElement(e,i,r,o){this.destroyStyleElement(),this.createStyleElement();let s="";e.forEach((a,l)=>{let c=l===i?r:o&&l===i+1?o:a;s+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",s)}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,r){if(this.rowDragging&&this.draggedRowIndex!==i){let o=E.getOffset(r).top,s=e.pageY,a=o+E.getOuterHeight(r)/2,l=r.previousElementSibling;sthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;V.reorderArray(this.value,this.draggedRowIndex,r),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!Wr(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const i=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(i){let s=JSON.parse(i,function(s,a){return"string"==typeof a&&r.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=s.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=s.rows,this.rowsChange.emit(this.rows))),s.sortField&&(this.restoringSort=!0,this._sortField=s.sortField,this._sortOrder=s.sortOrder),s.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=s.multiSortMeta),s.filters&&(this.restoringFilter=!0,this.filters=s.filters),this.resizableColumns&&(this.columnWidthsState=s.columnWidths,this.tableWidthState=s.tableWidth),s.expandedRowKeys&&(this.expandedRowKeys=s.expandedRowKeys),s.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(s.selection)),this.stateRestored=!0,this.onStateRestore.emit(s)}}saveColumnWidths(e){let i=[];E.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(o=>i.push(E.getOuterWidth(o))),e.columnWidths=i.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=E.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),V.isNotEmpty(e)){this.createStyleElement();let i="";e.forEach((r,o)=>{i+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${o+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${o+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${o+1}) {\n width: ${r}px !important; max-width: ${r}px !important\n }\n `}),this.styleElement.innerHTML=i}}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(r=>{i.push(r.field||r.key)}),e.columnOrder=i}}restoreColumnOrder(){const i=this.getStorage().getItem(this.stateKey);if(i){let o=JSON.parse(i).columnOrder;if(o){let s=[];o.map(a=>{let l=this.findColumnByKey(a);l&&s.push(l)}),this.columnOrderStateRestored=!0,this.columns=s}}}findColumnByKey(e){if(!this.columns)return null;for(let i of this.columns)if(i.key===e||i.field===e)return i}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){Wr(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(i){return new(i||t)(w(rt),w($n),w(xt),w(Ue),w(Te),w(km),w(bt),w(c2),w(ym))};static \u0275cmp=J({type:t,selectors:[["p-table"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(jj,5),Fe(Gj,5),Fe(Wj,5),Fe(qj,5),Fe(Kj,5),Fe(Zj,5),Fe(Yj,5),Fe(Qj,5),Fe(Jj,5)),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first),ce(o=ue())&&(r.resizeHelperViewChild=o.first),ce(o=ue())&&(r.reorderIndicatorUpViewChild=o.first),ce(o=ue())&&(r.reorderIndicatorDownViewChild=o.first),ce(o=ue())&&(r.wrapperViewChild=o.first),ce(o=ue())&&(r.tableViewChild=o.first),ce(o=ue())&&(r.tableHeaderViewChild=o.first),ce(o=ue())&&(r.tableFooterViewChild=o.first),ce(o=ue())&&(r.scroller=o.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[Pe([km]),Ft],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],[1,"p-datatable-thead"],["thead",""],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-scroller-spacer"],[1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(i,r){1&i&&(v(0,"div",0,1),g(2,oG,3,2,"div",2),g(3,aG,2,1,"div",3),g(4,bG,5,23,"p-paginator",4),v(5,"div",5,6),g(7,DG,3,17,"p-scroller",7),g(8,IG,2,7,"ng-container",8),g(9,FG,10,28,"ng-template",null,9,ai),y(),g(11,KG,5,23,"p-paginator",10),g(12,YG,2,1,"div",11),g(13,QG,2,0,"div",12),g(14,tW,4,2,"span",13),g(15,oW,4,2,"span",14),y()),2&i&&(ee(r.styleClass),h("ngStyle",r.style)("ngClass",Un(16,sW,r.rowHover||r.selectionMode,r.scrollable,r.scrollable&&"flex"===r.scrollHeight)),L("id",r.id),p(2),h("ngIf",r.loading&&r.showLoader),p(1),h("ngIf",r.captionTemplate),p(1),h("ngIf",r.paginator&&("top"===r.paginatorPosition||"both"==r.paginatorPosition)),p(1),h("ngStyle",te(20,aW,r.virtualScroll?"":r.scrollHeight)),p(2),h("ngIf",r.virtualScroll),p(1),h("ngIf",!r.virtualScroll),p(3),h("ngIf",r.paginator&&("bottom"===r.paginatorPosition||"both"==r.paginatorPosition)),p(1),h("ngIf",r.summaryTemplate),p(1),h("ngIf",r.resizableColumns),p(1),h("ngIf",r.reorderableColumns),p(1),h("ngIf",r.reorderableColumns))},dependencies:function(){return[pt,Je,Ht,Bt,cj,Tt,_2,L2,N2,pl,Lq]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),Lq=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,i,r,o){this.dt=e,this.tableService=i,this.cd=r,this.el=o,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=e[r-1];return!s||o!==V.resolveFieldData(s,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=e[r+1];return!s||o!==V.resolveFieldData(s,this.dt.groupRowsBy)}shouldRenderRowspan(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=e[r-1];return!s||o!==V.resolveFieldData(s,this.dt.groupRowsBy)}calculateRowGroupSize(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=o,a=0;for(;o===s;){a++;let l=e[++r];if(!l)break;s=V.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=E.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=E.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,i){return this.dt.virtualScroll&&(i=i||this.scrollerOptions)?i[e]:null}getRowIndex(e){const i=this.dt.paginator?this.dt.first+e:e,r=this.getScrollerOption("getItemOptions");return r?r(i).index:i}static \u0275fac=function(i){return new(i||t)(w(er),w(km),w(bt),w(Ue))};static \u0275cmp=J({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:lW,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(g(0,vW,2,2,"ng-container",0),g(1,MW,2,2,"ng-container",0),g(2,PW,2,2,"ng-container",0),g(3,LW,2,5,"ng-container",0),g(4,VW,2,5,"ng-container",0)),2&i&&(h("ngIf",!r.dt.expandedRowTemplate),p(1),h("ngIf",r.dt.expandedRowTemplate&&!(r.frozen&&r.dt.frozenExpandedRowTemplate)),p(1),h("ngIf",r.dt.frozenExpandedRowTemplate&&r.frozen),p(1),h("ngIf",r.dt.loading),p(1),h("ngIf",r.dt.isEmpty()&&!r.dt.loading))},dependencies:[Wi,Je,Ht],encapsulation:2})}return t})(),j2=(()=>{class t{dt;field;pSortableColumnDisabled;sorted;sortOrder;subscription;constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(i=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),E.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return this.isFilterElementIconOrButton(e)||this.isFilterElementIconOrButton(e?.parentElement?.parentElement)}isFilterElementIconOrButton(e){return E.hasClass(e,"pi-filter-icon")||E.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(w(er))};static \u0275dir=ne({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(i,r){1&i&&O("click",function(s){return r.onClick(s)})("keydown.enter",function(s){return r.onEnterKey(s)}),2&i&&(L("tabindex",r.isEnabled()?"0":null)("role","columnheader")("aria-sort",r.sortOrder),ii("p-sortable-column",r.isEnabled())("p-highlight",r.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}})}return t})(),G2=(()=>{class t{dt;cd;field;subscription;sortOrder;constructor(e,i){this.dt=e,this.cd=i,this.subscription=this.dt.tableService.sortSource$.subscribe(r=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else if("multiple"===this.dt.sortMode){let e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let e=this.dt._multiSortMeta,i=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let r=0;r-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(w(er),w(bt))};static \u0275cmp=J({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:3,vars:3,consts:[[4,"ngIf"],["class","p-sortable-column-icon",4,"ngIf"],["class","p-sortable-column-badge",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-sortable-column-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-sortable-column-badge"]],template:function(i,r){1&i&&(g(0,zW,4,3,"ng-container",0),g(1,GW,2,4,"span",1),g(2,WW,2,1,"span",2)),2&i&&(h("ngIf",!r.dt.sortIconTemplate),p(1),h("ngIf",r.dt.sortIconTemplate),p(1),h("ngIf",r.isMultiSorted()))},dependencies:function(){return[Je,Ht,V2,H2,B2]},encapsulation:2,changeDetection:0})}return t})(),Nq=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,uj,Dm,gd,ku,hl,bj,Qz,Im,$j,fd,L2,N2,pl,V2,H2,B2,so,zj,Uj,lt,fd]})}return t})(),W2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[ie,ze],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3),y(),v(5,"defs")(6,"clipPath",4),x(7,"rect",5),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(5),h("id",r.pathId))},encapsulation:2})}return t})(),q2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),K2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})();const Z2=["container"];function Vq(t,n){1&t&&x(0,"span"),2&t&&ee("p-toast-message-icon pi "+f(2).message.icon)}function Bq(t,n){1&t&&x(0,"CheckIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function Hq(t,n){1&t&&x(0,"InfoCircleIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function $q(t,n){1&t&&x(0,"TimesCircleIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function zq(t,n){1&t&&x(0,"ExclamationTriangleIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function Uq(t,n){if(1&t&&(v(0,"span",11),W(1),g(2,Bq,1,2,"CheckIcon",3),g(3,Hq,1,2,"InfoCircleIcon",3),g(4,$q,1,2,"TimesCircleIcon",3),g(5,zq,1,2,"ExclamationTriangleIcon",3),q(),y()),2&t){const e=f(2);L("aria-hidden",!0)("data-pc-section","icon"),p(2),h("ngIf","success"===e.message.severity),p(1),h("ngIf","info"===e.message.severity),p(1),h("ngIf","error"===e.message.severity),p(1),h("ngIf","warn"===e.message.severity)}}function jq(t,n){if(1&t&&(W(0),g(1,Vq,1,2,"span",6),g(2,Uq,6,6,"span",7),v(3,"div",8)(4,"div",9),A(5),y(),v(6,"div",10),A(7),y()(),q()),2&t){const e=f();p(1),h("ngIf",e.message.icon),p(1),h("ngIf",!e.message.icon),p(1),L("data-pc-section","text"),p(1),L("data-pc-section","summary"),p(1),Y(e.message.summary),p(1),L("data-pc-section","detail"),p(1),Y(e.message.detail)}}function Gq(t,n){1&t&&Z(0)}function Wq(t,n){1&t&&x(0,"span"),2&t&&ee("pt-1 text-base p-toast-message-icon pi "+f(2).message.closeIcon)}function qq(t,n){1&t&&x(0,"TimesIcon",14),2&t&&(h("styleClass","p-toast-icon-close-icon"),L("aria-hidden",!0)("data-pc-section","closeicon"))}function Kq(t,n){if(1&t){const e=B();v(0,"button",12),O("click",function(r){return D(e),S(f().onCloseIconClick(r))})("keydown.enter",function(r){return D(e),S(f().onCloseIconClick(r))}),g(1,Wq,1,2,"span",6),g(2,qq,1,3,"TimesIcon",13),y()}if(2&t){const e=f();L("aria-label","Close")("data-pc-section","closebutton"),p(1),h("ngIf",e.message.closeIcon),p(1),h("ngIf",!e.message.closeIcon)}}const Zq=function(t){return[t,"p-toast-message"]},Yq=function(t,n,e,i){return{showTransformParams:t,hideTransformParams:n,showTransitionParams:e,hideTransitionParams:i}},Qq=function(t){return{value:"visible",params:t}},Jq=function(t){return{$implicit:t}};function Xq(t,n){if(1&t){const e=B();v(0,"p-toastItem",3),O("onClose",function(r){return D(e),S(f().onMessageClose(r))})("@toastAnimation.start",function(r){return D(e),S(f().onAnimationStart(r))})("@toastAnimation.done",function(r){return D(e),S(f().onAnimationEnd(r))}),y()}if(2&t){const e=n.$implicit,i=n.index,r=f();h("message",e)("index",i)("life",r.life)("template",r.template)("@toastAnimation",void 0)("showTransformOptions",r.showTransformOptions)("hideTransformOptions",r.hideTransformOptions)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}}let eK=(()=>{class t{zone;message;index;life;template;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new F;containerViewChild;timeout;constructor(e){this.zone=e}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(e){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()}ngOnDestroy(){this.clearTimeout()}static \u0275fac=function(i){return new(i||t)(w(Te))};static \u0275cmp=J({type:t,selectors:[["p-toastItem"]],viewQuery:function(i,r){if(1&i&&Fe(Z2,5),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",life:"life",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:24,consts:[["role","alert","aria-live","assertive","aria-atomic","true",3,"ngClass","mouseenter","mouseleave"],["container",""],[1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"class",4,"ngIf"],["class","p-toast-message-icon",4,"ngIf"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],[1,"p-toast-message-icon"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(i,r){1&i&&(v(0,"div",0,1),O("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),v(2,"div",2),g(3,jq,8,7,"ng-container",3),g(4,Gq,1,0,"ng-container",4),g(5,Kq,3,4,"button",5),y()()),2&i&&(ee(null==r.message?null:r.message.styleClass),h("ngClass",te(13,Zq,"p-toast-message-"+(null==r.message?null:r.message.severity)))("@messageState",te(20,Qq,is(15,Yq,r.showTransformOptions,r.hideTransformOptions,r.showTransitionOptions,r.hideTransitionOptions))),L("id",null==r.message?null:r.message.id)("data-pc-name","toast")("data-pc-section","root"),p(2),h("ngClass",null==r.message?null:r.message.contentStyleClass),L("data-pc-section","content"),p(1),h("ngIf",!r.template),p(1),h("ngTemplateOutlet",r.template)("ngTemplateOutletContext",te(22,Jq,r.message)),p(1),h("ngIf",!1!==(null==r.message?null:r.message.closable)))},dependencies:function(){return[pt,Je,Ht,Es,so,q2,K2,W2,Zn]},encapsulation:2,data:{animation:[Yr("messageState",[Ou("visible",Ge({transform:"translateY(0)",opacity:1})),pn("void => *",[Ge({transform:"{{showTransformParams}}",opacity:0}),Jt("{{showTransitionParams}}")]),pn("* => void",[Jt("{{hideTransitionParams}}",Ge({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return t})(),tK=(()=>{class t{document;renderer;messageService;cd;config;key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;position="top-right";preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new F;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;constructor(e,i,r,o,s){this.document=e,this.renderer=i,this.messageService=r,this.cd=o,this.config=s}styleElement;id=kt();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(Array.isArray(e)){const i=e.filter(r=>this.canAdd(r));this.add(i)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let i=this.key===e.key;return i&&this.preventOpenDuplicates&&(i=!this.containsMessage(this.messages,e)),i&&this.preventDuplicates&&(i=!this.containsMessage(this.messagesArchieve,e)),i}containsMessage(e,i){return!!e&&null!=e.find(r=>r.summary===i.summary&&r.detail==i.detail&&r.severity===i.severity)}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.template=e.template})}onMessageClose(e){this.messages?.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){"void"===e.fromState&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&""===this.containerViewChild?.nativeElement.style.zIndex&&jt.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&V.isEmpty(this.messages)&&jt.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let i in this.breakpoints){let r="";for(let o in this.breakpoints[i])r+=o+":"+this.breakpoints[i][o]+" !important;";e+=`\n @media screen and (max-width: ${i}) {\n .p-toast[${this.id}] {\n ${r}\n }\n }\n `}this.renderer.setProperty(this.styleElement,"innerHTML",e)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&jt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static \u0275fac=function(i){return new(i||t)(w(rt),w(xt),w(_m),w(bt),w(ro))};static \u0275cmp=J({type:t,selectors:[["p-toast"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&Fe(Z2,5),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",life:"life",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","life","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","life","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(i,r){1&i&&(v(0,"div",0,1),g(2,Xq,1,9,"p-toastItem",2),y()),2&i&&(ee(r.styleClass),h("ngClass","p-toast p-component p-toast-"+r.position)("ngStyle",r.style),p(2),h("ngForOf",r.messages))},dependencies:[pt,Wi,Bt,eK],styles:["@layer primeng{.p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}}\n"],encapsulation:2,data:{animation:[Yr("toastAnimation",[pn(":enter, :leave",[On("@*",ja())])])]},changeDetection:0})}return t})(),nK=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,so,q2,K2,W2,Zn,lt]})}return t})(),sK=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();var Yn=function(t){return t.Channels="channels",t.Episodes="episodes",t.Programs="programs",t.ChannelDetails="channels/:id",t.ChannelSchedule="channels/schedule/:id",t.ProgramDetails="programs/:id",t.EpisodeDetails="episodes/:id",t}(Yn||{});function Y2(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function me(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){Y2(o,i,r,s,a,"next",l)}function a(l){Y2(o,i,r,s,a,"throw",l)}s(void 0)})}}class tr{}class vd extends tr{get Type(){return"NavigateBackMessage"}}class gl extends tr{constructor(n,e,i,r){super(),this.title=n,this.url=e,this.episodeId=i,this.channelId=r}get Type(){return"PlayAudioMessage"}}function xi(t){return t&&"/Date(-62135596800000)/"!==t?new Date(JSON.parse(t.match(/\d+/)[0])):null}function Q2(t){const n=new Date(1970,0,1);return n.setSeconds(t),n}let Om=(()=>{class t{get BaseUrl(){return"https://api.sr.se/api/v2/"}get FormatParam(){return"format=json"}static get DefaultImagePreset(){return"?preset=100x100"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pn(t,n){const e="object"==typeof n;return new Promise((i,r)=>{let s,o=!1;t.subscribe({next:a=>{s=a,o=!0},error:r,complete:()=>{o?i(s):e?i(n.defaultValue):r(new Ya)}})})}let J2=(()=>{class t extends Om{constructor(e){super(),this.http=e}fetchSonglistForEpisode(e){var i=this;return me(function*(){if(e)return Pn(i.http.get(`${i.BaseUrl}playlists/getplaylistbyepisodeid/?id=${e}&${i.FormatParam}`))})()}fetchCurrentPlaylistForChannel(e){var i=this;return me(function*(){if(e)return Pn(i.http.get(`${i.BaseUrl}playlists/rightnow/?channelid=${e}&${i.FormatParam}`))})()}static#e=this.\u0275fac=function(i){return new(i||t)(H(mu))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class bd extends tr{constructor(n,e){super(),this.episodeId=n,this.isBookmarked=e}get Type(){return"BookmarkChangedMessage"}}class Am extends tr{constructor(n){super(),this.info=n}get Type(){return"SuccessInfoMessage"}}let Rm=(()=>{class t{constructor(){this.localStorage=window.localStorage}get(e){if(this.isSupported){const i=this.localStorage.getItem(e);if(i)try{return JSON.parse(i)}catch{}}return null}set(e,i){return!!this.isSupported&&(this.localStorage.setItem(e,JSON.stringify(i)),!0)}get isSupported(){return!!this.localStorage}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wn=(()=>{class t{constructor(){this.subject=new Oe}sendMessage(e){this.subject.next(e)}getMessage(){return this.subject.asObservable()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const aK=JSON.parse('{"Channel":"Channel","Program":"Program","Episode":"Episode","LiveStreamsHeader":"Live","EpisodesHeader":"Episodes","ProgramsHeader":"Programs","NowPlaying":"Now playing","ChannelNameTitle":"Channel","EpisodeNameTitle":"Episode title","ChannelTypeTitle":"Type","ChannelTaglineTitle":"Tag line","ProgramNameTitle":"Program name","Name":"Name","Starts":"Starts","Start":"Start","Description":"Description","ProgramScheduleForToday":"Schedule","ChannelDetails":"Channel information","CurrentEpisode":"Current episode","NextEpisode":"Next episode","PreviousEpisode":"Previous episode","Title":"Title","Desc.":"Desc.","Artist":"Artist","Album":"Album","CurrentPlaylist":"Current playlist","PreviousSong":"Previous song","NextSong":"Next song","CurrentSong":"Current song","StartTime":"Start time","StopTime":"Stop time","Songlist":"Song list","SelectAProgram":"Select a program","SelectAProgramForEpisodes":"Select a program to list episodes for","Date":"Date","EpisodeTitle":"Episode title","RemovedFromFavorites":"Removed \'{0}\' from program favorites!","AddedToFavorites":"Added \'{0}\' to program favorites!","SearchKeyword":"search","OnlyFavs":"Only favorites","PublishDate":"Publish date","AnyCategories":"Any categories","Category":"Category","Duration":"Duration","AvailableTo":"Available to","Soundtype":"Sound type","SoundTypeNone":"None","SoundTypeBroadcast":"Broadcast","SoundTypePodfile":"Podfile","Bookmarks":"Bookmarks","BookmarkAdded":"Bookmark added","BookmarkRemoved":"Bookmark removed","ProgramDetailsAndEpisodes":"Details and episodes","AudioPrefixChannel":"Live","AudioPrefixEpisode":"Episode","LinkToProgramDetailsText":"Show details and all episodes for ","ShowOnlyCurrentAndFuture":"Show only current and upcoming"}'),lK=JSON.parse('{"Channel":"Kanal","Program":"Program","Episode":"Avsnitt","LiveStreamsHeader":"Direkt","EpisodesHeader":"Avsnitt","ProgramsHeader":"Program","NowPlaying":"Spelar nu","ChannelNameTitle":"Kanal","EpisodeNameTitle":"Avsnittsnamn","ChannelTypeTitle":"Typ","ChannelTaglineTitle":"Beskrivning","ProgramNameTitle":"Programnamn","Name":"Namn","Starts":"B\xf6rjar","Start":"Start","Description":"Beskrivning","ProgramScheduleForToday":"Tabl\xe5","ChannelDetails":"Kanalinformation","CurrentEpisode":"Avsnitt som spelas nu","NextEpisode":"N\xe4sta avsnitt","PreviousEpisode":"F\xf6reg\xe5ende avsnitt","Title":"Titel","Desc.":"Beskr.","Artist":"Artist","Album":"Album","CurrentPlaylist":"Spellista","PreviousSong":"F\xf6reg\xe5ende l\xe5t","NextSong":"N\xe4sta l\xe5t","CurrentSong":"L\xe5t som spelas nu","StartTime":"Starttid","StopTime":"Sluttid","Songlist":"L\xe5tlista","SelectAProgram":"V\xe4lj ett program","SelectAProgramForEpisodes":"V\xe4lj ett program att lista avsnitt f\xf6r","Date":"Datum","EpisodeTitle":"Avsnittsnamn","RemovedFromFavorites":"Tog bort \'{0}\' fr\xe5n programfavoriter!","AddedToFavorites":"La till \'{0}\' till programfavoriter!","SearchKeyword":"s\xf6k","OnlyFavs":"Bara favoriter","PublishDate":"Utgivningsdatum","AnyCategories":"Alla kategorier","Category":"Kategori","Duration":"L\xe4ngd","AvailableTo":"Tillg\xe4nglig till","Soundtype":"Ljudtyp","SoundTypeNone":"Ingen","SoundTypeBroadcast":"S\xe4ndning (broadcast)","SoundTypePodfile":"Podfil","Bookmarks":"Bokm\xe4rken","BookmarkAdded":"Ett bokm\xe4rke har lagts till","BookmarkRemoved":"Ett bokm\xe4rke har tagits bort","ProgramDetailsAndEpisodes":"Detaljer och avsnitt","AudioPrefixChannel":"Direkt","AudioPrefixEpisode":"Avsnitt","LinkToProgramDetailsText":"Visa detaljer och alla avsnitt f\xf6r ","ShowOnlyCurrentAndFuture":"Visa bara p\xe5g\xe5ende och kommande"}');let Is=(()=>{class t{constructor(){this.translations={en:aK,sv:lK}}set defaultLangCode(e){this.fallBackLangCode=e}set currentLocale(e){this.localeToUse=e,this.currLangCode=this.localeToUse.slice(0,2)}translate(e){if(this.translations[this.currLangCode]&&this.translations[this.currLangCode][e]){const i=this.translations[this.currLangCode][e];if(""!==i)return i}if(this.translations[this.fallBackLangCode]&&this.translations[this.fallBackLangCode][e]){const i=this.translations[this.fallBackLangCode][e];return""===i?e:i}return e}translateWithArgs(e,i){const r=this.translate(e);return i?this.replace(r,i):r}replace(e="",i=""){let r=e;return[].concat(i).forEach((s,a)=>{s=s.replace(/\$/g,"$$$$"),r=r.replace("{".concat(a)+"}",s)}),r}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tn=(()=>{class t extends Om{constructor(e,i,r,o){super(),this.http=e,this.localStorageService=i,this.broker=r,this.translationService=o,this.channels$=new en(null),this.programs$=new en(null),this.programCategories$=new en(null),this.programFavs=new Set,this.episodeBookmarks=new Set,this.baseDataFetched=!1,this.initFavoritesFromLocalStorage(),this.initBookmarksFromLocalStorage()}fetchBaseData(){var e=this;return me(function*(){yield e.fetchChannelsBaseData(),yield e.fetchBaseProgramsData(),yield e.fetchBaseProgramCategoriesData(),e.baseDataFetched=!0})()}setCurrentlyPlaying(e){this.currentlyPlaying=e}isCurrentlyPlaying(e){return this.currentlyPlaying===e}fetchChannelsBaseData(){var e=this;return me(function*(){const i=yield e.getAllChannels();e.channels=i.channels.map(r=>({name:r.name,id:r.id,liveaudio:{id:r.liveaudio.id,url:r.liveaudio.url},image:r.imagetemplate+t.DefaultImagePreset,channeltype:r.channeltype,tagline:r.tagline})),e.channels=e.channels.filter(r=>"Extrakanaler"!==r.channeltype),e.channels$.next(e.channels)})()}fetchBaseProgramsData(){var e=this;return me(function*(){const r=(yield e.getAllPrograms()).programs.map(o=>({name:o.name,id:o.id,fav:!1,channel:{id:o?.channel.id,name:o?.channel.name},programimage:o.programimagetemplate+t.DefaultImagePreset,description:o.description,programcategory:o.programcategory}));e.updateProgramsWithFavs(r)})()}fetchBaseProgramCategoriesData(){var e=this;return me(function*(){const i=yield e.getAllProgramCategories();e.programCategories=i.programcategories.map(r=>({name:r.name,id:r.id})),e.programCategories$.next(e.programCategories)})()}getAllChannels(){var e=this;return me(function*(){return Pn(e.http.get(`${e.BaseUrl}channels/?${e.FormatParam}&page=1&size=10000`))})()}getAllPrograms(){var e=this;return me(function*(){return Pn(e.http.get(`${e.BaseUrl}programs/?${e.FormatParam}&page=1&size=10000`))})()}getAllProgramCategories(){var e=this;return me(function*(){return Pn(e.http.get(`${e.BaseUrl}programcategories/?${e.FormatParam}&page=1&size=10000`))})()}getChannelNameFromId(e){return this.channels?this?.channels.find(r=>r.id===e)?.name:void 0}getCategoryNameFromId(e){return this.programCategories?this?.programCategories.find(r=>r.id===e)?.name:void 0}getProgramImageUrlFromId(e){return this.programs?this?.programs.find(r=>r.id===e)?.programimage:void 0}addProgramToFavorites(e,i){this.programFavs.has(e)||(this.programFavs.add(e),this.storeFavsInLocalStorage(),this.updateProgramsWithFavs(this.programs),this.broker.sendMessage(new Am(this.translationService.translateWithArgs("AddedToFavorites",i))))}removeProgramFromFavorites(e,i){this.programFavs.has(e)&&(this.programFavs.delete(e),this.storeFavsInLocalStorage(),this.updateProgramsWithFavs(this.programs),this.broker.sendMessage(new Am(this.translationService.translateWithArgs("RemovedFromFavorites",i))))}addBookmarkForEpisode(e){this.episodeBookmarks.has(e)||(this.episodeBookmarks.add(e),this.storeBookmarksInLocalStorage(),this.broker.sendMessage(new bd(e,!0)))}removeBookmarkForEpisode(e){this.episodeBookmarks.has(e)&&(this.episodeBookmarks.delete(e),this.storeBookmarksInLocalStorage(),this.broker.sendMessage(new bd(e,!1)))}getBookmarkedEpisodes(){return Array.from(this.episodeBookmarks)}isEpisodeBookmarked(e){return this.episodeBookmarks.has(e)}getProgramFromId(e){var i=this;return me(function*(){return i.baseDataFetched||(yield i.fetchBaseData()),i.programs.find(o=>o.id===e)})()}getChannelFromId(e){var i=this;return me(function*(){return i.baseDataFetched||(yield i.fetchBaseData()),i.channels.find(o=>o.id===e)})()}updateProgramsWithFavs(e){e.forEach(i=>i.fav=this.programFavs.has(i.id)),e.sort((i,r)=>i.name.localeCompare(r.name)),this.programs=e,this.programs$.next(this.programs)}initFavoritesFromLocalStorage(){const e=this.localStorageService.get("programfavs");if(e)try{const i=JSON.parse(e);i&&i.forEach(r=>{this.programFavs.add(r)})}catch{}}storeFavsInLocalStorage(){let e=JSON.stringify(Array.from(this.programFavs));this.localStorageService.set("programfavs",e)}initBookmarksFromLocalStorage(){const e=this.localStorageService.get("episodeBookmarks");if(e)try{const i=JSON.parse(e);i&&i.forEach(r=>{this.episodeBookmarks.add(r)})}catch{}}storeBookmarksInLocalStorage(){let e=JSON.stringify(Array.from(this.episodeBookmarks));this.localStorageService.set("episodeBookmarks",e)}static#e=this.\u0275fac=function(i){return new(i||t)(H(mu),H(Rm),H(wn),H(Is))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xs=(()=>{class t extends Om{constructor(e,i){super(),this.http=e,this.srApiService=i}fetchEpisodesForProgram(e,i,r){var o=this;return me(function*(){if(null==e)return;let s=`${o.BaseUrl}episodes/index/?${o.FormatParam}&programid=${e}&page=${i}&size=${r}`;const a=yield Pn(o.http.get(`${s}`));return a.episodes.forEach(l=>{l.channelName=o.srApiService.getChannelNameFromId(l.channelid)}),a})()}fetchEpisode(e){var i=this;return me(function*(){if(null==e)return;let r=`${i.BaseUrl}episodes/get?id=${e}&${i.FormatParam}`;const o=yield Pn(i.http.get(`${r}`));if(o.episode.channelName=i.srApiService.getChannelNameFromId(o.episode.channelid),o.episode?.relatedepisodes){let s=yield i.fetchEpisodesOverview(o.episode.relatedepisodes.map(a=>a.id));o.episode.relatedepisodes=s.episodes}return o.episode?.episodegroups&&o.episode.episodegroups.forEach(function(){var s=me(function*(a){let l=yield i.fetchEpisodesByGroup(a.id,1,10);a.episodes=l});return function(a){return s.apply(this,arguments)}}()),o})()}fetchEpisodes(e){var i=this;return me(function*(){if(null==e)return;if(e.length<1)return{episodes:[],pagination:{page:1,size:10,totalpages:0}};let r=e.map(a=>a).join(","),o=`${i.BaseUrl}episodes/getlist?ids=${r}&${i.FormatParam}`;const s=yield Pn(i.http.get(`${o}`));return s.episodes.forEach(a=>{a.channelName=i.srApiService.getChannelNameFromId(a.channelid)}),s})()}fetchEpisodesOverview(e){var i=this;return me(function*(){if(null==e)return;if(e.length<1)return{episodes:[],pagination:{page:1,size:10,totalpages:0}};let r=e.map(a=>a).join(","),o=`${i.BaseUrl}episodes/getlist?ids=${r}&${i.FormatParam}`;return yield Pn(i.http.get(`${o}`))})()}fetchRightNowEpisodes(e){var i=this;return me(function*(){if(null!=e)return Pn(i.http.get(`${i.BaseUrl}scheduledepisodes/rightnow?${i.FormatParam}&channelid=${e}`))})()}fetchChannelSchedule(e,i,r){var o=this;return me(function*(){if(null!=e)return Pn(o.http.get(`${o.BaseUrl}scheduledepisodes/?${o.FormatParam}&channelid=${e}&page=${i}&size=${r}`))})()}searchEpisodes(e,i,r){var o=this;return me(function*(){if(null==e)return;let s=`${o.BaseUrl}/episodes/search/?${o.FormatParam}&query=${e}&page=${i}&size=${r}`;const a=yield Pn(o.http.get(`${s}`));return a.episodes.forEach(l=>{l.channelName=o.srApiService.getChannelNameFromId(l.channelid)}),a})()}fetchEpisodesByGroup(e,i,r){var o=this;return me(function*(){if(null==e)return;let s=`${o.BaseUrl}/episodes/group/?${o.FormatParam}&id=${e}&page=${i}&size=${r}`;return(yield Pn(o.http.get(`${s}`))).episodegroup.episodes})()}static#e=this.\u0275fac=function(i){return new(i||t)(H(mu),H(Tn))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pi=(()=>{class t{constructor(e){this.translate=e}transform(e,i){if(e)return this.translate.translateWithArgs(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Is,16))};static#t=this.\u0275pipe=tn({name:"translate",type:t,pure:!1})}return t})();function cK(t,n){if(1&t&&(v(0,"div")(1,"div")(2,"b"),A(3),U(4,"translate"),y(),A(5),y(),v(6,"div")(7,"b"),A(8),U(9,"translate"),y(),A(10),y(),v(11,"div")(12,"b"),A(13),U(14,"translate"),y(),A(15),y(),v(16,"div")(17,"b"),A(18),U(19,"translate"),y(),A(20),U(21,"date"),y(),v(22,"div")(23,"b"),A(24),U(25,"translate"),y(),A(26),U(27,"date"),y()()),2&t){const e=f();p(3),Y(K(4,10,"Title")),p(2),pe(": ",null==e.song?null:e.song.title," "),p(3),Y(K(9,12,"Artist")),p(2),pe(": ",null==e.song?null:e.song.artist," "),p(3),Y(K(14,14,"Album")),p(2),pe(": ",null==e.song?null:e.song.albumname," "),p(3),Y(K(19,16,"StartTime")),p(2),pe(": ",zi(21,18,null==e.song?null:e.song.starttimeutcDate,"medium")," "),p(4),Y(K(25,21,"StopTime")),p(2),pe(": ",zi(27,23,null==e.song?null:e.song.stoptimeutcDate,"medium")," ")}}let X2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=J({type:t,selectors:[["app-song"]],inputs:{song:"song"},decls:1,vars:1,consts:[[4,"ngIf"]],template:function(i,r){1&i&&g(0,cK,28,26,"div",0),2&i&&h("ngIf",r.song)},dependencies:[Je,cs,pi],encapsulation:2})}return t})();class Ms extends tr{constructor(n){super(),this.episodeId=n}get Type(){return"ShowEpisodeDetailsMessage"}}function uK(t,n){1&t&&(v(0,"div"),x(1,"i",2),y())}function dK(t,n){if(1&t){const e=B();v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),v(4,"div",1),O("click",function(){D(e);const r=f();return S(r.onOpenDetails(r.episode.episodeid))}),v(5,"div")(6,"div"),g(7,uK,2,0,"div",0),v(8,"b"),A(9),U(10,"translate"),y(),A(11),y()(),v(12,"div")(13,"div")(14,"b"),A(15),U(16,"translate"),y(),A(17),y()(),v(18,"div")(19,"div")(20,"b"),A(21),U(22,"translate"),y(),A(23),U(24,"date"),y()()()()}if(2&t){const e=f();p(2),Y(K(3,8,e.header)),p(5),h("ngIf",e.episode.episodeid),p(2),Y(K(10,10,"Title")),p(2),pe(": ",null==e.episode?null:e.episode.title," "),p(4),Y(K(16,12,"Desc.")),p(2),pe(": ",null==e.episode?null:e.episode.description," "),p(4),Y(K(22,14,"Start")),p(2),pe(": ",zi(24,16,null==e.episode?null:e.episode.starttimeDate,"medium")," ")}}let pK=(()=>{class t{constructor(e){this.broker=e}onOpenDetails(e){this.broker.sendMessage(new Ms(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-scheduled-episode"]],inputs:{episode:"episode",header:"header"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle","details-btn","right"]],template:function(i,r){1&i&&g(0,dK,25,19,"div",0),2&i&&h("ngIf",r.episode)},dependencies:[Je,cs,pi],encapsulation:2})}return t})();function hK(t,n){if(1&t&&(v(0,"div"),x(1,"app-scheduled-episode",7)(2,"app-scheduled-episode",8)(3,"app-scheduled-episode",9),y()),2&t){const e=f(2);p(1),h("episode",null==e.rightNowEpisodes||null==e.rightNowEpisodes.channel?null:e.rightNowEpisodes.channel.currentscheduledepisode),p(1),h("episode",null==e.rightNowEpisodes||null==e.rightNowEpisodes.channel?null:e.rightNowEpisodes.channel.nextscheduledepisode),p(1),h("episode",null==e.rightNowEpisodes||null==e.rightNowEpisodes.channel?null:e.rightNowEpisodes.channel.previousscheduledepisode)}}function fK(t,n){1&t&&(v(0,"h2"),A(1),U(2,"translate"),y()),2&t&&(p(1),pe("",K(2,1,"CurrentPlaylist"),": "))}function gK(t,n){if(1&t&&(v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),x(4,"app-song",10),y()),2&t){const e=f(2);p(2),Y(K(3,2,"CurrentSong")),p(2),h("song",e.playlist.song)}}function mK(t,n){if(1&t&&(v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),x(4,"app-song",10),y()),2&t){const e=f(2);p(2),Y(K(3,2,"NextSong")),p(2),h("song",e.playlist.nextsong)}}function _K(t,n){if(1&t&&(v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),x(4,"app-song",10),y()),2&t){const e=f(2);p(2),Y(K(3,2,"PreviousSong")),p(2),h("song",e.playlist.previoussong)}}function yK(t,n){if(1&t){const e=B();v(0,"div")(1,"div",1)(2,"i",2),O("click",function(){return D(e),S(f().close())}),y(),x(3,"img",3),A(4),U(5,"translate"),y(),x(6,"hr"),v(7,"div",1),A(8),y(),v(9,"span",4),O("click",function(){D(e);const r=f();return S(r.onPlayChannel(r.channel))}),x(10,"i",5),y(),v(11,"div"),A(12),y(),x(13,"hr"),g(14,hK,4,3,"div",0),x(15,"hr"),v(16,"div"),g(17,fK,3,3,"h2",0),g(18,gK,5,4,"div",0),g(19,mK,5,4,"div",0),g(20,_K,5,4,"div",0),y(),x(21,"div",6),y()}if(2&t){const e=f();p(3),Mt("src",e.channel.image,Hn),p(1),pe(" ",K(5,10,"ChannelDetails")," "),p(4),Y(e.channel.name),p(2),h("ngClass",e.isCurrentlyPlaying(null==e.channel||null==e.channel.liveaudio?null:e.channel.liveaudio.url)?"pi pi-pause play-button":"pi pi-play play-button"),p(2),pe(" ",e.channel.tagline," "),p(2),h("ngIf",e.rightNowEpisodes),p(3),h("ngIf",(null==e.playlist?null:e.playlist.song)||(null==e.playlist?null:e.playlist.nextsong)||(null==e.playlist?null:e.playlist.previoussong)),p(1),h("ngIf",null==e.playlist?null:e.playlist.song),p(1),h("ngIf",null==e.playlist?null:e.playlist.nextsong),p(1),h("ngIf",null==e.playlist?null:e.playlist.previoussong)}}let vK=(()=>{class t{constructor(e,i,r,o,s){this.playlistsService=e,this.episodesService=i,this.srApiService=r,this.broker=o,this.activatedRoute=s,this.unsubscribe$=new Oe}ngOnInit(){var e=this;this.activatedRoute.params.pipe(Ut(this.unsubscribe$),Se(i=>i.id)).subscribe(function(){var i=me(function*(r){const o=yield e.srApiService.getChannelFromId(parseInt(r));o&&(yield e.show(o))});return function(r){return i.apply(this,arguments)}}())}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}show(e){var i=this;return me(function*(){i.channel=e;const r=yield i.playlistsService.fetchCurrentPlaylistForChannel(e.id);i.playlist=r.playlist,i.convertSongDates(i?.playlist?.previoussong),i.convertSongDates(i?.playlist?.song),i.convertSongDates(i?.playlist?.nextsong),i.rightNowEpisodes=yield i.episodesService.fetchRightNowEpisodes(e.id),i.convertEpisodeDates(i?.rightNowEpisodes?.channel?.previousscheduledepisode),i.convertEpisodeDates(i?.rightNowEpisodes?.channel?.currentscheduledepisode),i.convertEpisodeDates(i?.rightNowEpisodes?.channel?.nextscheduledepisode)})()}convertEpisodeDates(e){e?.starttimeutc&&(e.starttimeDate=xi(e.starttimeutc)),e?.endtimeutc&&(e.endtimeDate=xi(e.endtimeutc))}convertSongDates(e){e?.starttimeutc&&(e.starttimeutcDate=xi(e.starttimeutc)),e?.stoptimeutc&&(e.stoptimeutcDate=xi(e.stoptimeutc))}close(){this.broker.sendMessage(new vd)}onPlayChannel(e){this.broker.sendMessage(new gl(e.name,e.liveaudio.url,void 0,e.id))}isCurrentlyPlaying(e){return!!e&&this.srApiService.isCurrentlyPlaying(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(J2),w(xs),w(Tn),w(wn),w(Ji))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-channel-details"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"details-header-text"],[1,"pi","pi-chevron-left","close-button","clickable",3,"click"],["width","50",2,"vertical-align","middle",3,"src"],[1,"clickable","right",3,"click"],[3,"ngClass"],[1,"bottom-padding"],["header","CurrentEpisode",3,"episode"],["header","NextEpisode",3,"episode"],["header","PreviousEpisode",3,"episode"],[3,"song"]],template:function(i,r){1&i&&g(0,yK,22,12,"div",0),2&i&&h("ngIf",r.channel)},dependencies:[pt,Je,X2,pK,pi],encapsulation:2})}return t})();class Cd extends tr{constructor(n){super(),this.programId=n}get Type(){return"ShowProgramDetailsMessage"}}function bK(t,n){if(1&t){const e=B();v(0,"div",7)(1,"i",8),O("click",function(){return D(e),S(f().close())}),y(),x(2,"img",9),A(3),U(4,"translate"),y()}if(2&t){const e=f();p(2),Mt("src",e.channel.image,Hn),p(1),pr(" ",K(4,3,"ProgramScheduleForToday"),": ",e.channel.name," ")}}function CK(t,n){1&t&&(v(0,"tr")(1,"th",10),A(2),U(3,"uppercase"),U(4,"translate"),y(),v(5,"th"),A(6),U(7,"uppercase"),U(8,"translate"),y(),v(9,"th"),A(10),U(11,"uppercase"),U(12,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"Name"))),p(4),Y(K(7,7,K(8,9,"Starts"))),p(4),Y(K(11,11,K(12,13,"Description"))))}function wK(t,n){if(1&t){const e=B();v(0,"div",14),O("click",function(){D(e);const r=f().$implicit;return S(f().onOpenDetails(r.episodeid))}),x(1,"i",15),y()}}function TK(t,n){if(1&t){const e=B();v(0,"tr")(1,"td",10),x(2,"img",9),v(3,"b",11),O("click",function(){const o=D(e).$implicit;return S(f().onOpenProgramDetails(o.program.id))}),A(4),y(),g(5,wK,2,0,"div",12),y(),v(6,"td"),A(7),U(8,"date"),y(),v(9,"td",13),A(10),y()()}if(2&t){const e=n.$implicit;p(2),Mt("src",e.imageurl,Hn),p(2),Y(e.title),p(1),h("ngIf",e.episodeid),p(2),pe(" ",zi(8,5,e.starttimeDate,"HH:mm")," "),p(3),pe(" ",e.description," ")}}let DK=(()=>{class t{constructor(e,i,r,o,s){this.service=e,this.broker=i,this.activatedRoute=r,this.srApiService=o,this.storage=s,this.totalHits=0,this.pageSize=1e3,this.unsubscribe$=new Oe,this.storageId="ChannelScheduleState",this.localState={showPrevious:!1}}ngOnInit(){var e=this;const i=this.storage.get(this.storageId);i&&(this.localState=i),this.activatedRoute.params.pipe(Ut(this.unsubscribe$),Se(r=>r.id)).subscribe(function(){var r=me(function*(o){const s=yield e.srApiService.getChannelFromId(parseInt(o));s&&(yield e.show(s))});return function(o){return r.apply(this,arguments)}}())}ngOnDestroy(){this.storage.set(this.storageId,this.localState),this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}ngAfterViewInit(){this.filterOnTime(this.tableComponent)}onFilterShowOnlyCurrentAndFutureClicked(e,i){this.localState.showPrevious=e.checked,this.filterOnTime(i)}filterOnTime(e){if(!e)return;const i=new Date;i.setHours(0,0,0,0),e.filter(this.localState.showPrevious?i:Date.now(),"endtimeDate","gt")}show(e){var i=this;return me(function*(){i.channel=e,yield i.fetch(i.channel.id,0)})()}fetch(e,i){var r=this;return me(function*(){if(!e)return;const o=i/r.pageSize+1,s=yield r.service.fetchChannelSchedule(e,o,r.pageSize);r.totalHits=s.pagination.totalhits,r.scheduledEpisodes=s.schedule.map(a=>({title:a.title,episodeid:a.episodeid,description:a.description,starttimeDate:xi(a?.starttimeutc),endtimeDate:xi(a?.endtimeutc),program:a.program,imageurltemplate:a.imageurltemplate,imageurl:a.imageurltemplate?a.imageurltemplate+Tn.DefaultImagePreset:r.srApiService.getProgramImageUrlFromId(a.program.id)}))})()}close(){this.broker.sendMessage(new vd)}onOpenDetails(e){this.broker.sendMessage(new Ms(e))}onOpenProgramDetails(e){this.broker.sendMessage(new Cd(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(wn),w(Ji),w(Tn),w(Rm))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-channel-schedule"]],viewQuery:function(i,r){if(1&i&&Fe(er,5),2&i){let o;ce(o=ue())&&(r.tableComponent=o.first)}},decls:12,vars:7,consts:[["class","details-header-text",4,"ngIf"],[1,"onlycurrentandfuture-chk",3,"ngModel","binary","label","onChange","ngModelChange"],["responsiveLayout","stack",3,"value"],["dt3",""],["pTemplate","header"],["pTemplate","body"],[1,"bottom-padding"],[1,"details-header-text"],[1,"pi","pi-chevron-left","close-button","clickable",3,"click"],[1,"image-thumb",3,"src"],[1,"min-title-column"],[1,"clickable",3,"click"],["class","right clickable",3,"click",4,"ngIf"],[1,"desc-col"],[1,"right","clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"]],template:function(i,r){if(1&i){const o=B();v(0,"div"),g(1,bK,5,5,"div",0),v(2,"div")(3,"span")(4,"p-checkbox",1),O("onChange",function(a){D(o);const l=Xe(8);return S(r.onFilterShowOnlyCurrentAndFutureClicked(a,l))})("ngModelChange",function(a){return r.localState.showPrevious=a}),U(5,"translate"),y()()(),x(6,"hr"),v(7,"p-table",2,3),g(9,CK,13,15,"ng-template",4),g(10,TK,11,8,"ng-template",5),y(),x(11,"div",6),y()}2&i&&(p(1),h("ngIf",r.channel),p(3),Mt("label",K(5,5,"Visa tidigare")),h("ngModel",r.localState.showPrevious)("binary",!0),p(3),h("value",r.scheduledEpisodes))},dependencies:[Je,er,Tt,Cu,gs,bm,ls,cs,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}"]})}return t})();class Pm extends tr{constructor(n){super(),this.channelId=n}get Type(){return"ShowChannelDetailsMessage"}}class eE extends tr{constructor(n){super(),this.channelId=n}get Type(){return"ShowChannelScheduleMessage"}}function SK(t,n){if(1&t){const e=B();v(0,"div",6)(1,"span",7),x(2,"i",8),v(3,"input",9),O("input",function(r){return D(e),f(),S(Xe(2).filterGlobal(r.target.value,"contains"))}),U(4,"uppercase"),U(5,"translate"),y()()()}2&t&&(p(3),Mt("placeholder",K(4,1,K(5,3,"SearchKeyword"))))}function EK(t,n){1&t&&(v(0,"tr")(1,"th",10),A(2),U(3,"uppercase"),U(4,"translate"),x(5,"p-sortIcon",11),y(),v(6,"th",12),A(7),U(8,"uppercase"),U(9,"translate"),x(10,"p-sortIcon",13),y(),v(11,"th"),A(12),U(13,"uppercase"),U(14,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"ChannelNameTitle"))),p(5),Y(K(8,7,K(9,9,"ChannelTypeTitle"))),p(5),Y(K(13,11,K(14,13,"ChannelTaglineTitle"))))}function IK(t,n){if(1&t){const e=B();v(0,"tr")(1,"td",14)(2,"div",15)(3,"span",16),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),x(4,"img",17),A(5),y(),v(6,"span",18)(7,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),x(8,"i",20),y(),v(9,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onOpenSchedule(o))}),x(10,"i",21),y(),v(11,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onPlayChannel(o))}),x(12,"i",22),y()()()(),v(13,"td",23),A(14),y(),v(15,"td",24),A(16),y()()}if(2&t){const e=n.$implicit,i=f();p(4),Mt("src",e.image,Hn),p(1),pe(" ",e.name," "),p(7),h("ngClass",i.isCurrentlyPlaying(null==e||null==e.liveaudio?null:e.liveaudio.url)?"pi pi-pause play-button":"pi pi-play play-button"),p(2),pe(" ",e.channeltype," "),p(2),pe(" ",e.tagline," ")}}const xK=function(){return["name","tagline"]};let MK=(()=>{class t{constructor(e,i){this.srApiService=e,this.broker=i,this.unsubscribe$=new Oe}ngOnInit(){var e=this;return me(function*(){e.srApiService.channels$.pipe(Ut(e.unsubscribe$)).subscribe(i=>{i&&(e.channels=i)})})()}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onPlayChannel(e){this.broker.sendMessage(new gl(e.name,e.liveaudio.url,void 0,e.id))}onOpenDetails(e){this.broker.sendMessage(new Pm(e.id))}onOpenSchedule(e){this.broker.sendMessage(new eE(e.id))}isCurrentlyPlaying(e){return!!e&&this.srApiService.isCurrentlyPlaying(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-channels-list"]],decls:6,vars:4,consts:[["id","channelslist",1,"channels-list"],["responsiveLayout","stack","styleClass","sr-table",3,"value","lazy","globalFilterFields"],["dt",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"p-d-flex"],[1,"p-input-icon-left","p-ml-auto"],[1,"pi","pi-search"],["pInputText","","type","text",1,"p-inputtext-sm",3,"placeholder","input"],["pSortableColumn","name"],["field","name"],["pSortableColumn","channeltype"],["field","channeltype"],[2,"min-width","320px"],[1,"p-grid",2,"width","100%"],[1,"p-col-7","clickable",3,"click"],["width","30",1,"image-thumb",2,"vertical-align","middle",3,"src"],[1,"p-col-5","clickable","right",2,"float","right","padding-top","0px"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"],[1,"pi","pi-list","details-btn"],[3,"ngClass"],[1,"channel-type"],[1,"channel-tag-line"]],template:function(i,r){1&i&&(v(0,"div",0)(1,"p-table",1,2),g(3,SK,6,5,"ng-template",3),g(4,EK,15,15,"ng-template",4),g(5,IK,17,5,"ng-template",5),y()()),2&i&&(p(1),h("value",r.channels)("lazy",!1)("globalFilterFields",$i(3,xK)))},dependencies:[pt,er,Tt,j2,G2,md,ls,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}"]})}return t})();var ks=function(t){return t[t.None=0]="None",t[t.Broadcast=1]="Broadcast",t[t.Podfile=2]="Podfile",t}(ks||{});class wd{constructor(n){this.title=n.title,this.id=n.id,this.description=n.description,this.publishDate=xi(n.publishdateutc),this.channelName=n.channelName,this.imageurl=n.imageurltemplate+Tn.DefaultImagePreset,this.imageurlLarge=n.imageurl,this.programName=n.program?.name,this.programId=n.program?.id,this.linkUrl=n.url,n.broadcast?.availablestoputc&&(this.availableTo=xi(n.broadcast.availablestoputc)),this.soundType=ks.None,n.listenpodfile?.duration?(this.soundType=ks.Podfile,this.url=n.listenpodfile.url,this.durationTime=Q2(n.listenpodfile.duration)):n.broadcast?.broadcastfiles?.length>0&&(this.soundType=ks.Broadcast,this.durationTime=Q2(n.broadcast.broadcastfiles[0].duration)),this.relatedEpisodes=n.relatedepisodes,this.episodeGroups=n.episodegroups}hasSound(){return!!this.url}}function kK(t,n){if(1&t){const e=B();v(0,"span",10),O("click",function(){return D(e),S(f(3).onAddToBookmarks())}),x(1,"i",13),y()}}function OK(t,n){if(1&t){const e=B();v(0,"span",10),O("click",function(){return D(e),S(f(3).onRemoveFromBookmarks())}),x(1,"i",14),y()}}function AK(t,n){if(1&t){const e=B();v(0,"span",15),O("click",function(){D(e);const r=f(3);return S(r.onPlayEpisode(r.episode))}),x(1,"i",16),y()}if(2&t){const e=f(3);p(1),h("ngClass",e.isCurrentlyPlaying?"pi pi-pause play-button":"pi pi-play play-button")}}const tE=function(t){return{width:t}};function RK(t,n){if(1&t){const e=B();v(0,"img",17),O("click",function(){return D(e),S(f(3).onToggleImageSize())}),y()}if(2&t){const e=f(3);Mt("src",e.episode.imageurlLarge,Hn),h("ngStyle",te(2,tE,e.largeImage?"100%":"100px"))}}function PK(t,n){if(1&t){const e=B();v(0,"img",17),O("click",function(){return D(e),S(f(3).onToggleImageSize())}),y()}if(2&t){const e=f(3);Mt("src",e.episode.imageurl,Hn),h("ngStyle",te(2,tE,e.largeImage?"100%":"100px"))}}function FK(t,n){if(1&t&&(v(0,"div",12)(1,"b"),A(2),U(3,"translate"),y(),A(4),U(5,"date"),y()),2&t){const e=f(3);p(2),Y(K(3,2,"PublishDate")),p(2),pe(": ",zi(5,4,e.episode.publishDate,"short")," ")}}function LK(t,n){if(1&t&&(v(0,"div")(1,"b"),A(2),U(3,"translate"),y(),A(4),U(5,"date"),y()),2&t){const e=f(3);p(2),Y(K(3,2,"AvailableTo")),p(2),pe(": ",zi(5,4,e.episode.availableTo,"short")," ")}}function NK(t,n){if(1&t&&(v(0,"div")(1,"b"),A(2),U(3,"translate"),y(),A(4),U(5,"date"),y()),2&t){const e=f(3);p(2),Y(K(3,2,"Duration")),p(2),pe(": ",zi(5,4,e.episode.durationTime,"HH:mm:ss")," ")}}function VK(t,n){if(1&t&&(v(0,"div")(1,"a",18),x(2,"i",19),A(3),y()()),2&t){const e=f(3);p(1),Mt("href",e.episode.linkUrl,Hn),p(2),Y(e.episode.linkUrl)}}function BK(t,n){if(1&t){const e=B();v(0,"div",10),O("click",function(){return D(e),S(f(3).share())}),A(1," Dela "),x(2,"i",20),y()}}function HK(t,n){if(1&t){const e=B();v(0,"ul")(1,"li",10),O("click",function(){const o=D(e).$implicit;return S(f(4).onShowEpisode(o.id))}),v(2,"i"),A(3),y()()()}if(2&t){const e=n.$implicit;p(3),Y(e.title)}}function $K(t,n){if(1&t&&(v(0,"div"),x(1,"p"),v(2,"b"),A(3,"Relaterade avsnitt:"),y(),g(4,HK,4,1,"ul",21),y()),2&t){const e=f(3);p(4),h("ngForOf",e.episode.relatedEpisodes)}}function zK(t,n){if(1&t){const e=B();v(0,"ul")(1,"li",10),O("click",function(){const o=D(e).$implicit;return S(f(5).onShowEpisode(o.id))}),v(2,"i"),A(3),y()()()}if(2&t){const e=n.$implicit;p(3),Y(e.title)}}function UK(t,n){if(1&t&&(v(0,"ul")(1,"li")(2,"i"),A(3),y(),g(4,zK,4,1,"ul",21),y()()),2&t){const e=n.$implicit;p(3),Y(e.name),p(1),h("ngForOf",e.episodes)}}function jK(t,n){if(1&t&&(v(0,"div"),x(1,"p"),g(2,UK,5,2,"ul",21),y()),2&t){const e=f(3);p(2),h("ngForOf",e.episode.episodeGroups)}}function GK(t,n){if(1&t&&(v(0,"div"),x(1,"app-song",22)(2,"hr"),y()),2&t){const e=n.$implicit;p(1),h("song",e)}}function WK(t,n){if(1&t&&(v(0,"div")(1,"h2"),A(2),U(3,"translate"),y(),g(4,GK,3,1,"div",21),y()),2&t){const e=f(3);p(2),pe("",K(3,2,"Songlist"),":"),p(2),h("ngForOf",e.songs)}}function qK(t,n){if(1&t){const e=B();v(0,"div")(1,"div",4)(2,"i",5),O("click",function(){return D(e),S(f(2).close())}),y(),A(3),y(),x(4,"hr"),v(5,"div")(6,"div")(7,"b"),A(8),y(),g(9,kK,2,0,"span",6),g(10,OK,2,0,"span",6),g(11,AK,2,1,"span",7),y(),v(12,"div"),g(13,RK,1,4,"img",8),g(14,PK,1,4,"img",8),v(15,"p"),A(16),y()(),g(17,FK,6,7,"div",9),g(18,LK,6,7,"div",2),v(19,"div")(20,"b"),A(21),U(22,"translate"),y(),A(23),y(),g(24,NK,6,7,"div",2),x(25,"p"),g(26,VK,4,2,"div",2),x(27,"p"),g(28,BK,3,0,"div",6),x(29,"p"),v(30,"div",10),O("click",function(){D(e);const r=f(2);return S(r.showProgramDetails(r.episode.programId))}),A(31),U(32,"translate"),v(33,"b"),A(34),y(),x(35,"i",11),y(),g(36,$K,5,1,"div",2),g(37,jK,3,1,"div",2),y(),x(38,"hr",12),g(39,WK,5,4,"div",2),y()}if(2&t){const e=f(2);p(3),pr(" ",e.episode.programName,": ",e.episode.title," "),p(5),pe("",e.episode.title,"\xa0"),p(1),h("ngIf",!e.isBookmarked),p(1),h("ngIf",e.isBookmarked),p(1),h("ngIf",e.episode.hasSound()),p(2),h("ngIf",e.largeImage),p(1),h("ngIf",!e.largeImage),p(2),pe(" ",e.episode.description," "),p(1),h("ngIf",e.episode.publishDate),p(1),h("ngIf",e.episode.availableTo),p(3),Y(K(22,21,"Soundtype")),p(2),pe(": ",e.getSoundType(e.episode)," "),p(1),h("ngIf",e.episode.durationTime),p(2),h("ngIf",e.episode.linkUrl),p(2),h("ngIf",e.canShare),p(3),pe(" ",K(32,23,"LinkToProgramDetailsText"),""),p(3),pe("",e.episode.programName," "),p(2),h("ngIf",e.episode.relatedEpisodes.length>0),p(1),h("ngIf",e.episode.episodeGroups.length>0),p(2),h("ngIf",e.songs&&e.songs.length>0)}}function KK(t,n){if(1&t){const e=B();v(0,"p-sidebar",1),O("visibleChange",function(r){return D(e),S(f().isVisible=r)}),g(1,qK,40,25,"div",2),x(2,"div",3),y()}if(2&t){const e=f();h("visible",e.isVisible)("blockScroll",!0)("showCloseIcon",!1)("transitionOptions","300ms ease-out"),p(1),h("ngIf",e.episode)}}let nE=(()=>{class t{constructor(e,i,r,o,s){this.episodesService=e,this.playlistsService=i,this.srApiService=r,this.broker=o,this.translate=s,this.isVisible=!1,this.unsubscribe$=new Oe,this.largeImage=!1}ngOnInit(){var e=this;this.isVisible=!1,this.broker.getMessage().pipe(Ut(this.unsubscribe$),wt(r=>r instanceof Ms)).subscribe(function(){var r=me(function*(o){if(o.episodeId){const s=yield e.episodesService.fetchEpisode(o.episodeId);if(s?.episode){const a=new wd(s.episode);e.show(a)}}});return function(o){return r.apply(this,arguments)}}())}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onToggleImageSize(){this.largeImage=!this.largeImage}getSoundType(e){let i="SoundTypeNone";switch(e.soundType){case ks.Broadcast:i="SoundTypeBroadcast";break;case ks.Podfile:i="SoundTypePodfile"}return this.translate.translateWithArgs(i)}show(e){var i=this;return me(function*(){i.largeImage=!1,i.soundUrl=null,i.episode=e,i.setSoundUrl(i.episode);try{const r=yield i.playlistsService.fetchSonglistForEpisode(e.id);i.songs=r.song}catch{}i.songs&&(i.songs.forEach(r=>i.convertDate(r)),i.songs.sort((r,o)=>r.starttimeutcDate.getTime()-o.starttimeutcDate.getTime())),i.isVisible=!0})()}convertDate(e){e&&(e.starttimeutc&&(e.starttimeutcDate=xi(e.starttimeutc)),e.stoptimeutc&&(e.stoptimeutcDate=xi(e.stoptimeutc)))}close(){this.isVisible=!1}onPlayEpisode(e){this.setSoundUrl(e),this.broker.sendMessage(new gl(e.title,this.soundUrl,e.id))}setSoundUrl(e){this.soundUrl=e.url}get isCurrentlyPlaying(){return this.srApiService.isCurrentlyPlaying(this.soundUrl)}onAddToBookmarks(){this.srApiService.addBookmarkForEpisode(this.episode.id)}onRemoveFromBookmarks(){this.srApiService.removeBookmarkForEpisode(this.episode.id)}get isBookmarked(){return this.srApiService.isEpisodeBookmarked(this.episode.id)}get canShare(){return!!navigator.share}share(){navigator.share&&navigator.share({title:this.episode.title,url:this.episode.linkUrl})}showProgramDetails(e){this.isVisible=!1,this.broker.sendMessage(new Cd(e))}onShowEpisode(e){this.broker.sendMessage(new Ms(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(J2),w(Tn),w(wn),w(Is))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episode-details"]],decls:1,vars:1,consts:[["position","bottom","styleClass","sr-sidebar-h",3,"visible","blockScroll","showCloseIcon","transitionOptions","visibleChange",4,"ngIf"],["position","bottom","styleClass","sr-sidebar-h",3,"visible","blockScroll","showCloseIcon","transitionOptions","visibleChange"],[4,"ngIf"],[1,"bottom-padding"],[1,"details-header-text"],[1,"pi","pi-chevron-down","close-button","clickable",3,"click"],["class","clickable",3,"click",4,"ngIf"],["class","clickable right",3,"click",4,"ngIf"],["class","episodes-img",3,"src","ngStyle","click",4,"ngIf"],["class","clear",4,"ngIf"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle"],[1,"clear"],[1,"pi","pi-bookmark"],[1,"pi","pi-bookmark-fill","yellow-fav"],[1,"clickable","right",3,"click"],[3,"ngClass"],[1,"episodes-img",3,"src","ngStyle","click"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"pi","pi-external-link","link-icon"],[1,"pi","pi-upload"],[4,"ngFor","ngForOf"],[3,"song"]],template:function(i,r){1&i&&g(0,KK,3,5,"p-sidebar",0),2&i&&h("ngIf",r.episode)},dependencies:[pt,Wi,Je,Bt,p$,X2,cs,pi],styles:[".episodes-img[_ngcontent-%COMP%]{float:left;margin:5px}"]})}return t})();const ZK=["addListener","removeListener"],YK=["addEventListener","removeEventListener"],QK=["on","off"];function Fm(t,n,e,i){if(De(e)&&(i=e,e=void 0),i)return Fm(t,n,e).pipe(ig(i));const[r,o]=function eZ(t){return De(t.addEventListener)&&De(t.removeEventListener)}(t)?YK.map(s=>a=>t[s](n,a,e)):function JK(t){return De(t.addListener)&&De(t.removeListener)}(t)?ZK.map(iE(t,n)):function XK(t){return De(t.on)&&De(t.off)}(t)?QK.map(iE(t,n)):[];if(!r&&Ad(t))return vt(s=>Fm(s,n,e))(qt(t));if(!r)throw new TypeError("Invalid event target");return new ot(s=>{const a=(...l)=>s.next(1o(a)})}function iE(t,n){return e=>i=>t[e](n,i)}class tZ extends hn{constructor(n,e){super()}schedule(n,e=0){return this}}const Td={setInterval(t,n,...e){const{delegate:i}=Td;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Td;return(n?.clearInterval||clearInterval)(t)},delegate:void 0},rE={now:()=>(rE.delegate||Date).now(),delegate:void 0};class ml{constructor(n,e=ml.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}ml.now=rE.now;const Lm=new class iZ extends ml{constructor(n,e=ml.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}(class nZ extends tZ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;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(n,e,i=0){return Td.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Td.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}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:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,co(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}),rZ=Lm,sZ=["search"];function aZ(t,n){1&t&&(v(0,"div",5)(1,"span",6),x(2,"i",7)(3,"input",8,9),U(5,"uppercase"),U(6,"translate"),y()()),2&t&&(p(3),Mt("placeholder",K(5,1,K(6,3,"SearchKeyword"))))}function lZ(t,n){1&t&&(v(0,"tr")(1,"th"),A(2),U(3,"uppercase"),U(4,"translate"),y(),v(5,"th"),A(6),U(7,"uppercase"),U(8,"translate"),y(),v(9,"th"),A(10),U(11,"uppercase"),U(12,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"EpisodeTitle"))),p(4),Y(K(7,7,K(8,9,"Date"))),p(4),Y(K(11,11,K(12,13,"Description"))))}function cZ(t,n){if(1&t&&(v(0,"span"),A(1),U(2,"translate"),y()),2&t){const e=f().$implicit;p(1),pr(" ",K(2,2,"Channel"),": ",e.channelName," ")}}function uZ(t,n){if(1&t&&(v(0,"span"),A(1),U(2,"translate"),y()),2&t){const e=f().$implicit;p(1),pr(" ",K(2,2,"Program"),": ",e.programName," ")}}function dZ(t,n){if(1&t){const e=B();v(0,"span",16),O("click",function(){D(e);const r=f().$implicit;return S(f().onAddToBookmarks(r.id))}),x(1,"i",21),y()}}function pZ(t,n){if(1&t){const e=B();v(0,"span",16),O("click",function(){D(e);const r=f().$implicit;return S(f().onRemoveFromBookmarks(r.id))}),x(1,"i",22),y()}}function hZ(t,n){if(1&t){const e=B();v(0,"span",16),O("click",function(){D(e);const r=f().$implicit;return S(f().onPlayEpisode(r))}),x(1,"i",23),y()}if(2&t){const e=f().$implicit,i=f();p(1),h("ngClass",i.isCurrentlyPlaying(e)?"pi pi-pause play-button":"pi pi-play play-button")}}function fZ(t,n){if(1&t){const e=B();v(0,"tr")(1,"td")(2,"div",10)(3,"span",11),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),v(4,"span",12)(5,"b"),A(6),y()(),g(7,cZ,3,4,"span",13),g(8,uZ,3,4,"span",13),y(),v(9,"span",14)(10,"span",15)(11,"span",16),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),x(12,"i",17),y(),g(13,dZ,2,0,"span",18),g(14,pZ,2,0,"span",18),g(15,hZ,2,1,"span",18),y()()()(),v(16,"td"),A(17),U(18,"date"),y(),v(19,"td",19)(20,"div",20),A(21),y()()()}if(2&t){const e=n.$implicit,i=f();p(6),pe(" ",e.title," "),p(1),h("ngIf",e.channelName),p(1),h("ngIf",i.showProgramName&&e.programName),p(5),h("ngIf",!i.isBookmarked(e.id)),p(1),h("ngIf",i.isBookmarked(e.id)),p(1),h("ngIf",e.hasSound()),p(2),pe(" ",zi(18,8,null==e?null:e.publishDate,"short")," "),p(4),pe(" ",e.description," ")}}let Nm=(()=>{class t{constructor(e,i){this.srApiService=e,this.broker=i,this.onLoadLazy=new F,this.query=""}ngOnInit(){}ngAfterViewInit(){var e=this;return me(function*(){Fm(e.search.nativeElement,"keyup").pipe(wt(Boolean),function oZ(t,n=Lm){return ut((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+t,u=n.now();if(u{o=c,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(800),h_(),zt(()=>{e.query=e.search.nativeElement.value,e.query.length>3&&e.onLoadLazy.emit({query:e.query,first:0})})).subscribe()})()}loadLazy(e){var i=this;return me(function*(){i.onLoadLazy.emit({query:i.query,first:e.first})})()}isCurrentlyPlaying(e){return this.srApiService.isCurrentlyPlaying(e.url)}onPlayEpisode(e){this.broker.sendMessage(new gl(e.title,e.url,e.id))}onOpenDetails(e){this.broker.sendMessage(new Ms(e.id))}onAddToBookmarks(e){this.srApiService.addBookmarkForEpisode(e)}onRemoveFromBookmarks(e){this.srApiService.removeBookmarkForEpisode(e)}isBookmarked(e){return this.srApiService.isEpisodeBookmarked(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episodes-table"]],viewQuery:function(i,r){if(1&i&&Fe(sZ,5),2&i){let o;ce(o=ue())&&(r.search=o.first)}},inputs:{episodes:"episodes",totalHits:"totalHits",pageSize:"pageSize",showSearch:"showSearch",showProgramName:"showProgramName"},outputs:{onLoadLazy:"onLoadLazy"},decls:5,vars:5,consts:[[1,"episodes-table"],["responsiveLayout","stack",3,"value","paginator","lazy","rows","totalRecords","onLazyLoad"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"p-d-flex"],[1,"p-input-icon-left","p-ml-auto"],[1,"pi","pi-search"],["pInputText","","type","text",1,"p-inputtext-sm",3,"placeholder"],["search",""],[1,"p-grid",2,"width","100%"],[1,"clickable","p-col-8",3,"click"],[1,"ep-title"],[4,"ngIf"],[1,"p-col-4",2,"float","right"],[1,"p-grid","p-flex-column"],[1,"p-col","clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"],["class","p-col clickable",3,"click",4,"ngIf"],[1,"desc-col"],[1,"ep-desc"],[1,"pi","pi-bookmark","fav-but"],[1,"pi","pi-bookmark-fill","yellow-fav","fav-but"],[3,"ngClass"]],template:function(i,r){1&i&&(v(0,"div",0)(1,"p-table",1),O("onLazyLoad",function(s){return r.loadLazy(s)}),g(2,aZ,7,5,"ng-template",2),g(3,lZ,13,15,"ng-template",3),g(4,fZ,22,11,"ng-template",4),y()()),2&i&&(p(1),h("value",r.episodes)("paginator",!0)("lazy",!0)("rows",r.pageSize)("totalRecords",r.totalHits))},dependencies:[pt,Je,er,Tt,md,ls,cs,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}","[_nghost-%COMP%] .ep-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}[_nghost-%COMP%] .ep-title{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}"]})}return t})(),gZ=(()=>{class t{constructor(e,i,r){this.service=e,this.srApiService=i,this.broker=r,this.totalHits=0,this.pageSize=100,this.unsubscribe$=new Oe}ngOnInit(){this.broker.getMessage().pipe(Ut(this.unsubscribe$),wt(i=>i instanceof bd)).subscribe(i=>{this.fetch(0)})}loadLazy(e){var i=this;return me(function*(){yield i.fetch(e.first)})()}fetch(e){var i=this;return me(function*(){const r=i.srApiService.getBookmarkedEpisodes(),o=yield i.service.fetchEpisodes(r);i.totalHits=o.pagination.totalhits,i.episodes=[],o.episodes.forEach(s=>{const a=new wd(s);i.episodes.push(a)})})()}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(Tn),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episodes-bookmarks"]],decls:4,vars:7,consts:[[3,"header"],[3,"episodes","totalHits","pageSize","showProgramName","onLoadLazy"]],template:function(i,r){1&i&&(v(0,"p-accordion")(1,"p-accordionTab",0),U(2,"translate"),v(3,"app-episodes-table",1),O("onLoadLazy",function(s){return r.loadLazy(s)}),y()()()),2&i&&(p(1),Mt("header",K(2,5,"Bookmarks")),p(2),h("episodes",r.episodes)("totalHits",r.totalHits)("pageSize",r.pageSize)("showProgramName",!0))},dependencies:[p2,d2,Nm,pi],styles:[".category[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .p-datatable .p-datatable-header{display:none}[_nghost-%COMP%] .ep-desc{display:none!important}"]})}return t})();const mZ=["search"];let _Z=(()=>{class t{constructor(e,i){this.service=e,this.srApiService=i,this.totalHits=0,this.pageSize=5,this.query="",this.showBookmarked=!1}onShowBookmarkedChanged(e){var i=this;return me(function*(){i.showBookmarked=e})()}loadLazy(e){var i=this;return me(function*(){yield i.fetch(e.query,e.first)})()}fetch(e,i){var r=this;return me(function*(){if(!e)return;const o=i/r.pageSize+1,s=yield r.service.searchEpisodes(e,o,r.pageSize);r.totalHits=s.pagination.totalhits,r.episodes=[],s.episodes.forEach(a=>{const l=new wd(a);r.episodes.push(l)})})()}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(Tn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episodes-list"]],viewQuery:function(i,r){if(1&i&&Fe(mZ,5),2&i){let o;ce(o=ue())&&(r.search=o.first)}},decls:3,vars:4,consts:[[3,"showProgramName","episodes","totalHits","pageSize","onLoadLazy"],[1,"bottom-padding"]],template:function(i,r){1&i&&(x(0,"app-episodes-bookmarks"),v(1,"app-episodes-table",0),O("onLoadLazy",function(s){return r.loadLazy(s)}),y(),x(2,"div",1)),2&i&&(p(1),h("showProgramName",!0)("episodes",r.episodes)("totalHits",r.totalHits)("pageSize",r.pageSize))},dependencies:[Nm,gZ],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}"]})}return t})();function yZ(t,n){if(1&t&&(v(0,"span",11)(1,"b"),A(2),U(3,"translate"),y(),A(4),y()),2&t){const e=f(2);p(2),Y(K(3,2,"Category")),p(2),pe(": ",e.getCategoryNameFromId(e.program.programcategory.id)," ")}}function vZ(t,n){if(1&t){const e=B();v(0,"span",12),O("click",function(){D(e);const r=f(2);return S(r.onAddToFavorites(r.program.id,r.program.name))}),x(1,"i",13),y()}}function bZ(t,n){if(1&t){const e=B();v(0,"span",12),O("click",function(){D(e);const r=f(2);return S(r.onRemoveFromFavorites(r.program.id,r.program.name))}),x(1,"i",14),y()}}function CZ(t,n){if(1&t){const e=B();v(0,"div")(1,"div",1)(2,"i",2),O("click",function(){return D(e),S(f().close())}),y(),x(3,"img",3),A(4),U(5,"translate"),y(),v(6,"div"),A(7),y(),v(8,"div",4)(9,"span",5),g(10,yZ,5,4,"span",6),y(),v(11,"span",7),g(12,vZ,2,0,"span",8),g(13,bZ,2,0,"span",8),y()(),x(14,"hr"),v(15,"app-episodes-table",9),O("onLoadLazy",function(r){return D(e),S(f().loadLazy(r))}),y(),x(16,"div",10),y()}if(2&t){const e=f();p(3),Mt("src",e.program.programimage,Hn),p(1),pr(" ",e.program.name,": ",K(5,10,"ProgramDetailsAndEpisodes")," "),p(3),pe(" ",e.program.description," "),p(3),h("ngIf",e.program.programcategory),p(2),h("ngIf",!e.program.fav),p(1),h("ngIf",e.program.fav),p(2),h("episodes",e.episodes)("totalHits",e.totalHits)("pageSize",e.pageSize)}}function TZ(t,n){if(1&t){const e=B();v(0,"span",6)(1,"span",7)(2,"p-checkbox",8),O("onChange",function(r){D(e);const o=f(),s=Xe(2);return S(o.onFilterFavClicked(r,s))})("ngModelChange",function(r){return D(e),S(f().localState.showOnlyFavs=r)}),U(3,"translate"),y()(),v(4,"span",9)(5,"p-dropdown",10),O("onChange",function(r){D(e);const o=f(),s=Xe(2);return S(o.onCategoryChanged(r,s))})("ngModelChange",function(r){return D(e),S(f().localState.selectedCategory=r)}),y()(),v(6,"span",11),x(7,"i",12),v(8,"input",13),O("ngModelChange",function(r){return D(e),S(f().localState.searchString=r)})("input",function(r){return D(e),f(),S(Xe(2).filterGlobal(r.target.value,"contains"))}),U(9,"uppercase"),U(10,"translate"),y()()()}if(2&t){const e=f();p(2),Mt("label",K(3,7,"OnlyFavs")),h("ngModel",e.localState.showOnlyFavs)("binary",!0),p(3),h("options",e.categoryOptions)("ngModel",e.localState.selectedCategory),p(3),Mt("placeholder",K(9,9,K(10,11,"SearchKeyword"))),h("ngModel",e.localState.searchString)}}function DZ(t,n){1&t&&(v(0,"tr")(1,"th",14),A(2),U(3,"uppercase"),U(4,"translate"),x(5,"p-sortIcon",15),y(),v(6,"th",16),A(7),U(8,"uppercase"),U(9,"translate"),x(10,"p-sortIcon",17),y(),v(11,"th"),A(12),U(13,"uppercase"),U(14,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"ProgramNameTitle"))),p(5),Y(K(8,7,K(9,9,"ChannelNameTitle"))),p(5),Y(K(13,11,K(14,13,"Description"))))}function SZ(t,n){if(1&t&&(v(0,"span",30),A(1),y()),2&t){const e=f().$implicit;p(1),pe(" ",e.channel.name," ")}}function EZ(t,n){if(1&t){const e=B();v(0,"span",24),O("click",function(){D(e);const r=f().$implicit;return S(f().onAddToFavorites(r.id,r.name))}),x(1,"i",31),y()}}function IZ(t,n){if(1&t){const e=B();v(0,"span",24),O("click",function(){D(e);const r=f().$implicit;return S(f().onRemoveFromFavorites(r.id,r.name))}),x(1,"i",32),y()}}function xZ(t,n){if(1&t&&(v(0,"div"),A(1),y()),2&t){const e=f().$implicit;p(1),pe(" ",e.channel.name," ")}}function MZ(t,n){if(1&t){const e=B();v(0,"tr")(1,"td")(2,"div",18)(3,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onShowEpisodes(o))}),x(4,"img",20),g(5,SZ,2,1,"span",21),v(6,"span",22),A(7),y()(),v(8,"span",23)(9,"span",24),O("click",function(){const o=D(e).$implicit;return S(f().onShowEpisodes(o))}),x(10,"i",25),y(),g(11,EZ,2,0,"span",26),g(12,IZ,2,0,"span",26),y()()(),v(13,"td",27),g(14,xZ,2,1,"div",28),y(),v(15,"td",29),A(16),y()()}if(2&t){const e=n.$implicit;p(4),Mt("src",e.programimage,Hn),p(1),h("ngIf",null==e?null:e.channel),p(2),pe(" ",e.name," "),p(4),h("ngIf",!e.fav),p(1),h("ngIf",e.fav),p(2),h("ngIf",null==e?null:e.channel),p(2),pe(" ",e.description," ")}}const kZ=function(){return["name","channel.name","description"]},AZ=[{path:Yn.Channels,component:MK,data:{animation:"channels"}},{path:Yn.ChannelDetails,component:vK,data:{animation:"details"}},{path:Yn.ChannelSchedule,component:DK,data:{animation:"details"}},{path:Yn.ProgramDetails,component:(()=>{class t{constructor(e,i,r,o){this.service=e,this.srApiService=i,this.activatedRoute=r,this.broker=o,this.totalHits=0,this.pageSize=5,this.unsubscribe$=new Oe}ngOnInit(){var e=this;return me(function*(){e.activatedRoute.params.pipe(Ut(e.unsubscribe$),Se(i=>i.id)).subscribe(function(){var i=me(function*(r){const o=yield e.srApiService.getProgramFromId(parseInt(r));o&&(yield e.show(o))});return function(r){return i.apply(this,arguments)}}())})()}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}show(e){var i=this;return me(function*(){i.episodes=[],i.program=e,yield i.fetch(e.id,0)})()}close(){this.broker.sendMessage(new vd)}loadLazy(e){var i=this;return me(function*(){yield i.fetch(i.program.id,e.first)})()}fetch(e,i){var r=this;return me(function*(){if(!e)return;const o=i/r.pageSize+1,s=yield r.service.fetchEpisodesForProgram(e,o,r.pageSize);r.totalHits=s.pagination.totalhits,r.episodes=[],s.episodes.forEach(a=>{const l=new wd(a);r.episodes.push(l)})})()}getCategoryNameFromId(e){return this.srApiService.getCategoryNameFromId(e)}onAddToFavorites(e,i){this.srApiService.addProgramToFavorites(e,i)}onRemoveFromFavorites(e,i){this.srApiService.removeProgramFromFavorites(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(Tn),w(Ji),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-program-details"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"details-header-text"],[1,"pi","pi-chevron-left","close-button","clickable",3,"click"],["width","50",2,"vertical-align","middle",3,"src"],[1,"p-grid",2,"width","100%"],[1,"p-col-8"],["class","category",4,"ngIf"],[1,"p-col-4"],["class","clickable",3,"click",4,"ngIf"],[3,"episodes","totalHits","pageSize","onLoadLazy"],[1,"bottom-padding"],[1,"category"],[1,"clickable",3,"click"],[1,"pi","pi-star","fav-but"],[1,"pi","pi-star-fill","yellow-fav"]],template:function(i,r){1&i&&g(0,CZ,17,12,"div",0),2&i&&h("ngIf",r.program)},dependencies:[Je,Nm,pi],styles:[".category[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .p-datatable .p-datatable-header{display:none}"]})}return t})(),data:{animation:"details"}},{path:Yn.Programs,component:(()=>{class t{constructor(e,i,r,o){this.srApiService=e,this.translationService=i,this.broker=r,this.storage=o,this.unsubscribe$=new Oe,this.storageId="ProgramsListState",this.localState={showOnlyFavs:!1,selectedCategory:null,searchString:""}}ngOnInit(){var e=this;return me(function*(){const i=e.storage.get(e.storageId);i&&(e.localState=i),e.srApiService.programs$.pipe(Ut(e.unsubscribe$)).subscribe(r=>{r&&(e.programs=[],e.programs.push(...r))}),e.srApiService.programCategories$.pipe(Ut(e.unsubscribe$)).subscribe(r=>{if(r){e.categoryOptions=[],e.categoryOptions.push({label:e.translationService.translateWithArgs("AnyCategories"),value:null});const o=r.map(s=>({label:s.name,value:s.id}));e.categoryOptions.push(...o)}})})()}ngAfterViewInit(){this.tableComponent&&(this.localState.showOnlyFavs?this.tableComponent.filter(!0,"fav","equals"):this.tableComponent.filter([!0,!1],"fav","in"),this.localState.selectedCategory&&this.tableComponent.filter(this.localState.selectedCategory,"programcategory.id","equals"),this.localState.searchString&&this.tableComponent.filterGlobal(this.localState.searchString,"contains"))}ngOnDestroy(){this.storage.set(this.storageId,this.localState),this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onShowEpisodes(e){this.broker.sendMessage(new Cd(e.id))}onFilterFavClicked(e,i){this.localState.showOnlyFavs=e.checked,this.localState.showOnlyFavs?i.filter(!0,"fav","equals"):i.filter([!0,!1],"fav","in")}onAddToFavorites(e,i){this.srApiService.addProgramToFavorites(e,i)}onRemoveFromFavorites(e,i){this.srApiService.removeProgramFromFavorites(e,i)}onCategoryChanged(e,i){""!==e.value&&i.filter(e.value,"programcategory.id","equals")}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(Is),w(wn),w(Rm))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-programs-list"]],viewQuery:function(i,r){if(1&i&&Fe(er,5),2&i){let o;ce(o=ue())&&(r.tableComponent=o.first)}},decls:6,vars:5,consts:[[1,"programs-list"],["responsiveLayout","stack","styleClass","sr-table",3,"value","paginator","rows","globalFilterFields"],["dt2",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"p-d-flex"],[1,"fav-chk"],[1,"fav-checkbox",3,"ngModel","binary","label","onChange","ngModelChange"],[1,"cat-dd"],["placeholder","Category",3,"options","ngModel","onChange","ngModelChange"],[1,"p-input-icon-left","p-ml-auto"],[1,"pi","pi-search"],["pInputText","","type","text",1,"p-inputtext-sm","kw-input",3,"ngModel","placeholder","ngModelChange","input"],["pSortableColumn","name"],["field","name"],["pSortableColumn","channel.name"],["field","channel.name"],[1,"p-grid",2,"width","100%"],[1,"clickable","p-col-8",3,"click"],["height","50","width","50",2,"padding","4px","vertical-align","middle",3,"src"],["class","prg-chan",4,"ngIf"],[1,"prg-title"],[1,"p-col-4",2,"float","right","padding-top","0px"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"],["class","clickable",3,"click",4,"ngIf"],[1,"prg-chan-td"],[4,"ngIf"],[1,"description-td",2,"border","none"],[1,"prg-chan"],[1,"pi","pi-star","fav-but","details-btn"],[1,"pi","pi-star-fill","yellow-fav","details-btn"]],template:function(i,r){1&i&&(v(0,"div",0)(1,"p-table",1,2),g(3,TZ,11,13,"ng-template",3),g(4,DZ,15,15,"ng-template",4),g(5,MZ,17,7,"ng-template",5),y()()),2&i&&(p(1),h("value",r.programs)("paginator",!0)("rows",10)("globalFilterFields",$i(4,kZ)))},dependencies:[Je,er,Tt,j2,G2,yu,Cu,gs,md,bm,Tm,ls,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}",".description-td[_ngcontent-%COMP%]{overflow:hidden;white-space:wrap;text-overflow:ellipsis}.prg-title[_ngcontent-%COMP%]{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fav-checkbox[_ngcontent-%COMP%]{vertical-align:middle}"]})}return t})(),data:{animation:"programs"}},{path:Yn.EpisodeDetails,component:nE,data:{animation:"details"}},{path:Yn.Episodes,component:_Z,data:{animation:"episodes"}},{path:"**",redirectTo:Yn.Channels,pathMatch:"full"}];let RZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({imports:[o2.forRoot(AZ,{scrollPositionRestoration:"enabled"}),o2]})}return t})();class Vm extends tr{constructor(n){super(),this.errorMessage=n}get Type(){return"ErrorOccurredMessage"}}const PZ=Yr("routeAnimations",[pn("* => details",[Ge({position:"relative"}),On(":enter, :leave",[Ge({paddingTop:"48px",position:"absolute",top:"-4px",left:0,width:"100%"})],{optional:!0}),On(":enter",[Ge({left:"-100%"})],{optional:!0}),On(":leave",ja(),{optional:!0}),gD([On(":leave",[Jt("300ms ease-out",Ge({left:"100%"}))],{optional:!0}),On(":enter",[Jt("300ms ease-out",Ge({left:"0%"}))],{optional:!0})]),On(":enter",ja(),{optional:!0})]),pn("details => *",[Ge({position:"relative"}),On(":enter, :leave",[Ge({paddingTop:"48px",position:"absolute",top:"-4px",right:0,width:"100%"})],{optional:!0}),On(":enter",[Ge({right:"-100%"})],{optional:!0}),On(":leave",ja(),{optional:!0}),gD([On(":leave",[Jt("300ms ease-out",Ge({right:"100%"}))],{optional:!0}),On(":enter",[Jt("300ms ease-out",Ge({right:"0%"}))],{optional:!0})]),On(":enter",ja(),{optional:!0})])]);let FZ=(()=>{class t{constructor(e,i){this.router=e,this.location=i,this.history=[],this.router.events.subscribe(r=>{r instanceof Yi&&this.history.push(r.urlAfterRedirects)})}back(){this.history.pop(),this.history.length>0?this.location.back():this.router.navigateByUrl("/")}static#e=this.\u0275fac=function(i){return new(i||t)(H(Cn),H(Xc))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),LZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=J({type:t,selectors:[["app-navigation-bar"]],decls:17,vars:15,consts:[["routerLink","/channels","routerLinkActive","active"],["routerLink","/programs","routerLinkActive","active"],["routerLink","/episodes","routerLinkActive","active"]],template:function(i,r){1&i&&(v(0,"nav")(1,"ul")(2,"li")(3,"a",0),A(4),U(5,"uppercase"),U(6,"translate"),y()(),v(7,"li")(8,"a",1),A(9),U(10,"uppercase"),U(11,"translate"),y()(),v(12,"li")(13,"a",2),A(14),U(15,"uppercase"),U(16,"translate"),y()()()()),2&i&&(p(4),Y(K(5,3,K(6,5,"LiveStreamsHeader"))),p(5),Y(K(10,7,K(11,9,"ProgramsHeader"))),p(5),Y(K(15,11,K(16,13,"EpisodesHeader"))))},dependencies:[pd,YS,ls,pi],styles:["ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}li[_ngcontent-%COMP%]{display:inline}a[_ngcontent-%COMP%]{padding:10px;font-weight:700;text-decoration:none}.active[_ngcontent-%COMP%]{background-color:#7b95a3;color:#fff;border-radius:5px}"]})}return t})();const NZ=function(t){return{"scroll-left":t}};function VZ(t,n){if(1&t){const e=B();v(0,"div",6),O("click",function(){return D(e),S(f().onOpenDetails())}),v(1,"span",7),A(2),v(3,"b"),A(4),y()()()}if(2&t){const e=f();h("ngClass",te(3,NZ,!0===e.isPlaying)),p(2),pe(" ",e.prefixText,""),p(2),Y(e.currentStation)}}function BZ(t,n){1&t&&(v(0,"div",8),A(1," \xa0 "),y())}let HZ=(()=>{class t{constructor(e,i,r){this.broker=e,this.srApiService=i,this.translate=r,this.currentUrlToPlay="",this.currentStation="",this.unsubscribe$=new Oe,this.episodeId=void 0,this.channelId=void 0,this.prefixText="",this.isPlaying=!1}ngOnInit(){var e=this;this.broker.getMessage().pipe(Ut(this.unsubscribe$),wt(r=>r instanceof gl)).subscribe(function(){var r=me(function*(o){if(!o)return;e.episodeId=o.episodeId,e.channelId=o.channelId,e.prefixText=e.episodeId?e.translate.translateWithArgs("AudioPrefixEpisode")+": ":e.channelId?e.translate.translateWithArgs("AudioPrefixChannel")+": ":"";const s=document.getElementById("audio");o.url===e.currentUrlToPlay?s?.paused?(s.load(),s.play(),e.isPlaying=!0):(s?.pause(),e.isPlaying=!1):(e.currentStation=o.title,e.currentUrlToPlay=o.url,s?.load(),s?.play(),e.isPlaying=!0)});return function(o){return r.apply(this,arguments)}}())}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onPlay(){this.srApiService.setCurrentlyPlaying(this.currentUrlToPlay),this.isPlaying=!0}onPause(){this.srApiService.setCurrentlyPlaying(""),this.isPlaying=!1}onOpenDetails(){this.episodeId?this.broker.sendMessage(new Ms(this.episodeId)):this.channelId&&this.broker.sendMessage(new Pm(this.channelId))}static#e=this.\u0275fac=function(i){return new(i||t)(w(wn),w(Tn),w(Is))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-audio-player"]],decls:8,vars:3,consts:[[1,"audio-wrapper"],["class","now-playing",3,"ngClass","click",4,"ngIf","ngIfElse"],[1,"audio-ctl-wrapper"],["controls","","id","audio","preload","auto","autoplay","false",1,"audio-ctl",3,"play","pause"],["type","audio/mpeg",3,"src"],["empty",""],[1,"now-playing",3,"ngClass","click"],[1,"clickable"],[1,"now-playing"]],template:function(i,r){if(1&i&&(v(0,"div",0),g(1,VZ,5,5,"div",1),v(2,"div",2)(3,"audio",3),O("play",function(){return r.onPlay()})("pause",function(){return r.onPause()}),x(4,"source",4),A(5," Your browser does not support the audio element. "),y()()(),g(6,BZ,2,0,"ng-template",null,5,ai)),2&i){const o=Xe(7);p(1),h("ngIf",r.currentUrlToPlay)("ngIfElse",o),p(3),Mt("src",r.currentUrlToPlay,Hn)}},dependencies:[pt,Je],styles:[".audio-wrapper[_ngcontent-%COMP%]{width:calc(100% - 15px);position:fixed;bottom:0;z-index:10000;opacity:.9;background-color:#7b95a3;border-radius:5px;padding:5px}.audio-ctl[_ngcontent-%COMP%]{border-radius:10px;padding:5px;margin:auto;width:100%}.now-playing[_ngcontent-%COMP%]{margin-bottom:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1.3em;width:100%}.audio-ctl-wrapper[_ngcontent-%COMP%]{margin:0;width:100%;padding:0}@media only screen and (max-width: 640px){.scroll-left[_ngcontent-%COMP%]{height:1.3em;overflow:hidden;position:relative}.scroll-left[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;margin:0;line-height:1.3em;text-align:center;transform:translate(100%);animation:scroll-left 1 8s linear infinite}@keyframes scroll-left{0%{transform:translate(100%)}to{transform:translate(-100%)}}}"]})}return t})(),$Z=(()=>{class t{constructor(e,i,r,o,s,a){this.srApiService=e,this.broker=i,this.primeNGmessageService=r,this.translationService=o,this.router=s,this.backNavigationService=a,this.title="sr-app",this.isLoading=!1,this.unsubscribe$=new Oe}prepareRoute(e){return e&&e.activatedRouteData&&e.activatedRouteData.animation}ngOnInit(){var e=this;return me(function*(){e.translationService.defaultLangCode="en",e.translationService.currentLocale=navigator.language;const i=e.broker.getMessage();i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Am)).subscribe(r=>{e.primeNGmessageService.add({severity:"success",summary:"",detail:r.info})}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Vm)).subscribe(r=>{e.primeNGmessageService.add({severity:"error",summary:"",detail:r.errorMessage})}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof bd)).subscribe(r=>{e.primeNGmessageService.add({severity:"success",summary:"",detail:e.translationService.translateWithArgs(r.isBookmarked?"BookmarkAdded":"BookmarkRemoved")})}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Pm)).subscribe(r=>{r.channelId&&e.router.navigate(["channels/"+r.channelId])}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof eE)).subscribe(r=>{r.channelId&&e.router.navigate(["channels/schedule/"+r.channelId])}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Cd)).subscribe(r=>{r.programId&&e.router.navigate(["programs/"+r.programId])}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof vd)).subscribe(r=>{e.backNavigationService.back()}),yield e.fetchBaseData()})()}fetchBaseData(){var e=this;return me(function*(){try{e.isLoading=!0,yield e.srApiService.fetchBaseData()}finally{e.isLoading=!1}})()}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(wn),w(_m),w(Is),w(Cn),w(FZ))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-root"]],decls:8,vars:1,consts:[[1,"header"],[1,"content"],["outlet","outlet"],["position","top-center"]],template:function(i,r){if(1&i&&(v(0,"div",0),x(1,"app-navigation-bar"),y(),v(2,"div",1),x(3,"router-outlet",null,2),y(),x(5,"app-episode-details")(6,"app-audio-player")(7,"p-toast",3)),2&i){const o=Xe(4);p(2),h("@routeAnimations",r.prepareRoute(o))}},dependencies:[lm,tK,LZ,HZ,nE],styles:[".content[_ngcontent-%COMP%]{padding-top:44px}.header[_ngcontent-%COMP%]{overflow:hidden;position:fixed;top:-8px;width:100%;z-index:1000;margin-left:-8px;background-color:#fff;opacity:1;max-height:60px;min-height:60px;border-left-width:8px;border-right-width:8px;border-style:solid;border-color:#fff}[_nghost-%COMP%] .p-toast.p-component.p-toast-top-center{max-width:300px}"],data:{animation:[PZ]}})}return t})();class zZ{constructor(){this.storedRoutes=new Map}shouldDetach(n){return n.routeConfig.path===Yn.Episodes||n.routeConfig.path===Yn.Programs||n.routeConfig.path===Yn.Channels}store(n,e){this.storedRoutes.set(n.routeConfig.path,e)}shouldAttach(n){return!!n.routeConfig&&!!this.storedRoutes.get(n.routeConfig.path)}retrieve(n){return this.storedRoutes.get(n.routeConfig.path)}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}function oE(t,n){return n?e=>Ku(n.pipe(wr(1),function jZ(){return ut((t,n)=>{t.subscribe(nt(n,bl))})}()),e.pipe(oE(t))):vt((e,i)=>qt(t(e,i)).pipe(wr(1),tS(e)))}let Bm=(()=>{class t{constructor(){}logInfo(e){console.info(e)}logError(e){console.error(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function KZ(t,n){let e=n;return i=>i.pipe(function UZ(t){return ut((n,e)=>{let i,o,r=!1;const s=()=>{i=n.subscribe(nt(e,void 0,void 0,a=>{o||(o=new Oe,qt(t(o)).subscribe(nt(e,()=>i?s():r=!0))),o&&o.next(a)})),r&&(i.unsubscribe(),i=null,r=!1,s())};s()})}(r=>r.pipe(function qZ(t,n=Lm){const e=function WZ(t=0,n,e=rZ){let i=-1;return null!=n&&(a_(n)?e=n:i=n),new ot(r=>{let o=function GZ(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;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)})}(t,n);return oE(()=>e)}(t),vt(o=>e-- >0?oe(o):eo(()=>new Error("Network problem, try again."))))))}let ZZ=(()=>{class t{constructor(e,i){this.messageService=e,this.logging=i}intercept(e,i){return i.handle(e).pipe(KZ(1e3,3),Tr(r=>this.handleError(r,this.messageService)))}handleError(e,i){return e?(this.logging.logError(e.message),i.sendMessage(new Vm(e.message))):(this.logging.logError("An error has occurred."),i.sendMessage(new Vm("An error has occurred"))),eo(()=>new Error(e.message||"An error has occurred"))}static#e=this.\u0275fac=function(i){return new(i||t)(H(wn),H(Bm))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();!function vF(t,n,e){(function gA(t,n,e){"string"!=typeof n&&(e=n,n=t[Ye.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),ts[n]=t,e&&(ts[n][Ye.ExtraData]=e)})(t,n,e)}(TN);let YZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t,bootstrap:[$Z]});static#n=this.\u0275inj=Me({providers:[{provide:Ti,useValue:"sv"},_m,Bm,{provide:eT,useClass:ZZ,multi:!0,deps:[wn,Bm]},{provide:qS,useClass:zZ}],imports:[$w,RZ,mN,Nq,sK,ku,I5,h$,nK,hl,Dm,WV,gd,wV]})}return t})();HL().bootstrapModule(YZ).catch(t=>console.error(t))}},De=>{De(De.s=431)}]); \ No newline at end of file +"use strict";(self.webpackChunksr_app=self.webpackChunksr_app||[]).push([[179],{431:()=>{function De(t){return"function"==typeof t}function Os(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const yl=Os(t=>function(e){t(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 co(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class hn{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;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(De(i))try{i()}catch(o){n=o instanceof yl?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Um(o)}catch(s){n=n??[],s instanceof yl?n=[...n,...s.errors]:n.push(s)}}if(n)throw new yl(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Um(n);else{if(n instanceof hn){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&co(e,n)}remove(n){const{_finalizers:e}=this;e&&co(e,n),n instanceof hn&&n._removeParent(this)}}hn.EMPTY=(()=>{const t=new hn;return t.closed=!0,t})();const $m=hn.EMPTY;function zm(t){return t instanceof hn||t&&"closed"in t&&De(t.remove)&&De(t.add)&&De(t.unsubscribe)}function Um(t){De(t)?t():t.unsubscribe()}const xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vl={setTimeout(t,n,...e){const{delegate:i}=vl;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=vl;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function jm(t){vl.setTimeout(()=>{const{onUnhandledError:n}=xr;if(!n)throw t;n(t)})}function bl(){}const cE=Ed("C",void 0,void 0);function Ed(t,n,e){return{kind:t,value:n,error:e}}let Mr=null;function Cl(t){if(xr.useDeprecatedSynchronousErrorHandling){const n=!Mr;if(n&&(Mr={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Mr;if(Mr=null,e)throw i}}else t()}class Id extends hn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,zm(n)&&n.add(this)):this.destination=mE}static create(n,e,i){return new As(n,e,i)}next(n){this.isStopped?Md(function dE(t){return Ed("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Md(function uE(t){return Ed("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Md(cE,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const hE=Function.prototype.bind;function xd(t,n){return hE.call(t,n)}class fE{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){wl(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){wl(i)}else wl(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){wl(e)}}}class As extends Id{constructor(n,e,i){let r;if(super(),De(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&xr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&xd(n.next,o),error:n.error&&xd(n.error,o),complete:n.complete&&xd(n.complete,o)}):r=n}this.destination=new fE(r)}}function wl(t){xr.useDeprecatedSynchronousErrorHandling?function pE(t){xr.useDeprecatedSynchronousErrorHandling&&Mr&&(Mr.errorThrown=!0,Mr.error=t)}(t):jm(t)}function Md(t,n){const{onStoppedNotification:e}=xr;e&&vl.setTimeout(()=>e(t,n))}const mE={closed:!0,next:bl,error:function gE(t){throw t},complete:bl},kd="function"==typeof Symbol&&Symbol.observable||"@@observable";function nr(t){return t}function Gm(t){return 0===t.length?nr:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let ot=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function vE(t){return t&&t instanceof Id||function yE(t){return t&&De(t.next)&&De(t.error)&&De(t.complete)}(t)&&zm(t)}(e)?e:new As(e,i,r);return Cl(()=>{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=Wm(i))((r,o)=>{const s=new As({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)}[kd](){return this}pipe(...e){return Gm(e)(this)}toPromise(e){return new(e=Wm(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Wm(t){var n;return null!==(n=t??xr.Promise)&&void 0!==n?n:Promise}const bE=Os(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Oe=(()=>{class t extends ot{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new qm(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new bE}next(e){Cl(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Cl(()=>{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(){Cl(()=>{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?$m:(this.currentObservers=null,o.push(e),new hn(()=>{this.currentObservers=null,co(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ot;return e.source=this,e}}return t.create=(n,e)=>new qm(n,e),t})();class qm extends Oe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:$m}}function Km(t){return De(t?.lift)}function ut(t){return n=>{if(Km(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function nt(t,n,e,i,r){return new CE(t,n,e,i,r)}class CE extends Id{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Se(t,n){return ut((e,i)=>{let r=0;e.subscribe(nt(i,o=>{i.next(t.call(n,o,r++))}))})}function kr(t){return this instanceof kr?(this.v=t,this):new kr(t)}function SE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Qm(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[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=t[o](s)).done,s.value)})}}}const Ad=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Jm(t){return De(t?.then)}function Xm(t){return De(t[kd])}function e_(t){return Symbol.asyncIterator&&De(t?.[Symbol.asyncIterator])}function t_(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const n_=function IE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function i_(t){return De(t?.[n_])}function r_(t){return function DE(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(m){i[m]&&(r[m]=function(_){return new Promise(function(b,C){o.push([m,_,b,C])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof kr?Promise.resolve(m.value.v).then(c,u):d(o[0][2],m)}(i[m](_))}catch(b){d(o[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function d(m,_){m(_),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield kr(e.read());if(r)return yield kr(void 0);yield yield kr(i)}}finally{e.releaseLock()}})}function o_(t){return De(t?.getReader)}function qt(t){if(t instanceof ot)return t;if(null!=t){if(Xm(t))return function xE(t){return new ot(n=>{const e=t[kd]();if(De(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Ad(t))return function ME(t){return new ot(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,jm)})}(t);if(e_(t))return s_(t);if(i_(t))return function OE(t){return new ot(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(o_(t))return function AE(t){return s_(r_(t))}(t)}throw t_(t)}function s_(t){return new ot(n=>{(function RE(t,n){var e,i,r,o;return function wE(t,n,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(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=SE(t);!(i=yield e.next()).done;)if(n.next(i.value),n.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}}n.complete()})})(t,n).catch(e=>n.error(e))})}function ki(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function vt(t,n,e=1/0){return De(n)?vt((i,r)=>Se((o,s)=>n(i,o,r,s))(qt(t(i,r))),e):("number"==typeof n&&(e=n),ut((i,r)=>function PE(t,n,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const m=()=>{d&&!l.length&&!c&&n.complete()},_=C=>c{o&&n.next(C),c++;let T=!1;qt(e(C,u++)).subscribe(nt(n,M=>{r?.(M),o?_(M):n.next(M)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cb(M)):b(M)}m()}catch(M){n.error(M)}}))};return t.subscribe(nt(n,_,()=>{d=!0,m()})),()=>{a?.()}}(i,r,t,e)))}function uo(t=1/0){return vt(nr,t)}const hi=new ot(t=>t.complete());function a_(t){return t&&De(t.schedule)}function Rd(t){return t[t.length-1]}function l_(t){return De(Rd(t))?t.pop():void 0}function Rs(t){return a_(Rd(t))?t.pop():void 0}function c_(t,n=0){return ut((e,i)=>{e.subscribe(nt(i,r=>ki(i,t,()=>i.next(r),n),()=>ki(i,t,()=>i.complete(),n),r=>ki(i,t,()=>i.error(r),n)))})}function u_(t,n=0){return ut((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function d_(t,n){if(!t)throw new Error("Iterable cannot be null");return new ot(e=>{ki(e,n,()=>{const i=t[Symbol.asyncIterator]();ki(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Dt(t,n){return n?function zE(t,n){if(null!=t){if(Xm(t))return function NE(t,n){return qt(t).pipe(u_(n),c_(n))}(t,n);if(Ad(t))return function BE(t,n){return new ot(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(Jm(t))return function VE(t,n){return qt(t).pipe(u_(n),c_(n))}(t,n);if(e_(t))return d_(t,n);if(i_(t))return function HE(t,n){return new ot(e=>{let i;return ki(e,n,()=>{i=t[n_](),ki(e,n,()=>{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)}),()=>De(i?.return)&&i.return()})}(t,n);if(o_(t))return function $E(t,n){return d_(r_(t),n)}(t,n)}throw t_(t)}(t,n):qt(t)}class en extends Oe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function oe(...t){return Dt(t,Rs(t))}function p_(t={}){const{connector:n=(()=>new Oe),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),s=l=void 0,u=d=!1},b=()=>{const C=s;_(),C?.unsubscribe()};return ut((C,T)=>{c++,!d&&!u&&m();const M=l=l??n();T.add(()=>{c--,0===c&&!d&&!u&&(a=Pd(b,r))}),M.subscribe(T),!s&&c>0&&(s=new As({next:I=>M.next(I),error:I=>{d=!0,m(),a=Pd(_,e,I),M.error(I)},complete:()=>{u=!0,m(),a=Pd(_,i),M.complete()}}),qt(C).subscribe(s))})(o)}}function Pd(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new As({next:()=>{i.unsubscribe(),t()}});return qt(n(...e)).subscribe(i)}function Jn(t,n){return ut((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(nt(i,l=>{r?.unsubscribe();let c=0;const u=o++;qt(t(l,u)).subscribe(r=nt(i,d=>i.next(n?n(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function h_(t,n=nr){return t=t??jE,ut((e,i)=>{let r,o=!0;e.subscribe(nt(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function jE(t,n){return t===n}function He(t){for(let n in t)if(t[n]===He)return n;throw Error("Could not find renamed property on target object.")}function Tl(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function St(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(St).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Fd(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const GE=He({__forward_ref__:He});function Ee(t){return t.__forward_ref__=Ee,t.toString=function(){return St(this())},t}function de(t){return Ld(t)?t():t}function Ld(t){return"function"==typeof t&&t.hasOwnProperty(GE)&&t.__forward_ref__===Ee}function Nd(t){return t&&!!t.\u0275providers}const f_="https://g.co/ng/security#xss";class k extends Error{constructor(n,e){super(function Dl(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function he(t){return"string"==typeof t?t:null==t?"":String(t)}function Vd(t,n){throw new k(-201,!1)}function Ln(t,n){null==t&&function ae(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Me(t){return{providers:t.providers||[],imports:t.imports||[]}}function Sl(t){return g_(t,Il)||g_(t,m_)}function g_(t,n){return t.hasOwnProperty(n)?t[n]:null}function El(t){return t&&(t.hasOwnProperty(Bd)||t.hasOwnProperty(XE))?t[Bd]:null}const Il=He({\u0275prov:He}),Bd=He({\u0275inj:He}),m_=He({ngInjectableDef:He}),XE=He({ngInjectorDef:He});var Ce=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ce||{});let Hd;function fn(t){const n=Hd;return Hd=t,n}function y_(t,n,e){const i=Sl(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ce.Optional?null:void 0!==n?n:void Vd(St(t))}const qe=globalThis;class G{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ps={},Gd="__NG_DI_FLAG__",xl="ngTempTokenPath",nI=/\n/gm,b_="__source";let po;function ir(t){const n=po;return po=t,n}function oI(t,n=Ce.Default){if(void 0===po)throw new k(-203,!1);return null===po?y_(t,void 0,n):po.get(t,n&Ce.Optional?null:void 0,n)}function H(t,n=Ce.Default){return(function __(){return Hd}()||oI)(de(t),n)}function j(t,n=Ce.Default){return H(t,Ml(n))}function Ml(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Wd(t){const n=[];for(let e=0;en){s=o-1;break}}}for(;oo?"":r[d+1].toLowerCase();const _=8&i?m:null;if(_&&-1!==D_(_,c,0)||2&i&&c!==m){if(Xn(i))return!1;s=!0}}}}else{if(!s&&!Xn(i)&&!Xn(l))return!1;if(s&&Xn(l))continue;s=!1,i=l|1&i}}return Xn(i)||s}function Xn(t){return 0==(1&t)}function pI(t,n,e,i){if(null===n)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&&!Xn(s)&&(n+=O_(o,r),r=""),i=s,o=o||!Xn(i);e++}return""!==r&&(n+=O_(o,r)),n}function J(t){return Oi(()=>{const n=R_(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===kl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Nn.Emulated,styles:t.styles||Ae,_:null,schemas:t.schemas||null,tView:null,id:""};P_(e);const i=t.dependencies;return e.directiveDefs=Al(i,!1),e.pipeDefs=Al(i,!0),e.id=function SI(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function CI(t){return Ie(t)||At(t)}function wI(t){return null!==t}function Re(t){return Oi(()=>({type:t.type,bootstrap:t.bootstrap||Ae,declarations:t.declarations||Ae,imports:t.imports||Ae,exports:t.exports||Ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function A_(t,n){if(null==t)return fi;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}function ne(t){return Oi(()=>{const n=R_(t);return P_(n),n})}function tn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ie(t){return t[Ol]||null}function At(t){return t[qd]||null}function nn(t){return t[Kd]||null}function Sn(t,n){const e=t[w_]||null;if(!e&&!0===n)throw new Error(`Type ${St(t)} does not have '\u0275mod' property.`);return e}function R_(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||fi,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Ae,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:A_(t.inputs,n),outputs:A_(t.outputs)}}function P_(t){t.features?.forEach(n=>n(t))}function Al(t,n){if(!t)return null;const e=n?nn:CI;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(wI)}const dt=0,z=1,_e=2,it=3,ei=4,Vs=5,Kt=6,fo=7,ft=8,rr=9,go=10,fe=11,Bs=12,F_=13,mo=14,gt=15,Hs=16,_o=17,gi=18,$s=19,L_=20,or=21,Ri=22,zs=23,Us=24,we=25,Yd=1,N_=2,mi=7,yo=9,Rt=11;function gn(t){return Array.isArray(t)&&"object"==typeof t[Yd]}function rn(t){return Array.isArray(t)&&!0===t[Yd]}function Qd(t){return 0!=(4&t.flags)}function Ar(t){return t.componentOffset>-1}function Pl(t){return 1==(1&t.flags)}function ti(t){return!!t.template}function Jd(t){return 0!=(512&t[_e])}function Rr(t,n){return t.hasOwnProperty(Ai)?t[Ai]:null}let Pt=null,Fl=!1;function Vn(t){const n=Pt;return Pt=t,n}const H_={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function z_(t){if(!Gs(t)||t.dirty){if(!t.producerMustRecompute(t)&&!G_(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function j_(t){t.dirty=!0,function U_(t){if(void 0===t.liveConsumerNode)return;const n=Fl;Fl=!0;try{for(const e of t.liveConsumerNode)e.dirty||j_(e)}finally{Fl=n}}(t),t.consumerMarkedDirty?.(t)}function ep(t){return t&&(t.nextProducerIndex=0),Vn(t)}function tp(t,n){if(Vn(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(Gs(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function G_(t){vo(t);for(let n=0;n0}function vo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z_=null;const X_=()=>{},VI=(()=>({...H_,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:X_}))();class BI{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ft(){return ey}function ey(t){return t.type.prototype.ngOnChanges&&(t.setInput=$I),HI}function HI(){const t=ny(this),n=t?.current;if(n){const e=t.previous;if(e===fi)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function $I(t,n,e,i){const r=this.declaredInputs[e],o=ny(t)||function zI(t,n){return t[ty]=n}(t,{previous:fi,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new BI(l&&l.currentValue,n,a===fi),t[i]=n}Ft.ngInherit=!0;const ty="__ngSimpleChanges__";function ny(t){return t[ty]||null}const _i=function(t,n,e){};function Ke(t){for(;Array.isArray(t);)t=t[dt];return t}function Nl(t,n){return Ke(n[t])}function mn(t,n){return Ke(n[t.index])}function oy(t,n){return t.data[n]}function bo(t,n){return t[n]}function En(t,n){const e=n[t];return gn(e)?e:e[dt]}function ar(t,n){return null==n?null:t[n]}function sy(t){t[_o]=0}function KI(t){1024&t[_e]||(t[_e]|=1024,ly(t,1))}function ay(t){1024&t[_e]&&(t[_e]&=-1025,ly(t,-1))}function ly(t,n){let e=t[it];if(null===e)return;e[Vs]+=n;let i=e;for(e=e[it];null!==e&&(1===n&&1===i[Vs]||-1===n&&0===i[Vs]);)e[Vs]+=n,i=e,e=e[it]}const le={lFrame:vy(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function dy(){return le.bindingsEnabled}function Co(){return null!==le.skipHydrationRootTNode}function R(){return le.lFrame.lView}function xe(){return le.lFrame.tView}function D(t){return le.lFrame.contextLView=t,t[ft]}function S(t){return le.lFrame.contextLView=null,t}function Lt(){let t=py();for(;null!==t&&64===t.type;)t=t.parent;return t}function py(){return le.lFrame.currentTNode}function yi(t,n){const e=le.lFrame;e.currentTNode=t,e.isParent=n}function sp(){return le.lFrame.isParent}function ap(){le.lFrame.isParent=!1}function on(){const t=le.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function wo(){return le.lFrame.bindingIndex++}function Fi(t){const n=le.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function sx(t,n){const e=le.lFrame;e.bindingIndex=e.bindingRootIndex=t,lp(n)}function lp(t){le.lFrame.currentDirectiveIndex=t}function my(){return le.lFrame.currentQueryIndex}function up(t){le.lFrame.currentQueryIndex=t}function lx(t){const n=t[z];return 2===n.type?n.declTNode:1===n.type?t[Kt]:null}function _y(t,n,e){if(e&Ce.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Ce.Host||(r=lx(o),null===r||(o=o[mo],10&r.type))););if(null===r)return!1;n=r,t=o}const i=le.lFrame=yy();return i.currentTNode=n,i.lView=t,!0}function dp(t){const n=yy(),e=t[z];le.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function yy(){const t=le.lFrame,n=null===t?null:t.child;return null===n?vy(t):n}function vy(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function by(){const t=le.lFrame;return le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Cy=by;function pp(){const t=by();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function sn(){return le.lFrame.selectedIndex}function Pr(t){le.lFrame.selectedIndex=t}function st(){const t=le.lFrame;return oy(t.tView,t.selectedIndex)}function Ze(){le.lFrame.currentNamespace="svg"}let Ty=!0;function Vl(){return Ty}function lr(t){Ty=t}function Bl(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[_o]+=65536),(a>13>16&&(3&t[_e])===n&&(t[_e]+=8192,Sy(a,o)):Sy(a,o)}const To=-1;class qs{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function gp(t){return t!==To}function Ks(t){return 32767&t}function Zs(t,n){let e=function vx(t){return t>>16}(t),i=n;for(;e>0;)i=i[mo],e--;return i}let mp=!0;function zl(t){const n=mp;return mp=t,n}const Ey=255,Iy=5;let bx=0;const vi={};function Ul(t,n){const e=xy(t,n);if(-1!==e)return e;const i=n[z];i.firstCreatePass&&(t.injectorIndex=n.length,_p(i.data,t),_p(n,null),_p(i.blueprint,null));const r=jl(t,n),o=t.injectorIndex;if(gp(r)){const s=Ks(r),a=Zs(r,n),l=a[z].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function _p(t,n){t.push(0,0,0,0,0,0,0,0,n)}function xy(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function jl(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=Fy(r),null===i)return To;if(e++,r=r[mo],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return To}function yp(t,n,e){!function Cx(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ls)&&(i=e[Ls]),null==i&&(i=e[Ls]=bx++);const r=i&Ey;n.data[t+(r>>Iy)]|=1<=0?n&Ey:Ex:n}(e);if("function"==typeof o){if(!_y(n,t,i))return i&Ce.Host?My(r,0,i):ky(n,e,i,r);try{let s;if(s=o(i),null!=s||i&Ce.Optional)return s;Vd()}finally{Cy()}}else if("number"==typeof o){let s=null,a=xy(t,n),l=To,c=i&Ce.Host?n[gt][Kt]:null;for((-1===a||i&Ce.SkipSelf)&&(l=-1===a?jl(t,n):n[a+8],l!==To&&Py(i,!1)?(s=n[z],a=Ks(l),n=Zs(l,n)):a=-1);-1!==a;){const u=n[z];if(Ry(o,a,u.data)){const d=Tx(a,n,e,s,i,c);if(d!==vi)return d}l=n[a+8],l!==To&&Py(i,n[z].data[a+8]===c)&&Ry(o,a,n)?(s=u,a=Ks(l),n=Zs(l,n)):a=-1}}return r}function Tx(t,n,e,i,r,o){const s=n[z],a=s.data[t+8],u=Gl(a,s,e,null==i?Ar(a)&&mp:i!=s&&0!=(3&a.type),r&Ce.Host&&o===a);return null!==u?Fr(n,s,u,a):vi}function Gl(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,m=r?a+u:t.directiveEnd;for(let _=i?a:a+u;_=l&&b.type===e)return _}if(r){const _=s[l];if(_&&ti(_)&&_.type===e)return l}return null}function Fr(t,n,e,i){let r=t[e];const o=n.data;if(function mx(t){return t instanceof qs}(r)){const s=r;s.resolving&&function WE(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new k(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Be(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():he(t)}(o[e]));const a=zl(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?fn(s.injectImpl):null;_y(t,i,Ce.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function fx(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=ey(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],n)}finally{null!==c&&fn(c),zl(a),s.resolving=!1,Cy()}}return r}function Ry(t,n,e){return!!(e[n+(t>>Iy)]&1<{const n=t.prototype.constructor,e=n[Ai]||vp(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Ai]||vp(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function vp(t){return Ld(t)?()=>{const n=vp(de(t));return n&&n()}:Rr(t)}function Fy(t){const n=t[z],e=n.type;return 2===e?n.declTNode:1===e?t[Kt]:null}const So="__parameters__";function Io(t,n,e){return Oi(()=>{const i=function bp(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);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(So)?l[So]:Object.defineProperty(l,So,{value:[]})[So];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=t,r.annotationCls=r,r})}function Mo(t,n){t.forEach(e=>Array.isArray(e)?Mo(e,n):n(e))}function Ny(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ql(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Js(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function Px(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Cp(t,n){const e=ko(t,n);if(e>=0)return t[1|e]}function ko(t,n){return function Vy(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<|^->||--!>|)/g,iM="\u200b$1\u200b";const Ep=new Map;let rM=0;const xp="__ngContext__";function Zt(t,n){gn(n)?(t[xp]=n[$s],function sM(t){Ep.set(t[$s],t)}(n)):t[xp]=n}let Mp;function kp(t,n){return Mp(t,n)}function ta(t){const n=t[it];return rn(n)?n[it]:n}function o1(t){return a1(t[Bs])}function s1(t){return a1(t[ei])}function a1(t){for(;null!==t&&!rn(t);)t=t[ei];return t}function Ro(t,n,e,i,r){if(null!=i){let o,s=!1;rn(i)?o=i:gn(i)&&(s=!0,i=i[dt]);const a=Ke(i);0===t&&null!==e?null==r?d1(n,e,a):Lr(n,e,a,r||null,!0):1===t&&null!==e?Lr(n,e,a,r||null,!0):2===t?function lc(t,n,e){const i=sc(t,n);i&&function SM(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function xM(t,n,e,i,r){const o=e[mi];o!==Ke(e)&&Ro(n,t,i,o,r);for(let a=Rt;an.replace(nM,iM))}(n))}function rc(t,n,e){return t.createElement(n,e)}function c1(t,n){const e=t[yo],i=e.indexOf(n);ay(n),e.splice(i,1)}function oc(t,n){if(t.length<=Rt)return;const e=Rt+n,i=t[e];if(i){const r=i[Hs];null!==r&&r!==t&&c1(r,i),n>0&&(t[e-1][ei]=i[ei]);const o=ql(t,Rt+n);!function _M(t,n){ia(t,n,n[fe],2,null,null),n[dt]=null,n[Kt]=null}(i[z],i);const s=o[gi];null!==s&&s.detachView(o[z]),i[it]=null,i[ei]=null,i[_e]&=-129}return i}function Ap(t,n){if(!(256&n[_e])){const e=n[fe];n[zs]&&W_(n[zs]),n[Us]&&W_(n[Us]),e.destroyNode&&ia(t,n,e,3,null,null),function bM(t){let n=t[Bs];if(!n)return Rp(t[z],t);for(;n;){let e=null;if(gn(n))e=n[Bs];else{const i=n[Rt];i&&(e=i)}if(!e){for(;n&&!n[ei]&&n!==t;)gn(n)&&Rp(n[z],n),n=n[it];null===n&&(n=t),gn(n)&&Rp(n[z],n),e=n&&n[ei]}n=e}}(n)}}function Rp(t,n){if(!(256&n[_e])){n[_e]&=-129,n[_e]|=256,function DM(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[s]():i[-s].unsubscribe(),o+=2}else e[o].call(i[e[o+1]]);null!==i&&(n[fo]=null);const r=n[or];if(null!==r){n[or]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===Nn.None||o===Nn.Emulated)return null}return mn(i,e)}}(t,n.parent,e)}function Lr(t,n,e,i,r){t.insertBefore(n,e,i,r)}function d1(t,n,e){t.appendChild(n,e)}function p1(t,n,e,i,r){null!==i?Lr(t,n,e,i,r):d1(t,n,e)}function sc(t,n){return t.parentNode(n)}function h1(t,n,e){return g1(t,n,e)}let Fp,Bp,uc,g1=function f1(t,n,e){return 40&t.type?mn(t,e):null};function ac(t,n,e,i){const r=Pp(t,i,n),o=n[fe],a=h1(i.parent||n[Kt],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return uc}()?.createScriptURL(t)||t}class S1{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${f_})`}}function ur(t){return t instanceof S1?t.changingThisBreaksApplicationSecurity:t}function ra(t,n){const e=function HM(t){return t instanceof S1&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${f_})`)}return e===n}const jM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Lo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Lo||{});function Hn(t){const n=sa();return n?n.sanitize(Lo.URL,t)||"":ra(t,"URL")?ur(t):function $p(t){return(t=String(t)).match(jM)?t:"unsafe:"+t}(he(t))}function A1(t){const n=sa();if(n)return D1(n.sanitize(Lo.RESOURCE_URL,t)||"");if(ra(t,"ResourceURL"))return D1(ur(t));throw new k(904,!1)}function sa(){const t=R();return t&&t[go].sanitizer}const aa=new G("ENVIRONMENT_INITIALIZER"),P1=new G("INJECTOR",-1),F1=new G("INJECTOR_DEF_TYPES");class Gp{get(n,e=Ps){if(e===Ps){const i=new Error(`NullInjectorError: No provider for ${St(n)}!`);throw i.name="NullInjectorError",i}return e}}function i3(...t){return{\u0275providers:L1(0,t),\u0275fromNgModule:!0}}function L1(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return Mo(n,s=>{const a=s;pc(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&N1(r,o),e}function N1(t,n){for(let e=0;e{n(o,i)})}}function pc(t,n,e,i){if(!(t=de(t)))return!1;let r=null,o=El(t);const s=!o&&Ie(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=El(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)pc(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Mo(o.imports,u=>{pc(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&N1(c,n)}if(!a){const c=Rr(r)||(()=>new r);n({provide:r,useFactory:c,deps:Ae},r),n({provide:F1,useValue:r,multi:!0},r),n({provide:aa,useValue:()=>H(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=t;qp(l,u=>{n(u,c)})}}}return r!==t&&void 0!==t.providers}function qp(t,n){for(let e of t)Nd(e)&&(e=e.\u0275providers),Array.isArray(e)?qp(e,n):n(e)}const r3=He({provide:String,useValue:He});function Kp(t){return null!==t&&"object"==typeof t&&r3 in t}function Nr(t){return"function"==typeof t}const Zp=new G("Set Injector scope."),hc={},s3={};let Yp;function fc(){return void 0===Yp&&(Yp=new Gp),Yp}class xn{}class No extends xn{get destroyed(){return this._destroyed}constructor(n,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,Jp(n,s=>this.processProvider(s)),this.records.set(P1,Vo(void 0,this)),r.has("environment")&&this.records.set(xn,Vo(void 0,this));const o=this.records.get(Zp);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(F1.multi,Ae,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=ir(this),i=fn(void 0);try{return n()}finally{ir(e),fn(i)}}get(n,e=Ps,i=Ce.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(T_))return n[T_](this);i=Ml(i);const o=ir(this),s=fn(void 0);try{if(!(i&Ce.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function d3(t){return"function"==typeof t||"object"==typeof t&&t instanceof G}(n)&&Sl(n);l=c&&this.injectableDefInScope(c)?Vo(Qp(n),hc):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&Ce.Self?fc():this.parent).get(n,e=i&Ce.Optional&&e===Ps?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[xl]=a[xl]||[]).unshift(St(n)),o)throw a;return function aI(t,n,e,i){const r=t[xl];throw n[b_]&&r.unshift(n[b_]),t.message=function lI(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=St(n);if(Array.isArray(n))r=n.map(St).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):St(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(nI,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[xl]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{fn(s),ir(o)}}resolveInjectorInitializers(){const n=ir(this),e=fn(void 0);try{const r=this.get(aa.multi,Ae,Ce.Self);for(const o of r)o()}finally{ir(n),fn(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(St(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(n){let e=Nr(n=de(n))?n:de(n&&n.provide);const i=function l3(t){return Kp(t)?Vo(void 0,t.useValue):Vo(H1(t),hc)}(n);if(Nr(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Vo(void 0,hc,!0),r.factory=()=>Wd(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===hc&&(e.value=s3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function u3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=de(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Qp(t){const n=Sl(t),e=null!==n?n.factory:Rr(t);if(null!==e)return e;if(t instanceof G)throw new k(204,!1);if(t instanceof Function)return function a3(t){const n=t.length;if(n>0)throw Js(n,"?"),new k(204,!1);const e=function JE(t){return t&&(t[Il]||t[m_])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new k(204,!1)}function H1(t,n,e){let i;if(Nr(t)){const r=de(t);return Rr(r)||Qp(r)}if(Kp(t))i=()=>de(t.useValue);else if(function B1(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Wd(t.deps||[]));else if(function V1(t){return!(!t||!t.useExisting)}(t))i=()=>H(de(t.useExisting));else{const r=de(t&&(t.useClass||t.provide));if(!function c3(t){return!!t.deps}(t))return Rr(r)||Qp(r);i=()=>new r(...Wd(t.deps))}return i}function Vo(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Jp(t,n){for(const e of t)Array.isArray(e)?Jp(e,n):e&&Nd(e)?Jp(e.\u0275providers,n):n(e)}const gc=new G("AppId",{providedIn:"root",factory:()=>p3}),p3="ng",$1=new G("Platform Initializer"),$n=new G("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),z1=new G("AnimationModuleType"),U1=new G("CSP nonce",{providedIn:"root",factory:()=>function Fo(){if(void 0!==Bp)return Bp;if(typeof document<"u")return document;throw new k(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let j1=(t,n,e)=>null;function sh(t,n,e=!1){return j1(t,n,e)}class w3{}class q1{}class D3{resolveComponentFactory(n){throw function T3(t){const n=Error(`No component factory found for ${St(t)}.`);return n.ngComponent=t,n}(n)}}let Cc=(()=>{class t{static#e=this.NULL=new D3}return t})();function S3(){return $o(Lt(),R())}function $o(t,n){return new Ue(mn(t,n))}let Ue=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=S3}return t})();function E3(t){return t instanceof Ue?t.nativeElement:t}class ua{}let xt=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function I3(){const t=R(),e=En(Lt().index,t);return(gn(e)?e:t)[fe]}()}return t})(),x3=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();class da{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const M3=new da("16.2.11"),ch={};function J1(t,n=null,e=null,i){const r=X1(t,n,e,i);return r.resolveInjectorInitializers(),r}function X1(t,n=null,e=null,i,r=new Set){const o=[e||Ae,i3(t)];return i=i||("object"==typeof t?void 0:St(t)),new No(o,n||fc(),i||null,r)}let yn=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Ps;static#t=this.NULL=new Gp;static create(e,i){if(Array.isArray(e))return J1({name:""},i,e,"");{const r=e.name??"";return J1({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=$({token:t,providedIn:"any",factory:()=>H(P1)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function dh(t){return t.ngOriginalError}class Ni{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&dh(n);for(;e&&dh(e);)e=dh(e);return e||null}}function hh(t){return n=>{setTimeout(t,void 0,n)}}const F=class L3 extends Oe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=hh(o),r&&(r=hh(r)),s&&(s=hh(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof hn&&n.add(a),a}};function tv(...t){}class Te{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new F(!1),this.onMicrotaskEmpty=new F(!1),this.onStable=new F(!1),this.onError=new F(!1),typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function N3(){const t="function"==typeof qe.requestAnimationFrame;let n=qe[t?"requestAnimationFrame":"setTimeout"],e=qe[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function H3(t){const n=()=>{!function B3(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(qe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gh(t),t.isCheckStableRunning=!0,fh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gh(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{if(function z3(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(r,o,s,a);try{return nv(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),iv(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return nv(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),iv(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,gh(t),fh(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new k(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,V3,tv,tv);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const V3={};function fh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function nv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function iv(t){t._nesting--,fh(t)}class $3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new F,this.onMicrotaskEmpty=new F,this.onStable=new F,this.onError=new F}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const rv=new G("",{providedIn:"root",factory:ov});function ov(){const t=j(Te);let n=!0;return function UE(...t){const n=Rs(t),e=function LE(t,n){return"number"==typeof Rd(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?qt(i[0]):uo(e)(Dt(i,n)):hi}(new ot(r=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(n),r.complete()})}),new ot(r=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{Te.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,r.next(!0))})})});const s=t.onUnstable.subscribe(()=>{Te.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(p_()))}function sv(t){return t.ownerDocument}function Vi(t){return t instanceof Function?t():t}let mh=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})();function pa(t){for(;t;){t[_e]|=64;const n=ta(t);if(Jd(t)&&!n)return t;t=n}return null}const dv=new G("",{providedIn:"root",factory:()=>!1});let Tc=null;function gv(t,n){return t[n]??yv()}function mv(t,n){const e=yv();e.producerNode?.length&&(t[n]=Tc,e.lView=t,Tc=_v())}const Q3={...H_,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{pa(t.lView)},lView:null};function _v(){return Object.create(Q3)}function yv(){return Tc??=_v(),Tc}const ge={};function p(t){vv(xe(),R(),sn()+t,!1)}function vv(t,n,e,i){if(!i)if(3==(3&n[_e])){const o=t.preOrderCheckHooks;null!==o&&Hl(n,o,e)}else{const o=t.preOrderHooks;null!==o&&$l(n,o,0,e)}Pr(e)}function w(t,n=Ce.Default){const e=R();return null===e?H(t,n):Oy(Lt(),e,de(t),n)}function Dc(t,n,e,i,r,o,s,a,l,c,u){const d=n.blueprint.slice();return d[dt]=r,d[_e]=140|i,(null!==c||t&&2048&t[_e])&&(d[_e]|=2048),sy(d),d[it]=d[mo]=t,d[ft]=e,d[go]=s||t&&t[go],d[fe]=a||t&&t[fe],d[rr]=l||t&&t[rr]||null,d[Kt]=o,d[$s]=function oM(){return rM++}(),d[Ri]=u,d[L_]=c,d[gt]=2==n.type?t[gt]:d,d}function jo(t,n,e,i,r){let o=t.data[n];if(null===o)o=function _h(t,n,e,i,r){const o=py(),s=sp(),l=t.data[n]=function ok(t,n,e,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Co()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(t,n,e,i,r),function ox(){return le.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const s=function Ws(){const t=le.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return yi(o,!0),o}function ha(t,n,e,i){if(0===e)return-1;const r=n.length;for(let o=0;owe&&vv(t,n,we,!1),_i(a?2:0,r);const c=a?o:null,u=ep(c);try{null!==c&&(c.dirty=!1),e(i,r)}finally{tp(c,u)}}finally{a&&null===n[zs]&&mv(n,zs),Pr(s),_i(a?3:1,r)}}function yh(t,n,e){if(Qd(n)){const i=Vn(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function Dv(t,n,e,i){for(let r in t)if(t.hasOwnProperty(r)){e=null===e?{}:e;const o=t[r];null===i?Sv(e,n,r,o):i.hasOwnProperty(r)&&Sv(e,n,i[r],o)}return e}function Sv(t,n,e,i){t.hasOwnProperty(e)?t[e].push(n,i):t[e]=[n,i]}function Mn(t,n,e,i,r,o,s,a){const l=mn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(Eh(t,e,u,i,r),Ar(n)&&function lk(t,n){const e=En(n,t);16&e[_e]||(e[_e]|=64)}(e,n.index)):3&n.type&&(i=function ak(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function wh(t,n,e,i){if(dy()){const r=null===i?null:{"":-1},o=function fk(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let o=0;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,ha(t,e,r.hostVars,ge),r)}function bi(t,n,e,i,r,o){const s=mn(t,n);!function Dh(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?he(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[fe],s,o,t.value,e,i,r)}function bk(t,n,e,i,r,o){const s=o[n];if(null!==s)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,i,r){const o=typeof Zone>"u"?null:Zone.current,s=function NI(t,n,e){const i=Object.create(VI);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;const r=s=>{i.cleanupFn=s};return i.ref={notify:()=>j_(i),run:()=>{if(i.dirty=!1,i.hasRun&&!G_(i))return;i.hasRun=!0;const s=ep(i);try{i.cleanupFn(),i.cleanupFn=X_,i.fn(r)}finally{tp(i,s)}},cleanup:()=>i.cleanupFn()},i.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,o)},r);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=i?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,i]of this.queue)this.queue.delete(e),i?i.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})();function Ec(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s0){Vv(t,1);const r=e.components;null!==r&&Hv(t,r,1)}}function Hv(t,n,e){for(let i=0;i-1&&(oc(n,i),ql(e,i))}this._attachedToViewContainer=!1}Ap(this._lView[z],this._lView)}onDestroy(n){!function cy(t,n){if(256==(256&t[_e]))throw new k(911,!1);null===t[or]&&(t[or]=[]),t[or].push(n)}(this._lView,n)}markForCheck(){pa(this._cdRefInjectingView||this._lView)}detach(){this._lView[_e]&=-129}reattach(){this._lView[_e]|=128}detectChanges(){Ic(this._lView[z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vM(t,n){ia(t,n,n[fe],2,null,null)}(this._lView[z],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=n}}class Mk extends ga{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Ic(n[z],n,n[ft],!1)}checkNoChanges(){}get context(){return null}}class $v extends Cc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Ie(n);return new ma(e,this.ngModule)}}function zv(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class Ok{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Ml(i);const r=this.injector.get(n,ch,i);return r!==ch||e===ch?r:this.parentInjector.get(n,e,i)}}class ma extends q1{get inputs(){const n=this.componentDef,e=n.inputTransforms,i=zv(n.inputs);if(null!==e)for(const r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return zv(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function yI(t){return t.map(_I).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof xn?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new Ok(n,o):n,a=s.get(ua,null);if(null===a)throw new k(407,!1);const d={rendererFactory:a,sanitizer:s.get(x3,null),effectManager:s.get(Fv,null),afterRenderEventManager:s.get(mh,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=i?function ek(t,n,e,i){const o=i.get(dv,!1)||e===Nn.ShadowDom,s=t.selectRootElement(n,o);return function tk(t){Tv(t)}(s),s}(m,i,this.componentDef.encapsulation,s):rc(m,_,function kk(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(_)),M=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let I=null;null!==b&&(I=sh(b,s,!0));const P=Ch(0,null,null,1,0,null,null,null,null,null,null),N=Dc(null,P,null,M,null,null,d,m,s,null,I);let X,be;dp(N);try{const Ve=this.componentDef;let We,tt=null;Ve.findHostDirectiveDefs?(We=[],tt=new Map,Ve.findHostDirectiveDefs(Ve,We,tt),We.push(Ve)):We=[Ve];const Wt=function Rk(t,n){const e=t[z],i=we;return t[i]=n,jo(e,i,2,"#host",null)}(N,b),Dd=function Pk(t,n,e,i,r,o,s){const a=r[z];!function Fk(t,n,e,i){for(const r of t)n.mergedAttrs=Ns(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Ec(n,n.mergedAttrs,!0),null!==e&&C1(i,e,n))}(i,t,n,s);let l=null;null!==n&&(l=sh(n,r[rr]));const c=o.rendererFactory.createRenderer(n,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const d=Dc(r,wv(e),null,u,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&Th(a,t,i.length-1),Sc(r,d),r[t.index]=d}(Wt,b,Ve,We,N,d,m);be=oy(P,we),b&&function Nk(t,n,e,i){if(i)Zd(t,e,["ng-version",M3.full]);else{const{attrs:r,classes:o}=function vI(t){const n=[],e=[];let i=1,r=2;for(;i0&&b1(t,e,o.join(" "))}}(m,Ve,b,i),void 0!==e&&function Vk(t,n,e){const i=t.projection=[];for(let r=0;r=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Ns(r.hostAttrs,e=Ns(e,r.hostAttrs))}}(i)}function xc(t){return t===fi?{}:t===Ae?[]:t}function $k(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function zk(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Uk(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function qv(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[2]&&(e[i]=r[2])}t.inputTransforms=e}function Mc(t){return!!xh(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function xh(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ci(t,n,e){return t[n]=e}function _a(t,n){return t[n]}function Yt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Vr(t,n,e,i){const r=Yt(t,n,e);return Yt(t,n+1,i)||r}function kc(t,n,e,i,r){const o=Vr(t,n,e,i);return Yt(t,n+2,r)||o}function zn(t,n,e,i,r,o){const s=Vr(t,n,e,i);return Vr(t,n+2,r,o)||s}function L(t,n,e,i){const r=R();return Yt(r,wo(),n)&&(xe(),bi(st(),r,t,n,e,i)),L}function Wo(t,n,e,i){return Yt(t,wo(),e)?n+he(e)+i:ge}function qo(t,n,e,i,r,o){const a=Vr(t,function Pi(){return le.lFrame.bindingIndex}(),e,r);return Fi(2),a?n+he(e)+i+he(r)+o:ge}function g(t,n,e,i,r,o,s,a){const l=R(),c=xe(),u=t+we,d=c.firstCreatePass?function fO(t,n,e,i,r,o,s,a,l){const c=n.consts,u=jo(n,t,4,s||null,ar(c,a));wh(n,e,u,ar(c,l)),Bl(n,u);const d=u.tView=Ch(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];yi(d,!1);const m=a0(c,l,d,t);Vl()&&ac(c,l,m,d),Zt(m,l),Sc(l,l[u]=Mv(m,l,m,d)),Pl(d)&&vh(c,l,d),null!=s&&bh(l,d,a)}let a0=function l0(t,n,e,i){return lr(!0),n[fe].createComment("")};function Xe(t){return bo(function rx(){return le.lFrame.contextLView}(),we+t)}function h(t,n,e){const i=R();return Yt(i,wo(),n)&&Mn(xe(),st(),i,t,n,i[fe],e,!1),h}function Ph(t,n,e,i,r){const s=r?"class":"style";Eh(t,e,n.inputs[s],s,i)}function v(t,n,e,i){const r=R(),o=xe(),s=we+t,a=r[fe],l=o.firstCreatePass?function yO(t,n,e,i,r,o){const s=n.consts,l=jo(n,t,2,i,ar(s,r));return wh(n,e,l,ar(s,o)),null!==l.attrs&&Ec(l,l.attrs,!1),null!==l.mergedAttrs&&Ec(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,e,i):o.data[s],c=c0(o,r,l,a,n,t);r[s]=c;const u=Pl(l);return yi(l,!0),C1(a,c,l),32!=(32&l.flags)&&Vl()&&ac(o,r,c,l),0===function YI(){return le.lFrame.elementDepthCount}()&&Zt(c,r),function QI(){le.lFrame.elementDepthCount++}(),u&&(vh(o,r,l),yh(o,l,r)),null!==i&&bh(r,l),v}function y(){let t=Lt();sp()?ap():(t=t.parent,yi(t,!1));const n=t;(function XI(t){return le.skipHydrationRootTNode===t})(n)&&function ix(){le.skipHydrationRootTNode=null}(),function JI(){le.lFrame.elementDepthCount--}();const e=xe();return e.firstCreatePass&&(Bl(e,t),Qd(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function _x(t){return 0!=(8&t.flags)}(n)&&Ph(e,n,R(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function yx(t){return 0!=(16&t.flags)}(n)&&Ph(e,n,R(),n.stylesWithoutHost,!1),y}function x(t,n,e,i){return v(t,n,e,i),y(),x}let c0=(t,n,e,i,r,o)=>(lr(!0),rc(i,r,function wy(){return le.lFrame.currentNamespace}()));function W(t,n,e){const i=R(),r=xe(),o=t+we,s=r.firstCreatePass?function CO(t,n,e,i,r){const o=n.consts,s=ar(o,i),a=jo(n,t,8,"ng-container",s);return null!==s&&Ec(a,s,!0),wh(n,e,a,ar(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];yi(s,!0);const a=u0(r,i,s,t);return i[o]=a,Vl()&&ac(r,i,a,s),Zt(a,i),Pl(s)&&(vh(r,i,s),yh(r,s,i)),null!=e&&bh(i,s),W}function q(){let t=Lt();const n=xe();return sp()?ap():(t=t.parent,yi(t,!1)),n.firstCreatePass&&(Bl(n,t),Qd(t)&&n.queries.elementEnd(t)),q}function Z(t,n,e){return W(t,n,e),q(),Z}let u0=(t,n,e,i)=>(lr(!0),Op(n[fe],""));function B(){return R()}function Ca(t){return!!t&&"function"==typeof t.then}function d0(t){return!!t&&"function"==typeof t.subscribe}function O(t,n,e,i){const r=R(),o=xe(),s=Lt();return function h0(t,n,e,i,r,o,s){const a=Pl(i),c=t.firstCreatePass&&Av(t),u=n[ft],d=Ov(n);let m=!0;if(3&i.type||s){const C=mn(i,n),T=s?s(C):C,M=d.length,I=s?N=>s(Ke(N[i.index])):i.index;let P=null;if(!s&&a&&(P=function DO(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=o,P.__ngLastListenerFn__=o,m=!1;else{o=g0(i,n,u,o,!1);const N=e.listen(T,r,o);d.push(o,N),c&&c.push(r,I,M,M+1)}}else o=g0(i,n,u,o,!1);const _=i.outputs;let b;if(m&&null!==_&&(b=_[r])){const C=b.length;if(C)for(let T=0;T-1?En(t.index,n):n);let l=f0(n,e,i,s),c=o.__ngNextListenerFn__;for(;c;)l=f0(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&s.preventDefault(),l}}function f(t=1){return function cx(t){return(le.lFrame.contextLView=function ux(t,n){for(;t>0;)n=n[mo],t--;return n}(t,le.lFrame.contextLView))[ft]}(t)}function SO(t,n){let e=null;const i=function hI(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r>17&32767}function Lh(t){return 2|t}function Br(t){return(131068&t)>>2}function Nh(t,n){return-131069&t|n<<2}function Vh(t){return 1|t}function D0(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?dr(o):Br(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];OO(t[a],n)&&(l=!0,t[a+1]=i?Vh(u):Lh(u)),a=i?dr(u):Br(u)}l&&(t[e+1]=i?Lh(o):Vh(o))}function OO(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ko(t,n)>=0}const It={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S0(t){return t.substring(It.key,It.keyEnd)}function AO(t){return t.substring(It.value,It.valueEnd)}function E0(t,n){const e=It.textEnd;return e===n?-1:(n=It.keyEnd=function FO(t,n,e){for(;n32;)n++;return n}(t,It.key=n,e),es(t,n,e))}function I0(t,n){const e=It.textEnd;let i=It.key=es(t,n,e);return e===i?-1:(i=It.keyEnd=function LO(t,n,e){let i;for(;n=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=M0(t,i,e),i=It.value=es(t,i,e),i=It.valueEnd=function NO(t,n,e){let i=-1,r=-1,o=-1,s=n,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(t,i,e),M0(t,i,e))}function x0(t){It.key=0,It.keyEnd=0,It.value=0,It.valueEnd=0,It.textEnd=t.length}function es(t,n,e){for(;n=0;e=I0(n,e))R0(t,S0(n),AO(n))}function ee(t){oi(jO,wi,t,!0)}function wi(t,n){for(let e=function RO(t){return x0(t),E0(t,es(t,0,It.textEnd))}(n);e>=0;e=E0(n,e))In(t,S0(n),!0)}function ri(t,n,e,i){const r=R(),o=xe(),s=Fi(2);o.firstUpdatePass&&A0(o,t,s,i),n!==ge&&Yt(r,s,n)&&P0(o,o.data[sn()],r,r[fe],t,r[s+1]=function WO(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=St(ur(t)))),t}(n,e),i,s)}function oi(t,n,e,i){const r=xe(),o=Fi(2);r.firstUpdatePass&&A0(r,null,o,i);const s=R();if(e!==ge&&Yt(s,o,e)){const a=r.data[sn()];if(L0(a,i)&&!O0(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Fd(l,e||"")),Ph(r,a,s,e,i)}else!function GO(t,n,e,i,r,o,s,a){r===ge&&(r=Ae);let l=0,c=0,u=0=t.expandoStartIndex}function A0(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[sn()],s=O0(t,e);L0(o,i)&&null===n&&!s&&(n=!1),n=function BO(t,n,e,i){const r=function cp(t){const n=le.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=wa(e=Bh(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=Bh(r,t,n,e,i),null===o){let l=function HO(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Br(i))return t[dr(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Bh(null,t,n,l[1],i),l=wa(l,n.attrs,i),function $O(t,n,e,i){t[dr(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function zO(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const m=dr(t[a+1]);t[i+1]=Pc(m,a),0!==m&&(t[m+1]=Nh(t[m+1],i)),t[a+1]=function IO(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Pc(a,0),0!==a&&(t[a+1]=Nh(t[a+1],i)),a=i;else t[i+1]=Pc(l,0),0===a?a=i:t[l+1]=Nh(t[l+1],i),l=i;c&&(t[i+1]=Lh(t[i+1])),D0(t,u,i,!0),D0(t,u,i,!1),function kO(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&ko(o,n)>=0&&(e[i+1]=Vh(e[i+1]))}(n,u,t,i,o),s=Pc(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function Bh(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let m=e[r+1];m===ge&&(m=d?Ae:void 0);let _=d?Cp(m,i):u===i?m:void 0;if(c&&!Lc(_)&&(_=Cp(l,i)),Lc(_)&&(a=_,s))return a;const b=t[r+1];r=s?dr(b):Br(b)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Cp(l,i))}return a}function Lc(t){return void 0!==t}function L0(t,n){return 0!=(t.flags&(n?8:16))}function A(t,n=""){const e=R(),i=xe(),r=t+we,o=i.firstCreatePass?jo(i,r,1,n,null):i.data[r],s=N0(i,e,o,n,t);e[r]=s,Vl()&&ac(i,e,s,o),yi(o,!1)}let N0=(t,n,e,i,r)=>(lr(!0),function ic(t,n){return t.createText(n)}(n[fe],i));function Y(t){return pe("",t,""),Y}function pe(t,n,e){const i=R(),r=Wo(i,t,n,e);return r!==ge&&Bi(i,sn(),r),pe}function pr(t,n,e,i,r){const o=R(),s=qo(o,t,n,e,i,r);return s!==ge&&Bi(o,sn(),s),pr}const Hr=void 0;var fA=["en",[["a","p"],["AM","PM"],Hr],[["AM","PM"],Hr,Hr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hr,"{1} 'at' {0}",Hr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function hA(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ts={};function ln(t){const n=function mA(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=ib(n);if(e)return e;const i=n.split("-")[0];if(e=ib(i),e)return e;if("en"===i)return fA;throw new k(701,!1)}function ib(t){return t in ts||(ts[t]=qe.ng&&qe.ng.common&&qe.ng.common.locales&&qe.ng.common.locales[t]),ts[t]}var Ye=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ye||{});const ns="en-US";let rb=ns;function zh(t,n,e,i,r){if(t=de(t),Array.isArray(t))for(let o=0;o>20;if(Nr(t)||!t.multi){const _=new qs(c,r,w),b=jh(l,n,r?u:u+m,d);-1===b?(yp(Ul(a,s),o,l),Uh(o,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(_),s.push(_)):(e[b]=_,s[b]=_)}else{const _=jh(l,n,u+m,d),b=jh(l,n,u,u+m),T=b>=0&&e[b];if(r&&!T||!r&&!(_>=0&&e[_])){yp(Ul(a,s),o,l);const M=function f4(t,n,e,i,r){const o=new qs(t,e,w);return o.multi=[],o.index=n,o.componentProviders=0,Mb(o,r,i&&!e),o}(r?h4:p4,e.length,r,i,c);!r&&T&&(e[b].providerFactory=M),Uh(o,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(M),s.push(M)}else Uh(o,t,_>-1?_:b,Mb(e[r?b:_],c,!r&&i));!r&&i&&T&&e[b].componentProviders++}}}function Uh(t,n,e,i){const r=Nr(n),o=function o3(t){return!!t.useClass}(n);if(r||o){const l=(o?de(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.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 Mb(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function jh(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function d4(t,n,e){const i=xe();if(i.firstCreatePass){const r=ti(t);zh(e,i.data,i.blueprint,r,!0),zh(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class $r{}class kb{}class Wh extends $r{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $v(this);const r=Sn(n);this._bootstrapComponents=Vi(r.bootstrap),this._r3Injector=X1(n,e,[{provide:$r,useValue:this},{provide:Cc,useValue:this.componentFactoryResolver},...i],St(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class qh extends kb{constructor(n){super(),this.moduleType=n}create(n){return new Wh(this.moduleType,n,[])}}class Ob extends $r{constructor(n){super(),this.componentFactoryResolver=new $v(this),this.instance=null;const e=new No([...n.providers,{provide:$r,useValue:this},{provide:Cc,useValue:this.componentFactoryResolver}],n.parent||fc(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Kh(t,n,e=null){return new Ob({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let _4=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=L1(0,e.type),r=i.length>0?Kh([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(H(xn))})}return t})();function ze(t){t.getStandaloneInjector=n=>n.get(_4).getOrCreateStandaloneInjector(t)}function $i(t,n,e){const i=on()+t,r=R();return r[i]===ge?Ci(r,i,e?n.call(e):n()):_a(r,i)}function te(t,n,e,i){return Hb(R(),on(),t,n,e,i)}function at(t,n,e,i,r){return $b(R(),on(),t,n,e,i,r)}function Un(t,n,e,i,r,o){return function zb(t,n,e,i,r,o,s,a){const l=n+e;return kc(t,l,r,o,s)?Ci(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):xa(t,l+3)}(R(),on(),t,n,e,i,r,o)}function is(t,n,e,i,r,o,s){return function Ub(t,n,e,i,r,o,s,a,l){const c=n+e;return zn(t,c,r,o,s,a)?Ci(t,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):xa(t,c+4)}(R(),on(),t,n,e,i,r,o,s)}function $c(t,n,e,i,r,o,s,a){const l=on()+t,c=R(),u=zn(c,l,e,i,r,o);return Yt(c,l+4,s)||u?Ci(c,l+5,a?n.call(a,e,i,r,o,s):n(e,i,r,o,s)):_a(c,l+5)}function zr(t,n,e,i,r,o,s,a,l){const c=on()+t,u=R(),d=zn(u,c,e,i,r,o);return Vr(u,c+4,s,a)||d?Ci(u,c+6,l?n.call(l,e,i,r,o,s,a):n(e,i,r,o,s,a)):_a(u,c+6)}function Bb(t,n,e,i){return function jb(t,n,e,i,r,o){let s=n+e,a=!1;for(let l=0;l=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Rr(i.type)),a=fn(w);try{const l=zl(!1),c=o();return zl(l),function _O(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,R(),r,c),c}finally{fn(a)}}function K(t,n,e){const i=t+we,r=R(),o=bo(r,i);return Ma(r,i)?Hb(r,on(),n,o.transform,e,o):o.transform(e)}function zi(t,n,e,i){const r=t+we,o=R(),s=bo(o,r);return Ma(o,r)?$b(o,on(),n,s.transform,e,i,s):s.transform(e,i)}function Ma(t,n){return t[z].data[n].pure}function O4(){return this._results[Symbol.iterator]()}class Yh{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new F)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Yh.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=O4)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function Bn(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Ax(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i0&&(e[r-1][ei]=n),i{class t{static#e=this.__NG_ELEMENT_ID__=L4}return t})();const P4=si,F4=class extends P4{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const r=function A4(t,n,e,i){const r=n.tView,a=Dc(t,r,e,4096&t[_e]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);a[Hs]=t[n.index];const c=t[gi];return null!==c&&(a[gi]=c.createEmbeddedView(r)),Ih(r,a,e),a}(this._declarationLView,this._declarationTContainer,n,{injector:e,hydrationInfo:i});return new ga(r)}};function L4(){return zc(Lt(),R())}function zc(t,n){return 4&t.type?new F4(n,t,$o(t,n)):null}let jn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=z4}return t})();function z4(){return Qb(Lt(),R())}const U4=jn,Zb=class extends U4{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return $o(this._hostTNode,this._hostLView)}get injector(){return new an(this._hostTNode,this._hostLView)}get parentInjector(){const n=jl(this._hostTNode,this._hostLView);if(gp(n)){const e=Zs(n,this._hostLView),i=Ks(n);return new an(e[z].data[i+8],e)}return new an(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Yb(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Rt}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedViewImpl(e||{},o,null);return this.insertImpl(a,r,false),a}createComponent(n,e,i,r,o){const s=n&&!function Qs(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const C=e||{};a=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}const l=s?n:new ma(Ie(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const T=(s?c:this.parentInjector).get(xn,null);T&&(o=T)}Ie(l.componentType??{});const _=l.create(c,r,null,o);return this.insertImpl(_.hostView,a,false),_}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,i){const r=n._lView;if(function qI(t){return rn(t[it])}(r)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=r[it],u=new Zb(c,c[Kt],c[it]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(e),a=this._lContainer;return R4(a,r,s,!i),n.attachToViewContainerRef(),Ny(Qh(a),s,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Yb(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=oc(this._lContainer,e);i&&(ql(Qh(this._lContainer),e),Ap(i[z],i))}detach(n){const e=this._adjustIndex(n,-1),i=oc(this._lContainer,e);return i&&null!=ql(Qh(this._lContainer),e)?new ga(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function Yb(t){return t[8]}function Qh(t){return t[8]||(t[8]=[])}function Qb(t,n){let e;const i=n[t.index];return rn(i)?e=i:(e=Mv(i,n,null,t),n[t.index]=e,Sc(n,e)),Jb(e,n,t,i),new Zb(e,t,n)}let Jb=function Xb(t,n,e,i){if(t[mi])return;let r;r=8&e.type?Ke(i):function j4(t,n){const e=t[fe],i=e.createComment(""),r=mn(n,t);return Lr(e,sc(e,r),i,function EM(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[mi]=r};class Jh{constructor(n){this.queryList=n,this.matches=null}clone(){return new Jh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Xh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=Rt;d{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=j(uf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(Ca(o))e.push(o);else if(d0(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CC=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const Ti=new G("LocaleId",{providedIn:"root",factory:()=>j(Ti,Ce.Optional|Ce.SkipSelf)||function vR(){return typeof $localize<"u"&&$localize.locale||ns}()});let Gc=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new en(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class wR{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let wC=(()=>{class t{compileModuleSync(e){return new qh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Vi(Sn(e).declarations).reduce((s,a)=>{const l=Ie(a);return l&&s.push(new ma(l)),s},[]);return new wR(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const EC=new G(""),qc=new G("");let mf,ff=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,mf||(function jR(t){mf=t}(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:()=>{Te.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let 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[]}static#e=this.\u0275fac=function(i){return new(i||t)(H(Te),H(gf),H(qc))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),gf=(()=>{class t{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 mf?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),hr=null;const IC=new G("AllowMultipleToken"),_f=new G("PlatformDestroyListeners"),yf=new G("appBootstrapListener");class MC{constructor(n,e){this.name=n,this.token=e}}function OC(t,n,e=[]){const i=`Platform: ${n}`,r=new G(i);return(o=[])=>{let s=vf();if(!s||s.injector.get(IC,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function qR(t){if(hr&&!hr.get(IC,!1))throw new k(400,!1);(function xC(){!function AI(t){Z_=t}(()=>{throw new k(600,!1)})})(),hr=t;const n=t.get(RC);(function kC(t){t.get($1,null)?.forEach(e=>e())})(t)}(function AC(t=[],n){return yn.create({name:n,providers:[{provide:Zp,useValue:"platform"},{provide:_f,useValue:new Set([()=>hr=null])},...t]})}(a,i))}return function ZR(t){const n=vf();if(!n)throw new k(401,!1);return n}()}}function vf(){return hr?.get(RC)??null}let RC=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function YR(t="zone.js",n){return"noop"===t?new $3:"zone.js"===t?new Te(n):t}(i?.ngZone,function PC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function m4(t,n,e){return new Wh(t,n,e)}(e.moduleType,this.injector,function BC(t){return[{provide:Te,useFactory:t},{provide:aa,multi:!0,useFactory:()=>{const n=j(JR,{optional:!0});return()=>n.initialize()}},{provide:VC,useFactory:QR},{provide:rv,useFactory:ov}]}(()=>r)),s=o.injector.get(Ni,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{Kc(this._modules,o),a.unsubscribe()})}),function FC(t,n,e){try{const i=e();return Ca(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(s,r,()=>{const a=o.injector.get(df);return a.runInitializers(),a.donePromise.then(()=>(function ob(t){Ln(t,"Expected localeId to be defined"),"string"==typeof t&&(rb=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Ti,ns)||ns),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,i=[]){const r=LC({},i);return function GR(t,n,e){const i=new qh(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ur);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new k(-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 k(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(_f,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(H(yn))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function LC(t,n){return Array.isArray(n)?n.reduce(LC,t):{...t,...n}}let Ur=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=j(VC),this.zoneIsStable=j(rv),this.componentTypes=[],this.components=[],this.isStable=j(Gc).hasPendingTasks.pipe(Jn(e=>e?oe(!1):this.zoneIsStable),h_(),p_()),this._injector=j(xn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof q1;if(!this._injector.get(df).done)throw!r&&function ho(t){const n=Ie(t)||At(t)||nn(t);return null!==n&&n.standalone}(e),new k(405,!1);let s;s=r?e:this._injector.get(Cc).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function WR(t){return t.isBoundToModule}(s)?void 0:this._injector.get($r),c=s.create(yn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(EC,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Kc(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new k(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Kc(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(yf,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Kc(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new k(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kc(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const VC=new G("",{providedIn:"root",factory:()=>j(Ni).handleError.bind(void 0)});function QR(){const t=j(Te),n=j(Ni);return e=>t.runOutsideAngular(()=>n.handleError(e))}let JR=(()=>{class t{constructor(){this.zone=j(Te),this.applicationRef=j(Ur)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let bt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=eP}return t})();function eP(t){return function tP(t,n,e){if(Ar(t)&&!e){const i=En(t.index,n);return new ga(i,i)}return 47&t.type?new ga(n[gt],n):null}(Lt(),R(),16==(16&t))}class UC{constructor(){}supports(n){return Mc(n)}create(n){return new aP(n)}}const sP=(t,n)=>n;class aP{constructor(n){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=n||sP}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){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=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new lP(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new jC),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jC),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class lP{constructor(n,e){this.item=n,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 cP{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class jC{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new cP,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function GC(t,n,e){const i=t.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(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);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 dP(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class dP{constructor(n){this.key=n,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 qC(){return new Qc([new UC])}let Qc=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:qC});constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||qC()),deps:[[t,new Yl,new Zl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new k(901,!1)}}return t})();function KC(){return new Aa([new WC])}let Aa=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:KC});constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||KC()),deps:[[t,new Yl,new Zl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new k(901,!1)}}return t})();const fP=OC(null,"core",[]);let gP=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(H(Ur))};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})();function ss(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let Sf=null;function fr(){return Sf}class MP{}const rt=new G("DocumentToken");let Ef=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(OP)},providedIn:"platform"})}return t})();const kP=new G("Location Initialized");let OP=(()=>{class t extends Ef{constructor(){super(),this._doc=j(rt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fr().getBaseHref(this._doc)}onPopState(e){const i=fr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=fr().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){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function If(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function iw(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ui(t){return t&&"?"!==t[0]?"?"+t:t}let Gr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(ow)},providedIn:"root"})}return t})();const rw=new G("appBaseHref");let ow=(()=>{class t extends Gr{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??j(rt).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 If(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ui(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ui(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ui(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)}static#e=this.\u0275fac=function(i){return new(i||t)(H(Ef),H(rw,8))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AP=(()=>{class t extends Gr{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=If(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Ui(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Ui(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)}static#e=this.\u0275fac=function(i){return new(i||t)(H(Ef),H(rw,8))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Xc=(()=>{class t{constructor(e){this._subject=new F,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function FP(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(iw(sw(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+Ui(i))}normalize(e){return t.stripTrailingSlash(function PP(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,sw(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+Ui(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ui(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})}static#e=this.normalizeQueryParams=Ui;static#t=this.joinWithSlash=If;static#n=this.stripTrailingSlash=iw;static#i=this.\u0275fac=function(i){return new(i||t)(H(Gr))};static#r=this.\u0275prov=$({token:t,factory:function(){return function RP(){return new Xc(H(Gr))}()},providedIn:"root"})}return t})();function sw(t){return t.replace(/\/index.html$/,"")}var un=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(un||{}),je=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(je||{}),kn=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(kn||{}),mt=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(mt||{});function tu(t,n){return Wn(ln(t)[Ye.DateFormat],n)}function nu(t,n){return Wn(ln(t)[Ye.TimeFormat],n)}function iu(t,n){return Wn(ln(t)[Ye.DateTimeFormat],n)}function Gn(t,n){const e=ln(t),i=e[Ye.NumberSymbols][n];if(typeof i>"u"){if(n===mt.CurrencyDecimal)return e[Ye.NumberSymbols][mt.Decimal];if(n===mt.CurrencyGroup)return e[Ye.NumberSymbols][mt.Group]}return i}function lw(t){if(!t[Ye.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ye.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Wn(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function Mf(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const ZP=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ra={},YP=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ji=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ji||{}),Le=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Le||{}),Ne=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Ne||{});function QP(t,n,e,i){let r=function sF(t){if(dw(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return ru(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(ZP))return function aF(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!dw(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Gi(e,n)||n;let a,s=[];for(;n;){if(a=YP.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=uw(i,l),r=function oF(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function rF(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(uw(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function iF(t){if(Of[t])return Of[t];let n;switch(t){case"G":case"GG":case"GGG":n=Qe(Ne.Eras,je.Abbreviated);break;case"GGGG":n=Qe(Ne.Eras,je.Wide);break;case"GGGGG":n=Qe(Ne.Eras,je.Narrow);break;case"y":n=Ct(Le.FullYear,1,0,!1,!0);break;case"yy":n=Ct(Le.FullYear,2,0,!0,!0);break;case"yyy":n=Ct(Le.FullYear,3,0,!1,!0);break;case"yyyy":n=Ct(Le.FullYear,4,0,!1,!0);break;case"Y":n=lu(1);break;case"YY":n=lu(2,!0);break;case"YYY":n=lu(3);break;case"YYYY":n=lu(4);break;case"M":case"L":n=Ct(Le.Month,1,1);break;case"MM":case"LL":n=Ct(Le.Month,2,1);break;case"MMM":n=Qe(Ne.Months,je.Abbreviated);break;case"MMMM":n=Qe(Ne.Months,je.Wide);break;case"MMMMM":n=Qe(Ne.Months,je.Narrow);break;case"LLL":n=Qe(Ne.Months,je.Abbreviated,un.Standalone);break;case"LLLL":n=Qe(Ne.Months,je.Wide,un.Standalone);break;case"LLLLL":n=Qe(Ne.Months,je.Narrow,un.Standalone);break;case"w":n=kf(1);break;case"ww":n=kf(2);break;case"W":n=kf(1,!0);break;case"d":n=Ct(Le.Date,1);break;case"dd":n=Ct(Le.Date,2);break;case"c":case"cc":n=Ct(Le.Day,1);break;case"ccc":n=Qe(Ne.Days,je.Abbreviated,un.Standalone);break;case"cccc":n=Qe(Ne.Days,je.Wide,un.Standalone);break;case"ccccc":n=Qe(Ne.Days,je.Narrow,un.Standalone);break;case"cccccc":n=Qe(Ne.Days,je.Short,un.Standalone);break;case"E":case"EE":case"EEE":n=Qe(Ne.Days,je.Abbreviated);break;case"EEEE":n=Qe(Ne.Days,je.Wide);break;case"EEEEE":n=Qe(Ne.Days,je.Narrow);break;case"EEEEEE":n=Qe(Ne.Days,je.Short);break;case"a":case"aa":case"aaa":n=Qe(Ne.DayPeriods,je.Abbreviated);break;case"aaaa":n=Qe(Ne.DayPeriods,je.Wide);break;case"aaaaa":n=Qe(Ne.DayPeriods,je.Narrow);break;case"b":case"bb":case"bbb":n=Qe(Ne.DayPeriods,je.Abbreviated,un.Standalone,!0);break;case"bbbb":n=Qe(Ne.DayPeriods,je.Wide,un.Standalone,!0);break;case"bbbbb":n=Qe(Ne.DayPeriods,je.Narrow,un.Standalone,!0);break;case"B":case"BB":case"BBB":n=Qe(Ne.DayPeriods,je.Abbreviated,un.Format,!0);break;case"BBBB":n=Qe(Ne.DayPeriods,je.Wide,un.Format,!0);break;case"BBBBB":n=Qe(Ne.DayPeriods,je.Narrow,un.Format,!0);break;case"h":n=Ct(Le.Hours,1,-12);break;case"hh":n=Ct(Le.Hours,2,-12);break;case"H":n=Ct(Le.Hours,1);break;case"HH":n=Ct(Le.Hours,2);break;case"m":n=Ct(Le.Minutes,1);break;case"mm":n=Ct(Le.Minutes,2);break;case"s":n=Ct(Le.Seconds,1);break;case"ss":n=Ct(Le.Seconds,2);break;case"S":n=Ct(Le.FractionalSeconds,1);break;case"SS":n=Ct(Le.FractionalSeconds,2);break;case"SSS":n=Ct(Le.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=su(ji.Short);break;case"ZZZZZ":n=su(ji.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=su(ji.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=su(ji.Long);break;default:return null}return Of[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ru(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Gi(t,n){const e=function NP(t){return ln(t)[Ye.LocaleId]}(t);if(Ra[e]=Ra[e]||{},Ra[e][n])return Ra[e][n];let i="";switch(n){case"shortDate":i=tu(t,kn.Short);break;case"mediumDate":i=tu(t,kn.Medium);break;case"longDate":i=tu(t,kn.Long);break;case"fullDate":i=tu(t,kn.Full);break;case"shortTime":i=nu(t,kn.Short);break;case"mediumTime":i=nu(t,kn.Medium);break;case"longTime":i=nu(t,kn.Long);break;case"fullTime":i=nu(t,kn.Full);break;case"short":const r=Gi(t,"shortTime"),o=Gi(t,"shortDate");i=ou(iu(t,kn.Short),[r,o]);break;case"medium":const s=Gi(t,"mediumTime"),a=Gi(t,"mediumDate");i=ou(iu(t,kn.Medium),[s,a]);break;case"long":const l=Gi(t,"longTime"),c=Gi(t,"longDate");i=ou(iu(t,kn.Long),[l,c]);break;case"full":const u=Gi(t,"fullTime"),d=Gi(t,"fullDate");i=ou(iu(t,kn.Full),[u,d])}return i&&(Ra[e][n]=i),i}function ou(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function li(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===Le.Hours)0===a&&-12===e&&(a=12);else if(t===Le.FractionalSeconds)return function JP(t,n){return li(t,3).substring(0,n)}(a,n);const l=Gn(s,mt.MinusSign);return li(a,n,l,i,r)}}function Qe(t,n,e=un.Format,i=!1){return function(r,o){return function eF(t,n,e,i,r,o){switch(e){case Ne.Months:return function HP(t,n,e){const i=ln(t),o=Wn([i[Ye.MonthsFormat],i[Ye.MonthsStandalone]],n);return Wn(o,e)}(n,r,i)[t.getMonth()];case Ne.Days:return function BP(t,n,e){const i=ln(t),o=Wn([i[Ye.DaysFormat],i[Ye.DaysStandalone]],n);return Wn(o,e)}(n,r,i)[t.getDay()];case Ne.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function jP(t){const n=ln(t);return lw(n),(n[Ye.ExtraData][2]||[]).map(i=>"string"==typeof i?Mf(i):[Mf(i[0]),Mf(i[1])])}(n),u=function GP(t,n,e){const i=ln(t);lw(i);const o=Wn([i[Ye.ExtraData][0],i[Ye.ExtraData][1]],n)||[];return Wn(o,e)||[]}(n,r,i),d=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,C=s>=_.hours&&a>=_.minutes,T=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case ji.Short:return(r>=0?"+":"")+li(s,2,o)+li(Math.abs(r%60),2,o);case ji.ShortGMT:return"GMT"+(r>=0?"+":"")+li(s,1,o);case ji.Long:return"GMT"+(r>=0?"+":"")+li(s,2,o)+":"+li(Math.abs(r%60),2,o);case ji.Extended:return 0===i?"Z":(r>=0?"+":"")+li(s,2,o)+":"+li(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const tF=0,au=4;function cw(t){return ru(t.getFullYear(),t.getMonth(),t.getDate()+(au-t.getDay()))}function kf(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=cw(e),s=function nF(t){const n=ru(t,tF,1).getDay();return ru(t,0,1+(n<=au?au:au+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return li(r,t,Gn(i,mt.MinusSign))}}function lu(t,n=!1){return function(e,i){return li(cw(e).getFullYear(),t,Gn(i,mt.MinusSign),n)}}const Of={};function uw(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function dw(t){return t instanceof Date&&!isNaN(t.valueOf())}function gw(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const Nf=/\s+/,mw=[];let pt=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=mw,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Nf):mw}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Nf):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Nf).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||t)(w(Qc),w(Aa),w(Ue),w(xt))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class CF{constructor(n,e,i,r){this.$implicit=n,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 Wi=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 CF(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),yw(a,r)}});for(let r=0,o=i.length;r{yw(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(w(jn),w(si),w(Qc))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function yw(t,n){t.context.$implicit=n.item}let Je=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new wF,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){vw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){vw("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}static#e=this.\u0275fac=function(i){return new(i||t)(w(jn),w(si))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class wF{constructor(){this.$implicit=null,this.ngIf=null}}function vw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${St(n)}'.`)}let Bt=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:cr.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ue),w(Aa),w(xt))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(i){return new(i||t)(w(jn))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ft]})}return t})();function ci(t,n){return new k(2100,!1)}let ls=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw ci();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=tn({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})();const FF=new G("DATE_PIPE_DEFAULT_TIMEZONE"),LF=new G("DATE_PIPE_DEFAULT_OPTIONS");let cs=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(null==e||""===e||e!=e)return null;try{return QP(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw ci()}}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ti,16),w(FF,24),w(LF,24))};static#t=this.\u0275pipe=tn({name:"date",type:t,pure:!0,standalone:!0})}return t})(),_t=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})();const ww="browser";function Wr(t){return t===ww}function Tw(t){return"server"===t}let ZF=(()=>{class t{static#e=this.\u0275prov=$({token:t,providedIn:"root",factory:()=>new YF(H(rt),window)})}return t})();class YF{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function QF(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const e=n.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])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Dw{}class bL extends MP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jf extends bL{static makeCurrent(){!function xP(t){Sf||(Sf=t)}(new jf)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function CL(){return La=La||document.querySelector("base"),La?La.getAttribute("href"):null}();return null==e?null:function wL(t){pu=pu||document.createElement("a"),pu.setAttribute("href",t);const n=pu.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){La=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return gw(document.cookie,n)}}let pu,La=null,DL=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const Gf=new G("EventManagerPlugins");let Mw=(()=>{class t{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)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new k(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(H(Gf),H(Te))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class kw{constructor(n){this._doc=n}}const Wf="ng-app-id";let Ow=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Tw(o),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Wf}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){const r=this.styleRef;if(r.has(e)){const o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(Wf),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(Wf,this.appId),s}}addStyleToHost(e,i){const r=this.getStyleElement(e,i);e.appendChild(r);const o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt),H(gc),H(U1,8),H($n))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const qf={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/"},Kf=/%COMP%/g,xL=new G("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Rw(t,n){return n.map(e=>e.replace(Kf,t))}let Zf=(()=>{class t{constructor(e,i,r,o,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Tw(a),this.defaultRenderer=new Yf(e,s,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Nn.ShadowDom&&(i={...i,encapsulation:Nn.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof Fw?r.applyToHost(e):r instanceof Qf&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Nn.Emulated:o=new Fw(l,c,i,this.appId,u,s,a,d);break;case Nn.ShadowDom:return new AL(l,c,e,i,s,a,this.nonce,d);default:o=new Qf(l,c,i,u,s,a,d)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(H(Mw),H(Ow),H(gc),H(xL),H(rt),H($n),H(Te),H(U1))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class Yf{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(qf[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Pw(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(Pw(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new k(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=qf[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=qf[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(cr.DashCase|cr.Important)?n.style.setProperty(e,i,r&cr.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&cr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=fr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function Pw(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class AL extends Yf{constructor(n,e,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=Rw(r.id,r.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Qf extends Yf{constructor(n,e,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?Rw(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Fw extends Qf{constructor(n,e,i,r,o,s,a,l){const c=r+"-"+i.id;super(n,e,i,o,s,a,l,c),this.contentAttr=function ML(t){return"_ngcontent-%COMP%".replace(Kf,t)}(c),this.hostAttr=function kL(t){return"_nghost-%COMP%".replace(Kf,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let RL=(()=>{class t extends kw{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)}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const Lw=["alt","control","meta","shift"],PL={"\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"},FL={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let LL=(()=>{class t extends kw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fr().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=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),Lw.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=PL[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"),Lw.forEach(s=>{s!==r&&(0,FL[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const HL=OC(fP,"browser",[{provide:$n,useValue:ww},{provide:$1,useValue:function NL(){jf.makeCurrent()},multi:!0},{provide:rt,useFactory:function BL(){return function PM(t){Bp=t}(document),document},deps:[]}]),$L=new G(""),Bw=[{provide:qc,useClass:class TL{addToWindow(n){qe.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new k(5103,!1);return o},qe.getAllAngularTestabilities=()=>n.getAllTestabilities(),qe.getAllAngularRootElements=()=>n.getAllRootElements(),qe.frameworkStabilizers||(qe.frameworkStabilizers=[]),qe.frameworkStabilizers.push(i=>{const r=qe.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?fr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:EC,useClass:ff,deps:[Te,gf,qc]},{provide:ff,useClass:ff,deps:[Te,gf,qc]}],Hw=[{provide:Zp,useValue:"root"},{provide:Ni,useFactory:function VL(){return new Ni},deps:[]},{provide:Gf,useClass:RL,multi:!0,deps:[rt,Te,$n]},{provide:Gf,useClass:LL,multi:!0,deps:[rt]},Zf,Ow,Mw,{provide:ua,useExisting:Zf},{provide:Dw,useClass:DL,deps:[]},[]];let $w=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:gc,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(H($L,12))};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({providers:[...Hw,...Bw],imports:[_t,gP]})}return t})(),zw=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt))};static#t=this.\u0275prov=$({token:t,factory:function(i){let r=null;return r=i?new i:function UL(){return new zw(H(rt))}(),r},providedIn:"root"})}return t})();function us(t,n){return De(n)?vt(t,n,1):vt(t,1)}function wt(t,n){return ut((e,i)=>{let r=0;e.subscribe(nt(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Na(t){return ut((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}typeof window<"u"&&window;class hu{}class fu{}class Di{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.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])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Di?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Di;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Di?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.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)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class KL{encodeKey(n){return Ww(n)}encodeValue(n){return Ww(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const YL=/%(\d[a-f0-9])/gi,QL={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ww(t){return encodeURIComponent(t).replace(YL,(n,e)=>QL[e]??n)}function gu(t){return`${t}`}class mr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new KL,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ZL(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(gu):[gu(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[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(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new mr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(gu(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(gu(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class JL{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function qw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Kw(t){return typeof Blob<"u"&&t instanceof Blob}function Zw(t){return typeof FormData<"u"&&t instanceof FormData}class Va{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function XL(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==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 Di),this.context||(this.context=new JL),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(m,n.setHeaders[m]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,m)=>d.set(m,n.setParams[m]),c)),new Va(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var ds=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ds||{});class Xf{constructor(n,e=200,i="OK"){this.headers=n.headers||new Di,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class eg extends Xf{constructor(n={}){super(n),this.type=ds.ResponseHeader}clone(n={}){return new eg({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ps extends Xf{constructor(n={}){super(n),this.type=ds.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ps({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Yw extends Xf{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function tg(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let mu=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Va)o=e;else{let l,c;l=r.headers instanceof Di?r.headers:new Di(r.headers),r.params&&(c=r.params instanceof mr?r.params:new mr({fromObject:r.params})),o=new Va(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=oe(o).pipe(us(l=>this.handler.handle(l)));if(e instanceof Va||"events"===r.observe)return s;const a=s.pipe(wt(l=>l instanceof ps));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Se(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(Se(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(Se(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Se(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 mr).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,tg(r,i))}post(e,i,r={}){return this.request("POST",e,tg(r,i))}put(e,i,r={}){return this.request("PUT",e,tg(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(H(hu))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function Xw(t,n){return n(t)}function nN(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const eT=new G(""),Ba=new G(""),tT=new G("");function rN(){let t=null;return(n,e)=>{null===t&&(t=(j(eT,{optional:!0})??[]).reduceRight(nN,Xw));const i=j(Gc),r=i.add();return t(n,e).pipe(Na(()=>i.remove(r)))}}let nT=(()=>{class t extends hu{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=j(Gc)}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Ba),...this.injector.get(tT,[])]));this.chain=r.reduceRight((o,s)=>function iN(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(o,s,this.injector),Xw)}const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Na(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(H(fu),H(xn))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const lN=/^\)\]\}',?\n/;let rT=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new k(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Dt(i.\u0275loadImpl()):oe(null)).pipe(Jn(()=>new ot(o=>{const s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,T)=>s.setRequestHeader(C,T.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const C=e.detectContentTypeHeader();null!==C&&s.setRequestHeader("Content-Type",C)}if(e.responseType){const C=e.responseType.toLowerCase();s.responseType="json"!==C?C:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const C=s.statusText||"OK",T=new Di(s.getAllResponseHeaders()),M=function cN(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return l=new eg({headers:T,status:s.status,statusText:C,url:M}),l},u=()=>{let{headers:C,status:T,statusText:M,url:I}=c(),P=null;204!==T&&(P=typeof s.response>"u"?s.responseText:s.response),0===T&&(T=P?200:0);let N=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof P){const X=P;P=P.replace(lN,"");try{P=""!==P?JSON.parse(P):null}catch(be){P=X,N&&(N=!1,P={error:be,text:P})}}N?(o.next(new ps({body:P,headers:C,status:T,statusText:M,url:I||void 0})),o.complete()):o.error(new Yw({error:P,headers:C,status:T,statusText:M,url:I||void 0}))},d=C=>{const{url:T}=c(),M=new Yw({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(M)};let m=!1;const _=C=>{m||(o.next(c()),m=!0);let T={type:ds.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(T.total=C.total),"text"===e.responseType&&s.responseText&&(T.partialText=s.responseText),o.next(T)},b=C=>{let T={type:ds.UploadProgress,loaded:C.loaded};C.lengthComputable&&(T.total=C.total),o.next(T)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",_),null!==a&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:ds.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),e.reportProgress&&(s.removeEventListener("progress",_),null!==a&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(H(Dw))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();const ng=new G("XSRF_ENABLED"),oT=new G("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),sT=new G("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class aT{}let pN=(()=>{class t{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=gw(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt),H($n),H(oT))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function hN(t,n){const e=t.url.toLowerCase();if(!j(ng)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=j(aT).getToken(),r=j(sT);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var _r=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(_r||{});function fN(...t){const n=[mu,rT,nT,{provide:hu,useExisting:nT},{provide:fu,useExisting:rT},{provide:Ba,useValue:hN,multi:!0},{provide:ng,useValue:!0},{provide:aT,useClass:pN}];for(const e of t)n.push(...e.\u0275providers);return function Wp(t){return{\u0275providers:t}}(n)}const lT=new G("LEGACY_INTERCEPTOR_FN");function gN(){return function qr(t,n){return{\u0275kind:t,\u0275providers:n}}(_r.LegacyInterceptors,[{provide:lT,useFactory:rN},{provide:Ba,useExisting:lT,multi:!0}])}let mN=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({providers:[fN(gN())]})}return t})();const yt=void 0,TN=["sv",[["fm","em"],yt,yt],[["fm","em"],["f.m.","e.m."],["f\xf6rmiddag","eftermiddag"]],[["S","M","T","O","T","F","L"],["s\xf6n","m\xe5n","tis","ons","tors","fre","l\xf6r"],["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"],["s\xf6","m\xe5","ti","on","to","fr","l\xf6"]],yt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]],yt,[["f.Kr.","e.Kr."],yt,["f\xf6re Kristus","efter Kristus"]],1,[6,0],["y-MM-dd","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",yt,yt,yt],[",","\xa0",";","%","+","\u2212","\xd710^","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"SEK","kr","svensk krona",{AUD:[yt,"$"],BBD:["Bds$","$"],BMD:["BM$","$"],BRL:["BR$","R$"],BSD:["BS$","$"],BYN:[yt,"\u0440."],BZD:["BZ$","$"],CNY:[yt,"\xa5"],DKK:["Dkr","kr"],DOP:["RD$","$"],EEK:["Ekr"],EGP:["EG\xa3","E\xa3"],ESP:[],GBP:[yt,"\xa3"],HKD:[yt,"$"],IEP:["IE\xa3"],INR:[yt,"\u20b9"],ISK:["Ikr","kr"],JMD:["JM$","$"],JPY:[yt,"\xa5"],KRW:[yt,"\u20a9"],NOK:["Nkr","kr"],NZD:[yt,"$"],PHP:[yt,"\u20b1"],RON:[yt,"L"],SEK:["kr"],TWD:[yt,"NT$"],USD:["US$","$"],VND:[yt,"\u20ab"]},"ltr",function wN(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],{isArray:DN}=Array,{getPrototypeOf:SN,prototype:EN,keys:IN}=Object;function cT(t){if(1===t.length){const n=t[0];if(DN(n))return{args:n,keys:null};if(function xN(t){return t&&"object"==typeof t&&SN(t)===EN}(n)){const e=IN(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:MN}=Array;function ig(t){return Se(n=>function kN(t,n){return MN(n)?t(...n):t(n)}(t,n))}function uT(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}let dT=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(xt),w(Ue))};static#t=this.\u0275dir=ne({type:t})}return t})(),Kr=(()=>{class t extends dT{static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static#t=this.\u0275dir=ne({type:t,features:[ie]})}return t})();const $t=new G("NgValueAccessor"),RN={provide:$t,useExisting:Ee(()=>yu),multi:!0},FN=new G("CompositionEventMode");let yu=(()=>{class t extends dT{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function PN(){const t=fr()?fr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(xt),w(Ue),w(FN,8))};static#t=this.\u0275dir=ne({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&O("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Pe([RN]),ie]})}return t})();const Qt=new G("NgValidators"),vr=new G("NgAsyncValidators");function wT(t){return null!=t}function TT(t){return Ca(t)?Dt(t):t}function DT(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function ST(t,n){return n.map(e=>e(t))}function ET(t){return t.map(n=>function NN(t){return!t.validate}(n)?n:e=>n.validate(e))}function rg(t){return null!=t?function IT(t){if(!t)return null;const n=t.filter(wT);return 0==n.length?null:function(e){return DT(ST(e,n))}}(ET(t)):null}function og(t){return null!=t?function xT(t){if(!t)return null;const n=t.filter(wT);return 0==n.length?null:function(e){return function ON(...t){const n=l_(t),{args:e,keys:i}=cT(t),r=new ot(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]=m},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?uT(i,a):a),o.complete())}))}});return n?r.pipe(ig(n)):r}(ST(e,n).map(TT)).pipe(Se(DT))}}(ET(t)):null}function MT(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function sg(t){return t?Array.isArray(t)?t:[t]:[]}function bu(t,n){return Array.isArray(t)?t.includes(n):t===n}function AT(t,n){const e=sg(n);return sg(t).forEach(r=>{bu(e,r)||e.push(r)}),e}function RT(t,n){return sg(n).filter(e=>!bu(t,e))}class PT{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(n){this._rawValidators=n||[],this._composedValidatorFn=rg(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=og(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class dn extends PT{get formDirective(){return null}get path(){return null}}class qi extends PT{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class FT{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cu=(()=>{class t extends FT{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(qi,2))};static#t=this.\u0275dir=ne({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&ii("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ie]})}return t})();const Ha="VALID",Tu="INVALID",hs="PENDING",$a="DISABLED";function Du(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class BT{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ha}get invalid(){return this.status===Tu}get pending(){return this.status==hs}get disabled(){return this.status===$a}get enabled(){return this.status!==$a}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(AT(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(AT(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(RT(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(RT(n,this._rawAsyncValidators))}hasValidator(n){return bu(this._rawValidators,n)}hasAsyncValidator(n){return bu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=hs,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=$a,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ha,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ha||this.status===hs)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$a:Ha}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=hs,this._hasOwnPendingAsyncValidator=!0;const e=TT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?$a:this.errors?Tu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(hs)?hs:this._anyControlsHaveStatus(Tu)?Tu:Ha}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Du(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function zN(t){return Array.isArray(t)?rg(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function UN(t){return Array.isArray(t)?og(t):t||null}(this._rawAsyncValidators)}}const fs=new G("CallSetDisabledState",{providedIn:"root",factory:()=>Su}),Su="always";function za(t,n,e=Su){(function pg(t,n){const e=function kT(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(MT(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function OT(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(MT(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();xu(n._rawValidators,r),xu(n._rawAsyncValidators,r)})(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function WN(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&HT(t,n)})}(t,n),function KN(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function qN(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&HT(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function GN(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function xu(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function HT(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function UT(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function jT(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const GT=class extends BT{constructor(n=null,e,i){super(function cg(t){return(Du(t)?t.validators:t)||null}(e),function ug(t,n){return(Du(n)?n.asyncValidators:t)||null}(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Du(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=jT(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){UT(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){UT(this._onDisabledChange,n)}_forEachChild(n){}_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(n){jT(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},n9={provide:qi,useExisting:Ee(()=>gs)},KT=(()=>Promise.resolve())();let gs=(()=>{class t extends qi{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new GT,this._registered=!1,this.name="",this.update=new F,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function gg(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===yu?e=o:function QN(t){return Object.getPrototypeOf(t.constructor)===Kr}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function fg(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){za(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){KT.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&ss(i);KT.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Eu(t,n){return[...n.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(w(dn,9),w(Qt,10),w(vr,10),w($t,10),w(bt,8),w(fs,8))};static#t=this.\u0275dir=ne({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Pe([n9]),ie,Ft]})}return t})(),YT=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})(),x9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({imports:[YT]})}return t})(),ku=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:fs,useValue:e.callSetDisabledState??Su}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({imports:[x9]})}return t})();class fD{}class k9{}const Ki="*";function Yr(t,n){return{type:7,name:t,definitions:n,options:{}}}function Jt(t,n=null){return{type:4,styles:n,timings:t}}function gD(t,n=null){return{type:3,steps:t,options:n}}function mD(t,n=null){return{type:2,steps:t,options:n}}function Ge(t){return{type:6,styles:t,offset:null}}function Ou(t,n,e){return{type:0,name:t,styles:n,options:e}}function pn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Au(t,n=null){return{type:8,animation:t,options:n}}function ja(t=null){return{type:9,options:t}}function Ru(t,n=null){return{type:10,animation:t,options:n}}function On(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}class Ga{constructor(n=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=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class _D{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>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(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function yD(t){return new k(3e3,!1)}function br(t){switch(t.length){case 0:return new Ga;case 1:return t[0];default:return new _D(t)}}function vD(t,n,e=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((m,_)=>{let b=_,C=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,r),C){case"!":C=e.get(_);break;case Ki:C=i.get(_);break;default:C=t.normalizeStyleValue(_,b,C,r)}d.set(b,C)}),u||o.push(d),a=d,s=c}),r.length)throw function X9(t){return new k(3502,!1)}();return o}function Dg(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Sg(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Sg(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Sg(e,"destroy",t)))}}function Sg(t,n,e){const o=Eg(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function Eg(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function An(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function bD(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const p6=(()=>typeof document>"u"?null:document.documentElement)();function Ig(t){const n=t.parentNode||t.host||null;return n===p6?null:n}let Qr=null,CD=!1;function wD(t,n){for(;n;){if(n===t)return!0;n=Ig(n)}return!1}function TD(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let DD=(()=>{class t{validateStyleProperty(e){return function f6(t){Qr||(Qr=function g6(){return typeof document<"u"?document.body:null}()||{},CD=!!Qr.style&&"WebkitAppearance"in Qr.style);let n=!0;return Qr.style&&!function h6(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Qr.style,!n&&CD&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Qr.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return wD(e,i)}getParentElement(e){return Ig(e)}query(e,i,r){return TD(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Ga(r,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),xg=(()=>{class t{static#e=this.NOOP=new DD}return t})();const m6=1e3,Mg="ng-enter",Pu="ng-leave",Fu="ng-trigger",Lu=".ng-trigger",ED="ng-animating",kg=".ng-animating";function Zi(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Og(parseFloat(n[1]),n[2])}function Og(t,n){return"s"===n?t*m6:t}function Nu(t,n,e){return t.hasOwnProperty("duration")?t:function y6(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(yD()),{duration:0,delay:0,easing:""};r=Og(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Og(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function O9(){return new k(3100,!1)}()),a=!0),o<0&&(n.push(function A9(){return new k(3101,!1)}()),a=!0),a&&n.splice(l,0,yD())}return{duration:r,delay:o,easing:s}}(t,n,e)}function Wa(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function ID(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Cr(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function Si(t,n,e){n.forEach((i,r)=>{const o=Rg(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Jr(t,n){n.forEach((e,i)=>{const r=Rg(i);t.style[r]=""})}function qa(t){return Array.isArray(t)?1==t.length?t[0]:mD(t):t}const Ag=new RegExp("{{\\s*(.+?)\\s*}}","g");function MD(t){let n=[];if("string"==typeof t){let e;for(;e=Ag.exec(t);)n.push(e[1]);Ag.lastIndex=0}return n}function Ka(t,n,e){const i=t.toString(),r=i.replace(Ag,(o,s)=>{let a=n[s];return null==a&&(e.push(function P9(t){return new k(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Vu(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const C6=/-+([a-z0-9])/g;function Rg(t){return t.replace(C6,(...n)=>n[1].toUpperCase())}function Rn(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function F9(t){return new k(3004,!1)}()}}function kD(t,n){return window.getComputedStyle(t)[n]}const Bu="*";function D6(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function S6(t,n,e){if(":"==t[0]){const l=function E6(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function K9(t){return new k(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(OD(r,s));"<"==o[0]&&!(r==Bu&&s==Bu)&&n.push(OD(s,r))}(i,e,n)):e.push(t),e}const Hu=new Set(["true","1"]),$u=new Set(["false","0"]);function OD(t,n){const e=Hu.has(t)||$u.has(t),i=Hu.has(n)||$u.has(n);return(r,o)=>{let s=t==Bu||t==r,a=n==Bu||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Hu.has(t):$u.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Hu.has(n):$u.has(n)),s&&a}}const I6=new RegExp("s*:selfs*,?","g");function Pg(t,n,e,i){return new x6(t).build(n,e,i)}class x6{constructor(n){this._driver=n}build(n,e,i){const r=new O6(e);return this._resetContextStyleTimingState(r),Rn(this,qa(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function N9(){return new k(3006,!1)}()),n.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 V9(){return new k(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{MD(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Vu(o.values()),e.errors.push(function B9(t,n){return new k(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Rn(this,qa(n.animation),e);return{type:1,matchers:D6(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Xr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Rn(this,i,e)),options:Xr(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=Rn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Xr(n.options)}}visitAnimate(n,e){const i=function R6(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Fg(Nu(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Fg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Nu(e,n);return Fg(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Ge({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Ge(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(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Ki?i.push(a):e.errors.push(new k(3002,!1)):i.push(ID(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:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.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 $9(t,n,e,i,r){return new k(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function b6(t,n,e){const i=n.params||{},r=MD(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function R9(t){return new k(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function z9(){return new k(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(M=>{const I=this._makeStyleAst(M,e);let P=null!=I.offset?I.offset:function A6(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(I.styles),N=0;return null!=P&&(o++,N=I.offset=P),l=l||N<0||N>1,a=a||N0&&o{const P=m>0?I==_?1:m*I:s[I],N=P*T;e.currentTime=b+C.delay+N,C.duration=N,this._validateStyleAst(M,e),M.offset=P,i.styles.push(M)}),i}visitReference(n,e){return{type:8,animation:Rn(this,qa(n.animation),e),options:Xr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Xr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Xr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function M6(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(I6,"")),t=t.replace(/@\*/g,Lu).replace(/@\w+/g,e=>Lu+"-"+e.slice(1)).replace(/:animating/g,kg),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,An(e.collectedStyles,e.currentQuerySelector,new Map);const a=Rn(this,qa(n.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:n.selector,options:Xr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function W9(){return new k(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Nu(n.timings,e.errors,!0);return{type:12,animation:Rn(this,qa(n.animation),e),timings:i,options:null}}}class O6{constructor(n){this.errors=n,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 Xr(t){return t?(t=Wa(t)).params&&(t.params=function k6(t){return t?Wa(t):null}(t.params)):t={},t}function Fg(t,n,e){return{duration:t,delay:n,easing:e}}function Lg(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class zu{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const L6=new RegExp(":enter","g"),V6=new RegExp(":leave","g");function Ng(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new B6).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class B6{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new zu;const d=new Vg(n,e,c,r,o,u,[]);d.options=l;const m=l.delay?Zi(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([s],null,d.errors,l),Rn(this,i,d);const _=d.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let C=_.length-1;C>=0;C--){const T=_[C];if(T.element===e){b=T;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,d.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[Lg(e,[],[],[],0,m,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Zi(Ka(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Zi(i.duration):null,a=null!=i.delay?Zi(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Rn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.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=Uu);const s=Zi(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Rn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Zi(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),Rn(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=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Nu(e.params?Ka(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.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=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Zi(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Uu);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Rn(this,n.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=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.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;Rn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Uu={};class Vg{constructor(n,e,i,r,o,s,a,l){this._driver=n,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=Uu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ju(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Zi(i.duration)),null!=i.delay&&(r.delay=Zi(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]=Ka(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new Vg(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(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Uu,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new H6(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(L6,"."+this._enterClassName)).replace(V6,"."+this._leaveClassName);let c=this._driver.query(this.element,n,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 q9(t){return new k(3014,!1)}()),a}}class ju{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new ju(this._driver,n,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(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ki),this._currentKeyframe.set(e,Ki);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function $6(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,Ki)}else Cr(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=Ka(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ki),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Cr(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===Ki&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?Vu(n.values()):[],s=e.size?Vu(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Lg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class H6 extends ju{constructor(n,e,i,r,o,s,a=!1){super(n,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 n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Cr(n[0]);l.set("offset",0),o.push(l);const c=Cr(n[0]);c.set("offset",PD(a)),o.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let m=Cr(n[d]);const _=m.get("offset");m.set("offset",PD((e+_*i)/s)),o.push(m)}i=s,e=0,r="",n=o}return Lg(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function PD(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Bg{}const z6=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 U6 extends Bg{normalizePropertyName(n,e){return Rg(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(z6.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 L9(t,n){return new k(3005,!1)}())}return s+o}}function FD(t,n,e,i,r,o,s,a,l,c,u,d,m){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:m}}const Hg={};class LD{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function j6(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){const d=[],m=this.ast.options&&this.ast.options.params||Hg,b=this.buildStyles(i,a&&a.params||Hg,d),C=l&&l.params||Hg,T=this.buildStyles(r,C,d),M=new Set,I=new Map,P=new Map,N="void"===r,X={params:G6(C,m),delay:this.ast.options?.delay},be=u?[]:Ng(n,e,this.ast.animation,o,s,b,T,X,c,d);let Ve=0;if(be.forEach(tt=>{Ve=Math.max(tt.duration+tt.delay,Ve)}),d.length)return FD(e,this._triggerName,i,r,N,b,T,[],[],I,P,Ve,d);be.forEach(tt=>{const Wt=tt.element,Dd=An(I,Wt,new Set);tt.preStyleProps.forEach(ao=>Dd.add(ao));const _l=An(P,Wt,new Set);tt.postStyleProps.forEach(ao=>_l.add(ao)),Wt!==e&&M.add(Wt)});const We=Vu(M.values());return FD(e,this._triggerName,i,r,N,b,T,be,We,I,P,Ve)}}function G6(t,n){const e=Wa(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class W6{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=Wa(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Ka(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class K6{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new W6(r.style,r.options&&r.options.params||{},i))}),ND(this.states,"true","1"),ND(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new LD(n,r,this.states))}),this.fallbackTransition=function Z6(t,n,e){return new LD(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function ND(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Y6=new zu;class Q6{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],o=Pg(this._driver,e,i,[]);if(i.length)throw function e6(t){return new k(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=vD(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=Ng(this._driver,e,o,Mg,Pu,new Map,new Map,i,Y6,r),s.forEach(u=>{const d=An(a,u.element,new Map);u.postStyleProps.forEach(m=>d.set(m,null))})):(r.push(function t6(){return new k(3300,!1)}()),s=[]),r.length)throw function n6(t){return new k(3504,!1)}();a.forEach((u,d)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(d,_,Ki))})});const c=br(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function r6(t){return new k(3301,!1)}();return e}listen(n,e,i,r){const o=Eg(e,"","","");return Dg(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);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(n)}}}const VD="ng-animate-queued",$g="ng-animate-disabled",n5=[],BD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},r5={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ui="__ng_removed";class zg{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function l5(t){return t??null}(i?n.value:n),i){const o=Wa(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Za="void",Ug=new zg(Za);class o5{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,qn(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function o6(t,n){return new k(3302,!1)}();if(null==i||0==i.length)throw function s6(t){return new k(3303,!1)}();if(!function c5(t){return"start"==t||"done"==t}(i))throw function a6(t,n){return new k(3400,!1)}();const o=An(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=An(this._engine.statesByElement,n,new Map);return a.has(e)||(qn(n,Fu),qn(n,Fu+"-"+e),a.set(e,Ug)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function l6(t){return new k(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new jg(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(qn(n,Fu),qn(n,Fu+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new zg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Ug),c.value!==Za&&l.value===c.value){if(!function p5(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Jr(n,T),Si(n,M)})}return}const m=An(this._engine.playersByElement,n,[]);m.forEach(C=>{C.namespaceId==this.id&&C.triggerName==e&&C.queued&&C.destroy()});let _=o.matchTransition(l.value,c.value,n,c.params),b=!1;if(!_){if(!r)return;_=o.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:_,fromState:l,toState:c,player:s,isFallbackTransition:b}),b||(qn(n,VD),s.onStart(()=>{ms(n,VD)})),s.onDone(()=>{let C=this.players.indexOf(s);C>=0&&this.players.splice(C,1);const T=this._engine.playersByElement.get(n);if(T){let M=T.indexOf(s);M>=0&&T.splice(M,1)}}),this.players.push(s),m.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Lu,!0);i.forEach(r=>{if(r[ui])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(n,e,i,r){const o=this._engine.statesByElement.get(n),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(n,c,Za,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&br(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);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)||Ug,u=new zg(Za),d=new jg(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[ui];(!o||o===BD)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){qn(n,this._hostClassName)}drainQueuedTransitions(n){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=Eg(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Dg(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(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class s5{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,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)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new o5(n,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[n]=i}_balanceNamespaceList(n,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,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(Gu(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Gu(e))return;const o=e[ui];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),qn(n,$g)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ms(n,$g))}removeNode(n,e,i){if(Gu(e)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[ui]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Gu(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Lu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,kg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return br(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[ui];if(e&&e.setForRemoval){if(n[ui]=BD,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains($g)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-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?br(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function c6(t){return new k(3402,!1)}()}_flushAnimations(n,e){const i=new zu,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Q=>{u.add(Q);const re=this.driver.query(Q,".ng-animate-queued",!0);for(let se=0;se{const se=Mg+C++;b.set(re,se),Q.forEach(ke=>qn(ke,se))});const T=[],M=new Set,I=new Set;for(let Q=0;QM.add(ke)):I.add(re))}const P=new Map,N=zD(m,Array.from(M));N.forEach((Q,re)=>{const se=Pu+C++;P.set(re,se),Q.forEach(ke=>qn(ke,se))}),n.push(()=>{_.forEach((Q,re)=>{const se=b.get(re);Q.forEach(ke=>ms(ke,se))}),N.forEach((Q,re)=>{const se=P.get(re);Q.forEach(ke=>ms(ke,se))}),T.forEach(Q=>{this.processLeaveNode(Q)})});const X=[],be=[];for(let Q=this._namespaceList.length-1;Q>=0;Q--)this._namespaceList[Q].drainQueuedTransitions(e).forEach(se=>{const ke=se.player,Ot=se.element;if(X.push(ke),this.collectedEnterElements.length){const Xt=Ot[ui];if(Xt&&Xt.setForMove){if(Xt.previousTriggersValues&&Xt.previousTriggersValues.has(se.triggerName)){const lo=Xt.previousTriggersValues.get(se.triggerName),Qn=this.statesByElement.get(se.element);if(Qn&&Qn.has(se.triggerName)){const Sd=Qn.get(se.triggerName);Sd.value=lo,Qn.set(se.triggerName,Sd)}}return void ke.destroy()}}const Mi=!d||!this.driver.containsElement(d,Ot),Fn=P.get(Ot),Ir=b.get(Ot),ct=this._buildInstruction(se,i,Ir,Fn,Mi);if(ct.errors&&ct.errors.length)return void be.push(ct);if(Mi)return ke.onStart(()=>Jr(Ot,ct.fromStyles)),ke.onDestroy(()=>Si(Ot,ct.toStyles)),void r.push(ke);if(se.isFallbackTransition)return ke.onStart(()=>Jr(Ot,ct.fromStyles)),ke.onDestroy(()=>Si(Ot,ct.toStyles)),void r.push(ke);const lE=[];ct.timelines.forEach(Xt=>{Xt.stretchStartingKeyframe=!0,this.disabledNodes.has(Xt.element)||lE.push(Xt)}),ct.timelines=lE,i.append(Ot,ct.timelines),s.push({instruction:ct,player:ke,element:Ot}),ct.queriedElements.forEach(Xt=>An(a,Xt,[]).push(ke)),ct.preStyleProps.forEach((Xt,lo)=>{if(Xt.size){let Qn=l.get(lo);Qn||l.set(lo,Qn=new Set),Xt.forEach((Sd,Hm)=>Qn.add(Hm))}}),ct.postStyleProps.forEach((Xt,lo)=>{let Qn=c.get(lo);Qn||c.set(lo,Qn=new Set),Xt.forEach((Sd,Hm)=>Qn.add(Hm))})});if(be.length){const Q=[];be.forEach(re=>{Q.push(function u6(t,n){return new k(3505,!1)}())}),X.forEach(re=>re.destroy()),this.reportError(Q)}const Ve=new Map,We=new Map;s.forEach(Q=>{const re=Q.element;i.has(re)&&(We.set(re,re),this._beforeAnimationBuild(Q.player.namespaceId,Q.instruction,Ve))}),r.forEach(Q=>{const re=Q.element;this._getPreviousPlayers(re,!1,Q.namespaceId,Q.triggerName,null).forEach(ke=>{An(Ve,re,[]).push(ke),ke.destroy()})});const tt=T.filter(Q=>jD(Q,l,c)),Wt=new Map;$D(Wt,this.driver,I,c,Ki).forEach(Q=>{jD(Q,l,c)&&tt.push(Q)});const _l=new Map;_.forEach((Q,re)=>{$D(_l,this.driver,new Set(Q),l,"!")}),tt.forEach(Q=>{const re=Wt.get(Q),se=_l.get(Q);Wt.set(Q,new Map([...re?.entries()??[],...se?.entries()??[]]))});const ao=[],sE=[],aE={};s.forEach(Q=>{const{element:re,player:se,instruction:ke}=Q;if(i.has(re)){if(u.has(re))return se.onDestroy(()=>Si(re,ke.toStyles)),se.disabled=!0,se.overrideTotalTime(ke.totalTime),void r.push(se);let Ot=aE;if(We.size>1){let Fn=re;const Ir=[];for(;Fn=Fn.parentNode;){const ct=We.get(Fn);if(ct){Ot=ct;break}Ir.push(Fn)}Ir.forEach(ct=>We.set(ct,Ot))}const Mi=this._buildAnimation(se.namespaceId,ke,Ve,o,_l,Wt);if(se.setRealPlayer(Mi),Ot===aE)ao.push(se);else{const Fn=this.playersByElement.get(Ot);Fn&&Fn.length&&(se.parentPlayer=br(Fn)),r.push(se)}}else Jr(re,ke.fromStyles),se.onDestroy(()=>Si(re,ke.toStyles)),sE.push(se),u.has(re)&&r.push(se)}),sE.forEach(Q=>{const re=o.get(Q.element);if(re&&re.length){const se=br(re);Q.setRealPlayer(se)}}),r.forEach(Q=>{Q.parentPlayer?Q.syncPlayerEvents(Q.parentPlayer):Q.destroy()});for(let Q=0;Q!Mi.destroyed);Ot.length?u5(this,re,Ot):this.processLeaveNode(re)}return T.length=0,ao.forEach(Q=>{this.players.push(Q),Q.onDone(()=>{Q.destroy();const re=this.players.indexOf(Q);this.players.splice(re,1)}),Q.play()}),ao}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Za;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(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=An(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),d.push(_)})}Jr(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,m=e.timelines.map(b=>{const C=b.element;u.add(C);const T=C[ui];if(T&&T.removedBeforeQueried)return new Ga(b.duration,b.delay);const M=C!==l,I=function d5(t){const n=[];return UD(t,n),n}((i.get(C)||n5).map(Ve=>Ve.getRealPlayer())).filter(Ve=>!!Ve.element&&Ve.element===C),P=o.get(C),N=s.get(C),X=vD(this._normalizer,b.keyframes,P,N),be=this._buildPlayer(b,X,I);if(b.subTimeline&&r&&d.add(C),M){const Ve=new jg(n,a,C);Ve.setRealPlayer(be),c.push(Ve)}return be});c.forEach(b=>{An(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function a5(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>qn(b,ED));const _=br(m);return _.onDestroy(()=>{u.forEach(b=>ms(b,ED)),Si(l,e.toStyles)}),d.forEach(b=>{An(r,b,[]).push(_)}),_}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Ga(n.duration,n.delay)}}class jg{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Ga,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Dg(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){An(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Gu(t){return t&&1===t.nodeType}function HD(t,n){const e=t.style.display;return t.style.display=n??"none",e}function $D(t,n,e,i,r){const o=[];e.forEach(l=>o.push(HD(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const m=n.computeStyle(c,d,r);u.set(d,m),(!m||0==m.length)&&(c[ui]=r5,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>HD(l,o[a++])),s}function zD(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),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 n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function qn(t,n){t.classList?.add(n)}function ms(t,n){t.classList?.remove(n)}function u5(t,n,e){br(e).onDone(()=>t.processLeaveNode(n))}function UD(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class Wu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new s5(n,e,i),this._timelineEngine=new Q6(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Pg(this._driver,o,l,[]);if(l.length)throw function J9(t,n){return new k(3404,!1)}();a=function q6(t,n,e){return new K6(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=bD(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=bD(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let f5=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Si(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Si(this._element,this._initialStyles),this._endStyles&&(Si(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Jr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jr(this._element,this._endStyles),this._endStyles=null),Si(this._element,this._initialStyles),this._state=3)}}return t})();function Gg(t){let n=null;return t.forEach((e,i)=>{(function g5(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class GD{constructor(n,e,i,r){this.element=n,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(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:kD(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class m5{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return wD(n,e)}getParentElement(n){return Ig(n)}query(n,e,i){return TD(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,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(_=>_ instanceof GD);(function w6(t,n){return 0===t||0===n})(i,r)&&u.forEach(_=>{_.currentSnapshot.forEach((b,C)=>c.set(C,b))});let d=function v6(t){return t.length?t[0]instanceof Map?t:t.map(n=>ID(n)):[]}(e).map(_=>Cr(_));d=function T6(t,n,e){if(e.size&&n.length){let i=n[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,kD(t,a)))}}return n}(n,d,c);const m=function h5(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Gg(n[0]),n.length>1&&(i=Gg(n[n.length-1]))):n instanceof Map&&(e=Gg(n)),e||i?new f5(t,e,i):null}(n,d);return new GD(n,d,l,m)}}let _5=(()=>{class t extends fD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Nn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?mD(e):e;return WD(this._renderer,null,i,"register",[r]),new y5(i,this._renderer)}static#e=this.\u0275fac=function(i){return new(i||t)(H(ua),H(rt))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class y5 extends k9{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new v5(this._id,n,e||{},this._renderer)}}class v5{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return WD(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}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(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function WD(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const qD="@.disabled";let b5=(()=>{class t{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,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 KD("",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 C5(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{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()}static#e=this.\u0275fac=function(i){return new(i||t)(H(ua),H(Wu),H(Te))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();class KD{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==qD?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class C5 extends KD{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qD?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function w5(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function T5(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const ZD=[{provide:fD,useClass:_5},{provide:Bg,useFactory:function S5(){return new U6}},{provide:Wu,useClass:(()=>{class t extends Wu{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(H(rt),H(xg),H(Bg),H(Ur))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})()},{provide:ua,useFactory:function E5(t,n,e){return new b5(t,n,e)},deps:[Zf,Wu,Te]}],Wg=[{provide:xg,useFactory:()=>new m5},{provide:z1,useValue:"BrowserAnimations"},...ZD],YD=[{provide:xg,useClass:DD},{provide:z1,useValue:"NoopAnimations"},...ZD];let I5=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?YD:Wg}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({providers:Wg,imports:[$w]})}return t})();function qg(...t){const n=Rs(t),e=l_(t),{args:i,keys:r}=cT(t);if(0===i.length)return Dt([],n);const o=new ot(function M5(t,n,e=nr){return i=>{QD(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=Dt(t[l],n);let u=!1;c.subscribe(nt(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>uT(r,s):nr));return e?o.pipe(ig(e)):o}function QD(t,n,e){t?ki(e,t,n):n()}const Ya=Os(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Ku(...t){return function k5(){return uo(1)}()(Dt(t,Rs(t)))}function JD(t){return new ot(n=>{qt(t()).subscribe(n)})}function eo(t,n){const e=De(t)?t:()=>t,i=r=>r.error(e());return new ot(n?r=>n.schedule(i,0,r):i)}function Kg(){return ut((t,n)=>{let e=null;t._refCount++;const i=nt(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class XD extends ot{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Km(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new hn;const e=this.getSubject();n.add(this.source.subscribe(nt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=hn.EMPTY)}return n}refCount(){return Kg()(this)}}function wr(t){return t<=0?()=>hi:ut((n,e)=>{let i=0;n.subscribe(nt(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Zu(t){return ut((n,e)=>{let i=!1;n.subscribe(nt(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function eS(t=A5){return ut((n,e)=>{let i=!1;n.subscribe(nt(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function A5(){return new Ya}function to(t,n){const e=arguments.length>=2;return i=>i.pipe(t?wt((r,o)=>t(r,o,i)):nr,wr(1),e?Zu(n):eS(()=>new Ya))}function zt(t,n,e){const i=De(t)||n||e?{next:t,error:n,complete:e}:t;return i?ut((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(nt(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)}))}):nr}function Tr(t){return ut((n,e)=>{let o,i=null,r=!1;i=n.subscribe(nt(e,void 0,void 0,s=>{o=qt(t(s,Tr(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Zg(t){return t<=0?()=>hi:ut((n,e)=>{let i=[];n.subscribe(nt(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function tS(t){return Se(()=>t)}function Ut(t){return ut((n,e)=>{qt(t).subscribe(nt(e,()=>e.complete(),bl)),!e.closed&&n.subscribe(e)})}const ve="primary",Qa=Symbol("RouteTitle");class L5{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function _s(t){return new L5(t)}function N5(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function iS(t){return t.length>0?t[t.length-1]:null}function Dr(t){return function x5(t){return!!t&&(t instanceof ot||De(t.lift)&&De(t.subscribe))}(t)?t:Ca(t)?Dt(Promise.resolve(t)):oe(t)}const B5={exact:function sS(t,n,e){if(!no(t.segments,n.segments)||!Yu(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!sS(t.children[i],n.children[i],e))return!1;return!0},subset:aS},rS={exact:function H5(t,n){return Ei(t,n)},subset:function $5(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>nS(t[e],n[e]))},ignored:()=>!0};function oS(t,n,e){return B5[e.paths](t.root,n.root,e.matrixParams)&&rS[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function aS(t,n,e){return lS(t,n,n.segments,e)}function lS(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!no(r,e)||n.hasChildren()||!Yu(r,e,i))}if(t.segments.length===e.length){if(!no(t.segments,e)||!Yu(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!aS(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(no(t.segments,r)&&Yu(t.segments,r,i)&&t.children[ve])&&lS(t.children[ve],n,o,i)}}function Yu(t,n,e){return n.every((i,r)=>rS[e](t[r].parameters,i.parameters))}class ys{constructor(n=new $e([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_s(this.queryParams)),this._queryParamMap}toString(){return j5.serialize(this)}}class $e{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qu(this)}}class Ja{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_s(this.parameters)),this._parameterMap}toString(){return dS(this)}}function no(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let Xa=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return new Yg},providedIn:"root"})}return t})();class Yg{parse(n){const e=new t8(n);return new ys(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${el(n.root,!0)}`,i=function q5(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Ju(e)}=${Ju(r)}`).join("&"):`${Ju(e)}=${Ju(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function G5(t){return encodeURI(t)}(n.fragment)}`:""}`}}const j5=new Yg;function Qu(t){return t.segments.map(n=>dS(n)).join("/")}function el(t,n){if(!t.hasChildren())return Qu(t);if(n){const e=t.children[ve]?el(t.children[ve],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==ve&&i.push(`${r}:${el(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function U5(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===ve&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==ve&&(e=e.concat(n(r,i)))}),e}(t,(i,r)=>r===ve?[el(t.children[ve],!1)]:[`${r}:${el(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[ve]?`${Qu(t)}/${e[0]}`:`${Qu(t)}/(${e.join("//")})`}}function cS(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ju(t){return cS(t).replace(/%3B/gi,";")}function Qg(t){return cS(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xu(t){return decodeURIComponent(t)}function uS(t){return Xu(t.replace(/\+/g,"%20"))}function dS(t){return`${Qg(t.path)}${function W5(t){return Object.keys(t).map(n=>`;${Qg(n)}=${Qg(t[n])}`).join("")}(t.parameters)}`}const K5=/^[^\/()?;#]+/;function Jg(t){const n=t.match(K5);return n?n[0]:""}const Z5=/^[^\/()?;=#]+/,Q5=/^[^=?&#]+/,X5=/^[^&#]+/;class t8{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[ve]=new $e(n,e)),i}parseSegment(){const n=Jg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new k(4009,!1);return this.capture(n),new Ja(Xu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function Y5(t){const n=t.match(Z5);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Jg(this.remaining);r&&(i=r,this.capture(i))}n[Xu(e)]=Xu(i)}parseQueryParam(n){const e=function J5(t){const n=t.match(Q5);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function e8(t){const n=t.match(X5);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=uS(e),o=uS(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Jg(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new k(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=ve);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[ve]:new $e([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new k(4011,!1)}}function pS(t){return t.segments.length>0?new $e([],{[ve]:t}):t}function hS(t){const n={};for(const i of Object.keys(t.children)){const o=hS(t.children[i]);if(i===ve&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function n8(t){if(1===t.numberOfChildren&&t.children[ve]){const n=t.children[ve];return new $e(t.segments.concat(n.segments),n.children)}return t}(new $e(t.segments,n))}function io(t){return t instanceof ys}function fS(t){let n;const r=pS(function e(o){const s={};for(const l of o.children){const c=e(l);s[l.outlet]=c}const a=new $e(o.url,s);return o===t&&(n=a),a}(t.root));return n??r}function gS(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return Xg(r,r,r,e,i);const o=function o8(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new _S(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new _S(e,n,i)}(n);if(o.toRoot())return Xg(r,r,new $e([],{}),e,i);const s=function s8(t,n,e){if(t.isAbsolute)return new td(n,!0,0);if(!e)return new td(n,!1,NaN);if(null===e.parent)return new td(e,!0,0);const i=ed(t.commands[0])?0:1;return function a8(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new k(4005,!1);r=i.segments.length}return new td(i,!1,r-o)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?nl(s.segmentGroup,s.index,o.commands):yS(s.segmentGroup,s.index,o.commands);return Xg(r,s.segmentGroup,a,e,i)}function ed(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function tl(t){return"object"==typeof t&&null!=t&&t.outlets}function Xg(t,n,e,i,r){let s,o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=t===n?e:mS(t,n,e);const a=pS(hS(s));return new ys(a,o,r)}function mS(t,n,e){const i={};return Object.entries(t.children).forEach(([r,o])=>{i[r]=o===n?e:mS(o,n,e)}),new $e(t.segments,i)}class _S{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&ed(i[0]))throw new k(4003,!1);const r=i.find(tl);if(r&&r!==iS(i))throw new k(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class td{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function yS(t,n,e){if(t||(t=new $e([],{})),0===t.segments.length&&t.hasChildren())return nl(t,n,e);const i=function c8(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(tl(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!bS(l,c,s))return o;i+=2}else{if(!bS(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==ve)&&t.children[ve]&&1===t.numberOfChildren&&0===t.children[ve].segments.length){const o=nl(t.children[ve],n,e);return new $e(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=yS(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new $e(t.segments,r)}}function em(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=em(new $e([],{}),0,i))}),n}function vS(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function bS(t,n,e){return t==e.path&&Ei(n,e.parameters)}const il="imperative";class Ii{constructor(n,e){this.id=n,this.url=e}}class nd extends Ii{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Yi extends Ii{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class rl extends Ii{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vs extends Ii{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class id extends Ii{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class CS extends Ii{constructor(n,e,i,r){super(n,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 d8 extends Ii{constructor(n,e,i,r){super(n,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 p8 extends Ii{constructor(n,e,i,r,o){super(n,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 h8 extends Ii{constructor(n,e,i,r){super(n,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 f8 extends Ii{constructor(n,e,i,r){super(n,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 g8{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class m8{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _8{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class y8{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class v8{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b8{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wS{constructor(n,e,i){this.routerEvent=n,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 tm{}class nm{constructor(n){this.url=n}}class C8{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ol,this.attachRef=null}}let ol=(()=>{class t{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 C8,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class TS{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=im(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=im(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=rm(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return rm(n,this._root).map(e=>e.value)}}function im(t,n){if(t===n.value)return n;for(const e of n.children){const i=im(t,e);if(i)return i}return null}function rm(t,n){if(t===n.value)return[n];for(const e of n.children){const i=rm(t,e);if(i.length)return i.unshift(n),i}return[]}class Qi{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function bs(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class DS extends TS{constructor(n,e){super(n),this.snapshot=e,om(this,n)}toString(){return this.snapshot.toString()}}function SS(t,n){const e=function w8(t,n){const s=new rd([],{},{},"",{},ve,n,null,{});return new IS("",new Qi(s,[]))}(0,n),i=new en([new Ja("",{})]),r=new en({}),o=new en({}),s=new en({}),a=new en(""),l=new Ji(i,r,s,a,o,ve,n,e.root);return l.snapshot=e.root,new DS(new Qi(l,[]),e)}class Ji{constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Se(c=>c[Qa]))??oe(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Se(n=>_s(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Se(n=>_s(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ES(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)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 T8(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class rd{get title(){return this.data?.[Qa]}constructor(n,e,i,r,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_s(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_s(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class IS extends TS{constructor(n,e){super(e),this.url=n,om(this,e)}toString(){return xS(this._root)}}function om(t,n){n.value._routerState=t,n.children.forEach(e=>om(t,e))}function xS(t){const n=t.children.length>0?` { ${t.children.map(xS).join(", ")} } `:"";return`${t.value}${n}`}function sm(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ei(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Ei(n.params,e.params)||t.paramsSubject.next(e.params),function V5(t,n){if(t.length!==n.length)return!1;for(let e=0;eEi(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||am(t.parent,n.parent))}let lm=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ve,this.activateEvents=new F,this.deactivateEvents=new F,this.attachEvents=new F,this.detachEvents=new F,this.parentContexts=j(ol),this.location=j(jn),this.changeDetector=j(bt),this.environmentInjector=j(xn),this.inputBinder=j(od,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);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 k(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new k(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new k(4012,!1);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.inputBinder?.bindActivatedRouteToOutletComponent(this),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 k(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new D8(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ne({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ft]})}return t})();class D8{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Ji?this.route:n===ol?this.childContexts:this.parent.get(n,e)}}const od=new G("");let MS=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,r=qg([i.queryParams,i.params,i.data]).pipe(Jn(([o,s,a],l)=>(a={...o,...s,...a},0===l?oe(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const s=function IP(t){const n=Ie(t);if(!n)return null;const e=new ma(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function sl(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function E8(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return sl(t,i,r);return sl(t,i)})}(t,n,e);return new Qi(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>sl(t,a)),s}}const i=function I8(t){return new Ji(new en(t.url),new en(t.params),new en(t.queryParams),new en(t.fragment),new en(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>sl(t,o));return new Qi(i,r)}}const cm="ngNavigationCancelingError";function kS(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=io(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=OS(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function OS(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[cm]=!0,i.cancellationCode=n,e&&(i.url=e),i}function AS(t){return t&&t[cm]}let RS=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=J({type:t,selectors:[["ng-component"]],standalone:!0,features:[ze],decls:1,vars:0,template:function(i,r){1&i&&x(0,"router-outlet")},dependencies:[lm],encapsulation:2})}return t})();function um(t){const n=t.children&&t.children.map(um),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==ve&&(e.component=RS),e}function di(t){return t.outlet||ve}function al(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class F8{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),sm(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=bs(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bs(n);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(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bs(n);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.route=null)}activateChildRoutes(n,e,i){const r=bs(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new b8(o.value.snapshot))}),n.children.length&&this.forwardEvent(new y8(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(sm(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,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),sm(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=al(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class PS{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class sd{constructor(n,e){this.component=n,this.route=e}}function L8(t,n,e){const i=t._root;return ll(i,n?n._root:null,e,[i.value])}function Cs(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function QE(t){return null!==Sl(t)}(t)?n.get(t):t:i}function ll(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bs(n);return t.children.forEach(s=>{(function V8(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function B8(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!no(t.url,n.url);case"pathParamsOrQueryParamsChange":return!no(t.url,n.url)||!Ei(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!am(t,n)||!Ei(t.queryParams,n.queryParams);default:return!am(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new PS(i)):(o.data=s.data,o._resolvedData=s._resolvedData),ll(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new sd(a.outlet.component,s))}else s&&cl(n,a,r),r.canActivateChecks.push(new PS(i)),ll(t,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]}),Object.entries(o).forEach(([s,a])=>cl(a,e.getContext(s),r)),r}function cl(t,n,e){const i=bs(t),r=t.value;Object.entries(i).forEach(([o,s])=>{cl(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new sd(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ul(t){return"function"==typeof t}function FS(t){return t instanceof Ya||"EmptyError"===t?.name}const ad=Symbol("INITIAL_VALUE");function ws(){return Jn(t=>qg(t.map(n=>n.pipe(wr(1),function O5(...t){const n=Rs(t);return ut((e,i)=>{(n?Ku(t,e,n):Ku(t,e)).subscribe(i)})}(ad)))).pipe(Se(n=>{for(const e of n)if(!0!==e){if(e===ad)return ad;if(!1===e||e instanceof ys)return e}return!0}),wt(n=>n!==ad),wr(1)))}function LS(t){return function _E(...t){return Gm(t)}(zt(n=>{if(io(n))throw kS(0,n)}),Se(n=>!0===n))}class ld{constructor(n){this.segmentGroup=n||null}}class NS{constructor(n){this.urlTree=n}}function Ts(t){return eo(new ld(t))}function VS(t){return eo(new NS(t))}class s7{constructor(n,e){this.urlSerializer=n,this.urlTree=e}noMatchError(n){return new k(4002,!1)}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return oe(i);if(r.numberOfChildren>1||!r.children[ve])return eo(new k(4e3,!1));r=r.children[ve]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new ys(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new $e(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new k(4001,!1);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}const dm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function a7(t,n,e,i,r){const o=pm(t,n,e);return o.matched?(i=function M8(t,n){return t.providers&&!t._injector&&(t._injector=Kh(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function n7(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?oe(r.map(s=>{const a=Cs(s,t);return Dr(function G8(t){return t&&ul(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(ws(),LS()):oe(!0)}(i,n,e).pipe(Se(s=>!0===s?o:{...dm}))):oe(o)}function pm(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...dm}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||N5)(e,t,n);if(!r)return{...dm};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function BS(t,n,e,i){return e.length>0&&function u7(t,n,e){return e.some(i=>cd(t,n,i)&&di(i)!==ve)}(t,e,i)?{segmentGroup:new $e(n,c7(i,new $e(e,t.children))),slicedSegments:[]}:0===e.length&&function d7(t,n,e){return e.some(i=>cd(t,n,i))}(t,e,i)?{segmentGroup:new $e(t.segments,l7(t,0,e,i,t.children)),slicedSegments:e}:{segmentGroup:new $e(t.segments,t.children),slicedSegments:e}}function l7(t,n,e,i,r){const o={};for(const s of i)if(cd(t,e,s)&&!r[di(s)]){const a=new $e([],{});o[di(s)]=a}return{...r,...o}}function c7(t,n){const e={};e[ve]=n;for(const i of t)if(""===i.path&&di(i)!==ve){const r=new $e([],{});e[di(i)]=r}return e}function cd(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class g7{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new s7(this.urlSerializer,this.urlTree)}noMatchError(n){return new k(4002,!1)}recognize(){const n=BS(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,ve).pipe(Tr(e=>{if(e instanceof NS)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof ld?this.noMatchError(e):e}),Se(e=>{const i=new rd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ve,this.rootComponentType,null,{}),r=new Qi(i,e),o=new IS("",r),s=function r8(t,n,e=null,i=null){return gS(fS(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,ve).pipe(Tr(i=>{throw i instanceof ld?this.noMatchError(i):i}))}inheritParamsAndData(n){const e=n.value,i=ES(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r,!0)}processChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Dt(r).pipe(us(o=>{const s=i.children[o],a=function R8(t,n){const e=t.filter(i=>di(i)===n);return e.push(...t.filter(i=>di(i)!==n)),e}(e,o);return this.processSegmentGroup(n,a,s,o)}),function P5(t,n){return ut(function R5(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(nt(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(t,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Zu(null),function F5(t,n){const e=arguments.length>=2;return i=>i.pipe(t?wt((r,o)=>t(r,o,i)):nr,Zg(1),e?Zu(n):eS(()=>new Ya))}(),vt(o=>{if(null===o)return Ts(i);const s=HS(o);return function m7(t){t.sort((n,e)=>n.value.outlet===ve?-1:e.value.outlet===ve?1:n.value.outlet.localeCompare(e.value.outlet))}(s),oe(s)}))}processSegment(n,e,i,r,o,s){return Dt(e).pipe(us(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,o,s).pipe(Tr(l=>{if(l instanceof ld)return oe(null);throw l}))),to(a=>!!a),Tr(a=>{if(FS(a))return function h7(t,n,e){return 0===n.length&&!t.children[e]}(i,r,o)?oe([]):Ts(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,o,s,a){return function p7(t,n,e,i){return!!(di(t)===i||i!==ve&&cd(n,e,t))&&("**"===t.path||pm(n,t,e).matched)}(i,r,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s):Ts(r):Ts(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirects.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?VS(o):this.applyRedirects.lineralizeSegments(i,o).pipe(vt(s=>{const a=new $e(s,{});return this.processSegment(n,e,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=pm(e,r,o);if(!a)return Ts(e);const d=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?VS(d):this.applyRedirects.lineralizeSegments(r,d).pipe(vt(m=>this.processSegment(n,i,e,m.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a;if("**"===i.path){const l=r.length>0?iS(r).parameters:{};a=oe({snapshot:new rd(r,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$S(i),di(i),i.component??i._loadedComponent??null,i,zS(i)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=a7(e,i,r,n).pipe(Se(({matched:l,consumedSegments:c,remainingSegments:u,parameters:d})=>l?{snapshot:new rd(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$S(i),di(i),i.component??i._loadedComponent??null,i,zS(i)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Jn(l=>null===l?Ts(e):this.getChildConfig(n=i._injector??n,i,r).pipe(Jn(({routes:c})=>{const u=i._loadedInjector??n,{snapshot:d,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:C}=BS(e,m,_,c);if(0===C.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(Se(M=>null===M?null:[new Qi(d,M)]));if(0===c.length&&0===C.length)return oe([new Qi(d,[])]);const T=di(i)===o;return this.processSegment(u,c,b,C,T?ve:o,!0).pipe(Se(M=>[new Qi(d,M)]))}))))}getChildConfig(n,e,i){return e.children?oe({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?oe({routes:e._loadedRoutes,injector:e._loadedInjector}):function t7(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?oe(!0):oe(r.map(s=>{const a=Cs(s,t);return Dr(function $8(t){return t&&ul(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(ws(),LS())}(n,e,i).pipe(vt(r=>r?this.configLoader.loadChildren(n,e).pipe(zt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function o7(t){return eo(OS(!1,3))}())):oe({routes:[],injector:n})}}function _7(t){const n=t.value.routeConfig;return n&&""===n.path}function HS(t){const n=[],e=new Set;for(const i of t){if(!_7(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=HS(i.children);n.push(new Qi(i.value,r))}return n.filter(i=>!e.has(i))}function $S(t){return t.data||{}}function zS(t){return t.resolve||{}}function US(t){return"string"==typeof t.title||null===t.title}function hm(t){return Jn(n=>{const e=t(n);return e?Dt(e).pipe(Se(()=>n)):oe(n)})}const Ds=new G("ROUTES");let fm=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=j(wC)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return oe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Dr(e.loadComponent()).pipe(Se(jS),zt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Na(()=>{this.componentLoaders.delete(e)})),r=new XD(i,()=>new Oe).pipe(Kg());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return oe({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function D7(t,n,e,i){return Dr(t.loadChildren()).pipe(Se(jS),vt(r=>r instanceof kb||Array.isArray(r)?oe(r):Dt(n.compileModuleAsync(r))),Se(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(e).injector,s=o.get(Ds,[],{optional:!0,self:!0}).flat()),{routes:s.map(um),injector:o}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Na(()=>{this.childrenLoaders.delete(i)})),s=new XD(o,()=>new Oe).pipe(Kg());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jS(t){return function S7(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let ud=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Oe,this.transitionAbortSubject=new Oe,this.configLoader=j(fm),this.environmentInjector=j(xn),this.urlSerializer=j(Xa),this.rootContexts=j(ol),this.inputBindingEnabled=null!==j(od,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>oe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new m8(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new g8(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,r){return this.transitions=new en({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:e.urlHandlingStrategy.extract(i),urlAfterRedirects:e.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:il,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(wt(o=>0!==o.id),Se(o=>({...o,extractedUrl:e.urlHandlingStrategy.extract(o.rawUrl)})),Jn(o=>{this.currentTransition=o;let s=!1,a=!1;return oe(o).pipe(zt(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Jn(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new vs(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),hi}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return oe(l).pipe(Jn(m=>{const _=this.transitions?.getValue();return this.events.next(new nd(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?hi:Promise.resolve(m)}),function y7(t,n,e,i,r,o){return vt(s=>function f7(t,n,e,i,r,o,s="emptyOnly"){return new g7(t,n,e,i,r,s,o).recognize()}(t,n,e,i,s.extractedUrl,r,o).pipe(Se(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),zt(m=>{o.targetSnapshot=m.targetSnapshot,o.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new CS(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:C,extras:T}=l,M=new nd(m,this.urlSerializer.serialize(_),b,C);this.events.next(M);const I=SS(0,this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:I,urlAfterRedirects:_,extras:{...T,skipLocationChange:!1,replaceUrl:!1}},oe(o)}{const m="";return this.events.next(new vs(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),hi}}),zt(l=>{const c=new d8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Se(l=>(this.currentTransition=o={...l,guards:L8(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function q8(t,n){return vt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?oe({...e,guardsResult:!0}):function K8(t,n,e,i){return Dt(t).pipe(vt(r=>function e7(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?oe(o.map(a=>{const l=al(n)??r,c=Cs(a,l);return Dr(function j8(t){return t&&ul(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(to())})).pipe(ws()):oe(!0)}(r.component,r.route,e,n,i)),to(r=>!0!==r,!0))}(s,i,r,t).pipe(vt(a=>a&&function H8(t){return"boolean"==typeof t}(a)?function Z8(t,n,e,i){return Dt(n).pipe(us(r=>Ku(function Q8(t,n){return null!==t&&n&&n(new _8(t)),oe(!0)}(r.route.parent,i),function Y8(t,n){return null!==t&&n&&n(new v8(t)),oe(!0)}(r.route,i),function X8(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function N8(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>JD(()=>oe(s.guards.map(l=>{const c=al(s.node)??e,u=Cs(l,c);return Dr(function U8(t){return t&&ul(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(to())})).pipe(ws())));return oe(o).pipe(ws())}(t,r.path,e),function J8(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return oe(!0);const r=i.map(o=>JD(()=>{const s=al(n)??e,a=Cs(o,s);return Dr(function z8(t){return t&&ul(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(to())}));return oe(r).pipe(ws())}(t,r.route,e))),to(r=>!0!==r,!0))}(i,o,t,n):oe(a)),Se(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),zt(l=>{if(o.guardsResult=l.guardsResult,io(l.guardsResult))throw kS(0,l.guardsResult);const c=new p8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),wt(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),hm(l=>{if(l.guards.canActivateChecks.length)return oe(l).pipe(zt(c=>{const u=new h8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Jn(c=>{let u=!1;return oe(c).pipe(function v7(t,n){return vt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return oe(e);let o=0;return Dt(r).pipe(us(s=>function b7(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!US(r)&&(o[Qa]=r.title),function C7(t,n,e,i){const r=function w7(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return oe({});const o={};return Dt(r).pipe(vt(s=>function T7(t,n,e,i){const r=al(n)??i,o=Cs(t,r);return Dr(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(to(),zt(a=>{o[s]=a}))),Zg(1),tS(o),Tr(s=>FS(s)?hi:eo(s)))}(o,t,n,i).pipe(Se(s=>(t._resolvedData=s,t.data=ES(t,e).resolve,r&&US(r)&&(t.data[Qa]=r.title),null)))}(s.route,i,t,n)),zt(()=>o++),Zg(1),vt(s=>o===r.length?oe(e):hi))})}(e.paramsInheritanceStrategy,this.environmentInjector),zt({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),zt(c=>{const u=new f8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),hm(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(zt(m=>{u.component=m}),Se(()=>{})));for(const m of u.children)d.push(...c(m));return d};return qg(c(l.targetSnapshot.root)).pipe(Zu(),wr(1))}),hm(()=>this.afterPreactivation()),Se(l=>{const c=function S8(t,n,e){const i=sl(t,n._root,e?e._root:void 0);return new DS(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},o}),zt(()=>{this.events.next(new tm)}),((t,n,e,i)=>Se(r=>(new F8(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),wr(1),zt({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Yi(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),Ut(this.transitionAbortSubject.pipe(zt(l=>{throw l}))),Na(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Tr(l=>{if(a=!0,AS(l))this.events.next(new rl(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function x8(t){return AS(t)&&io(t.url)}(l)?this.events.next(new nm(l.url)):o.resolve(!1);else{this.events.next(new id(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(l))}catch(c){o.reject(c)}}return hi}))}))}cancelNavigationTransition(e,i,r){const o=new rl(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function GS(t){return t!==il}let WS=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===ve);return i}getResolvedTitleForRoute(e){return e.data[Qa]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(E7)},providedIn:"root"})}return t})(),E7=(()=>{class t extends WS{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(H(zw))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qS=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(x7)},providedIn:"root"})}return t})();class I7{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let x7=(()=>{class t extends I7{static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dd=new G("",{providedIn:"root",factory:()=>({})});let M7=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:function(){return j(k7)},providedIn:"root"})}return t})(),k7=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dl=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(dl||{});function KS(t,n){t.events.pipe(wt(e=>e instanceof Yi||e instanceof rl||e instanceof id||e instanceof vs),Se(e=>e instanceof Yi||e instanceof vs?dl.COMPLETE:e instanceof rl&&(0===e.code||1===e.code)?dl.REDIRECTING:dl.FAILED),wt(e=>e!==dl.REDIRECTING),wr(1)).subscribe(()=>{n()})}function O7(t){throw t}function A7(t,n,e){return n.parse("/")}const R7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},P7={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Cn=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=j(CC),this.isNgZoneEnabled=!1,this._events=new Oe,this.options=j(dd,{optional:!0})||{},this.pendingTasks=j(Gc),this.errorHandler=this.options.errorHandler||O7,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||A7,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=j(M7),this.routeReuseStrategy=j(qS),this.titleStrategy=j(WS),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=j(Ds,{optional:!0})?.flat()??[],this.navigationTransitions=j(ud),this.urlSerializer=j(Xa),this.location=j(Xc),this.componentInputBindingEnabled=!!j(od,{optional:!0}),this.eventsSubscription=new hn,this.isNgZoneEnabled=j(Te)instanceof Te&&Te.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ys,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=SS(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:r}=this.navigationTransitions;if(null===r)return void(ZS(i)&&this._events.next(i));if(i instanceof nd)GS(r.source)&&(this.browserUrlTree=r.extractedUrl);else if(i instanceof vs)this.rawUrlTree=r.rawUrl;else if(i instanceof CS){if("eager"===this.urlUpdateStrategy){if(!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl);this.setBrowserUrl(o,r)}this.browserUrlTree=r.urlAfterRedirects}}else if(i instanceof tm)this.currentUrlTree=r.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r),this.browserUrlTree=r.urlAfterRedirects);else if(i instanceof rl)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(r);else if(i instanceof nm){const o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),s={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||GS(r.source)};this.scheduleNavigation(o,il,null,s,{resolve:r.resolve,reject:r.reject,promise:r.promise})}i instanceof id&&this.restoreHistory(r,!0),i instanceof Yi&&(this.navigated=!0),ZS(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),il,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(um),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{d=fS(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return gS(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=io(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,il,null,i)}navigate(e,i={skipLocationChange:!1}){return function F7(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}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((d,m)=>{a=d,l=m});const u=this.pendingTasks.add();return KS(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}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))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ZS(t){return!(t instanceof tm||t instanceof nm)}let pd=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new Oe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Yi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),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(e,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function R1(t,n,e){return function n3(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?A1:Hn}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}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})}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cn),w(Ji),function Wl(t){return function wx(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new F,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Yi&&this.update()})}ngAfterContentInit(){oe(this.links.changes,oe(null)).pipe(uo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Dt(e).pipe(uo()).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.router.navigated||queueMicrotask(()=>{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 L7(t){return!!t.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.links.some(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cn),w(Ue),w(xt),w(bt),w(pd,8))};static#t=this.\u0275dir=ne({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(1&i&&Vt(o,pd,5),2&i){let s;ce(s=ue())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ft]})}return t})();class QS{}let N7=(()=>{class t{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(wt(e=>e instanceof Yi),us(()=>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=Kh(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 Dt(r).pipe(uo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):oe(null);const o=r.pipe(vt(s=>null===s?oe(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Dt([o,this.loader.loadComponent(i)]).pipe(uo()):o})}static#e=this.\u0275fac=function(i){return new(i||t)(H(Cn),H(wC),H(xn),H(QS),H(fm))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const gm=new G("");let JS=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof nd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Yi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof vs&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof wS&&(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.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new wS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){!function bv(){throw new Error("invalid")}()};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function Xi(t,n){return{\u0275kind:t,\u0275providers:n}}function e2(){const t=j(yn);return n=>{const e=t.get(Ur);if(n!==e.components[0])return;const i=t.get(Cn),r=t.get(t2);1===t.get(mm)&&i.initialNavigation(),t.get(n2,null,Ce.Optional)?.setUpPreloading(),t.get(gm,null,Ce.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const t2=new G("",{factory:()=>new Oe}),mm=new G("",{providedIn:"root",factory:()=>1}),n2=new G("");function $7(t){return Xi(0,[{provide:n2,useExisting:N7},{provide:QS,useExisting:t}])}const r2=new G("ROUTER_FORROOT_GUARD"),U7=[Xc,{provide:Xa,useClass:Yg},Cn,ol,{provide:Ji,useFactory:function XS(t){return t.routerState.root},deps:[Cn]},fm,[]];function j7(){return new MC("Router",Cn)}let o2=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[U7,[],{provide:Ds,multi:!0,useValue:e},{provide:r2,useFactory:K7,deps:[[Cn,new Zl,new Yl]]},{provide:dd,useValue:i||{}},i?.useHash?{provide:Gr,useClass:AP}:{provide:Gr,useClass:ow},{provide:gm,useFactory:()=>{const t=j(ZF),n=j(Te),e=j(dd),i=j(ud),r=j(Xa);return e.scrollOffset&&t.setOffset(e.scrollOffset),new JS(r,i,t,n,e)}},i?.preloadingStrategy?$7(i.preloadingStrategy).\u0275providers:[],{provide:MC,multi:!0,useFactory:j7},i?.initialNavigation?Z7(i):[],i?.bindToComponentInputs?Xi(8,[MS,{provide:od,useExisting:MS}]).\u0275providers:[],[{provide:s2,useFactory:e2},{provide:yf,multi:!0,useExisting:s2}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ds,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(H(r2,8))};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({})}return t})();function K7(t){return"guarded"}function Z7(t){return["disabled"===t.initialNavigation?Xi(3,[{provide:uf,multi:!0,useFactory:()=>{const n=j(Cn);return()=>{n.setUpLocationChangeListener()}}},{provide:mm,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Xi(2,[{provide:mm,useValue:0},{provide:uf,multi:!0,deps:[yn],useFactory:n=>{const e=n.get(kP,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(Cn),o=n.get(t2);KS(r,()=>{i(!0)}),n.get(ud).afterPreactivation=()=>(i(!0),o.closed?oe(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const s2=new G("");class V{static equals(n,e,i){return i?this.resolveFieldData(n,i)===this.resolveFieldData(e,i):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var o,s,a,i=Array.isArray(n),r=Array.isArray(e);if(i&&r){if((s=n.length)!=e.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(n[o],e[o]))return!1;return!0}if(i!=r)return!1;var l=this.isDate(n),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var u=n instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==e.toString();var m=Object.keys(n);if((s=m.length)!==Object.keys(e).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(n[a=m[o]],e[a]))return!1;return!0}return n!=n&&e!=e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(-1==e.indexOf("."))return n[e];{let i=e.split("."),r=n;for(let o=0,s=i.length;o=n.length&&(i%=n.length,e%=n.length),n.splice(i,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,i,r){if(i.length>0){let o=!1;for(let s=0;se){i.splice(s,0,n),o=!0;break}o||i.push(n)}else i.push(n)}static findIndexInList(n,e){let i=-1;if(e)for(let r=0;r-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}static isDate(n){return"[object Date]"===Object.prototype.toString.call(n)}static isEmpty(n){return null==n||""===n||Array.isArray(n)&&0===n.length||!this.isDate(n)&&"object"==typeof n&&0===Object.keys(n).length}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,e,i,r=1){let o=-1;const s=this.isEmpty(n),a=this.isEmpty(e);return o=s&&a?0:s?r:a?-r:"string"==typeof n&&"string"==typeof e?n.localeCompare(e,i,{numeric:!0}):ne?1:0,o}static sort(n,e,i=1,r,o=1){return(1===o?i:o)*V.compare(n,e,r,i)}static merge(n,e){if(null!=n||null!=e)return null!=n&&"object"!=typeof n||null!=e&&"object"!=typeof e?null!=n&&"string"!=typeof n||null!=e&&"string"!=typeof e?e||n:[n||"",e||""].join(" "):{...n||{},...e||{}}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&1===n.length&&n.match(/\S| /)}static getItemValue(n,...e){return this.isFunction(n)?n(...e):n}static findLastIndex(n,e){let i=-1;if(this.isNotEmpty(n))try{i=n.findLastIndex(e)}catch{i=n.lastIndexOf([...n].reverse().find(e))}return i}static findLast(n,e){let i;if(this.isNotEmpty(n))try{i=n.findLast(e)}catch{i=[...n].reverse().find(e)}return i}}var a2=0;function kt(t="pn_id_"){return`${t}${++a2}`}var jt=function Q7(){let t=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=t.length>0?t[t.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+2;return t.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{t=t.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const J7=["*"];let Gt=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),l2=(()=>class t{static AND="and";static OR="or"})(),c2=(()=>{class t{filter(e,i,r,o,s){let a=[];if(e)for(let l of e)for(let c of i){let u=V.resolveFieldData(l,c);if(this.filters[o](u,r,s)){a.push(l);break}}return a}filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r);return V.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==V.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===V.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=V.removeAccents(i.toString()).toLocaleLowerCase(r),s=V.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==s.indexOf(o,s.length-o.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():V.removeAccents(e.toString()).toLocaleLowerCase(r)==V.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;rnull==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()null==i||null!=e&&e.getTime()>i.getTime()};register(e,i){this.filters[e]=i}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_m=(()=>{class t{messageSource=new Oe;clearSource=new Oe;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),ym=(()=>{class t{clickSource=new Oe;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ro=(()=>{class t{ripple=!1;overlayOptions={};filterMatchModeOptions={text:[Gt.STARTS_WITH,Gt.CONTAINS,Gt.NOT_CONTAINS,Gt.ENDS_WITH,Gt.EQUALS,Gt.NOT_EQUALS],numeric:[Gt.EQUALS,Gt.NOT_EQUALS,Gt.LESS_THAN,Gt.LESS_THAN_OR_EQUAL_TO,Gt.GREATER_THAN,Gt.GREATER_THAN_OR_EQUAL_TO],date:[Gt.DATE_IS,Gt.DATE_IS_NOT,Gt.DATE_BEFORE,Gt.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new Oe;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=J({type:t,selectors:[["p-header"]],ngContentSelectors:J7,decls:1,vars:0,template:function(i,r){1&i&&(Hi(),ni(0))},encapsulation:2})}return t})(),Tt=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(i){return new(i||t)(w(si))};static \u0275dir=ne({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),lt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})(),Kn=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),E=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(M)return"relative"===getComputedStyle(M).getPropertyValue("position")?M:r(M.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+s+o.height>u.height?(_=a.top-m.top-o.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=s+a.top-m.top,e.style.transformOrigin="top");const C=a.left+o.width-u.width;b=o.width>u.width?-1*(a.left-m.left):C>0?a.left-m.left-C:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+o>m.height?(_=c.top+u-o,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+s>m.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+_>m&&(e.scrollTop=d+u-m+_)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!(i&&i.el&&i.el.nativeElement))throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)(o.offsetWidth||o.offsetHeight||o.getClientRects().length)&&r.push(o);return r}static getNextFocusableElement(e,i=!1){const r=t.getFocusableElements(e);let o=0;if(r&&r.length>0){const s=r.indexOf(r[0].ownerDocument.activeElement);i?o=-1==s||0===s?r.length-1:s-1:-1!=s&&s!==r.length-1&&(o=s+1)}return r[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,i){if(e){const r=e.getAttribute(i);return isNaN(r)?"true"===r||"false"===r?"true"===r:r:+r}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class vm{element;listener;scrollableParents;constructor(n,e=(()=>{})){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=E.getScrollableParents(this.element);for(let n=0;n{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=V.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=J({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[ze],ngContentSelectors:tV,decls:1,vars:0,template:function(i,r){1&i&&(Hi(),ni(0))},encapsulation:2,changeDetection:0})}return t})(),Ss=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),hd=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();function nV(t,n){if(1&t&&x(0,"span",11),2&t){const e=f(3);ee(e.accordion.collapseIcon),h("ngClass",e.iconClass),L("aria-hidden",!0)}}function iV(t,n){1&t&&x(0,"ChevronDownIcon",11),2&t&&(h("ngClass",f(3).iconClass),L("aria-hidden",!0))}function rV(t,n){if(1&t&&(W(0),g(1,nV,1,4,"span",9),g(2,iV,1,2,"ChevronDownIcon",10),q()),2&t){const e=f(2);p(1),h("ngIf",e.accordion.collapseIcon),p(1),h("ngIf",!e.accordion.collapseIcon)}}function oV(t,n){if(1&t&&x(0,"span",11),2&t){const e=f(3);ee(e.accordion.expandIcon),h("ngClass",e.iconClass),L("aria-hidden",!0)}}function sV(t,n){1&t&&x(0,"ChevronRightIcon",11),2&t&&(h("ngClass",f(3).iconClass),L("aria-hidden",!0))}function aV(t,n){if(1&t&&(W(0),g(1,oV,1,4,"span",9),g(2,sV,1,2,"ChevronRightIcon",10),q()),2&t){const e=f(2);p(1),h("ngIf",e.accordion.expandIcon),p(1),h("ngIf",!e.accordion.expandIcon)}}function lV(t,n){if(1&t&&(W(0),g(1,rV,3,2,"ng-container",3),g(2,aV,3,2,"ng-container",3),q()),2&t){const e=f();p(1),h("ngIf",e.selected),p(1),h("ngIf",!e.selected)}}function cV(t,n){}function uV(t,n){1&t&&g(0,cV,0,0,"ng-template")}function dV(t,n){if(1&t&&(v(0,"span",12),A(1),y()),2&t){const e=f();p(1),pe(" ",e.header," ")}}function pV(t,n){1&t&&Z(0)}function hV(t,n){1&t&&ni(0,1,["*ngIf","hasHeaderFacet"])}function fV(t,n){1&t&&Z(0)}function gV(t,n){if(1&t&&(W(0),g(1,fV,1,0,"ng-container",6),q()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.contentTemplate)}}const mV=["*",[["p-header"]]],_V=function(t){return{$implicit:t}},u2=function(t){return{transitionParams:t}},yV=function(t){return{value:"visible",params:t}},vV=function(t){return{value:"hidden",params:t}},bV=["*","p-header"],CV=["*"];let d2=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new F;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,i,r){this.el=i,this.changeDetector=r,this.accordion=e,this.id=kt()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let i=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:i});else{if(!this.accordion.multiple)for(var r=0;r0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(i){return new(i||t)(w(Ee(()=>p2)),w(Ue),w(bt))};static \u0275cmp=J({type:t,selectors:[["p-accordionTab"]],contentQueries:function(i,r,o){if(1&i&&(Vt(o,eV,4),Vt(o,Tt,4)),2&i){let s;ce(s=ue())&&(r.headerFacet=s),ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:bV,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(i,r){1&i&&(Hi(mV),v(0,"div",0)(1,"div",1)(2,"a",2),O("click",function(s){return r.toggle(s)})("keydown",function(s){return r.onKeydown(s)}),g(3,lV,3,2,"ng-container",3),g(4,uV,1,0,null,4),g(5,dV,2,1,"span",5),g(6,pV,1,0,"ng-container",6),g(7,hV,1,0,"ng-content",3),y()(),v(8,"div",7)(9,"div",8),ni(10),g(11,gV,2,1,"ng-container",3),y()()()),2&i&&(ii("p-accordion-tab-active",r.selected),h("ngClass",r.tabStyleClass)("ngStyle",r.tabStyle),L("data-pc-name","accordiontab"),p(1),ii("p-highlight",r.selected)("p-disabled",r.disabled),L("aria-level",r.headerAriaLevel)("data-p-disabled",r.disabled)("data-pc-section","header"),p(1),Nt(r.headerStyle),h("ngClass",r.headerStyleClass),L("tabindex",r.disabled?null:0)("id",r.getTabHeaderActionId(r.id))("aria-controls",r.getTabContentId(r.id))("aria-expanded",r.selected)("aria-disabled",r.disabled)("data-pc-section","headeraction"),p(1),h("ngIf",!r.iconTemplate),p(1),h("ngTemplateOutlet",r.iconTemplate)("ngTemplateOutletContext",te(35,_V,r.selected)),p(1),h("ngIf",!r.hasHeaderFacet),p(1),h("ngTemplateOutlet",r.headerTemplate),p(1),h("ngIf",r.hasHeaderFacet),p(1),h("@tabContent",r.selected?te(39,yV,te(37,u2,r.transitionOptions)):te(43,vV,te(41,u2,r.transitionOptions))),L("id",r.getTabContentId(r.id))("aria-hidden",!r.selected)("aria-labelledby",r.getTabHeaderActionId(r.id))("data-pc-section","toggleablecontent"),p(1),h("ngClass",r.contentStyleClass)("ngStyle",r.contentStyle),p(2),h("ngIf",r.contentTemplate&&(r.cache?r.loaded:r.selected)))},dependencies:function(){return[pt,Je,Ht,Bt,hd,Ss]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Yr("tabContent",[Ou("hidden",Ge({height:"0"})),Ou("visible",Ge({height:"*"})),pn("visible <=> hidden",[Jt("{{transitionParams}}")]),pn("void => *",Jt(0))])]},changeDetection:0})}return t})(),p2=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new F;onOpen=new F;activeIndexChange=new F;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,i){this.el=e,this.changeDetector=i}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const i=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);i?this.changeFocusedTab(i):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const i=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);i?this.changeFocusedTab(i):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const i=this.findFirstHeaderAction();this.changeFocusedTab(i),e.preventDefault()}changeFocusedTab(e){e&&(E.focus(e),this.selectOnFocus&&this.tabs.forEach((i,r)=>{let o=this.multiple?this._activeIndex.includes(r):r===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),i.id==e.id&&(i.selected=!i.selected,this._activeIndex.includes(r)?this._activeIndex=this._activeIndex.filter(s=>s!==r):this._activeIndex.push(r))):i.id==e.id?(i.selected=!i.selected,this._activeIndex=r):i.selected=!1,i.selectedChange.emit(o),this.activeIndexChange.emit(this._activeIndex),i.changeDetector.markForCheck()}))}findNextHeaderAction(e,i=!1){const o=E.findSingle(i?e:e.nextElementSibling,'[data-pc-section="header"]');return o?E.getAttribute(o,"data-p-disabled")?this.findNextHeaderAction(o.parentElement.parentElement):E.findSingle(o,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,i=!1){const o=E.findSingle(i?e:e.previousElementSibling,'[data-pc-section="header"]');return o?E.getAttribute(o,"data-p-disabled")?this.findPrevHeaderAction(o.parentElement.parentElement):E.findSingle(o,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const i=this.findLastHeaderAction();this.changeFocusedTab(i),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(i.selected){if(!this.multiple)return void(e=r);e.push(r)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(w(Ue),w(bt))};static \u0275cmp=J({type:t,selectors:[["p-accordion"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,d2,4),2&i){let s;ce(s=ue())&&(r.tabList=s)}},hostAttrs:[1,"p-element"],hostBindings:function(i,r){1&i&&O("keydown",function(s){return r.onKeydown(s)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:CV,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(i,r){1&i&&(Hi(),v(0,"div",0),ni(1),y()),2&i&&(ee(r.styleClass),h("ngClass","p-accordion p-component")("ngStyle",r.style))},dependencies:[pt,Bt],encapsulation:2,changeDetection:0})}return t})(),wV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,hd,Ss,lt]})}return t})(),pl=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),Es=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,i,r,o,s,a){this.document=e,this.platformId=i,this.renderer=r,this.el=o,this.zone=s,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){Wr(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let i=this.getInk();if(!i||"none"===this.document.defaultView?.getComputedStyle(i,null).display)return;if(E.removeClass(i,"p-ink-active"),!E.getHeight(i)&&!E.getWidth(i)){let a=Math.max(E.getOuterWidth(this.el.nativeElement),E.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=E.getOffset(this.el.nativeElement),o=e.pageX-r.left+this.document.body.scrollTop-E.getWidth(i)/2,s=e.pageY-r.top+this.document.body.scrollLeft-E.getHeight(i)/2;this.renderer.setStyle(i,"top",s+"px"),this.renderer.setStyle(i,"left",o+"px"),E.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&E.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let i=0;i{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();const Sr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let h2=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(Sr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,i){this.el=e,this.document=i}ngAfterViewInit(){E.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[Sr.button,Sr.component];return this.icon&&!this.label&&V.isEmpty(this.htmlElement.textContent)&&e.push(Sr.iconOnly),this.loading&&(e.push(Sr.disabled,Sr.loading),!this.icon&&this.label&&e.push(Sr.labelOnly),this.icon&&!this.label&&!V.isEmpty(this.htmlElement.textContent)&&e.push(Sr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&E.addClass(e,i);let r=this.getIconClass();r&&E.addMultipleClasses(e,r),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=E.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=E.findSingle(this.htmlElement,".p-button-icon"),i=E.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(i?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(i){return new(i||t)(w(Ue),w(rt))};static \u0275dir=ne({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),hl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,lt,pl,lt]})}return t})(),so=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();const RV=["cb"];function PV(t,n){1&t&&x(0,"span",10),2&t&&h("ngClass",f(3).checkboxIcon)}function FV(t,n){1&t&&x(0,"CheckIcon",11),2&t&&h("styleClass","p-checkbox-icon")}function LV(t,n){if(1&t&&(W(0),g(1,PV,1,1,"span",8),g(2,FV,1,1,"CheckIcon",9),q()),2&t){const e=f(2);p(1),h("ngIf",e.checkboxIcon),p(1),h("ngIf",!e.checkboxIcon)}}function NV(t,n){}function VV(t,n){1&t&&g(0,NV,0,0,"ng-template")}function BV(t,n){if(1&t&&(v(0,"span",12),g(1,VV,1,0,null,13),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.checkboxIconTemplate)}}function HV(t,n){if(1&t&&(W(0),g(1,LV,3,2,"ng-container",5),g(2,BV,2,1,"span",7),q()),2&t){const e=f();p(1),h("ngIf",!e.checkboxIconTemplate),p(1),h("ngIf",e.checkboxIconTemplate)}}const $V=function(t,n,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function zV(t,n){if(1&t){const e=B();v(0,"label",14),O("click",function(r){D(e);const o=f(),s=Xe(3);return S(o.onClick(r,s,!0))}),A(1),y()}if(2&t){const e=f();ee(e.labelStyleClass),h("ngClass",Un(5,$V,e.checked(),e.disabled,e.focused)),L("for",e.inputId),p(1),Y(e.label)}}const UV=function(t,n,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":n,"p-checkbox-focused":e}},jV=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-focus":e}},GV={provide:$t,useExisting:Ee(()=>bm),multi:!0};let bm=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new F;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!V.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:V.contains(this.value,this.model)}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-checkbox"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&Fe(RV,5),2&i){let o;ce(o=ue())&&(r.inputViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Pe([GV])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(i,r){if(1&i){const o=B();v(0,"div",0)(1,"div",1)(2,"input",2,3),O("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()})("change",function(a){return r.handleChange(a)}),y()(),v(4,"div",4),O("click",function(a){D(o);const l=Xe(3);return S(r.onClick(a,l,!0))}),g(5,HV,3,2,"ng-container",5),y()(),g(6,zV,2,9,"label",6)}2&i&&(ee(r.styleClass),h("ngStyle",r.style)("ngClass",Un(18,UV,r.checked(),r.disabled,r.focused)),p(2),h("readonly",r.readonly)("value",r.value)("checked",r.checked())("disabled",r.disabled),L("id",r.inputId)("name",r.name)("tabindex",r.tabindex)("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("aria-checked",r.checked())("required",r.required),p(2),h("ngClass",Un(22,jV,r.checked(),r.disabled,r.focused)),p(1),h("ngIf",r.checked()),p(1),h("ngIf",r.label))},dependencies:function(){return[pt,Je,Ht,Bt,so]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),WV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,so,lt]})}return t})(),qV=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=E.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(i){return new(i||t)(w(Ue))};static \u0275dir=ne({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),KV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();const ZV=["overlay"],YV=["content"];function QV(t,n){1&t&&Z(0)}const JV=function(t,n,e){return{showTransitionParams:t,hideTransitionParams:n,transform:e}},XV=function(t){return{value:"visible",params:t}},eB=function(t){return{mode:t}},tB=function(t){return{$implicit:t}};function nB(t,n){if(1&t){const e=B();v(0,"div",1,3),O("click",function(r){return D(e),S(f(2).onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){return D(e),S(f(2).onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){return D(e),S(f(2).onOverlayContentAnimationDone(r))}),ni(2),g(3,QV,1,0,"ng-container",4),y()}if(2&t){const e=f(2);ee(e.contentStyleClass),h("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",te(11,XV,Un(7,JV,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),p(3),h("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",te(15,tB,te(13,eB,e.overlayMode)))}}const iB=function(t,n,e,i,r,o,s,a,l,c,u,d,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":n,"p-overlay-top":e,"p-overlay-top-start":i,"p-overlay-top-end":r,"p-overlay-bottom":o,"p-overlay-bottom-start":s,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":d,"p-overlay-right-start":m,"p-overlay-right-end":_}};function rB(t,n){if(1&t){const e=B();v(0,"div",1,2),O("click",function(r){return D(e),S(f().onOverlayClick(r))}),g(2,nB,4,17,"div",0),y()}if(2&t){const e=f();ee(e.styleClass),h("ngStyle",e.style)("ngClass",Bb(5,iB,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),p(2),h("ngIf",e.visible)}}const oB=["*"],sB={provide:$t,useExisting:Ee(()=>f2),multi:!0},aB=Au([Ge({transform:"{{transform}}",opacity:0}),Jt("{{showTransitionParams}}")]),lB=Au([Jt("{{hideTransitionParams}}",Ge({transform:"{{transform}}",opacity:0}))]);let f2=(()=>{class t{document;platformId;el;renderer;config;overlayService;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return V.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return V.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return V.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return V.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new F;onBeforeShow=new F;onShow=new F;onBeforeHide=new F;onHide=new F;onAnimationStart=new F;onAnimationDone=new F;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(Wr(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return E.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,i,r,o,s,a,l){this.document=e,this.platformId=i,this.el=r,this.renderer=o,this.config=s,this.overlayService=a,this.zone=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&E.focus(this.targetEl),this.modal&&E.addClass(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&E.focus(this.targetEl),this.modal&&E.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&E.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&jt.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),E.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&E.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(i,!0),this.bindListeners();break;case"void":this.hide(i,!0),this.unbindListeners(),E.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),jt.clear(i),this.modalVisible=!1}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vm(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const r=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&r}):r)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!E.isTouchDevice()}):!E.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{this.overlayOptions.hideOnEscape&&27===e.keyCode&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!E.isTouchDevice()}):!E.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(E.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),jt.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(w(rt),w($n),w(Ue),w(xt),w(ro),w(ym),w(Te))};static \u0275cmp=J({type:t,selectors:[["p-overlay"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(ZV,5),Fe(YV,5)),2&i){let o;ce(o=ue())&&(r.overlayViewChild=o.first),ce(o=ue())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Pe([sB])],ngContentSelectors:oB,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(Hi(),g(0,rB,3,20,"div",0)),2&i&&h("ngIf",r.modalVisible)},dependencies:[pt,Je,Ht,Bt],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Yr("overlayContentAnimation",[pn(":enter",[Ru(aB)]),pn(":leave",[Ru(lB)])])]},changeDetection:0})}return t})(),g2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,lt,lt]})}return t})();const cB=["element"],uB=["content"];function dB(t,n){1&t&&Z(0)}const Cm=function(t,n){return{$implicit:t,options:n}};function pB(t,n){if(1&t&&(W(0),g(1,dB,1,0,"ng-container",7),q()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",at(2,Cm,e.loadedItems,e.getContentOptions()))}}function hB(t,n){1&t&&Z(0)}function fB(t,n){if(1&t&&(W(0),g(1,hB,1,0,"ng-container",7),q()),2&t){const e=n.$implicit,i=n.index,r=f(3);p(1),h("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",at(2,Cm,e,r.getOptions(i)))}}const gB=function(t){return{"p-scroller-loading":t}};function mB(t,n){if(1&t&&(v(0,"div",8,9),g(2,fB,2,5,"ng-container",10),y()),2&t){const e=f(2);h("ngClass",te(4,gB,e.d_loading))("ngStyle",e.contentStyle),p(2),h("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function _B(t,n){1&t&&x(0,"div",11),2&t&&h("ngStyle",f(2).spacerStyle)}function yB(t,n){1&t&&Z(0)}const vB=function(t){return{numCols:t}},m2=function(t){return{options:t}};function bB(t,n){if(1&t&&(W(0),g(1,yB,1,0,"ng-container",7),q()),2&t){const e=n.index,i=f(4);p(1),h("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",te(4,m2,i.getLoaderOptions(e,i.both&&te(2,vB,i._numItemsInViewport.cols))))}}function CB(t,n){if(1&t&&(W(0),g(1,bB,2,6,"ng-container",14),q()),2&t){const e=f(3);p(1),h("ngForOf",e.loaderArr)}}function wB(t,n){1&t&&Z(0)}const TB=function(){return{styleClass:"p-scroller-loading-icon"}};function DB(t,n){if(1&t&&(W(0),g(1,wB,1,0,"ng-container",7),q()),2&t){const e=f(4);p(1),h("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",te(3,m2,$i(2,TB)))}}function SB(t,n){1&t&&x(0,"SpinnerIcon",16),2&t&&h("styleClass","p-scroller-loading-icon")}function EB(t,n){if(1&t&&(g(0,DB,2,5,"ng-container",0),g(1,SB,1,1,"ng-template",null,15,ai)),2&t){const e=Xe(2);h("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const IB=function(t){return{"p-component-overlay":t}};function xB(t,n){if(1&t&&(v(0,"div",12),g(1,CB,2,1,"ng-container",0),g(2,EB,3,2,"ng-template",null,13,ai),y()),2&t){const e=Xe(3),i=f(2);h("ngClass",te(3,IB,!i.loaderTemplate)),p(1),h("ngIf",i.loaderTemplate)("ngIfElse",e)}}const MB=function(t,n,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":n,"p-horizontal-scroll":e}};function kB(t,n){if(1&t){const e=B();W(0),v(1,"div",2,3),O("scroll",function(r){return D(e),S(f().onContainerScroll(r))}),g(3,pB,2,5,"ng-container",0),g(4,mB,3,6,"ng-template",null,4,ai),g(6,_B,1,1,"div",5),g(7,xB,4,5,"div",6),y(),q()}if(2&t){const e=Xe(5),i=f();p(1),ee(i._styleClass),h("ngStyle",i._style)("ngClass",Un(10,MB,i.inline,i.both,i.horizontal)),L("id",i._id)("tabindex",i.tabindex),p(2),h("ngIf",i.contentTemplate)("ngIfElse",e),p(3),h("ngIf",i._showSpacer),p(1),h("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function OB(t,n){1&t&&Z(0)}const AB=function(t,n){return{rows:t,columns:n}};function RB(t,n){if(1&t&&(W(0),g(1,OB,1,0,"ng-container",7),q()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",at(5,Cm,e.items,at(2,AB,e._items,e.loadedColumns)))}}function PB(t,n){if(1&t&&(ni(0),g(1,RB,2,8,"ng-container",17)),2&t){const e=f();p(1),h("ngIf",e.contentTemplate)}}const FB=["*"];let _2=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}onLazyLoad=new F;onScroll=new F;onScrollIndexChange=new F;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,i,r,o,s){this.document=e,this.platformId=i,this.renderer=r,this.cd=o,this.zone=s}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Wr(this.platformId)&&E.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=E.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=E.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=E.getWidth(this.contentEl),this.defaultContentHeight=E.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||E.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),o=this.getContentPosition(),s=(u=0,d)=>u<=d?0:u,a=(u,d,m)=>u*d+m,l=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:i});let c=0;this.both?(c={rows:s(e[0],r[0]),cols:s(e[1],r[1])},l(a(c.cols,this._itemSize[1],o.left),a(c.rows,this._itemSize[0],o.top))):(c=s(e,r),this.horizontal?l(a(c,this._itemSize,o.left),0):l(0,a(c,this._itemSize,o.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,i,r="auto"){if(i){const{first:o,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(o,s)=>Math.floor(o/(s||o));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?s:o,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,i]=[E.getWidth(this.contentEl),E.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[r,o]=[E.getWidth(this.elementViewChild.nativeElement),E.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=rthis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(o||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),o=(T,M)=>T?T>M?T-M:T:0,s=(T,M)=>Math.floor(T/(M||T)),a=(T,M,I,P,N,X)=>T<=N?N:X?I-P-N:M+N-1,l=(T,M,I,P,N,X,be)=>T<=X?0:Math.max(0,be?TM?I:T-2*X),c=(T,M,I,P,N,X=!1)=>{let be=M+P+2*N;return T>=N&&(be+=N+1),this.getLast(be,X)},u=o(i.scrollTop,r.top),d=o(i.scrollLeft,r.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,C=this.lastScrollPos;if(this.both){const T=this.lastScrollPos.top<=u,M=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(T||M)){const I={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},P={rows:a(I.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],T),cols:a(I.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],M)};m={rows:l(I.rows,P.rows,this.first.rows,0,0,this.d_numToleratedItems[0],T),cols:l(I.cols,P.cols,this.first.cols,0,0,this.d_numToleratedItems[1],M)},_={rows:c(I.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(I.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,C={top:u,left:d}}}else{const T=this.horizontal?d:u,M=this.lastScrollPos<=T;if(!this._appendOnly||this._appendOnly&&M){const I=s(T,this._itemSize);m=l(I,a(I,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,M),this.first,0,0,this.d_numToleratedItems,M),_=c(I,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,C=T}}return{first:m,last:_,isRangeChanged:b,scrollPos:C}}onScrollChange(e){const{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){const a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){Wr(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,i=E.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(E.isVisible(this.elementViewChild?.nativeElement)){const[e,i]=[E.getWidth(this.elementViewChild?.nativeElement),E.getHeight(this.elementViewChild?.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=E.getWidth(this.contentEl),this.defaultContentHeight=E.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}static \u0275fac=function(i){return new(i||t)(w(rt),w($n),w(xt),w(bt),w(Te))};static \u0275cmp=J({type:t,selectors:[["p-scroller"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(cB,5),Fe(uB,5)),2&i){let o;ce(o=ue())&&(r.elementViewChild=o.first),ce(o=ue())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Ft],ngContentSelectors:FB,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(i,r){if(1&i&&(Hi(),g(0,kB,8,14,"ng-container",0),g(1,PB,2,1,"ng-template",null,1,ai)),2&i){const o=Xe(2);h("ngIf",!r._disabled)("ngIfElse",o)}},dependencies:function(){return[pt,Wi,Je,Ht,Bt,pl]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),fd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,lt,pl,lt]})}return t})(),LB=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:kt()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,i,r,o,s,a){this.platformId=e,this.el=i,this.zone=r,this.config=o,this.renderer=s,this.viewContainer=a}ngAfterViewInit(){Wr(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(E.hasClass(e.target,"p-tooltip")||E.hasClass(e.target,"p-tooltip-arrow")||E.hasClass(e.target,"p-tooltip-text")||E.hasClass(e.relatedTarget,"p-tooltip")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?E.appendChild(this.container,this.el.nativeElement):E.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",i=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),E.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?jt.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&jt.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof si){const i=this.viewContainer.createEmbeddedView(e);i.detectChanges(),i.rootNodes.forEach(r=>this.tooltipText.appendChild(r))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+E.getWindowScrollLeft(),top:e.top+E.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+E.getOuterWidth(this.el.nativeElement),r=e.top+(E.getOuterHeight(this.el.nativeElement)-E.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-E.getOuterWidth(this.container),r=e.top+(E.getOuterHeight(this.el.nativeElement)-E.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(E.getOuterWidth(this.el.nativeElement)-E.getOuterWidth(this.container))/2,r=e.top-E.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(E.getOuterWidth(this.el.nativeElement)-E.getOuterWidth(this.container))/2,r=e.top+E.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return E.hasClass(e,"p-inputwrapper")?E.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,o=E.getOuterWidth(this.container),s=E.getOuterHeight(this.container),a=E.getViewport();return r+o>a.width||r<0||i<0||i+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vm(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):E.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&jt.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(i){return new(i||t)(w($n),w(Ue),w(Te),w(ro),w(xt),w(jn))};static \u0275dir=ne({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(i,r){1&i&&O("keydown.escape",function(s){return r.onPressEscape(s)},0,sv)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Ft]})}return t})(),NB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})(),Zn=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),y2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})();function VB(t,n){if(1&t&&(v(0,"span"),A(1),y()),2&t){const e=f();let i;p(1),Y(null!==(i=e.label)&&void 0!==i?i:"empty")}}function BB(t,n){1&t&&Z(0)}const fl=function(t){return{height:t}},HB=function(t,n){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":n}},wm=function(t){return{$implicit:t}},$B=["container"],zB=["filter"],UB=["in"],jB=["editableInput"],GB=["items"],WB=["scroller"],qB=["overlay"];function KB(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(2);p(1),Y(e.label||"empty")}}function ZB(t,n){1&t&&Z(0)}const YB=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function QB(t,n){if(1&t&&(v(0,"span",14),g(1,KB,2,1,"ng-container",8),g(2,ZB,1,0,"ng-container",15),y()),2&t){const e=f();h("ngClass",te(9,YB,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),L("id",e.labelId),p(1),h("ngIf",!e.selectedItemTemplate),p(1),h("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",te(11,wm,e.selectedOption))}}const JB=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function XB(t,n){if(1&t&&(v(0,"span",16),A(1),y()),2&t){const e=f();h("ngClass",te(2,JB,null==e.placeholder||0===e.placeholder.length)),p(1),Y(e.placeholder||"empty")}}function eH(t,n){if(1&t){const e=B();v(0,"input",17,18),O("input",function(r){return D(e),S(f().onEditableInputChange(r))})("focus",function(r){return D(e),S(f().onEditableInputFocus(r))})("blur",function(r){return D(e),S(f().onInputBlur(r))}),y()}if(2&t){const e=f();h("disabled",e.disabled),L("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function tH(t,n){if(1&t){const e=B();v(0,"TimesIcon",21),O("click",function(r){return D(e),S(f(2).clear(r))}),y()}2&t&&h("styleClass","p-dropdown-clear-icon")}function nH(t,n){}function iH(t,n){1&t&&g(0,nH,0,0,"ng-template")}function rH(t,n){if(1&t){const e=B();v(0,"span",22),O("click",function(r){return D(e),S(f(2).clear(r))}),g(1,iH,1,0,null,23),y()}if(2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.clearIconTemplate)}}function oH(t,n){if(1&t&&(W(0),g(1,tH,1,1,"TimesIcon",19),g(2,rH,2,1,"span",20),q()),2&t){const e=f();p(1),h("ngIf",!e.clearIconTemplate),p(1),h("ngIf",e.clearIconTemplate)}}function sH(t,n){1&t&&x(0,"span",26),2&t&&h("ngClass",f(2).dropdownIcon)}function aH(t,n){1&t&&x(0,"ChevronDownIcon",27),2&t&&h("styleClass","p-dropdown-trigger-icon")}function lH(t,n){if(1&t&&(W(0),g(1,sH,1,1,"span",24),g(2,aH,1,1,"ChevronDownIcon",25),q()),2&t){const e=f();p(1),h("ngIf",e.dropdownIcon),p(1),h("ngIf",!e.dropdownIcon)}}function cH(t,n){}function uH(t,n){1&t&&g(0,cH,0,0,"ng-template")}function dH(t,n){if(1&t&&(v(0,"span",28),g(1,uH,1,0,null,23),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dropdownIconTemplate)}}function pH(t,n){1&t&&Z(0)}function hH(t,n){1&t&&Z(0)}const v2=function(t){return{options:t}};function fH(t,n){if(1&t&&(W(0),g(1,hH,1,0,"ng-container",15),q()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",te(2,v2,e.filterOptions))}}function gH(t,n){1&t&&x(0,"SearchIcon",27),2&t&&h("styleClass","p-dropdown-filter-icon")}function mH(t,n){}function _H(t,n){1&t&&g(0,mH,0,0,"ng-template")}function yH(t,n){if(1&t&&(v(0,"span",41),g(1,_H,1,0,null,23),y()),2&t){const e=f(4);p(1),h("ngTemplateOutlet",e.filterIconTemplate)}}function vH(t,n){if(1&t){const e=B();v(0,"div",37)(1,"input",38,39),O("keydown.enter",function(r){return r.preventDefault()})("keydown",function(r){return D(e),S(f(3).onKeydown(r,!1))})("input",function(r){return D(e),S(f(3).onFilterInputChange(r))}),y(),g(3,gH,1,1,"SearchIcon",25),g(4,yH,2,1,"span",40),y()}if(2&t){const e=f(3);p(1),h("value",e.filterValue||""),L("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId),p(2),h("ngIf",!e.filterIconTemplate),p(1),h("ngIf",e.filterIconTemplate)}}function bH(t,n){if(1&t&&(v(0,"div",34),O("click",function(i){return i.stopPropagation()}),g(1,fH,2,4,"ng-container",35),g(2,vH,5,6,"ng-template",null,36,ai),y()),2&t){const e=Xe(3),i=f(2);p(1),h("ngIf",i.filterTemplate)("ngIfElse",e)}}function CH(t,n){1&t&&Z(0)}const b2=function(t,n){return{$implicit:t,options:n}};function wH(t,n){if(1&t&&g(0,CH,1,0,"ng-container",15),2&t){const e=n.$implicit,i=n.options;f(2),h("ngTemplateOutlet",Xe(7))("ngTemplateOutletContext",at(2,b2,e,i))}}function TH(t,n){1&t&&Z(0)}function DH(t,n){if(1&t&&g(0,TH,1,0,"ng-container",15),2&t){const e=n.options;h("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",te(2,v2,e))}}function SH(t,n){1&t&&(W(0),g(1,DH,1,4,"ng-template",44),q())}function EH(t,n){if(1&t){const e=B();v(0,"p-scroller",42,43),O("onLazyLoad",function(r){return D(e),S(f(2).onLazyLoad.emit(r))}),g(2,wH,1,5,"ng-template",13),g(3,SH,2,0,"ng-container",8),y()}if(2&t){const e=f(2);Nt(te(8,fl,e.scrollHeight)),h("items",e.optionsToDisplay)("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),p(3),h("ngIf",e.loaderTemplate)}}function IH(t,n){1&t&&Z(0)}const xH=function(){return{}};function MH(t,n){if(1&t&&(W(0),g(1,IH,1,0,"ng-container",15),q()),2&t){f();const e=Xe(7),i=f();p(1),h("ngTemplateOutlet",e)("ngTemplateOutletContext",at(3,b2,i.optionsToDisplay,$i(2,xH)))}}function kH(t,n){if(1&t&&(v(0,"span"),A(1),y()),2&t){const e=f().$implicit,i=f(4);p(1),Y(i.getOptionGroupLabel(e)||"empty")}}function OH(t,n){1&t&&Z(0)}function AH(t,n){1&t&&Z(0)}const C2=function(t,n){return{$implicit:t,selectedOption:n}};function RH(t,n){if(1&t&&(v(0,"li",50),g(1,kH,2,1,"span",8),g(2,OH,1,0,"ng-container",15),y(),g(3,AH,1,0,"ng-container",15)),2&t){const e=n.$implicit,i=f(2).options,r=Xe(5),o=f(2);h("ngStyle",te(6,fl,i.itemSize+"px")),p(1),h("ngIf",!o.groupTemplate),p(1),h("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",te(8,wm,e)),p(1),h("ngTemplateOutlet",r)("ngTemplateOutletContext",at(10,C2,o.getOptionGroupChildren(e),o.selectedOption))}}function PH(t,n){if(1&t&&(W(0),g(1,RH,4,13,"ng-template",49),q()),2&t){const e=f().$implicit;p(1),h("ngForOf",e)}}function FH(t,n){1&t&&Z(0)}function LH(t,n){if(1&t&&(W(0),g(1,FH,1,0,"ng-container",15),q()),2&t){const e=f().$implicit,i=Xe(5),r=f(2);p(1),h("ngTemplateOutlet",i)("ngTemplateOutletContext",at(2,C2,e,r.selectedOption))}}function NH(t,n){if(1&t){const e=B();v(0,"p-dropdownItem",51),O("onClick",function(r){return D(e),S(f(4).onItemClick(r))}),y()}if(2&t){const e=n.$implicit,i=f().selectedOption,r=f(3);h("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function VH(t,n){1&t&&g(0,NH,1,5,"ng-template",49),2&t&&h("ngForOf",n.$implicit)}function BH(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(4);p(1),pe(" ",e.emptyFilterMessageLabel," ")}}function HH(t,n){1&t&&Z(0,null,53)}function $H(t,n){if(1&t&&(v(0,"li",52),g(1,BH,2,1,"ng-container",35),g(2,HH,2,0,"ng-container",23),y()),2&t){const e=f().options,i=f(2);h("ngStyle",te(4,fl,e.itemSize+"px")),p(1),h("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),p(1),h("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function zH(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(4);p(1),pe(" ",e.emptyMessageLabel," ")}}function UH(t,n){1&t&&Z(0,null,54)}function jH(t,n){if(1&t&&(v(0,"li",52),g(1,zH,2,1,"ng-container",35),g(2,UH,2,0,"ng-container",23),y()),2&t){const e=f().options,i=f(2);h("ngStyle",te(4,fl,e.itemSize+"px")),p(1),h("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),p(1),h("ngTemplateOutlet",i.emptyTemplate)}}function GH(t,n){if(1&t&&(v(0,"ul",45,46),g(2,PH,2,1,"ng-container",8),g(3,LH,2,5,"ng-container",8),g(4,VH,1,1,"ng-template",null,47,ai),g(6,$H,3,6,"li",48),g(7,jH,3,6,"li",48),y()),2&t){const e=n.options,i=f(2);Nt(e.contentStyle),h("ngClass",e.contentStyleClass),L("id",i.listId),p(2),h("ngIf",i.group),p(1),h("ngIf",!i.group),p(3),h("ngIf",i.filterValue&&i.isEmpty()),p(1),h("ngIf",!i.filterValue&&i.isEmpty())}}function WH(t,n){1&t&&Z(0)}function qH(t,n){if(1&t&&(v(0,"div",29),g(1,pH,1,0,"ng-container",23),g(2,bH,4,2,"div",30),v(3,"div",31),g(4,EH,4,10,"p-scroller",32),g(5,MH,2,6,"ng-container",8),g(6,GH,8,8,"ng-template",null,33,ai),y(),g(8,WH,1,0,"ng-container",23),y()),2&t){const e=f();ee(e.panelStyleClass),h("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),p(1),h("ngTemplateOutlet",e.headerTemplate),p(1),h("ngIf",e.filter),p(1),Fc("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),p(1),h("ngIf",e.virtualScroll),p(1),h("ngIf",!e.virtualScroll),p(3),h("ngTemplateOutlet",e.footerTemplate)}}const KH=function(t,n,e,i){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":n,"p-focus":e,"p-dropdown-clearable":i}},ZH={provide:$t,useExisting:Ee(()=>Tm),multi:!0};let YH=(()=>{class t{option;selected;label;disabled;visible;itemSize;template;onClick=new F;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=J({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(v(0,"li",0),O("click",function(s){return r.onOptionClick(s)}),g(1,VB,2,1,"span",1),g(2,BB,1,0,"ng-container",2),y()),2&i&&(h("ngStyle",te(8,fl,r.itemSize+"px"))("id",r.selected?"p-highlighted-option":"")("ngClass",at(10,HB,r.selected,r.disabled)),L("aria-label",r.label)("aria-selected",r.selected),p(1),h("ngIf",!r.template),p(1),h("ngTemplateOutlet",r.template)("ngTemplateOutletContext",te(13,wm,r.option)))},dependencies:[pt,Je,Ht,Bt,Es],encapsulation:2})}return t})(),Tm=(()=>{class t{el;renderer;cd;zone;filterService;config;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel;optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}get options(){return this._options}set options(e){this._options=e,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&V.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}onChange=new F;onFilter=new F;onFocus=new F;onBlur=new F;onClick=new F;onShow=new F;onHide=new F;onClear=new F;onLazyLoad=new F;containerViewChild;filterViewChild;accessibleViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;selectedOption;_options;value;onModelChange=()=>{};onModelTouched=()=>{};optionsToDisplay;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue;searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;id=kt();labelId;listId;constructor(e,i,r,o,s,a){this.el=e,this.renderer=i,this.cd=r,this.zone=o,this.filterService=s,this.config=a}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return"number"==typeof this.selectedOption&&(this.selectedOption=this.selectedOption.toString()),this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Kn.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Kn.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.value?!!this.value:this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?V.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?V.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const i=e.option;this.isOptionDisabled(i)||(this.selectItem(e.originalEvent,i),this.accessibleViewChild?.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(e,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=E.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&E.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.updateSelectedOption(e),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.getOptionGroupChildren(this.optionsToDisplay[0])[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onMouseclick(e){this.disabled||this.readonly||this.isInputClick(e)||(this.onClick.emit(e),this.accessibleViewChild?.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}isInputClick(e){const i=e.target;return E.hasClass(i,"p-dropdown-clear-icon")||null!==i.closest(".p-dropdown-clear-icon")||i.isSameNode(this.accessibleViewChild?.nativeElement)||this.editableInputViewChild&&i.isSameNode(this.editableInputViewChild.nativeElement)}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputFocus(e){this.focused=!0,this.hide(),this.onFocus.emit(e)}onEditableInputChange(e){this.value=e.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=E.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==i&&this.scroller?.scrollToIndex(i)}else{let i=E.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e-1;0<=r;r--){let o=this.optionsToDisplay[r];if(!this.isOptionDisabled(o)){i=o;break}}if(!i)for(let r=this.optionsToDisplay.length-1;r>=e;r--){let o=this.optionsToDisplay[r];if(!this.isOptionDisabled(o)){i=o;break}}}return i}findNextEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e+1;r0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findNextEnabledOption(r);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 38:if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let o=r.itemIndex-1;if(o>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[o]),this.selectedOptionUpdated=!0;else if(o<0){let s=this.optionsToDisplay[r.groupIndex-1];s&&(this.selectItem(e,this.getOptionGroupChildren(s)[this.getOptionGroupChildren(s).length-1]),this.selectedOptionUpdated=!0)}}}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findPrevEnabledOption(r);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case 27:case 9:this.hide(),e.preventDefault();break;default:i&&!e.metaKey&&17!==e.which&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=e.key;let r;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+i:i,this.group){let o=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};r=this.searchOptionWithinGroup(o)}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;r=this.searchOption(++o)}r&&!this.isOptionDisabled(r)&&(this.selectItem(e,r),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let i;return this.searchValue&&(i=this.searchOptionInRange(e,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,e))),i}searchOptionInRange(e,i){for(let r=e;r{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,g2,lt,NB,oo,fd,KV,Zn,Ss,y2,g2,lt,fd]})}return t})(),md=(()=>{class t{el;ngModel;cd;filled;constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(i){return new(i||t)(w(Ue),w(gs,8),w(bt))};static \u0275dir=ne({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(i,r){1&i&&O("input",function(s){return r.onInput(s)}),2&i&&ii("p-filled",r.filled)}})}return t})(),Dm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();function QH(t,n){1&t&&Z(0)}function JH(t,n){1&t&&x(0,"TimesIcon",11),2&t&&(h("styleClass","p-sidebar-close-icon"),L("data-pc-section","closeicon"))}function XH(t,n){}function e$(t,n){1&t&&g(0,XH,0,0,"ng-template")}function t$(t,n){if(1&t&&(v(0,"span",12),g(1,e$,1,0,null,4),y()),2&t){const e=f(3);L("data-pc-section","closeicon"),p(1),h("ngTemplateOutlet",e.closeIconTemplate)}}function n$(t,n){if(1&t){const e=B();v(0,"button",8),O("click",function(r){return D(e),S(f(2).close(r))})("keydown.enter",function(r){return D(e),S(f(2).close(r))}),g(1,JH,1,2,"TimesIcon",9),g(2,t$,2,2,"span",10),y()}if(2&t){const e=f(2);L("aria-label",e.ariaCloseLabel)("data-pc-section","closebutton")("data-pc-group-section","iconcontainer"),p(1),h("ngIf",!e.closeIconTemplate),p(1),h("ngIf",e.closeIconTemplate)}}function i$(t,n){1&t&&Z(0)}function r$(t,n){1&t&&Z(0)}const o$=function(t,n,e,i,r,o){return{"p-sidebar":!0,"p-sidebar-active":t,"p-sidebar-left":n,"p-sidebar-right":e,"p-sidebar-top":i,"p-sidebar-bottom":r,"p-sidebar-full":o}},s$=function(t,n){return{transform:t,transition:n}},a$=function(t){return{value:"visible",params:t}};function l$(t,n){if(1&t){const e=B();v(0,"div",1,2),O("@panelState.start",function(r){return D(e),S(f().onAnimationStart(r))})("@panelState.done",function(r){return D(e),S(f().onAnimationEnd(r))})("keydown",function(r){return D(e),S(f().onKeyDown(r))}),v(2,"div",3),g(3,QH,1,0,"ng-container",4),g(4,n$,3,5,"button",5),y(),v(5,"div",6),ni(6),g(7,i$,1,0,"ng-container",4),y(),v(8,"div",7),g(9,r$,1,0,"ng-container",4),y()()}if(2&t){const e=f();ee(e.styleClass),h("ngClass",zr(15,o$,e.visible,"left"===e.position&&!e.fullScreen,"right"===e.position&&!e.fullScreen,"top"===e.position&&!e.fullScreen,"bottom"===e.position&&!e.fullScreen,e.fullScreen))("@panelState",te(25,a$,at(22,s$,e.transformOptions,e.transitionOptions)))("ngStyle",e.style),L("data-pc-name","sidebar")("data-pc-section","root")("aria-modal",e.modal),p(2),L("data-pc-section","header"),p(1),h("ngTemplateOutlet",e.headerTemplate),p(1),h("ngIf",e.showCloseIcon),p(1),L("data-pc-section","content"),p(2),h("ngTemplateOutlet",e.contentTemplate),p(1),L("data-pc-section","footer"),p(1),h("ngTemplateOutlet",e.footerTemplate)}}const c$=["*"],u$=Au([Ge({transform:"{{transform}}",opacity:0}),Jt("{{transition}}")]),d$=Au([Jt("{{transition}}",Ge({transform:"{{transform}}",opacity:0}))]);let p$=(()=>{class t{document;el;renderer;cd;config;appendTo;blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){switch(this._position=e,e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)"}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}templates;onShow=new F;onHide=new F;visibleChange=new F;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;contentTemplate;headerTemplate;footerTemplate;closeIconTemplate;constructor(e,i,r,o,s){this.document=e,this.el=i,this.renderer=r,this.cd=o,this.config=s}ngAfterViewInit(){this.initialized=!0}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template}})}onKeyDown(e){"Escape"===e.code&&this.hide()}show(){this.autoZIndex&&jt.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(this.container.style.zIndex)-1)),E.addMultipleClasses(this.mask,"p-component-overlay p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",e=>{this.dismissible&&this.close(e)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&E.blockBodyScroll())}disableModality(){this.mask&&(E.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&E.unblockBodyScroll(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener())}onAnimationEnd(e){"void"===e.toState&&(this.hide(!1),jt.clear(this.container),this.unbindGlobalListeners())}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):E.appendChild(this.container,this.appendTo))}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"keydown",i=>{27==i.which&&parseInt(this.container.style.zIndex)===jt.get(this.container)&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&jt.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=function(i){return new(i||t)(w(rt),w(Ue),w(xt),w(bt),w(ro))};static \u0275cmp=J({type:t,selectors:[["p-sidebar"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{appendTo:"appendTo",blockScroll:"blockScroll",style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",modal:"modal",dismissible:"dismissible",showCloseIcon:"showCloseIcon",closeOnEscape:"closeOnEscape",transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},ngContentSelectors:c$,decls:1,vars:1,consts:[["role","complementary",3,"ngClass","ngStyle","class","keydown",4,"ngIf"],["role","complementary",3,"ngClass","ngStyle","keydown"],["container",""],[1,"p-sidebar-header"],[4,"ngTemplateOutlet"],["type","button","class","p-sidebar-close p-sidebar-icon p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[1,"p-sidebar-content"],[1,"p-sidebar-footer"],["type","button","pRipple","",1,"p-sidebar-close","p-sidebar-icon","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],["class","p-sidebar-close-icon",4,"ngIf"],[3,"styleClass"],[1,"p-sidebar-close-icon"]],template:function(i,r){1&i&&(Hi(),g(0,l$,10,27,"div",0)),2&i&&h("ngIf",r.visible)},dependencies:function(){return[pt,Je,Ht,Bt,Es,Zn]},styles:["@layer primeng{.p-sidebar{position:fixed;transition:transform .3s;display:flex;flex-direction:column}.p-sidebar-content{position:relative;overflow-y:auto;flex-grow:1}.p-sidebar-header{display:flex;align-items:center}.p-sidebar-footer{margin-top:auto}.p-sidebar-icon{display:flex;align-items:center;justify-content:center;margin-left:auto}.p-sidebar-left{top:0;left:0;width:20rem;height:100%}.p-sidebar-right{top:0;right:0;width:20rem;height:100%}.p-sidebar-top{top:0;left:0;width:100%;height:10rem}.p-sidebar-bottom{bottom:0;left:0;width:100%;height:10rem}.p-sidebar-full{width:100%;height:100%;top:0;left:0;transition:none}.p-sidebar-left.p-sidebar-sm,.p-sidebar-right.p-sidebar-sm{width:20rem}.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-md{width:40rem}.p-sidebar-left.p-sidebar-lg,.p-sidebar-right.p-sidebar-lg{width:60rem}.p-sidebar-top.p-sidebar-sm,.p-sidebar-bottom.p-sidebar-sm{height:10rem}.p-sidebar-top.p-sidebar-md,.p-sidebar-bottom.p-sidebar-md{height:20rem}.p-sidebar-top.p-sidebar-lg,.p-sidebar-bottom.p-sidebar-lg{height:30rem}@media screen and (max-width: 64em){.p-sidebar-left.p-sidebar-lg,.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-lg,.p-sidebar-right.p-sidebar-md{width:20rem}}}\n"],encapsulation:2,data:{animation:[Yr("panelState",[pn("void => visible",[Ru(u$)]),pn("visible => void",[Ru(d$)])])]},changeDetection:0})}return t})(),h$=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,lt,Zn,lt]})}return t})(),w2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),T2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),D2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();const f$=["container"],g$=["inputfield"],m$=["contentWrapper"];function _$(t,n){if(1&t){const e=B();v(0,"TimesIcon",10),O("click",function(){return D(e),S(f(3).clear())}),y()}2&t&&h("styleClass","p-calendar-clear-icon")}function y$(t,n){}function v$(t,n){1&t&&g(0,y$,0,0,"ng-template")}function b$(t,n){if(1&t){const e=B();v(0,"span",11),O("click",function(){return D(e),S(f(3).clear())}),g(1,v$,1,0,null,12),y()}if(2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.clearIconTemplate)}}function C$(t,n){if(1&t&&(W(0),g(1,_$,1,1,"TimesIcon",8),g(2,b$,2,1,"span",9),q()),2&t){const e=f(2);p(1),h("ngIf",!e.clearIconTemplate),p(1),h("ngIf",e.clearIconTemplate)}}function w$(t,n){1&t&&x(0,"span",15),2&t&&h("ngClass",f(3).icon)}function T$(t,n){1&t&&x(0,"CalendarIcon")}function D$(t,n){}function S$(t,n){1&t&&g(0,D$,0,0,"ng-template")}function E$(t,n){if(1&t&&(W(0),g(1,T$,1,0,"CalendarIcon",6),g(2,S$,1,0,null,12),q()),2&t){const e=f(3);p(1),h("ngIf",!e.triggerIconTemplate),p(1),h("ngTemplateOutlet",e.triggerIconTemplate)}}function I$(t,n){if(1&t){const e=B();v(0,"button",13),O("click",function(r){D(e),f();const o=Xe(1);return S(f().onButtonClick(r,o))}),g(1,w$,1,1,"span",14),g(2,E$,3,2,"ng-container",6),y()}if(2&t){const e=f(2);h("disabled",e.disabled),L("aria-label",e.iconAriaLabel),p(1),h("ngIf",e.icon),p(1),h("ngIf",!e.icon)}}function x$(t,n){if(1&t){const e=B();v(0,"input",4,5),O("focus",function(r){return D(e),S(f().onInputFocus(r))})("keydown",function(r){return D(e),S(f().onInputKeydown(r))})("click",function(){return D(e),S(f().onInputClick())})("blur",function(r){return D(e),S(f().onInputBlur(r))})("input",function(r){return D(e),S(f().onUserInput(r))}),y(),g(2,C$,3,2,"ng-container",6),g(3,I$,3,4,"button",7)}if(2&t){const e=f();ee(e.inputStyleClass),h("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),L("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null)("aria-labelledby",e.ariaLabelledBy),p(2),h("ngIf",e.showClear&&!e.disabled&&null!=e.value),p(1),h("ngIf",e.showIcon)}}function M$(t,n){1&t&&Z(0)}function k$(t,n){1&t&&x(0,"ChevronLeftIcon",37),2&t&&h("styleClass","p-datepicker-prev-icon")}function O$(t,n){}function A$(t,n){1&t&&g(0,O$,0,0,"ng-template")}function R$(t,n){if(1&t&&(v(0,"span",38),g(1,A$,1,0,null,12),y()),2&t){const e=f(5);p(1),h("ngTemplateOutlet",e.previousIconTemplate)}}function P$(t,n){if(1&t){const e=B();v(0,"button",35),O("keydown",function(r){return D(e),S(f(4).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(4).onPrevButtonClick(r))}),g(1,k$,1,1,"ChevronLeftIcon",32),g(2,R$,2,1,"span",36),y()}if(2&t){const e=f(4);p(1),h("ngIf",!e.previousIconTemplate),p(1),h("ngIf",e.previousIconTemplate)}}function F$(t,n){if(1&t){const e=B();v(0,"button",39),O("click",function(r){return D(e),S(f(4).switchToMonthView(r))})("keydown",function(r){return D(e),S(f(4).onContainerButtonKeydown(r))}),A(1),y()}if(2&t){const e=f().$implicit,i=f(3);h("disabled",i.switchViewButtonDisabled()),p(1),pe(" ",i.getMonthName(e.month)," ")}}function L$(t,n){if(1&t){const e=B();v(0,"button",40),O("click",function(r){return D(e),S(f(4).switchToYearView(r))})("keydown",function(r){return D(e),S(f(4).onContainerButtonKeydown(r))}),A(1),y()}if(2&t){const e=f().$implicit,i=f(3);h("disabled",i.switchViewButtonDisabled()),p(1),pe(" ",i.getYear(e)," ")}}function N$(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(5);p(1),pr("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function V$(t,n){1&t&&Z(0)}const Sm=function(t){return{$implicit:t}};function B$(t,n){if(1&t&&(v(0,"span",41),g(1,N$,2,2,"ng-container",6),g(2,V$,1,0,"ng-container",42),y()),2&t){const e=f(4);p(1),h("ngIf",!e.decadeTemplate),p(1),h("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",te(3,Sm,e.yearPickerValues))}}function H$(t,n){1&t&&x(0,"ChevronRightIcon",37),2&t&&h("styleClass","p-datepicker-next-icon")}function $$(t,n){}function z$(t,n){1&t&&g(0,$$,0,0,"ng-template")}function U$(t,n){if(1&t&&(v(0,"span",43),g(1,z$,1,0,null,12),y()),2&t){const e=f(4);p(1),h("ngTemplateOutlet",e.nextIconTemplate)}}function j$(t,n){if(1&t&&(v(0,"th",49)(1,"span"),A(2),y()()),2&t){const e=f(5);p(2),Y(e.getTranslation("weekHeader"))}}function G$(t,n){if(1&t&&(v(0,"th",50)(1,"span"),A(2),y()()),2&t){const e=n.$implicit;p(2),Y(e)}}function W$(t,n){if(1&t&&(v(0,"td",53)(1,"span",54),A(2),y()()),2&t){const e=f().index,i=f(2).$implicit;p(2),pe(" ",i.weekNumbers[e]," ")}}function q$(t,n){if(1&t&&(W(0),A(1),q()),2&t){const e=f(2).$implicit;p(1),Y(e.day)}}function K$(t,n){1&t&&Z(0)}function Z$(t,n){if(1&t&&(W(0),g(1,K$,1,0,"ng-container",42),q()),2&t){const e=f(2).$implicit,i=f(6);p(1),h("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",te(2,Sm,e))}}function Y$(t,n){1&t&&Z(0)}function Q$(t,n){if(1&t&&(W(0),g(1,Y$,1,0,"ng-container",42),q()),2&t){const e=f(2).$implicit,i=f(6);p(1),h("ngTemplateOutlet",i.disabledDateTemplate)("ngTemplateOutletContext",te(2,Sm,e))}}const Em=function(t,n){return{"p-highlight":t,"p-disabled":n}};function J$(t,n){if(1&t){const e=B();W(0),v(1,"span",55),O("click",function(r){D(e);const o=f().$implicit;return S(f(6).onDateSelect(r,o))})("keydown",function(r){D(e);const o=f().$implicit,s=f(3).index;return S(f(3).onDateCellKeydown(r,o,s))}),g(2,q$,2,1,"ng-container",6),g(3,Z$,2,4,"ng-container",6),g(4,Q$,2,4,"ng-container",6),y(),q()}if(2&t){const e=f().$implicit,i=f(6);p(1),h("ngClass",at(4,Em,i.isSelected(e)&&e.selectable,!e.selectable)),p(1),h("ngIf",!i.dateTemplate&&(e.selectable||!i.disabledDateTemplate)),p(1),h("ngIf",e.selectable||!i.disabledDateTemplate),p(1),h("ngIf",!e.selectable)}}const X$=function(t,n){return{"p-datepicker-other-month":t,"p-datepicker-today":n}};function ez(t,n){if(1&t&&(v(0,"td",15),g(1,J$,5,7,"ng-container",6),y()),2&t){const e=n.$implicit,i=f(6);h("ngClass",at(2,X$,e.otherMonth,e.today)),p(1),h("ngIf",!e.otherMonth||i.showOtherMonths)}}function tz(t,n){if(1&t&&(v(0,"tr"),g(1,W$,3,1,"td",51),g(2,ez,2,5,"td",52),y()),2&t){const e=n.$implicit,i=f(5);p(1),h("ngIf",i.showWeek),p(1),h("ngForOf",e)}}function nz(t,n){if(1&t&&(v(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,j$,3,1,"th",46),g(5,G$,3,1,"th",47),y()(),v(6,"tbody"),g(7,tz,3,2,"tr",48),y()()()),2&t){const e=f().$implicit,i=f(3);p(4),h("ngIf",i.showWeek),p(1),h("ngForOf",i.weekDays),p(2),h("ngForOf",e.dates)}}function iz(t,n){if(1&t){const e=B();v(0,"div",24)(1,"div",25),g(2,P$,3,2,"button",26),v(3,"div",27),g(4,F$,2,2,"button",28),g(5,L$,2,2,"button",29),g(6,B$,3,5,"span",30),y(),v(7,"button",31),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(3).onNextButtonClick(r))}),g(8,H$,1,1,"ChevronRightIcon",32),g(9,U$,2,1,"span",33),y()(),g(10,nz,8,3,"div",34),y()}if(2&t){const e=n.index,i=f(3);p(2),h("ngIf",0===e),p(2),h("ngIf","date"===i.currentView),p(1),h("ngIf","year"!==i.currentView),p(1),h("ngIf","year"===i.currentView),p(1),Fc("display",1===i.numberOfMonths||e===i.numberOfMonths-1?"inline-flex":"none"),p(1),h("ngIf",!i.nextIconTemplate),p(1),h("ngIf",i.nextIconTemplate),p(1),h("ngIf","date"===i.currentView)}}function rz(t,n){if(1&t){const e=B();v(0,"span",58),O("click",function(r){const s=D(e).index;return S(f(4).onMonthSelect(r,s))})("keydown",function(r){const s=D(e).index;return S(f(4).onMonthCellKeydown(r,s))}),A(1),y()}if(2&t){const e=n.$implicit,i=n.index,r=f(4);h("ngClass",at(2,Em,r.isMonthSelected(i),r.isMonthDisabled(i))),p(1),pe(" ",e," ")}}function oz(t,n){if(1&t&&(v(0,"div",56),g(1,rz,2,5,"span",57),y()),2&t){const e=f(3);p(1),h("ngForOf",e.monthPickerValues())}}function sz(t,n){if(1&t){const e=B();v(0,"span",61),O("click",function(r){const s=D(e).$implicit;return S(f(4).onYearSelect(r,s))})("keydown",function(r){const s=D(e).$implicit;return S(f(4).onYearCellKeydown(r,s))}),A(1),y()}if(2&t){const e=n.$implicit,i=f(4);h("ngClass",at(2,Em,i.isYearSelected(e),i.isYearDisabled(e))),p(1),pe(" ",e," ")}}function az(t,n){if(1&t&&(v(0,"div",59),g(1,sz,2,5,"span",60),y()),2&t){const e=f(3);p(1),h("ngForOf",e.yearPickerValues())}}function lz(t,n){if(1&t&&(W(0),v(1,"div",20),g(2,iz,11,9,"div",21),y(),g(3,oz,2,1,"div",22),g(4,az,2,1,"div",23),q()),2&t){const e=f(2);p(2),h("ngForOf",e.months),p(1),h("ngIf","month"===e.currentView),p(1),h("ngIf","year"===e.currentView)}}function cz(t,n){1&t&&x(0,"ChevronUpIcon")}function uz(t,n){}function dz(t,n){1&t&&g(0,uz,0,0,"ng-template")}function pz(t,n){1&t&&(W(0),A(1,"0"),q())}function hz(t,n){1&t&&x(0,"ChevronDownIcon")}function fz(t,n){}function gz(t,n){1&t&&g(0,fz,0,0,"ng-template")}function mz(t,n){1&t&&x(0,"ChevronUpIcon")}function _z(t,n){}function yz(t,n){1&t&&g(0,_z,0,0,"ng-template")}function vz(t,n){1&t&&(W(0),A(1,"0"),q())}function bz(t,n){1&t&&x(0,"ChevronDownIcon")}function Cz(t,n){}function wz(t,n){1&t&&g(0,Cz,0,0,"ng-template")}function Tz(t,n){if(1&t&&(v(0,"div",65)(1,"span"),A(2),y()()),2&t){const e=f(3);p(2),Y(e.timeSeparator)}}function Dz(t,n){1&t&&x(0,"ChevronUpIcon")}function Sz(t,n){}function Ez(t,n){1&t&&g(0,Sz,0,0,"ng-template")}function Iz(t,n){1&t&&(W(0),A(1,"0"),q())}function xz(t,n){1&t&&x(0,"ChevronDownIcon")}function Mz(t,n){}function kz(t,n){1&t&&g(0,Mz,0,0,"ng-template")}function Oz(t,n){if(1&t){const e=B();v(0,"div",70)(1,"button",64),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(3).incrementSecond(r))})("keydown.space",function(r){return D(e),S(f(3).incrementSecond(r))})("mousedown",function(r){return D(e),S(f(3).onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(3).onTimePickerElementMouseLeave())}),g(2,Dz,1,0,"ChevronUpIcon",6),g(3,Ez,1,0,null,12),y(),v(4,"span"),g(5,Iz,2,0,"ng-container",6),A(6),y(),v(7,"button",64),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(3).decrementSecond(r))})("keydown.space",function(r){return D(e),S(f(3).decrementSecond(r))})("mousedown",function(r){return D(e),S(f(3).onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(3).onTimePickerElementMouseLeave())}),g(8,xz,1,0,"ChevronDownIcon",6),g(9,kz,1,0,null,12),y()()}if(2&t){const e=f(3);p(2),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),h("ngIf",e.currentSecond<10),p(1),Y(e.currentSecond),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate)}}function Az(t,n){1&t&&x(0,"ChevronUpIcon")}function Rz(t,n){}function Pz(t,n){1&t&&g(0,Rz,0,0,"ng-template")}function Fz(t,n){1&t&&x(0,"ChevronDownIcon")}function Lz(t,n){}function Nz(t,n){1&t&&g(0,Lz,0,0,"ng-template")}function Vz(t,n){if(1&t){const e=B();v(0,"div",71)(1,"button",72),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(3).toggleAMPM(r))})("keydown.enter",function(r){return D(e),S(f(3).toggleAMPM(r))}),g(2,Az,1,0,"ChevronUpIcon",6),g(3,Pz,1,0,null,12),y(),v(4,"span"),A(5),y(),v(6,"button",72),O("keydown",function(r){return D(e),S(f(3).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(3).toggleAMPM(r))})("keydown.enter",function(r){return D(e),S(f(3).toggleAMPM(r))}),g(7,Fz,1,0,"ChevronDownIcon",6),g(8,Nz,1,0,null,12),y()()}if(2&t){const e=f(3);p(2),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),Y(e.pm?"PM":"AM"),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate)}}function Bz(t,n){if(1&t){const e=B();v(0,"div",62)(1,"div",63)(2,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).incrementHour(r))})("keydown.space",function(r){return D(e),S(f(2).incrementHour(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(3,cz,1,0,"ChevronUpIcon",6),g(4,dz,1,0,null,12),y(),v(5,"span"),g(6,pz,2,0,"ng-container",6),A(7),y(),v(8,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).decrementHour(r))})("keydown.space",function(r){return D(e),S(f(2).decrementHour(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(9,hz,1,0,"ChevronDownIcon",6),g(10,gz,1,0,null,12),y()(),v(11,"div",65)(12,"span"),A(13),y()(),v(14,"div",66)(15,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).incrementMinute(r))})("keydown.space",function(r){return D(e),S(f(2).incrementMinute(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(16,mz,1,0,"ChevronUpIcon",6),g(17,yz,1,0,null,12),y(),v(18,"span"),g(19,vz,2,0,"ng-container",6),A(20),y(),v(21,"button",64),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return D(e),S(f(2).decrementMinute(r))})("keydown.space",function(r){return D(e),S(f(2).decrementMinute(r))})("mousedown",function(r){return D(e),S(f(2).onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return D(e),S(f(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return D(e),S(f(2).onTimePickerElementMouseLeave())}),g(22,bz,1,0,"ChevronDownIcon",6),g(23,wz,1,0,null,12),y()(),g(24,Tz,3,1,"div",67),g(25,Oz,10,6,"div",68),g(26,Vz,9,5,"div",69),y()}if(2&t){const e=f(2);p(3),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),h("ngIf",e.currentHour<10),p(1),Y(e.currentHour),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate),p(3),Y(e.timeSeparator),p(3),h("ngIf",!e.incrementIconTemplate),p(1),h("ngTemplateOutlet",e.incrementIconTemplate),p(2),h("ngIf",e.currentMinute<10),p(1),Y(e.currentMinute),p(2),h("ngIf",!e.decrementIconTemplate),p(1),h("ngTemplateOutlet",e.decrementIconTemplate),p(1),h("ngIf",e.showSeconds),p(1),h("ngIf",e.showSeconds),p(1),h("ngIf","12"==e.hourFormat)}}const S2=function(t){return[t]};function Hz(t,n){if(1&t){const e=B();v(0,"div",73)(1,"button",74),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(2).onTodayButtonClick(r))}),y(),v(2,"button",74),O("keydown",function(r){return D(e),S(f(2).onContainerButtonKeydown(r))})("click",function(r){return D(e),S(f(2).onClearButtonClick(r))}),y()()}if(2&t){const e=f(2);p(1),h("label",e.getTranslation("today"))("ngClass",te(4,S2,e.todayButtonStyleClass)),p(1),h("label",e.getTranslation("clear"))("ngClass",te(6,S2,e.clearButtonStyleClass))}}function $z(t,n){1&t&&Z(0)}const zz=function(t,n,e,i,r,o){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":n,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":o}},E2=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},Uz=function(t){return{value:"visibleTouchUI",params:t}},jz=function(t){return{value:"visible",params:t}};function Gz(t,n){if(1&t){const e=B();v(0,"div",16,17),O("@overlayAnimation.start",function(r){return D(e),S(f().onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){return D(e),S(f().onOverlayAnimationDone(r))})("click",function(r){return D(e),S(f().onOverlayClick(r))}),ni(2),g(3,M$,1,0,"ng-container",12),g(4,lz,5,3,"ng-container",6),g(5,Bz,27,16,"div",18),g(6,Hz,3,8,"div",19),ni(7,1),g(8,$z,1,0,"ng-container",12),y()}if(2&t){const e=f();ee(e.panelStyleClass),h("ngStyle",e.panelStyle)("ngClass",zr(11,zz,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?te(21,Uz,at(18,E2,e.showTransitionOptions,e.hideTransitionOptions)):te(26,jz,at(23,E2,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),p(3),h("ngTemplateOutlet",e.headerTemplate),p(1),h("ngIf",!e.timeOnly),p(1),h("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),p(1),h("ngIf",e.showButtonBar),p(2),h("ngTemplateOutlet",e.footerTemplate)}}const Wz=[[["p-header"]],[["p-footer"]]],qz=function(t,n,e,i){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":n,"p-calendar-disabled":e,"p-focus":i}},Kz=["p-header","p-footer"],Zz={provide:$t,useExisting:Ee(()=>Yz),multi:!0};let Yz=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const i=e.split(":"),r=parseInt(i[0]),o=parseInt(i[1]);this.populateYearOptions(r,o)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new F;onBlur=new F;onClose=new F;onSelect=new F;onClear=new F;onInput=new F;onTodayClick=new F;onClearClick=new F;onMonthChange=new F;onYearChange=new F;onClickOutside=new F;onShow=new F;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}constructor(e,i,r,o,s,a,l){this.document=e,this.el=i,this.renderer=r,this.cd=o,this.zone=s,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=kt();const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=E.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Kn.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r11&&(o=o%11-1,s=i+1),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let i=new Date(e.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],o=this.getFirstDayOfMonthIndex(e,i),s=this.getDaysCountInMonth(e,i),a=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,u=[],d=Math.ceil((s+o)/7);for(let m=0;ms){let C=this.getNextMonthAndYear(e,i);_.push({day:l-s,month:C.month,year:C.year,otherMonth:!0,today:this.isToday(c,l-s,C.month,C.year),selectable:this.isSelectable(l-s,C.month,C.year,!0)})}else _.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),r.push(_)}return{month:e,year:i,dates:r,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]+i,e[e.length-1]+i)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,o)=>!this.isDateEquals(r,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=new Date(e.year,e.month,e.day);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate=r.getTime()?o=i:(r=i,o=null),this.updateModel([r,o])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;Array.isArray(this.value)&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(i);let o=r.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let r=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,i){let r,o;return 0===e?(r=11,o=i-1):(r=e-1,o=i),{month:r,year:o}}getNextMonthAndYear(e,i){let r,o;return 11===e?(r=0,o=i+1):(r=e+1,o=i),{month:r,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,e),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[i,r]=this.isRangeSelection()?this.value:[this.value,this.value],o=new Date(this.currentYear,e,1);return o>=i&&o<=(r??i)}return!1}isMonthDisabled(e){for(let i=1;i=s.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,i,r,o){return e.getDate()===i&&e.getMonth()===r&&e.getFullYear()===o}isSelectable(e,i,r,o){let s=!0,a=!0,l=!0,c=!0;return!(o&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode||13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(E.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,r){const o=e.currentTarget,s=o.parentElement;switch(e.which){case 40:{o.tabIndex="-1";let a=E.index(s),l=s.parentElement.nextElementSibling;l?E.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{o.tabIndex="-1";let a=E.index(s),l=s.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];E.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let a=s.previousElementSibling;if(a){let l=a.children[0];E.hasClass(l,"p-disabled")||E.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{o.tabIndex="-1";let a=s.nextElementSibling;if(a){let l=a.children[0];E.hasClass(l,"p-disabled")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=E.index(r);let a=o[40===e.which?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=E.index(r);let a=o[40===e.which?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this.navBackward(event);else{let o=E.find(this.contentViewChild.nativeElement.children[i-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),s=o[o.length-1];s.tabIndex="0",s.focus()}else if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let o=E.findSingle(this.contentViewChild.nativeElement.children[i+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");o.tabIndex="0",o.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?E.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():E.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=E.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=E.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let i;if("month"===this.currentView){let r=E.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=E.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");r.forEach(s=>s.tabIndex=-1),i=o||r[0],0===r.length&&E.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let r=E.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=E.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");r.forEach(s=>s.tabIndex=-1),i=o||r[0],0===r.length&&E.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(i=E.findSingle(e,"span.p-highlight"),!i){let r=E.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i=r||E.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||i.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=E.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==r||0===r)if(this.focusTrap)i[i.length-1].focus();else{if(-1===r)return this.hideOverlay();if(0===r)return}else i[r-1].focus();else if(-1==r||r===i.length-1){if(!this.focusTrap&&-1!=r)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour=function(e,i){return"12"==this.hourFormat?12===e?i?12:0:i?e+12:e:e};validateTime(e,i,r,o){let s=this.value;const a=this.convertTo24Hour(e,o);this.isRangeSelection()&&(s=this.value[1]||this.value[0]),this.isMultipleSelection()&&(s=this.value[this.value.length-1]);const l=s?s.toDateString():null;return!(this.minDate&&l&&this.minDate.toDateString()===l&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?r-24:r:"12"==this.hourFormat&&(this.currentHour<12&&r>11&&(o=!this.pm),r=r>=13?r-12:r),this.validateTime(r,this.currentMinute,this.currentSecond,o)&&(this.currentHour=r,this.pm=o),e.preventDefault()}onTimePickerElementMouseDown(e,i,r){this.disabled||(this.repeat(e,null,i,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,r,o){let s=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,o),this.cd.markForCheck()},s),r){case 0:1===o?this.incrementHour(e):this.decrementHour(e);break;case 1:1===o?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===o?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=this.currentHour-this.stepHour,r=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(r=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,r)&&(this.currentHour=i,this.pm=r),e.preventDefault()}incrementMinute(e){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}decrementMinute(e){let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)?(this.updateModel(r),this.updateUI()):this.keepInvalid&&this.updateModel(r)}catch{this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){let i=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(i=!1):e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1))&&this.isRangeSelection()&&(i=e.length>1&&e[1]>e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);i=[];for(let o of r)i.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");i=[];for(let o=0;o{this.disableModality()}),this.renderer.appendChild(this.document.body,this.mask),E.blockBodyScroll())}disableModality(){this.mask&&(E.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let i,e=this.document.body.children;for(let r=0;r{const d=r+1{let _=""+d;if(o(u))for(;_.lengtho(u)?_[d]:m[d];let l="",c=!1;if(e)for(r=0;r11&&12!=r&&(r-=12),i+="12"==this.hourFormat&&0===r?12:r<10?"0"+r:r,i+=":",i+=o<10?"0"+o:o,this.showSeconds&&(i+=":",i+=s<10?"0"+s:s),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let o=parseInt(i[0]),s=parseInt(i[1]),a=this.showSeconds?parseInt(i[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||"12"==this.hourFormat&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==o&&this.pm?o+=12:!this.pm&&12===o&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,i){if(null==i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let r,o,s,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,d=-1,m=-1,_=!1,C=P=>{let N=r+1{let N=C(P),X="@"===P?14:"!"===P?20:"y"===P&&N?4:"o"===P?3:2,Ve=new RegExp("^\\d{"+("y"===P?X:1)+","+X+"}"),We=e.substring(a).match(Ve);if(!We)throw"Missing number at position "+a;return a+=We[0].length,parseInt(We[0],10)},M=(P,N,X)=>{let be=-1,Ve=C(P)?X:N,We=[];for(let tt=0;tt-(tt[1].length-Wt[1].length));for(let tt=0;tt{if(e.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(d=1),r=0;r-1)for(u=1,d=m;o=this.getDaysCountInMonth(c,u-1),!(d<=o);)u++,d-=o;if("year"===this.view&&(u=-1===u?1:u,d=-1===d?1:d),b=this.daylightSavingAdjust(new Date(c,u-1,d)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==d)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,r),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!(!r.breakpoint||!r.numMonths)).sort((r,o)=>-1*r.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let r=0;r{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vm(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return E.hasClass(e.target,"p-datepicker-prev")||E.hasClass(e.target,"p-datepicker-prev-icon")||E.hasClass(e.target,"p-datepicker-next")||E.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!E.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&jt.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(i){return new(i||t)(w(rt),w(Ue),w(xt),w(bt),w(Te),w(ro),w(ym))};static \u0275cmp=J({type:t,selectors:[["p-calendar"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(f$,5),Fe(g$,5),Fe(m$,5)),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first),ce(o=ue())&&(r.inputfieldViewChild=o.first),ce(o=ue())&&(r.content=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){2&i&&ii("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focus)("p-calendar-clearable",r.showClear&&!r.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pe([Zz])],ngContentSelectors:Kz,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(i,r){1&i&&(Hi(Wz),v(0,"span",0,1),g(2,x$,4,17,"ng-template",2),g(3,Gz,9,28,"div",3),y()),2&i&&(ee(r.styleClass),h("ngClass",is(6,qz,r.showIcon,r.timeOnly,r.disabled,r.focus))("ngStyle",r.style),p(2),h("ngIf",!r.inline),p(1),h("ngIf",r.inline||r.overlayVisible))},dependencies:function(){return[pt,Wi,Je,Ht,Bt,h2,Es,w2,hd,T2,Ss,Zn,D2]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Yr("overlayAnimation",[Ou("visibleTouchUI",Ge({transform:"translate(-50%,-50%)",opacity:1})),pn("void => visible",[Ge({opacity:0,transform:"scaleY(0.8)"}),Jt("{{showTransitionParams}}",Ge({opacity:1,transform:"*"}))]),pn("visible => void",[Jt("{{hideTransitionParams}}",Ge({opacity:0}))]),pn("void => visibleTouchUI",[Ge({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Jt("{{showTransitionParams}}")]),pn("visibleTouchUI => void",[Jt("{{hideTransitionParams}}",Ge({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),Qz=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,hl,lt,oo,w2,hd,T2,Ss,Zn,D2,hl,lt]})}return t})(),I2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),x2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();const Jz=["input"];function Xz(t,n){if(1&t){const e=B();v(0,"TimesIcon",8),O("click",function(){return D(e),S(f(2).clear())}),y()}2&t&&h("ngClass","p-inputnumber-clear-icon")}function eU(t,n){}function tU(t,n){1&t&&g(0,eU,0,0,"ng-template")}function nU(t,n){if(1&t){const e=B();v(0,"span",9),O("click",function(){return D(e),S(f(2).clear())}),g(1,tU,1,0,null,10),y()}if(2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.clearIconTemplate)}}function iU(t,n){if(1&t&&(W(0),g(1,Xz,1,1,"TimesIcon",6),g(2,nU,2,1,"span",7),q()),2&t){const e=f();p(1),h("ngIf",!e.clearIconTemplate),p(1),h("ngIf",e.clearIconTemplate)}}function rU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).incrementButtonIcon)}function oU(t,n){1&t&&x(0,"AngleUpIcon")}function sU(t,n){}function aU(t,n){1&t&&g(0,sU,0,0,"ng-template")}function lU(t,n){if(1&t&&(W(0),g(1,oU,1,0,"AngleUpIcon",3),g(2,aU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.incrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function cU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).decrementButtonIcon)}function uU(t,n){1&t&&x(0,"AngleDownIcon")}function dU(t,n){}function pU(t,n){1&t&&g(0,dU,0,0,"ng-template")}function hU(t,n){if(1&t&&(W(0),g(1,uU,1,0,"AngleDownIcon",3),g(2,pU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.decrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const M2=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},k2=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function fU(t,n){if(1&t){const e=B();v(0,"span",11)(1,"button",12),O("mousedown",function(r){return D(e),S(f().onUpButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onUpButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onUpButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onUpButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onUpButtonKeyUp())}),g(2,rU,1,1,"span",13),g(3,lU,3,2,"ng-container",3),y(),v(4,"button",12),O("mousedown",function(r){return D(e),S(f().onDownButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onDownButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onDownButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onDownButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onDownButtonKeyUp())}),g(5,cU,1,1,"span",13),g(6,hU,3,2,"ng-container",3),y()()}if(2&t){const e=f();p(1),ee(e.incrementButtonClass),h("ngClass",$i(12,M2))("disabled",e.disabled),p(1),h("ngIf",e.incrementButtonIcon),p(1),h("ngIf",!e.incrementButtonIcon),p(1),ee(e.decrementButtonClass),h("ngClass",$i(13,k2))("disabled",e.disabled),p(1),h("ngIf",e.decrementButtonIcon),p(1),h("ngIf",!e.decrementButtonIcon)}}function gU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).incrementButtonIcon)}function mU(t,n){1&t&&x(0,"AngleUpIcon")}function _U(t,n){}function yU(t,n){1&t&&g(0,_U,0,0,"ng-template")}function vU(t,n){if(1&t&&(W(0),g(1,mU,1,0,"AngleUpIcon",3),g(2,yU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.incrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function bU(t,n){if(1&t){const e=B();v(0,"button",12),O("mousedown",function(r){return D(e),S(f().onUpButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onUpButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onUpButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onUpButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onUpButtonKeyUp())}),g(1,gU,1,1,"span",13),g(2,vU,3,2,"ng-container",3),y()}if(2&t){const e=f();ee(e.incrementButtonClass),h("ngClass",$i(6,M2))("disabled",e.disabled),p(1),h("ngIf",e.incrementButtonIcon),p(1),h("ngIf",!e.incrementButtonIcon)}}function CU(t,n){1&t&&x(0,"span",14),2&t&&h("ngClass",f(2).decrementButtonIcon)}function wU(t,n){1&t&&x(0,"AngleDownIcon")}function TU(t,n){}function DU(t,n){1&t&&g(0,TU,0,0,"ng-template")}function SU(t,n){if(1&t&&(W(0),g(1,wU,1,0,"AngleDownIcon",3),g(2,DU,1,0,null,10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.decrementButtonIconTemplate),p(1),h("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function EU(t,n){if(1&t){const e=B();v(0,"button",12),O("mousedown",function(r){return D(e),S(f().onDownButtonMouseDown(r))})("mouseup",function(){return D(e),S(f().onDownButtonMouseUp())})("mouseleave",function(){return D(e),S(f().onDownButtonMouseLeave())})("keydown",function(r){return D(e),S(f().onDownButtonKeyDown(r))})("keyup",function(){return D(e),S(f().onDownButtonKeyUp())}),g(1,CU,1,1,"span",13),g(2,SU,3,2,"ng-container",3),y()}if(2&t){const e=f();ee(e.decrementButtonClass),h("ngClass",$i(6,k2))("disabled",e.disabled),p(1),h("ngIf",e.decrementButtonIcon),p(1),h("ngIf",!e.decrementButtonIcon)}}const IU=function(t,n,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":n,"p-inputnumber-buttons-vertical":e}},xU={provide:$t,useExisting:Ee(()=>O2),multi:!0};let O2=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new F;onFocus=new F;onBlur=new F;onKeyDown=new F;onClear=new F;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,i,r,o){this.document=e,this.el=i,this.cd=r,this.injector=o}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(qi,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((r,o)=>[r,o]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r+=this.suffix),r}return e.toString()}return""}parseValue(e){let i=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(i){if("-"===i)return i;let r=+i;return isNaN(r)?null:r}return null}repeat(e,i,r){if(this.readonly)return;let o=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},o),this.spin(e,r)}spin(e,i){let r=this.step*i,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+r);this.maxlength&&this.maxlength0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i-1)+o.slice(i)}this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range");break;case 46:if(e.preventDefault(),i===r){const a=o.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){const u=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,i)+o.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(i+1,i+1):s=o.slice(0,i)+o.slice(i+1);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i)+o.slice(i+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let i=e.which||e.keyCode,r=String.fromCharCode(i);const o=this.isDecimalSign(r),s=this.isMinusSign(r);13!=i&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+r),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=i&&i<=57||s||o)&&this.insert(e,r,{isDecimalSign:o,isMinusSign:s})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(i){this.maxlength&&(i=i.toString().substring(0,this.maxlength));let r=this.parseValue(i);null!=r&&this.insert(e,r.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){const i=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.search(this._minusSign);this._minusSign.lastIndex=0;const o=e.search(this._suffix);this._suffix.lastIndex=0;const s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:s}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){const o=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==o)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:d,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(r.isMinusSign)0===s&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,i,0,a)),this.updateValue(e,_,i,"insert"));else if(r.isDecimalSign)c>0&&s===c?this.updateValue(e,l,i,"insert"):(c>s&&c0&&s>c){if(s+i.length-(c+1)<=b){const T=m>=s?m-1:d>=s?d:l.length;_=l.slice(0,s)+i+l.slice(s+i.length,T)+l.slice(T),this.updateValue(e,_,i,C)}}else _=this.insertText(l,i,s,a),this.updateValue(e,_,i,C)}}insertText(e,i,r,o){if(2===("."===i?i:i.split(".")).length){const a=e.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+e.slice(o):e||this.formatValue(i)}return o-r===e.length?this.formatValue(i):0===r?i+e.slice(o):o===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(o)}deleteRange(e,i,r){let o;return o=r-i===e.length?"":0===i?e.slice(r):r===e.length?e.slice(0,i):e.slice(0,i)+e.slice(r),o}initCursor(){let e=this.input?.nativeElement.selectionStart,i=this.input?.nativeElement.value,r=i.length,o=null,s=(this.prefixChar||"").length;i=i.replace(this._prefix,""),e-=s;let a=i.charAt(e);if(this.isNumeralChar(a))return e+s;let l=e-1;for(;l>=0;){if(a=i.charAt(l),this.isNumeralChar(a)){o=l+s;break}l--}if(null!==o)this.input?.nativeElement.setSelectionRange(o+1,o+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,i,r,o){i=i||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(i){return new(i||t)(w(rt),w(Ue),w(bt),w(yn))};static \u0275cmp=J({type:t,selectors:[["p-inputNumber"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&Fe(Jz,5),2&i){let o;ce(o=ue())&&(r.input=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){2&i&&ii("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focused)("p-inputnumber-clearable",r.showClear&&"vertical"!=r.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Pe([xU]),Ft],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,r){1&i&&(v(0,"span",0)(1,"input",1,2),O("input",function(s){return r.onUserInput(s)})("keydown",function(s){return r.onInputKeyDown(s)})("keypress",function(s){return r.onInputKeyPress(s)})("paste",function(s){return r.onPaste(s)})("click",function(){return r.onInputClick()})("focus",function(s){return r.onInputFocus(s)})("blur",function(s){return r.onInputBlur(s)}),y(),g(3,iU,3,2,"ng-container",3),g(4,fU,7,14,"span",4),g(5,bU,3,7,"button",5),g(6,EU,3,7,"button",5),y()),2&i&&(ee(r.styleClass),h("ngClass",Un(28,IU,r.showButtons&&"stacked"===r.buttonLayout,r.showButtons&&"horizontal"===r.buttonLayout,r.showButtons&&"vertical"===r.buttonLayout))("ngStyle",r.style),p(1),ee(r.inputStyleClass),h("ngClass","p-inputnumber-input")("ngStyle",r.inputStyle)("value",r.formattedValue())("disabled",r.disabled)("readonly",r.readonly),L("placeholder",r.placeholder)("title",r.title)("id",r.inputId)("size",r.size)("name",r.name)("autocomplete",r.autocomplete)("maxlength",r.maxlength)("tabindex",r.tabindex)("aria-label",r.ariaLabel)("aria-required",r.ariaRequired)("required",r.required)("min",r.min)("max",r.max),p(2),h("ngIf","vertical"!=r.buttonLayout&&r.showClear&&(r.value||0===r.value)),p(1),h("ngIf",r.showButtons&&"stacked"===r.buttonLayout),p(1),h("ngIf",r.showButtons&&"stacked"!==r.buttonLayout),p(1),h("ngIf",r.showButtons&&"stacked"!==r.buttonLayout))},dependencies:function(){return[pt,Je,Ht,Bt,md,h2,Zn,I2,x2]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Im=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,Dm,hl,Zn,I2,x2,lt]})}return t})(),A2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),R2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),P2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})(),F2=(()=>{class t extends et{static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[ie,ze],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0),x(1,"path",1),y()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();function MU(t,n){1&t&&Z(0)}const xm=function(t){return{$implicit:t}};function kU(t,n){if(1&t&&(v(0,"div",15),g(1,MU,1,0,"ng-container",16),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",te(2,xm,e.paginatorState))}}function OU(t,n){if(1&t&&(v(0,"span",17),A(1),y()),2&t){const e=f(2);p(1),Y(e.currentPageReport)}}function AU(t,n){1&t&&x(0,"AngleDoubleLeftIcon",19),2&t&&h("styleClass","p-paginator-icon")}function RU(t,n){}function PU(t,n){1&t&&g(0,RU,0,0,"ng-template")}function FU(t,n){if(1&t&&(v(0,"span",20),g(1,PU,1,0,null,21),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const _d=function(t){return{"p-disabled":t}};function LU(t,n){if(1&t){const e=B();v(0,"button",18),O("click",function(r){return D(e),S(f(2).changePageToFirst(r))}),g(1,AU,1,1,"AngleDoubleLeftIcon",6),g(2,FU,2,1,"span",7),y()}if(2&t){const e=f(2);h("disabled",e.isFirstPage()||e.empty())("ngClass",te(4,_d,e.isFirstPage()||e.empty())),p(1),h("ngIf",!e.firstPageLinkIconTemplate),p(1),h("ngIf",e.firstPageLinkIconTemplate)}}function NU(t,n){1&t&&x(0,"AngleLeftIcon",19),2&t&&h("styleClass","p-paginator-icon")}function VU(t,n){}function BU(t,n){1&t&&g(0,VU,0,0,"ng-template")}function HU(t,n){if(1&t&&(v(0,"span",20),g(1,BU,1,0,null,21),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const $U=function(t){return{"p-highlight":t}};function zU(t,n){if(1&t){const e=B();v(0,"button",24),O("click",function(r){const s=D(e).$implicit;return S(f(3).onPageLinkClick(r,s-1))}),A(1),y()}if(2&t){const e=n.$implicit,i=f(3);h("ngClass",te(2,$U,e-1==i.getPage())),p(1),pe(" ",i.getLocalization(e)," ")}}function UU(t,n){if(1&t&&(v(0,"span",22),g(1,zU,2,4,"button",23),y()),2&t){const e=f(2);p(1),h("ngForOf",e.pageLinks)}}function jU(t,n){1&t&&A(0),2&t&&Y(f(3).currentPageReport)}function GU(t,n){if(1&t){const e=B();v(0,"p-dropdown",25),O("onChange",function(r){return D(e),S(f(2).onPageDropdownChange(r))}),g(1,jU,1,1,"ng-template",26),y()}if(2&t){const e=f(2);h("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function WU(t,n){1&t&&x(0,"AngleRightIcon",19),2&t&&h("styleClass","p-paginator-icon")}function qU(t,n){}function KU(t,n){1&t&&g(0,qU,0,0,"ng-template")}function ZU(t,n){if(1&t&&(v(0,"span",20),g(1,KU,1,0,null,21),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function YU(t,n){1&t&&x(0,"AngleDoubleRightIcon",19),2&t&&h("styleClass","p-paginator-icon")}function QU(t,n){}function JU(t,n){1&t&&g(0,QU,0,0,"ng-template")}function XU(t,n){if(1&t&&(v(0,"span",20),g(1,JU,1,0,null,21),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function ej(t,n){if(1&t){const e=B();v(0,"button",27),O("click",function(r){return D(e),S(f(2).changePageToLast(r))}),g(1,YU,1,1,"AngleDoubleRightIcon",6),g(2,XU,2,1,"span",7),y()}if(2&t){const e=f(2);h("disabled",e.isLastPage()||e.empty())("ngClass",te(4,_d,e.isLastPage()||e.empty())),p(1),h("ngIf",!e.lastPageLinkIconTemplate),p(1),h("ngIf",e.lastPageLinkIconTemplate)}}function tj(t,n){if(1&t){const e=B();v(0,"p-inputNumber",28),O("ngModelChange",function(r){return D(e),S(f(2).changePage(r-1))}),y()}if(2&t){const e=f(2);h("ngModel",e.currentPage())("disabled",e.empty())}}function nj(t,n){1&t&&Z(0)}function ij(t,n){if(1&t&&g(0,nj,1,0,"ng-container",16),2&t){const e=n.$implicit;h("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",te(2,xm,e))}}function rj(t,n){1&t&&(W(0),g(1,ij,1,4,"ng-template",31),q())}function oj(t,n){if(1&t){const e=B();v(0,"p-dropdown",29),O("ngModelChange",function(r){return D(e),S(f(2).rows=r)})("onChange",function(r){return D(e),S(f(2).onRppChange(r))}),g(1,rj,2,0,"ng-container",30),y()}if(2&t){const e=f(2);h("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),p(1),h("ngIf",e.dropdownItemTemplate)}}function sj(t,n){1&t&&Z(0)}function aj(t,n){if(1&t&&(v(0,"div",32),g(1,sj,1,0,"ng-container",16),y()),2&t){const e=f(2);p(1),h("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",te(2,xm,e.paginatorState))}}function lj(t,n){if(1&t){const e=B();v(0,"div",1),g(1,kU,2,4,"div",2),g(2,OU,2,1,"span",3),g(3,LU,3,6,"button",4),v(4,"button",5),O("click",function(r){return D(e),S(f().changePageToPrev(r))}),g(5,NU,1,1,"AngleLeftIcon",6),g(6,HU,2,1,"span",7),y(),g(7,UU,2,1,"span",8),g(8,GU,2,5,"p-dropdown",9),v(9,"button",10),O("click",function(r){return D(e),S(f().changePageToNext(r))}),g(10,WU,1,1,"AngleRightIcon",6),g(11,ZU,2,1,"span",7),y(),g(12,ej,3,6,"button",11),g(13,tj,1,2,"p-inputNumber",12),g(14,oj,2,6,"p-dropdown",13),g(15,aj,2,4,"div",14),y()}if(2&t){const e=f();ee(e.styleClass),h("ngStyle",e.style)("ngClass","p-paginator p-component"),p(1),h("ngIf",e.templateLeft),p(1),h("ngIf",e.showCurrentPageReport),p(1),h("ngIf",e.showFirstLastIcon),p(1),h("disabled",e.isFirstPage()||e.empty())("ngClass",te(21,_d,e.isFirstPage()||e.empty())),p(1),h("ngIf",!e.previousPageLinkIconTemplate),p(1),h("ngIf",e.previousPageLinkIconTemplate),p(1),h("ngIf",e.showPageLinks),p(1),h("ngIf",e.showJumpToPageDropdown),p(1),h("disabled",e.isLastPage()||e.empty())("ngClass",te(23,_d,e.isLastPage()||e.empty())),p(1),h("ngIf",!e.nextPageLinkIconTemplate),p(1),h("ngIf",e.nextPageLinkIconTemplate),p(1),h("ngIf",e.showFirstLastIcon),p(1),h("ngIf",e.showJumpToPageInput),p(1),h("ngIf",e.rowsPerPageOptions),p(1),h("ngIf",e.templateRight)}}let cj=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new F;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),r=new Map(i.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>r.get(Number(s))).join(""):r.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-i/2)),o=Math.min(e-1,r+i-1);return r=Math.max(0,r-(this.pageLinkSize-(o-r+1))),[r,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),r=e[1];for(let o=e[0];o<=r;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-paginator"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Ft],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(i,r){1&i&&g(0,lj,16,25,"div",0),2&i&&h("ngIf",!!r.alwaysShow||r.pageLinks&&r.pageLinks.length>1)},dependencies:function(){return[pt,Wi,Je,Ht,Bt,Tm,Tt,O2,Cu,gs,Es,A2,R2,P2,F2]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),uj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,gd,Im,ku,lt,oo,A2,R2,P2,F2,gd,Im,ku,lt]})}return t})();function dj(t,n){1&t&&x(0,"span",8),2&t&&(ee(f(2).$implicit.icon),h("ngClass","p-button-icon p-button-icon-left"))}function pj(t,n){if(1&t&&(W(0),g(1,dj,1,3,"span",6),v(2,"span",7),A(3),y(),q()),2&t){const e=f().$implicit,i=f();p(1),h("ngIf",e.icon),p(2),Y(i.getOptionLabel(e))}}function hj(t,n){1&t&&Z(0)}const fj=function(t,n){return{$implicit:t,index:n}};function gj(t,n){if(1&t&&g(0,hj,1,0,"ng-container",9),2&t){const e=f(),i=e.$implicit,r=e.index;h("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",at(2,fj,i,r))}}const mj=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-button-icon-only":e}};function _j(t,n){if(1&t){const e=B();v(0,"div",2,3),O("click",function(r){const o=D(e),s=o.$implicit,a=o.index;return S(f().onItemClick(r,s,a))})("keydown.enter",function(r){const o=D(e),s=o.$implicit,a=o.index;return S(f().onItemClick(r,s,a))})("blur",function(){return D(e),S(f().onBlur())}),g(2,pj,4,2,"ng-container",4),g(3,gj,1,5,"ng-template",null,5,ai),y()}if(2&t){const e=n.$implicit,i=Xe(4),r=f();ee(e.styleClass),h("ngClass",Un(10,mj,r.isSelected(e),r.disabled||r.isOptionDisabled(e),e.icon&&!r.getOptionLabel(e))),L("aria-pressed",r.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",r.disabled?null:r.tabindex)("aria-labelledby",r.getOptionLabel(e)),p(2),h("ngIf",!r.itemTemplate)("ngIfElse",i)}}const yj={provide:$t,useExisting:Ee(()=>vj),multi:!0};let vj=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new F;onChange=new F;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}value;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?V.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?V.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?V.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onItemClick(e,i,r){if(this.disabled||this.isOptionDisabled(i))return;const o=this.getOptionValue(i);let s=this.isSelected(i);s&&!this.allowEmpty||(this.multiple?this.isSelected(i)?this.removeOption(i):this.value=[...this.value||[],o]:this.value=s?null:o,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:i,index:r}))}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!V.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1;const r=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let o of this.value)if(V.equals(o,r,this.dataKey)){i=!0;break}}else i=V.equals(r,this.value,this.dataKey);return i}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-selectButton"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,5),2&i){let s;ce(s=ue())&&(r.itemTemplate=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Pe([yj])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(v(0,"div",0),g(1,_j,5,14,"div",1),y()),2&i&&(ee(r.styleClass),h("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",r.style),p(1),h("ngForOf",r.options))},dependencies:[pt,Wi,Je,Ht,Bt,Es],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),bj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,lt,lt]})}return t})();function Cj(t,n){1&t&&x(0,"span",8),2&t&&h("ngClass",f(2).checkboxTrueIcon)}function wj(t,n){1&t&&x(0,"CheckIcon",11),2&t&&h("styleClass","p-checkbox-icon")}function Tj(t,n){}function Dj(t,n){1&t&&g(0,Tj,0,0,"ng-template")}function Sj(t,n){if(1&t&&(v(0,"span",12),g(1,Dj,1,0,null,13),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.checkIconTemplate)}}function Ej(t,n){if(1&t&&(W(0),g(1,wj,1,1,"CheckIcon",9),g(2,Sj,2,1,"span",10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.checkIconTemplate),p(1),h("ngIf",e.checkIconTemplate)}}function Ij(t,n){if(1&t&&(W(0),g(1,Cj,1,1,"span",7),g(2,Ej,3,2,"ng-container",5),q()),2&t){const e=f();p(1),h("ngIf",e.checkboxTrueIcon),p(1),h("ngIf",!e.checkboxTrueIcon)}}function xj(t,n){1&t&&x(0,"span",8),2&t&&h("ngClass",f(2).checkboxFalseIcon)}function Mj(t,n){1&t&&x(0,"TimesIcon",11),2&t&&h("styleClass","p-checkbox-icon")}function kj(t,n){}function Oj(t,n){1&t&&g(0,kj,0,0,"ng-template")}function Aj(t,n){if(1&t&&(v(0,"span",12),g(1,Oj,1,0,null,13),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.uncheckIconTemplate)}}function Rj(t,n){if(1&t&&(W(0),g(1,Mj,1,1,"TimesIcon",9),g(2,Aj,2,1,"span",10),q()),2&t){const e=f(2);p(1),h("ngIf",!e.uncheckIconTemplate),p(1),h("ngIf",e.uncheckIconTemplate)}}function Pj(t,n){if(1&t&&(W(0),g(1,xj,1,1,"span",7),g(2,Rj,3,2,"ng-container",5),q()),2&t){const e=f();p(1),h("ngIf",e.checkboxFalseIcon),p(1),h("ngIf",!e.checkboxFalseIcon)}}const Fj=function(t,n,e){return{"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function Lj(t,n){if(1&t){const e=B();v(0,"label",14),O("click",function(r){D(e);const o=f(),s=Xe(3);return S(o.onClick(r,s))}),A(1),y()}if(2&t){const e=f();h("ngClass",Un(3,Fj,null!=e.value,e.disabled,e.focused)),L("for",e.inputId),p(1),Y(e.label)}}const Nj=function(t,n){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":n}},Vj=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-focus":e}},Bj={provide:$t,useExisting:Ee(()=>Hj),multi:!0};let Hj=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new F;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,i){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,i.focus())}onKeydown(e){32==e.keyCode&&e.preventDefault()}onKeyup(e){32==e.keyCode&&!this.readonly&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(w(bt))};static \u0275cmp=J({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[Pe([Bj])],decls:8,vars:22,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(i,r){if(1&i){const o=B();v(0,"div",0)(1,"div",1)(2,"input",2,3),O("keyup",function(a){return r.onKeyup(a)})("keydown",function(a){return r.onKeydown(a)})("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),y()(),v(4,"div",4),O("click",function(a){D(o);const l=Xe(3);return S(r.onClick(a,l))}),g(5,Ij,3,2,"ng-container",5),g(6,Pj,3,2,"ng-container",5),y()(),g(7,Lj,2,7,"label",6)}2&i&&(ee(r.styleClass),h("ngStyle",r.style)("ngClass",at(15,Nj,r.disabled,r.focused)),p(2),h("name",r.name)("readonly",r.readonly)("disabled",r.disabled),L("id",r.inputId)("tabindex",r.tabindex)("aria-labelledby",r.ariaLabelledBy),p(2),h("ngClass",Un(18,Vj,null!=r.value,r.disabled,r.focused)),L("aria-checked",!0===r.value),p(1),h("ngIf",!0===r.value),p(1),h("ngIf",!1===r.value),p(1),h("ngIf",r.label))},dependencies:function(){return[pt,Je,Ht,Bt,so,Zn]},encapsulation:2,changeDetection:0})}return t})(),$j=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,lt,so,Zn,lt]})}return t})(),L2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),N2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),zj=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),V2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[ie,ze],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),y(),v(6,"defs")(7,"clipPath",5),x(8,"rect",6),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(6),h("id",r.pathId))},encapsulation:2})}return t})(),B2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[ie,ze],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),y(),v(8,"defs")(9,"clipPath",7),x(10,"rect",8),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(8),h("id",r.pathId))},encapsulation:2})}return t})(),H2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[ie,ze],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),y(),v(8,"defs")(9,"clipPath",7),x(10,"rect",8),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(8),h("id",r.pathId))},encapsulation:2})}return t})(),Uj=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})();const jj=["container"],Gj=["resizeHelper"],Wj=["reorderIndicatorUp"],qj=["reorderIndicatorDown"],Kj=["wrapper"],Zj=["table"],Yj=["thead"],Qj=["tfoot"],Jj=["scroller"];function Xj(t,n){1&t&&x(0,"i"),2&t&&ee("p-datatable-loading-icon "+f(2).loadingIcon)}function eG(t,n){1&t&&x(0,"SpinnerIcon",19),2&t&&h("spin",!0)("styleClass","p-datatable-loading-icon")}function tG(t,n){}function nG(t,n){1&t&&g(0,tG,0,0,"ng-template")}function iG(t,n){if(1&t&&(v(0,"span",20),g(1,nG,1,0,null,21),y()),2&t){const e=f(3);p(1),h("ngTemplateOutlet",e.loadingIconTemplate)}}function rG(t,n){if(1&t&&(W(0),g(1,eG,1,2,"SpinnerIcon",17),g(2,iG,2,1,"span",18),q()),2&t){const e=f(2);p(1),h("ngIf",!e.loadingIconTemplate),p(1),h("ngIf",e.loadingIconTemplate)}}function oG(t,n){if(1&t&&(v(0,"div",15),g(1,Xj,1,2,"i",16),g(2,rG,3,2,"ng-container",8),y()),2&t){const e=f();p(1),h("ngIf",e.loadingIcon),p(1),h("ngIf",!e.loadingIcon)}}function sG(t,n){1&t&&Z(0)}function aG(t,n){if(1&t&&(v(0,"div",22),g(1,sG,1,0,"ng-container",21),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.captionTemplate)}}function lG(t,n){1&t&&Z(0)}function cG(t,n){1&t&&g(0,lG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function uG(t,n){1&t&&g(0,cG,1,1,"ng-template",24)}function dG(t,n){1&t&&Z(0)}function pG(t,n){1&t&&g(0,dG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function hG(t,n){1&t&&g(0,pG,1,1,"ng-template",25)}function fG(t,n){1&t&&Z(0)}function gG(t,n){1&t&&g(0,fG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function mG(t,n){1&t&&g(0,gG,1,1,"ng-template",26)}function _G(t,n){1&t&&Z(0)}function yG(t,n){1&t&&g(0,_G,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vG(t,n){1&t&&g(0,yG,1,1,"ng-template",27)}function bG(t,n){if(1&t){const e=B();v(0,"p-paginator",23),O("onPageChange",function(r){return D(e),S(f().onPageChange(r))}),g(1,uG,1,0,null,8),g(2,hG,1,0,null,8),g(3,mG,1,0,null,8),g(4,vG,1,0,null,8),y()}if(2&t){const e=f();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),p(1),h("ngIf",e.paginatorFirstPageLinkIconTemplate),p(1),h("ngIf",e.paginatorPreviousPageLinkIconTemplate),p(1),h("ngIf",e.paginatorLastPageLinkIconTemplate),p(1),h("ngIf",e.paginatorNextPageLinkIconTemplate)}}function CG(t,n){1&t&&Z(0)}const $2=function(t,n){return{$implicit:t,options:n}};function wG(t,n){if(1&t&&g(0,CG,1,0,"ng-container",31),2&t){const e=n.$implicit,i=n.options;f(2),h("ngTemplateOutlet",Xe(10))("ngTemplateOutletContext",at(2,$2,e,i))}}const TG=function(t){return{height:t}};function DG(t,n){if(1&t){const e=B();v(0,"p-scroller",28,29),O("onLazyLoad",function(r){return D(e),S(f().onLazyItemLoad(r))}),g(2,wG,1,5,"ng-template",30),y()}if(2&t){const e=f();Nt(te(15,TG,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),h("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function SG(t,n){1&t&&Z(0)}const EG=function(t){return{columns:t}};function IG(t,n){if(1&t&&(W(0),g(1,SG,1,0,"ng-container",31),q()),2&t){const e=f(),i=Xe(10);p(1),h("ngTemplateOutlet",i)("ngTemplateOutletContext",at(4,$2,e.processedData,te(2,EG,e.columns)))}}function xG(t,n){1&t&&Z(0)}function MG(t,n){1&t&&Z(0)}function kG(t,n){if(1&t&&x(0,"tbody",40),2&t){const e=f().options,i=f();h("value",i.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",i.frozenBodyTemplate)("frozen",!0)}}function OG(t,n){if(1&t&&x(0,"tbody",41),2&t){const e=f().options;Nt("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function AG(t,n){1&t&&Z(0)}const Er=function(t){return{$implicit:t}};function RG(t,n){if(1&t&&(v(0,"tfoot",42,43),g(2,AG,1,0,"ng-container",31),y()),2&t){const e=f().options,i=f();p(2),h("ngTemplateOutlet",i.footerGroupedTemplate||i.footerTemplate)("ngTemplateOutletContext",te(2,Er,e.columns))}}const PG=function(t,n,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":n,"p-datatable-resizable-table-fit":e}};function FG(t,n){if(1&t&&(v(0,"table",32,33),g(2,xG,1,0,"ng-container",31),v(3,"thead",34,35),g(5,MG,1,0,"ng-container",31),y(),g(6,kG,1,5,"tbody",36),x(7,"tbody",37),g(8,OG,1,2,"tbody",38),g(9,RG,3,4,"tfoot",39),y()),2&t){const e=n.options,i=f();Nt(i.tableStyle),ee(i.tableStyleClass),h("ngClass",Un(20,PG,i.scrollable,i.resizableColumns,i.resizableColumns&&"fit"===i.columnResizeMode)),L("id",i.id+"-table"),p(2),h("ngTemplateOutlet",i.colGroupTemplate)("ngTemplateOutletContext",te(24,Er,e.columns)),p(3),h("ngTemplateOutlet",i.headerGroupedTemplate||i.headerTemplate)("ngTemplateOutletContext",te(26,Er,e.columns)),p(1),h("ngIf",i.frozenValue||i.frozenBodyTemplate),p(1),Nt(e.contentStyle),h("ngClass",e.contentStyleClass)("value",i.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",i.bodyTemplate)("scrollerOptions",e),p(1),h("ngIf",e.spacerStyle),p(1),h("ngIf",i.footerGroupedTemplate||i.footerTemplate)}}function LG(t,n){1&t&&Z(0)}function NG(t,n){1&t&&g(0,LG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function VG(t,n){1&t&&g(0,NG,1,1,"ng-template",24)}function BG(t,n){1&t&&Z(0)}function HG(t,n){1&t&&g(0,BG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function $G(t,n){1&t&&g(0,HG,1,1,"ng-template",25)}function zG(t,n){1&t&&Z(0)}function UG(t,n){1&t&&g(0,zG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function jG(t,n){1&t&&g(0,UG,1,1,"ng-template",26)}function GG(t,n){1&t&&Z(0)}function WG(t,n){1&t&&g(0,GG,1,0,"ng-container",21),2&t&&h("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function qG(t,n){1&t&&g(0,WG,1,1,"ng-template",27)}function KG(t,n){if(1&t){const e=B();v(0,"p-paginator",44),O("onPageChange",function(r){return D(e),S(f().onPageChange(r))}),g(1,VG,1,0,null,8),g(2,$G,1,0,null,8),g(3,jG,1,0,null,8),g(4,qG,1,0,null,8),y()}if(2&t){const e=f();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),p(1),h("ngIf",e.paginatorFirstPageLinkIconTemplate),p(1),h("ngIf",e.paginatorPreviousPageLinkIconTemplate),p(1),h("ngIf",e.paginatorLastPageLinkIconTemplate),p(1),h("ngIf",e.paginatorNextPageLinkIconTemplate)}}function ZG(t,n){1&t&&Z(0)}function YG(t,n){if(1&t&&(v(0,"div",45),g(1,ZG,1,0,"ng-container",21),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.summaryTemplate)}}function QG(t,n){1&t&&x(0,"div",46,47)}function JG(t,n){1&t&&x(0,"ArrowDownIcon")}function XG(t,n){}function eW(t,n){1&t&&g(0,XG,0,0,"ng-template")}function tW(t,n){if(1&t&&(v(0,"span",48,49),g(2,JG,1,0,"ArrowDownIcon",8),g(3,eW,1,0,null,21),y()),2&t){const e=f();p(2),h("ngIf",!e.reorderIndicatorUpIconTemplate),p(1),h("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function nW(t,n){1&t&&x(0,"ArrowUpIcon")}function iW(t,n){}function rW(t,n){1&t&&g(0,iW,0,0,"ng-template")}function oW(t,n){if(1&t&&(v(0,"span",50,51),g(2,nW,1,0,"ArrowUpIcon",8),g(3,rW,1,0,null,21),y()),2&t){const e=f();p(2),h("ngIf",!e.reorderIndicatorDownIconTemplate),p(1),h("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const sW=function(t,n,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":n,"p-datatable-flex-scrollable":e}},aW=function(t){return{maxHeight:t}},lW=["pTableBody",""];function cW(t,n){1&t&&Z(0)}const Mm=function(t,n,e,i,r){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r}};function uW(t,n){if(1&t&&(W(0,3),g(1,cW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",$c(2,Mm,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function dW(t,n){1&t&&Z(0)}function pW(t,n){if(1&t&&(W(0),g(1,dW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",i?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",$c(2,Mm,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function hW(t,n){1&t&&Z(0)}const fW=function(t,n,e,i,r,o,s){return{$implicit:t,rowIndex:n,columns:e,editing:i,frozen:r,rowgroup:o,rowspan:s}};function gW(t,n){if(1&t&&(W(0),g(1,hW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",i?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Vb(t,n,e,i,r,o,s,a,l,c){const u=on()+t,d=R();let m=zn(d,u,e,i,r,o);return kc(d,u+4,s,a,l)||m?Ci(d,u+7,c?n.call(c,e,i,r,o,s,a,l):n(e,i,r,o,s,a,l)):_a(d,u+7)}(2,fW,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen,o.shouldRenderRowspan(o.value,i,r),o.calculateRowGroupSize(o.value,i,r)))}}function mW(t,n){1&t&&Z(0)}function _W(t,n){if(1&t&&(W(0,3),g(1,mW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",$c(2,Mm,i,o.getRowIndex(r),o.columns,"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function yW(t,n){if(1&t&&(g(0,uW,2,8,"ng-container",2),g(1,pW,2,8,"ng-container",0),g(2,gW,2,10,"ng-container",0),g(3,_W,2,8,"ng-container",2)),2&t){const e=n.$implicit,i=n.index,r=f(2);h("ngIf",r.dt.groupHeaderTemplate&&!r.dt.virtualScroll&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,i)),p(1),h("ngIf","rowspan"!==r.dt.rowGroupMode),p(1),h("ngIf","rowspan"===r.dt.rowGroupMode),p(1),h("ngIf",r.dt.groupFooterTemplate&&!r.dt.virtualScroll&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,e,i))}}function vW(t,n){if(1&t&&(W(0),g(1,yW,4,4,"ng-template",1),q()),2&t){const e=f();p(1),h("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function bW(t,n){1&t&&Z(0)}const yd=function(t,n,e,i,r,o){return{$implicit:t,rowIndex:n,columns:e,expanded:i,editing:r,frozen:o}};function CW(t,n){if(1&t&&(W(0),g(1,bW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.template)("ngTemplateOutletContext",zr(2,yd,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function wW(t,n){1&t&&Z(0)}function TW(t,n){if(1&t&&(W(0,3),g(1,wW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",zr(2,yd,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}function DW(t,n){1&t&&Z(0)}function SW(t,n){1&t&&Z(0)}function EW(t,n){if(1&t&&(W(0,3),g(1,SW,1,0,"ng-container",4),q()),2&t){const e=f(2),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",zr(2,yd,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),"row"===o.dt.editMode&&o.dt.isRowEditing(i),o.frozen))}}const z2=function(t,n,e,i){return{$implicit:t,rowIndex:n,columns:e,frozen:i}};function IW(t,n){if(1&t&&(W(0),g(1,DW,1,0,"ng-container",4),g(2,EW,2,9,"ng-container",2),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.expandedRowTemplate)("ngTemplateOutletContext",is(3,z2,i,o.getRowIndex(r),o.columns,o.frozen)),p(1),h("ngIf",o.dt.groupFooterTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,i,o.getRowIndex(r)))}}function xW(t,n){if(1&t&&(g(0,CW,2,9,"ng-container",0),g(1,TW,2,9,"ng-container",2),g(2,IW,3,8,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);h("ngIf",!r.dt.groupHeaderTemplate),p(1),h("ngIf",r.dt.groupHeaderTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,r.getRowIndex(i))),p(1),h("ngIf",r.dt.isRowExpanded(e))}}function MW(t,n){if(1&t&&(W(0),g(1,xW,3,3,"ng-template",1),q()),2&t){const e=f();p(1),h("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function kW(t,n){1&t&&Z(0)}function OW(t,n){1&t&&Z(0)}function AW(t,n){if(1&t&&(W(0),g(1,OW,1,0,"ng-container",4),q()),2&t){const e=f(),i=e.$implicit,r=e.index,o=f(2);p(1),h("ngTemplateOutlet",o.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",is(2,z2,i,o.getRowIndex(r),o.columns,o.frozen))}}function RW(t,n){if(1&t&&(g(0,kW,1,0,"ng-container",4),g(1,AW,2,7,"ng-container",0)),2&t){const e=n.$implicit,i=n.index,r=f(2);h("ngTemplateOutlet",r.template)("ngTemplateOutletContext",zr(3,yd,e,r.getRowIndex(i),r.columns,r.dt.isRowExpanded(e),"row"===r.dt.editMode&&r.dt.isRowEditing(e),r.frozen)),p(1),h("ngIf",r.dt.isRowExpanded(e))}}function PW(t,n){if(1&t&&(W(0),g(1,RW,2,10,"ng-template",1),q()),2&t){const e=f();p(1),h("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function FW(t,n){1&t&&Z(0)}const U2=function(t,n){return{$implicit:t,frozen:n}};function LW(t,n){if(1&t&&(W(0),g(1,FW,1,0,"ng-container",4),q()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",at(2,U2,e.columns,e.frozen))}}function NW(t,n){1&t&&Z(0)}function VW(t,n){if(1&t&&(W(0),g(1,NW,1,0,"ng-container",4),q()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",at(2,U2,e.columns,e.frozen))}}function BW(t,n){1&t&&x(0,"SortAltIcon",4),2&t&&h("styleClass","p-sortable-column-icon")}function HW(t,n){1&t&&x(0,"SortAmountUpAltIcon",4),2&t&&h("styleClass","p-sortable-column-icon")}function $W(t,n){1&t&&x(0,"SortAmountDownIcon",4),2&t&&h("styleClass","p-sortable-column-icon")}function zW(t,n){if(1&t&&(W(0),g(1,BW,1,1,"SortAltIcon",3),g(2,HW,1,1,"SortAmountUpAltIcon",3),g(3,$W,1,1,"SortAmountDownIcon",3),q()),2&t){const e=f();p(1),h("ngIf",0===e.sortOrder),p(1),h("ngIf",1===e.sortOrder),p(1),h("ngIf",-1===e.sortOrder)}}function UW(t,n){}function jW(t,n){1&t&&g(0,UW,0,0,"ng-template")}function GW(t,n){if(1&t&&(v(0,"span",5),g(1,jW,1,0,null,6),y()),2&t){const e=f();p(1),h("ngTemplateOutlet",e.dt.sortIconTemplate)("ngTemplateOutletContext",te(2,Er,e.sortOrder))}}function WW(t,n){if(1&t&&(v(0,"span",7),A(1),y()),2&t){const e=f();p(1),Y(e.getBadgeValue())}}let km=(()=>{class t{sortSource=new Oe;selectionSource=new Oe;contextMenuSource=new Oe;valueSource=new Oe;totalRecordsSource=new Oe;columnsSource=new Oe;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),er=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new F;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,i)=>i;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new F;selectionChange=new F;onRowSelect=new F;onRowUnselect=new F;onPage=new F;onSort=new F;onFilter=new F;onLazyLoad=new F;onRowExpand=new F;onRowCollapse=new F;onContextMenuSelect=new F;onColResize=new F;onColReorder=new F;onRowReorder=new F;onEditInit=new F;onEditComplete=new F;onEditCancel=new F;onHeaderCheckboxToggle=new F;sortFunction=new F;firstChange=new F;rowsChange=new F;onStateSave=new F;onStateRestore=new F;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=kt();styleElement;responsiveStyleElement;window;constructor(e,i,r,o,s,a,l,c,u){this.document=e,this.platformId=i,this.renderer=r,this.el=o,this.zone=s,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const i=e||this.processedData;if(i&&this.paginator){const r=this.lazy?0:this.first;return i.slice(r,r+this.rows)}return i}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(V.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(V.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let r=i.metaKey||i.ctrlKey,o=this.getSortMeta(e.field);o?r?o.order=-1*o.order:(this._multiSortMeta=[{field:e.field,order:-1*o.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((o,s)=>{let a=V.resolveFieldData(o,e),l=V.resolveFieldData(s,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,i*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let r={field:e,order:i};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,r,o){const s=V.resolveFieldData(e,r[o].field),a=V.resolveFieldData(i,r[o].field);return 0===V.compare(s,a,this.filterLocale)?r.length-1>o?this.multisortField(e,i,r,o+1):0:this.compareValuesOnSort(s,a,r[o].order)}compareValuesOnSort(e,i,r){return V.sort(e,i,r,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let i=0;ib!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row"})}else this.isSingleSelectionMode()?(this._selection=s,this.selectionChange.emit(s),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(d?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,s],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})):(this._selection=s,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let d=this.findIndexInSelection(s);this._selection=this.selection.filter((m,_)=>_!=d),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,s]:[s],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const i=e.rowData,r=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(i);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(i),s=this.dataKey?String(V.resolveFieldData(i,this.dataKey)):null;if(!o){if(!this.isRowSelectable(i,r))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),s&&(this.selectionKeys={},this.selectionKeys[s]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),s&&(this.selectionKeys[s]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i){let r,o;this.anchorRowIndex>i?(r=i,o=this.anchorRowIndex):this.anchorRowIndexs?(i=this.anchorRowIndex,r=this.rangeRowIndex):om!=c);let u=this.dataKey?String(V.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[V.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length)for(let r=0;rl!=s),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,i){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:i});else{const r=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let o=this.selectionPageOnly&&this._selection?this._selection.filter(s=>!r.some(a=>this.equals(s,a))):[];i&&(o=this.frozenValue?[...o,...this.frozenValue,...r]:[...o,...r],o=this.rowSelectable?o.filter((s,a)=>this.rowSelectable({data:s,index:a})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return"equals"===this.compareSelectionBy?e===i:V.equals(e,i,this.dataKey)}filter(e,i,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:r},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;ithis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let i of e)i.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let i,r="",o=this.columns;e&&e.selectionOnly?i=this.selection||[]:e&&e.allValues?i=this.value||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));for(let l=0;l{r+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(E.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(0===E.find(i,".ng-invalid.ng-dirty").length){let r=String(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(e){let i=String(V.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let r=String(V.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[r]?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:i,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(V.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(V.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let i=E.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=E.getOffset(this.containerViewChild?.nativeElement).left;E.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+e;if(r>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;r>15&&a>15&&this.resizeTableCells(r,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(r,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",E.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const i=E.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return E.find(i,"tr > th").forEach(o=>e.push(E.getOuterWidth(o))),e}onColumnDragStart(e,i){this.reorderIconWidth=E.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=E.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let r=E.getOffset(this.containerViewChild?.nativeElement),o=E.getOffset(i);if(this.draggedColumn!=i){E.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),E.indexWithinGroup(i,"preorderablecolumn");let l=o.left-r.left,u=o.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-r.top+i.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let r=E.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=E.indexWithinGroup(i,"preorderablecolumn"),s=r!=o;if(s&&(o-r==1&&-1===this.dropPosition||r-o==1&&1===this.dropPosition)&&(s=!1),s&&or&&-1===this.dropPosition&&(o-=1),s&&(V.reorderArray(this.columns,r,o),this.onColReorder.emit({dragIndex:r,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();V.reorderArray(a,r+1,o+1),this.updateStyleElement(a,r,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,i){let r=E.index(this.resizeColumnElement),o="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(o,r,e,i)}updateStyleElement(e,i,r,o){this.destroyStyleElement(),this.createStyleElement();let s="";e.forEach((a,l)=>{let c=l===i?r:o&&l===i+1?o:a;s+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",s)}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,r){if(this.rowDragging&&this.draggedRowIndex!==i){let o=E.getOffset(r).top,s=e.pageY,a=o+E.getOuterHeight(r)/2,l=r.previousElementSibling;sthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;V.reorderArray(this.value,this.draggedRowIndex,r),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!Wr(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const i=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(i){let s=JSON.parse(i,function(s,a){return"string"==typeof a&&r.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=s.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=s.rows,this.rowsChange.emit(this.rows))),s.sortField&&(this.restoringSort=!0,this._sortField=s.sortField,this._sortOrder=s.sortOrder),s.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=s.multiSortMeta),s.filters&&(this.restoringFilter=!0,this.filters=s.filters),this.resizableColumns&&(this.columnWidthsState=s.columnWidths,this.tableWidthState=s.tableWidth),s.expandedRowKeys&&(this.expandedRowKeys=s.expandedRowKeys),s.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(s.selection)),this.stateRestored=!0,this.onStateRestore.emit(s)}}saveColumnWidths(e){let i=[];E.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(o=>i.push(E.getOuterWidth(o))),e.columnWidths=i.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=E.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),V.isNotEmpty(e)){this.createStyleElement();let i="";e.forEach((r,o)=>{i+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${o+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${o+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${o+1}) {\n width: ${r}px !important; max-width: ${r}px !important\n }\n `}),this.styleElement.innerHTML=i}}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(r=>{i.push(r.field||r.key)}),e.columnOrder=i}}restoreColumnOrder(){const i=this.getStorage().getItem(this.stateKey);if(i){let o=JSON.parse(i).columnOrder;if(o){let s=[];o.map(a=>{let l=this.findColumnByKey(a);l&&s.push(l)}),this.columnOrderStateRestored=!0,this.columns=s}}}findColumnByKey(e){if(!this.columns)return null;for(let i of this.columns)if(i.key===e||i.field===e)return i}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){Wr(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(i){return new(i||t)(w(rt),w($n),w(xt),w(Ue),w(Te),w(km),w(bt),w(c2),w(ym))};static \u0275cmp=J({type:t,selectors:[["p-table"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&(Fe(jj,5),Fe(Gj,5),Fe(Wj,5),Fe(qj,5),Fe(Kj,5),Fe(Zj,5),Fe(Yj,5),Fe(Qj,5),Fe(Jj,5)),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first),ce(o=ue())&&(r.resizeHelperViewChild=o.first),ce(o=ue())&&(r.reorderIndicatorUpViewChild=o.first),ce(o=ue())&&(r.reorderIndicatorDownViewChild=o.first),ce(o=ue())&&(r.wrapperViewChild=o.first),ce(o=ue())&&(r.tableViewChild=o.first),ce(o=ue())&&(r.tableHeaderViewChild=o.first),ce(o=ue())&&(r.tableFooterViewChild=o.first),ce(o=ue())&&(r.scroller=o.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[Pe([km]),Ft],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],[1,"p-datatable-thead"],["thead",""],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-scroller-spacer"],[1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(i,r){1&i&&(v(0,"div",0,1),g(2,oG,3,2,"div",2),g(3,aG,2,1,"div",3),g(4,bG,5,23,"p-paginator",4),v(5,"div",5,6),g(7,DG,3,17,"p-scroller",7),g(8,IG,2,7,"ng-container",8),g(9,FG,10,28,"ng-template",null,9,ai),y(),g(11,KG,5,23,"p-paginator",10),g(12,YG,2,1,"div",11),g(13,QG,2,0,"div",12),g(14,tW,4,2,"span",13),g(15,oW,4,2,"span",14),y()),2&i&&(ee(r.styleClass),h("ngStyle",r.style)("ngClass",Un(16,sW,r.rowHover||r.selectionMode,r.scrollable,r.scrollable&&"flex"===r.scrollHeight)),L("id",r.id),p(2),h("ngIf",r.loading&&r.showLoader),p(1),h("ngIf",r.captionTemplate),p(1),h("ngIf",r.paginator&&("top"===r.paginatorPosition||"both"==r.paginatorPosition)),p(1),h("ngStyle",te(20,aW,r.virtualScroll?"":r.scrollHeight)),p(2),h("ngIf",r.virtualScroll),p(1),h("ngIf",!r.virtualScroll),p(3),h("ngIf",r.paginator&&("bottom"===r.paginatorPosition||"both"==r.paginatorPosition)),p(1),h("ngIf",r.summaryTemplate),p(1),h("ngIf",r.resizableColumns),p(1),h("ngIf",r.reorderableColumns),p(1),h("ngIf",r.reorderableColumns))},dependencies:function(){return[pt,Je,Ht,Bt,cj,Tt,_2,L2,N2,pl,Lq]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),Lq=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,i,r,o){this.dt=e,this.tableService=i,this.cd=r,this.el=o,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=e[r-1];return!s||o!==V.resolveFieldData(s,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=e[r+1];return!s||o!==V.resolveFieldData(s,this.dt.groupRowsBy)}shouldRenderRowspan(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=e[r-1];return!s||o!==V.resolveFieldData(s,this.dt.groupRowsBy)}calculateRowGroupSize(e,i,r){let o=V.resolveFieldData(i,this.dt.groupRowsBy),s=o,a=0;for(;o===s;){a++;let l=e[++r];if(!l)break;s=V.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=E.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=E.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,i){return this.dt.virtualScroll&&(i=i||this.scrollerOptions)?i[e]:null}getRowIndex(e){const i=this.dt.paginator?this.dt.first+e:e,r=this.getScrollerOption("getItemOptions");return r?r(i).index:i}static \u0275fac=function(i){return new(i||t)(w(er),w(km),w(bt),w(Ue))};static \u0275cmp=J({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:lW,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(g(0,vW,2,2,"ng-container",0),g(1,MW,2,2,"ng-container",0),g(2,PW,2,2,"ng-container",0),g(3,LW,2,5,"ng-container",0),g(4,VW,2,5,"ng-container",0)),2&i&&(h("ngIf",!r.dt.expandedRowTemplate),p(1),h("ngIf",r.dt.expandedRowTemplate&&!(r.frozen&&r.dt.frozenExpandedRowTemplate)),p(1),h("ngIf",r.dt.frozenExpandedRowTemplate&&r.frozen),p(1),h("ngIf",r.dt.loading),p(1),h("ngIf",r.dt.isEmpty()&&!r.dt.loading))},dependencies:[Wi,Je,Ht],encapsulation:2})}return t})(),j2=(()=>{class t{dt;field;pSortableColumnDisabled;sorted;sortOrder;subscription;constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(i=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?1===this.dt.sortOrder?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),E.clearSelection())}onEnterKey(e){this.onClick(e)}isEnabled(){return!0!==this.pSortableColumnDisabled}isFilterElement(e){return this.isFilterElementIconOrButton(e)||this.isFilterElementIconOrButton(e?.parentElement?.parentElement)}isFilterElementIconOrButton(e){return E.hasClass(e,"pi-filter-icon")||E.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(w(er))};static \u0275dir=ne({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(i,r){1&i&&O("click",function(s){return r.onClick(s)})("keydown.enter",function(s){return r.onEnterKey(s)}),2&i&&(L("tabindex",r.isEnabled()?"0":null)("role","columnheader")("aria-sort",r.sortOrder),ii("p-sortable-column",r.isEnabled())("p-highlight",r.sorted))},inputs:{field:["pSortableColumn","field"],pSortableColumnDisabled:"pSortableColumnDisabled"}})}return t})(),G2=(()=>{class t{dt;cd;field;subscription;sortOrder;constructor(e,i){this.dt=e,this.cd=i,this.subscription=this.dt.tableService.sortSource$.subscribe(r=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if("single"===this.dt.sortMode)this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else if("multiple"===this.dt.sortMode){let e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let e=this.dt._multiSortMeta,i=-1;if(e&&"multiple"===this.dt.sortMode&&(this.dt.showInitialSortBadge||e.length>1))for(let r=0;r-1?e:e+1}isMultiSorted(){return"multiple"===this.dt.sortMode&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(w(er),w(bt))};static \u0275cmp=J({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:3,vars:3,consts:[[4,"ngIf"],["class","p-sortable-column-icon",4,"ngIf"],["class","p-sortable-column-badge",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-sortable-column-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-sortable-column-badge"]],template:function(i,r){1&i&&(g(0,zW,4,3,"ng-container",0),g(1,GW,2,4,"span",1),g(2,WW,2,1,"span",2)),2&i&&(h("ngIf",!r.dt.sortIconTemplate),p(1),h("ngIf",r.dt.sortIconTemplate),p(1),h("ngIf",r.isMultiSorted()))},dependencies:function(){return[Je,Ht,V2,H2,B2]},encapsulation:2,changeDetection:0})}return t})(),Nq=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,uj,Dm,gd,ku,hl,bj,Qz,Im,$j,fd,L2,N2,pl,V2,H2,B2,so,zj,Uj,lt,fd]})}return t})(),W2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[ie,ze],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1)(3,"path",2)(4,"path",3),y(),v(5,"defs")(6,"clipPath",4),x(7,"rect",5),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(5),h("id",r.pathId))},encapsulation:2})}return t})(),q2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})(),K2=(()=>{class t extends et{pathId;ngOnInit(){this.pathId="url(#"+kt()+")"}static \u0275fac=function(){let e;return function(r){return(e||(e=ye(t)))(r||t)}}();static \u0275cmp=J({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[ie,ze],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){1&i&&(Ze(),v(0,"svg",0)(1,"g"),x(2,"path",1),y(),v(3,"defs")(4,"clipPath",2),x(5,"rect",3),y()()()),2&i&&(ee(r.getClassNames()),L("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(1),L("clip-path",r.pathId),p(3),h("id",r.pathId))},encapsulation:2})}return t})();const Z2=["container"];function Vq(t,n){1&t&&x(0,"span"),2&t&&ee("p-toast-message-icon pi "+f(2).message.icon)}function Bq(t,n){1&t&&x(0,"CheckIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function Hq(t,n){1&t&&x(0,"InfoCircleIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function $q(t,n){1&t&&x(0,"TimesCircleIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function zq(t,n){1&t&&x(0,"ExclamationTriangleIcon"),2&t&&L("aria-hidden",!0)("data-pc-section","icon")}function Uq(t,n){if(1&t&&(v(0,"span",11),W(1),g(2,Bq,1,2,"CheckIcon",3),g(3,Hq,1,2,"InfoCircleIcon",3),g(4,$q,1,2,"TimesCircleIcon",3),g(5,zq,1,2,"ExclamationTriangleIcon",3),q(),y()),2&t){const e=f(2);L("aria-hidden",!0)("data-pc-section","icon"),p(2),h("ngIf","success"===e.message.severity),p(1),h("ngIf","info"===e.message.severity),p(1),h("ngIf","error"===e.message.severity),p(1),h("ngIf","warn"===e.message.severity)}}function jq(t,n){if(1&t&&(W(0),g(1,Vq,1,2,"span",6),g(2,Uq,6,6,"span",7),v(3,"div",8)(4,"div",9),A(5),y(),v(6,"div",10),A(7),y()(),q()),2&t){const e=f();p(1),h("ngIf",e.message.icon),p(1),h("ngIf",!e.message.icon),p(1),L("data-pc-section","text"),p(1),L("data-pc-section","summary"),p(1),Y(e.message.summary),p(1),L("data-pc-section","detail"),p(1),Y(e.message.detail)}}function Gq(t,n){1&t&&Z(0)}function Wq(t,n){1&t&&x(0,"span"),2&t&&ee("pt-1 text-base p-toast-message-icon pi "+f(2).message.closeIcon)}function qq(t,n){1&t&&x(0,"TimesIcon",14),2&t&&(h("styleClass","p-toast-icon-close-icon"),L("aria-hidden",!0)("data-pc-section","closeicon"))}function Kq(t,n){if(1&t){const e=B();v(0,"button",12),O("click",function(r){return D(e),S(f().onCloseIconClick(r))})("keydown.enter",function(r){return D(e),S(f().onCloseIconClick(r))}),g(1,Wq,1,2,"span",6),g(2,qq,1,3,"TimesIcon",13),y()}if(2&t){const e=f();L("aria-label","Close")("data-pc-section","closebutton"),p(1),h("ngIf",e.message.closeIcon),p(1),h("ngIf",!e.message.closeIcon)}}const Zq=function(t){return[t,"p-toast-message"]},Yq=function(t,n,e,i){return{showTransformParams:t,hideTransformParams:n,showTransitionParams:e,hideTransitionParams:i}},Qq=function(t){return{value:"visible",params:t}},Jq=function(t){return{$implicit:t}};function Xq(t,n){if(1&t){const e=B();v(0,"p-toastItem",3),O("onClose",function(r){return D(e),S(f().onMessageClose(r))})("@toastAnimation.start",function(r){return D(e),S(f().onAnimationStart(r))})("@toastAnimation.done",function(r){return D(e),S(f().onAnimationEnd(r))}),y()}if(2&t){const e=n.$implicit,i=n.index,r=f();h("message",e)("index",i)("life",r.life)("template",r.template)("@toastAnimation",void 0)("showTransformOptions",r.showTransformOptions)("hideTransformOptions",r.hideTransformOptions)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}}let eK=(()=>{class t{zone;message;index;life;template;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new F;containerViewChild;timeout;constructor(e){this.zone=e}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(e){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()}ngOnDestroy(){this.clearTimeout()}static \u0275fac=function(i){return new(i||t)(w(Te))};static \u0275cmp=J({type:t,selectors:[["p-toastItem"]],viewQuery:function(i,r){if(1&i&&Fe(Z2,5),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",life:"life",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:24,consts:[["role","alert","aria-live","assertive","aria-atomic","true",3,"ngClass","mouseenter","mouseleave"],["container",""],[1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"class",4,"ngIf"],["class","p-toast-message-icon",4,"ngIf"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],[1,"p-toast-message-icon"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(i,r){1&i&&(v(0,"div",0,1),O("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),v(2,"div",2),g(3,jq,8,7,"ng-container",3),g(4,Gq,1,0,"ng-container",4),g(5,Kq,3,4,"button",5),y()()),2&i&&(ee(null==r.message?null:r.message.styleClass),h("ngClass",te(13,Zq,"p-toast-message-"+(null==r.message?null:r.message.severity)))("@messageState",te(20,Qq,is(15,Yq,r.showTransformOptions,r.hideTransformOptions,r.showTransitionOptions,r.hideTransitionOptions))),L("id",null==r.message?null:r.message.id)("data-pc-name","toast")("data-pc-section","root"),p(2),h("ngClass",null==r.message?null:r.message.contentStyleClass),L("data-pc-section","content"),p(1),h("ngIf",!r.template),p(1),h("ngTemplateOutlet",r.template)("ngTemplateOutletContext",te(22,Jq,r.message)),p(1),h("ngIf",!1!==(null==r.message?null:r.message.closable)))},dependencies:function(){return[pt,Je,Ht,Es,so,q2,K2,W2,Zn]},encapsulation:2,data:{animation:[Yr("messageState",[Ou("visible",Ge({transform:"translateY(0)",opacity:1})),pn("void => *",[Ge({transform:"{{showTransformParams}}",opacity:0}),Jt("{{showTransitionParams}}")]),pn("* => void",[Jt("{{hideTransitionParams}}",Ge({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return t})(),tK=(()=>{class t{document;renderer;messageService;cd;config;key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;position="top-right";preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new F;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;constructor(e,i,r,o,s){this.document=e,this.renderer=i,this.messageService=r,this.cd=o,this.config=s}styleElement;id=kt();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(Array.isArray(e)){const i=e.filter(r=>this.canAdd(r));this.add(i)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let i=this.key===e.key;return i&&this.preventOpenDuplicates&&(i=!this.containsMessage(this.messages,e)),i&&this.preventDuplicates&&(i=!this.containsMessage(this.messagesArchieve,e)),i}containsMessage(e,i){return!!e&&null!=e.find(r=>r.summary===i.summary&&r.detail==i.detail&&r.severity===i.severity)}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.template=e.template})}onMessageClose(e){this.messages?.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){"void"===e.fromState&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&""===this.containerViewChild?.nativeElement.style.zIndex&&jt.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&V.isEmpty(this.messages)&&jt.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let i in this.breakpoints){let r="";for(let o in this.breakpoints[i])r+=o+":"+this.breakpoints[i][o]+" !important;";e+=`\n @media screen and (max-width: ${i}) {\n .p-toast[${this.id}] {\n ${r}\n }\n }\n `}this.renderer.setProperty(this.styleElement,"innerHTML",e)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&jt.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static \u0275fac=function(i){return new(i||t)(w(rt),w(xt),w(_m),w(bt),w(ro))};static \u0275cmp=J({type:t,selectors:[["p-toast"]],contentQueries:function(i,r,o){if(1&i&&Vt(o,Tt,4),2&i){let s;ce(s=ue())&&(r.templates=s)}},viewQuery:function(i,r){if(1&i&&Fe(Z2,5),2&i){let o;ce(o=ue())&&(r.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",life:"life",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","life","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","life","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(i,r){1&i&&(v(0,"div",0,1),g(2,Xq,1,9,"p-toastItem",2),y()),2&i&&(ee(r.styleClass),h("ngClass","p-toast p-component p-toast-"+r.position)("ngStyle",r.style),p(2),h("ngForOf",r.messages))},dependencies:[pt,Wi,Bt,eK],styles:["@layer primeng{.p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}}\n"],encapsulation:2,data:{animation:[Yr("toastAnimation",[pn(":enter, :leave",[On("@*",ja())])])]},changeDetection:0})}return t})(),nK=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t,oo,so,q2,K2,W2,Zn,lt]})}return t})(),sK=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=Me({imports:[_t]})}return t})();var Yn=function(t){return t.Channels="channels",t.Episodes="episodes",t.Programs="programs",t.ChannelDetails="channels/:id",t.ChannelSchedule="channels/schedule/:id",t.ProgramDetails="programs/:id",t.EpisodeDetails="episodes/:id",t}(Yn||{});function Y2(t,n,e,i,r,o,s){try{var a=t[o](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function me(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(l){Y2(o,i,r,s,a,"next",l)}function a(l){Y2(o,i,r,s,a,"throw",l)}s(void 0)})}}class tr{}class vd extends tr{get Type(){return"NavigateBackMessage"}}class gl extends tr{constructor(n,e,i,r){super(),this.title=n,this.url=e,this.episodeId=i,this.channelId=r}get Type(){return"PlayAudioMessage"}}function xi(t){return t&&"/Date(-62135596800000)/"!==t?new Date(JSON.parse(t.match(/\d+/)[0])):null}function Q2(t){const n=new Date(1970,0,1);return n.setSeconds(t),n}let Om=(()=>{class t{get BaseUrl(){return"https://api.sr.se/api/v2/"}get FormatParam(){return"format=json"}static get DefaultImagePreset(){return"?preset=100x100"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pn(t,n){const e="object"==typeof n;return new Promise((i,r)=>{let s,o=!1;t.subscribe({next:a=>{s=a,o=!0},error:r,complete:()=>{o?i(s):e?i(n.defaultValue):r(new Ya)}})})}let J2=(()=>{class t extends Om{constructor(e){super(),this.http=e}fetchSonglistForEpisode(e){var i=this;return me(function*(){if(e)return Pn(i.http.get(`${i.BaseUrl}playlists/getplaylistbyepisodeid/?id=${e}&${i.FormatParam}`))})()}fetchCurrentPlaylistForChannel(e){var i=this;return me(function*(){if(e)return Pn(i.http.get(`${i.BaseUrl}playlists/rightnow/?channelid=${e}&${i.FormatParam}`))})()}static#e=this.\u0275fac=function(i){return new(i||t)(H(mu))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class bd extends tr{constructor(n,e){super(),this.episodeId=n,this.isBookmarked=e}get Type(){return"BookmarkChangedMessage"}}class Am extends tr{constructor(n){super(),this.info=n}get Type(){return"SuccessInfoMessage"}}let Rm=(()=>{class t{constructor(){this.localStorage=window.localStorage}get(e){if(this.isSupported){const i=this.localStorage.getItem(e);if(i)try{return JSON.parse(i)}catch{}}return null}set(e,i){return!!this.isSupported&&(this.localStorage.setItem(e,JSON.stringify(i)),!0)}get isSupported(){return!!this.localStorage}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wn=(()=>{class t{constructor(){this.subject=new Oe}sendMessage(e){this.subject.next(e)}getMessage(){return this.subject.asObservable()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const aK=JSON.parse('{"Channel":"Channel","Program":"Program","Episode":"Episode","LiveStreamsHeader":"Live","EpisodesHeader":"Episodes","ProgramsHeader":"Programs","NowPlaying":"Now playing","ChannelNameTitle":"Channel","EpisodeNameTitle":"Episode title","ChannelTypeTitle":"Type","ChannelTaglineTitle":"Tag line","ProgramNameTitle":"Program name","Name":"Name","Starts":"Starts","Start":"Start","Description":"Description","ProgramScheduleForToday":"Schedule","ChannelDetails":"Channel information","CurrentEpisode":"Current episode","NextEpisode":"Next episode","PreviousEpisode":"Previous episode","Title":"Title","Desc.":"Desc.","Artist":"Artist","Album":"Album","CurrentPlaylist":"Current playlist","PreviousSong":"Previous song","NextSong":"Next song","CurrentSong":"Current song","StartTime":"Start time","StopTime":"Stop time","Songlist":"Song list","SelectAProgram":"Select a program","SelectAProgramForEpisodes":"Select a program to list episodes for","Date":"Date","EpisodeTitle":"Episode title","RemovedFromFavorites":"Removed \'{0}\' from program favorites!","AddedToFavorites":"Added \'{0}\' to program favorites!","SearchKeyword":"search","OnlyFavs":"Only favorites","PublishDate":"Publish date","AnyCategories":"Any categories","Category":"Category","Duration":"Duration","AvailableTo":"Available to","Soundtype":"Sound type","SoundTypeNone":"None","SoundTypeBroadcast":"Broadcast","SoundTypePodfile":"Podfile","Bookmarks":"Bookmarks","BookmarkAdded":"Bookmark added","BookmarkRemoved":"Bookmark removed","ProgramDetailsAndEpisodes":"Details and episodes","AudioPrefixChannel":"Live","AudioPrefixEpisode":"Episode","LinkToProgramDetailsText":"Show details and all episodes for ","ShowOnlyCurrentAndFuture":"Show only current and upcoming"}'),lK=JSON.parse('{"Channel":"Kanal","Program":"Program","Episode":"Avsnitt","LiveStreamsHeader":"Direkt","EpisodesHeader":"Avsnitt","ProgramsHeader":"Program","NowPlaying":"Spelar nu","ChannelNameTitle":"Kanal","EpisodeNameTitle":"Avsnittsnamn","ChannelTypeTitle":"Typ","ChannelTaglineTitle":"Beskrivning","ProgramNameTitle":"Programnamn","Name":"Namn","Starts":"B\xf6rjar","Start":"Start","Description":"Beskrivning","ProgramScheduleForToday":"Tabl\xe5","ChannelDetails":"Kanalinformation","CurrentEpisode":"Avsnitt som spelas nu","NextEpisode":"N\xe4sta avsnitt","PreviousEpisode":"F\xf6reg\xe5ende avsnitt","Title":"Titel","Desc.":"Beskr.","Artist":"Artist","Album":"Album","CurrentPlaylist":"Spellista","PreviousSong":"F\xf6reg\xe5ende l\xe5t","NextSong":"N\xe4sta l\xe5t","CurrentSong":"L\xe5t som spelas nu","StartTime":"Starttid","StopTime":"Sluttid","Songlist":"L\xe5tlista","SelectAProgram":"V\xe4lj ett program","SelectAProgramForEpisodes":"V\xe4lj ett program att lista avsnitt f\xf6r","Date":"Datum","EpisodeTitle":"Avsnittsnamn","RemovedFromFavorites":"Tog bort \'{0}\' fr\xe5n programfavoriter!","AddedToFavorites":"La till \'{0}\' till programfavoriter!","SearchKeyword":"s\xf6k","OnlyFavs":"Bara favoriter","PublishDate":"Utgivningsdatum","AnyCategories":"Alla kategorier","Category":"Kategori","Duration":"L\xe4ngd","AvailableTo":"Tillg\xe4nglig till","Soundtype":"Ljudtyp","SoundTypeNone":"Ingen","SoundTypeBroadcast":"S\xe4ndning (broadcast)","SoundTypePodfile":"Podfil","Bookmarks":"Bokm\xe4rken","BookmarkAdded":"Ett bokm\xe4rke har lagts till","BookmarkRemoved":"Ett bokm\xe4rke har tagits bort","ProgramDetailsAndEpisodes":"Detaljer och avsnitt","AudioPrefixChannel":"Direkt","AudioPrefixEpisode":"Avsnitt","LinkToProgramDetailsText":"Visa detaljer och alla avsnitt f\xf6r ","ShowOnlyCurrentAndFuture":"Visa bara p\xe5g\xe5ende och kommande"}');let Is=(()=>{class t{constructor(){this.translations={en:aK,sv:lK}}set defaultLangCode(e){this.fallBackLangCode=e}set currentLocale(e){this.localeToUse=e,this.currLangCode=this.localeToUse.slice(0,2)}translate(e){if(this.translations[this.currLangCode]&&this.translations[this.currLangCode][e]){const i=this.translations[this.currLangCode][e];if(""!==i)return i}if(this.translations[this.fallBackLangCode]&&this.translations[this.fallBackLangCode][e]){const i=this.translations[this.fallBackLangCode][e];return""===i?e:i}return e}translateWithArgs(e,i){const r=this.translate(e);return i?this.replace(r,i):r}replace(e="",i=""){let r=e;return[].concat(i).forEach((s,a)=>{s=s.replace(/\$/g,"$$$$"),r=r.replace("{".concat(a)+"}",s)}),r}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tn=(()=>{class t extends Om{constructor(e,i,r,o){super(),this.http=e,this.localStorageService=i,this.broker=r,this.translationService=o,this.channels$=new en(null),this.programs$=new en(null),this.programCategories$=new en(null),this.programFavs=new Set,this.episodeBookmarks=new Set,this.baseDataFetched=!1,this.initFavoritesFromLocalStorage(),this.initBookmarksFromLocalStorage()}fetchBaseData(){var e=this;return me(function*(){yield e.fetchChannelsBaseData(),yield e.fetchBaseProgramsData(),yield e.fetchBaseProgramCategoriesData(),e.baseDataFetched=!0})()}setCurrentlyPlaying(e){this.currentlyPlaying=e}isCurrentlyPlaying(e){return this.currentlyPlaying===e}fetchChannelsBaseData(){var e=this;return me(function*(){const i=yield e.getAllChannels();e.channels=i.channels.map(r=>({name:r.name,id:r.id,liveaudio:{id:r.liveaudio.id,url:r.liveaudio.url},image:r.imagetemplate+t.DefaultImagePreset,channeltype:r.channeltype,tagline:r.tagline})),e.channels=e.channels.filter(r=>"Extrakanaler"!==r.channeltype),e.channels$.next(e.channels)})()}fetchBaseProgramsData(){var e=this;return me(function*(){const r=(yield e.getAllPrograms()).programs.map(o=>({name:o.name,id:o.id,fav:!1,channel:{id:o?.channel.id,name:o?.channel.name},programimage:o.programimagetemplate+t.DefaultImagePreset,description:o.description,programcategory:o.programcategory}));e.updateProgramsWithFavs(r)})()}fetchBaseProgramCategoriesData(){var e=this;return me(function*(){const i=yield e.getAllProgramCategories();e.programCategories=i.programcategories.map(r=>({name:r.name,id:r.id})),e.programCategories$.next(e.programCategories)})()}getAllChannels(){var e=this;return me(function*(){return Pn(e.http.get(`${e.BaseUrl}channels/?${e.FormatParam}&page=1&size=10000`))})()}getAllPrograms(){var e=this;return me(function*(){return Pn(e.http.get(`${e.BaseUrl}programs/?${e.FormatParam}&page=1&size=10000`))})()}getAllProgramCategories(){var e=this;return me(function*(){return Pn(e.http.get(`${e.BaseUrl}programcategories/?${e.FormatParam}&page=1&size=10000`))})()}getChannelNameFromId(e){return this.channels?this?.channels.find(r=>r.id===e)?.name:void 0}getCategoryNameFromId(e){return this.programCategories?this?.programCategories.find(r=>r.id===e)?.name:void 0}getProgramImageUrlFromId(e){return this.programs?this?.programs.find(r=>r.id===e)?.programimage:void 0}addProgramToFavorites(e,i){this.programFavs.has(e)||(this.programFavs.add(e),this.storeFavsInLocalStorage(),this.updateProgramsWithFavs(this.programs),this.broker.sendMessage(new Am(this.translationService.translateWithArgs("AddedToFavorites",i))))}removeProgramFromFavorites(e,i){this.programFavs.has(e)&&(this.programFavs.delete(e),this.storeFavsInLocalStorage(),this.updateProgramsWithFavs(this.programs),this.broker.sendMessage(new Am(this.translationService.translateWithArgs("RemovedFromFavorites",i))))}addBookmarkForEpisode(e){this.episodeBookmarks.has(e)||(this.episodeBookmarks.add(e),this.storeBookmarksInLocalStorage(),this.broker.sendMessage(new bd(e,!0)))}removeBookmarkForEpisode(e){this.episodeBookmarks.has(e)&&(this.episodeBookmarks.delete(e),this.storeBookmarksInLocalStorage(),this.broker.sendMessage(new bd(e,!1)))}getBookmarkedEpisodes(){return Array.from(this.episodeBookmarks)}isEpisodeBookmarked(e){return this.episodeBookmarks.has(e)}getProgramFromId(e){var i=this;return me(function*(){return i.baseDataFetched||(yield i.fetchBaseData()),i.programs.find(o=>o.id===e)})()}getChannelFromId(e){var i=this;return me(function*(){return i.baseDataFetched||(yield i.fetchBaseData()),i.channels.find(o=>o.id===e)})()}updateProgramsWithFavs(e){e.forEach(i=>i.fav=this.programFavs.has(i.id)),e.sort((i,r)=>i.name.localeCompare(r.name)),this.programs=e,this.programs$.next(this.programs)}initFavoritesFromLocalStorage(){const e=this.localStorageService.get("programfavs");if(e)try{const i=JSON.parse(e);i&&i.forEach(r=>{this.programFavs.add(r)})}catch{}}storeFavsInLocalStorage(){let e=JSON.stringify(Array.from(this.programFavs));this.localStorageService.set("programfavs",e)}initBookmarksFromLocalStorage(){const e=this.localStorageService.get("episodeBookmarks");if(e)try{const i=JSON.parse(e);i&&i.forEach(r=>{this.episodeBookmarks.add(r)})}catch{}}storeBookmarksInLocalStorage(){let e=JSON.stringify(Array.from(this.episodeBookmarks));this.localStorageService.set("episodeBookmarks",e)}static#e=this.\u0275fac=function(i){return new(i||t)(H(mu),H(Rm),H(wn),H(Is))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xs=(()=>{class t extends Om{constructor(e,i){super(),this.http=e,this.srApiService=i}fetchEpisodesForProgram(e,i,r){var o=this;return me(function*(){if(null==e)return;let s=`${o.BaseUrl}episodes/index/?${o.FormatParam}&programid=${e}&page=${i}&size=${r}`;const a=yield Pn(o.http.get(`${s}`));return a.episodes.forEach(l=>{l.channelName=o.srApiService.getChannelNameFromId(l.channelid)}),a})()}fetchEpisode(e){var i=this;return me(function*(){if(null==e)return;let r=`${i.BaseUrl}episodes/get?id=${e}&${i.FormatParam}`;const o=yield Pn(i.http.get(`${r}`));if(o.episode.channelName=i.srApiService.getChannelNameFromId(o.episode.channelid),o.episode?.relatedepisodes){let s=yield i.fetchEpisodesOverview(o.episode.relatedepisodes.map(a=>a.id));o.episode.relatedepisodes=s.episodes}return o.episode?.episodegroups&&o.episode.episodegroups.forEach(function(){var s=me(function*(a){let l=yield i.fetchEpisodesByGroup(a.id,1,10);a.episodes=l});return function(a){return s.apply(this,arguments)}}()),o})()}fetchEpisodes(e){var i=this;return me(function*(){if(null==e)return;if(e.length<1)return{episodes:[],pagination:{page:1,size:10,totalpages:0}};let r=e.map(a=>a).join(","),o=`${i.BaseUrl}episodes/getlist?ids=${r}&${i.FormatParam}`;const s=yield Pn(i.http.get(`${o}`));return s.episodes.forEach(a=>{a.channelName=i.srApiService.getChannelNameFromId(a.channelid)}),s})()}fetchEpisodesOverview(e){var i=this;return me(function*(){if(null==e)return;if(e.length<1)return{episodes:[],pagination:{page:1,size:10,totalpages:0}};let r=e.map(a=>a).join(","),o=`${i.BaseUrl}episodes/getlist?ids=${r}&${i.FormatParam}`;return yield Pn(i.http.get(`${o}`))})()}fetchRightNowEpisodes(e){var i=this;return me(function*(){if(null!=e)return Pn(i.http.get(`${i.BaseUrl}scheduledepisodes/rightnow?${i.FormatParam}&channelid=${e}`))})()}fetchChannelSchedule(e,i,r){var o=this;return me(function*(){if(null!=e)return Pn(o.http.get(`${o.BaseUrl}scheduledepisodes/?${o.FormatParam}&channelid=${e}&page=${i}&size=${r}`))})()}searchEpisodes(e,i,r){var o=this;return me(function*(){if(null==e)return;let s=`${o.BaseUrl}/episodes/search/?${o.FormatParam}&query=${e}&page=${i}&size=${r}`;const a=yield Pn(o.http.get(`${s}`));return a.episodes.forEach(l=>{l.channelName=o.srApiService.getChannelNameFromId(l.channelid)}),a})()}fetchEpisodesByGroup(e,i,r){var o=this;return me(function*(){if(null==e)return;let s=`${o.BaseUrl}/episodes/group/?${o.FormatParam}&id=${e}&page=${i}&size=${r}`;return(yield Pn(o.http.get(`${s}`))).episodegroup.episodes})()}static#e=this.\u0275fac=function(i){return new(i||t)(H(mu),H(Tn))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pi=(()=>{class t{constructor(e){this.translate=e}transform(e,i){if(e)return this.translate.translateWithArgs(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Is,16))};static#t=this.\u0275pipe=tn({name:"translate",type:t,pure:!1})}return t})();function cK(t,n){if(1&t&&(v(0,"div")(1,"div")(2,"b"),A(3),U(4,"translate"),y(),A(5),y(),v(6,"div")(7,"b"),A(8),U(9,"translate"),y(),A(10),y(),v(11,"div")(12,"b"),A(13),U(14,"translate"),y(),A(15),y(),v(16,"div")(17,"b"),A(18),U(19,"translate"),y(),A(20),U(21,"date"),y(),v(22,"div")(23,"b"),A(24),U(25,"translate"),y(),A(26),U(27,"date"),y()()),2&t){const e=f();p(3),Y(K(4,10,"Title")),p(2),pe(": ",null==e.song?null:e.song.title," "),p(3),Y(K(9,12,"Artist")),p(2),pe(": ",null==e.song?null:e.song.artist," "),p(3),Y(K(14,14,"Album")),p(2),pe(": ",null==e.song?null:e.song.albumname," "),p(3),Y(K(19,16,"StartTime")),p(2),pe(": ",zi(21,18,null==e.song?null:e.song.starttimeutcDate,"medium")," "),p(4),Y(K(25,21,"StopTime")),p(2),pe(": ",zi(27,23,null==e.song?null:e.song.stoptimeutcDate,"medium")," ")}}let X2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=J({type:t,selectors:[["app-song"]],inputs:{song:"song"},decls:1,vars:1,consts:[[4,"ngIf"]],template:function(i,r){1&i&&g(0,cK,28,26,"div",0),2&i&&h("ngIf",r.song)},dependencies:[Je,cs,pi],encapsulation:2})}return t})();class Ms extends tr{constructor(n){super(),this.episodeId=n}get Type(){return"ShowEpisodeDetailsMessage"}}function uK(t,n){1&t&&(v(0,"div"),x(1,"i",2),y())}function dK(t,n){if(1&t){const e=B();v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),v(4,"div",1),O("click",function(){D(e);const r=f();return S(r.onOpenDetails(r.episode.episodeid))}),v(5,"div")(6,"div"),g(7,uK,2,0,"div",0),v(8,"b"),A(9),U(10,"translate"),y(),A(11),y()(),v(12,"div")(13,"div")(14,"b"),A(15),U(16,"translate"),y(),A(17),y()(),v(18,"div")(19,"div")(20,"b"),A(21),U(22,"translate"),y(),A(23),U(24,"date"),y()()()()}if(2&t){const e=f();p(2),Y(K(3,8,e.header)),p(5),h("ngIf",e.episode.episodeid),p(2),Y(K(10,10,"Title")),p(2),pe(": ",null==e.episode?null:e.episode.title," "),p(4),Y(K(16,12,"Desc.")),p(2),pe(": ",null==e.episode?null:e.episode.description," "),p(4),Y(K(22,14,"Start")),p(2),pe(": ",zi(24,16,null==e.episode?null:e.episode.starttimeDate,"medium")," ")}}let pK=(()=>{class t{constructor(e){this.broker=e}onOpenDetails(e){this.broker.sendMessage(new Ms(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-scheduled-episode"]],inputs:{episode:"episode",header:"header"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle","details-btn","right"]],template:function(i,r){1&i&&g(0,dK,25,19,"div",0),2&i&&h("ngIf",r.episode)},dependencies:[Je,cs,pi],encapsulation:2})}return t})();function hK(t,n){if(1&t&&(v(0,"div"),x(1,"app-scheduled-episode",7)(2,"app-scheduled-episode",8)(3,"app-scheduled-episode",9),y()),2&t){const e=f(2);p(1),h("episode",null==e.rightNowEpisodes||null==e.rightNowEpisodes.channel?null:e.rightNowEpisodes.channel.currentscheduledepisode),p(1),h("episode",null==e.rightNowEpisodes||null==e.rightNowEpisodes.channel?null:e.rightNowEpisodes.channel.nextscheduledepisode),p(1),h("episode",null==e.rightNowEpisodes||null==e.rightNowEpisodes.channel?null:e.rightNowEpisodes.channel.previousscheduledepisode)}}function fK(t,n){1&t&&(v(0,"h2"),A(1),U(2,"translate"),y()),2&t&&(p(1),pe("",K(2,1,"CurrentPlaylist"),": "))}function gK(t,n){if(1&t&&(v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),x(4,"app-song",10),y()),2&t){const e=f(2);p(2),Y(K(3,2,"CurrentSong")),p(2),h("song",e.playlist.song)}}function mK(t,n){if(1&t&&(v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),x(4,"app-song",10),y()),2&t){const e=f(2);p(2),Y(K(3,2,"NextSong")),p(2),h("song",e.playlist.nextsong)}}function _K(t,n){if(1&t&&(v(0,"div")(1,"h3"),A(2),U(3,"translate"),y(),x(4,"app-song",10),y()),2&t){const e=f(2);p(2),Y(K(3,2,"PreviousSong")),p(2),h("song",e.playlist.previoussong)}}function yK(t,n){if(1&t){const e=B();v(0,"div")(1,"div",1)(2,"i",2),O("click",function(){return D(e),S(f().close())}),y(),x(3,"img",3),A(4),U(5,"translate"),y(),x(6,"hr"),v(7,"div",1),A(8),y(),v(9,"span",4),O("click",function(){D(e);const r=f();return S(r.onPlayChannel(r.channel))}),x(10,"i",5),y(),v(11,"div"),A(12),y(),x(13,"hr"),g(14,hK,4,3,"div",0),x(15,"hr"),v(16,"div"),g(17,fK,3,3,"h2",0),g(18,gK,5,4,"div",0),g(19,mK,5,4,"div",0),g(20,_K,5,4,"div",0),y(),x(21,"div",6),y()}if(2&t){const e=f();p(3),Mt("src",e.channel.image,Hn),p(1),pe(" ",K(5,10,"ChannelDetails")," "),p(4),Y(e.channel.name),p(2),h("ngClass",e.isCurrentlyPlaying(null==e.channel||null==e.channel.liveaudio?null:e.channel.liveaudio.url)?"pi pi-pause play-button":"pi pi-play play-button"),p(2),pe(" ",e.channel.tagline," "),p(2),h("ngIf",e.rightNowEpisodes),p(3),h("ngIf",(null==e.playlist?null:e.playlist.song)||(null==e.playlist?null:e.playlist.nextsong)||(null==e.playlist?null:e.playlist.previoussong)),p(1),h("ngIf",null==e.playlist?null:e.playlist.song),p(1),h("ngIf",null==e.playlist?null:e.playlist.nextsong),p(1),h("ngIf",null==e.playlist?null:e.playlist.previoussong)}}let vK=(()=>{class t{constructor(e,i,r,o,s){this.playlistsService=e,this.episodesService=i,this.srApiService=r,this.broker=o,this.activatedRoute=s,this.unsubscribe$=new Oe}ngOnInit(){var e=this;this.activatedRoute.params.pipe(Ut(this.unsubscribe$),Se(i=>i.id)).subscribe(function(){var i=me(function*(r){const o=yield e.srApiService.getChannelFromId(parseInt(r));o&&(yield e.show(o))});return function(r){return i.apply(this,arguments)}}())}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}show(e){var i=this;return me(function*(){i.channel=e;const r=yield i.playlistsService.fetchCurrentPlaylistForChannel(e.id);i.playlist=r.playlist,i.convertSongDates(i?.playlist?.previoussong),i.convertSongDates(i?.playlist?.song),i.convertSongDates(i?.playlist?.nextsong),i.rightNowEpisodes=yield i.episodesService.fetchRightNowEpisodes(e.id),i.convertEpisodeDates(i?.rightNowEpisodes?.channel?.previousscheduledepisode),i.convertEpisodeDates(i?.rightNowEpisodes?.channel?.currentscheduledepisode),i.convertEpisodeDates(i?.rightNowEpisodes?.channel?.nextscheduledepisode)})()}convertEpisodeDates(e){e?.starttimeutc&&(e.starttimeDate=xi(e.starttimeutc)),e?.endtimeutc&&(e.endtimeDate=xi(e.endtimeutc))}convertSongDates(e){e?.starttimeutc&&(e.starttimeutcDate=xi(e.starttimeutc)),e?.stoptimeutc&&(e.stoptimeutcDate=xi(e.stoptimeutc))}close(){this.broker.sendMessage(new vd)}onPlayChannel(e){this.broker.sendMessage(new gl(e.name,e.liveaudio.url,void 0,e.id))}isCurrentlyPlaying(e){return!!e&&this.srApiService.isCurrentlyPlaying(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(J2),w(xs),w(Tn),w(wn),w(Ji))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-channel-details"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"details-header-text"],[1,"pi","pi-chevron-left","close-button","clickable",3,"click"],["width","50",2,"vertical-align","middle",3,"src"],[1,"clickable","right",3,"click"],[3,"ngClass"],[1,"bottom-padding"],["header","CurrentEpisode",3,"episode"],["header","NextEpisode",3,"episode"],["header","PreviousEpisode",3,"episode"],[3,"song"]],template:function(i,r){1&i&&g(0,yK,22,12,"div",0),2&i&&h("ngIf",r.channel)},dependencies:[pt,Je,X2,pK,pi],encapsulation:2})}return t})();class Cd extends tr{constructor(n){super(),this.programId=n}get Type(){return"ShowProgramDetailsMessage"}}function bK(t,n){if(1&t){const e=B();v(0,"div",7)(1,"i",8),O("click",function(){return D(e),S(f().close())}),y(),x(2,"img",9),A(3),U(4,"translate"),y()}if(2&t){const e=f();p(2),Mt("src",e.channel.image,Hn),p(1),pr(" ",K(4,3,"ProgramScheduleForToday"),": ",e.channel.name," ")}}function CK(t,n){1&t&&(v(0,"tr")(1,"th",10),A(2),U(3,"uppercase"),U(4,"translate"),y(),v(5,"th"),A(6),U(7,"uppercase"),U(8,"translate"),y(),v(9,"th"),A(10),U(11,"uppercase"),U(12,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"Name"))),p(4),Y(K(7,7,K(8,9,"Starts"))),p(4),Y(K(11,11,K(12,13,"Description"))))}function wK(t,n){if(1&t){const e=B();v(0,"div",14),O("click",function(){D(e);const r=f().$implicit;return S(f().onOpenDetails(r.episodeid))}),x(1,"i",15),y()}}function TK(t,n){if(1&t){const e=B();v(0,"tr")(1,"td",10),x(2,"img",9),v(3,"b",11),O("click",function(){const o=D(e).$implicit;return S(f().onOpenProgramDetails(o.program.id))}),A(4),y(),g(5,wK,2,0,"div",12),y(),v(6,"td"),A(7),U(8,"date"),y(),v(9,"td",13),A(10),y()()}if(2&t){const e=n.$implicit;p(2),Mt("src",e.imageurl,Hn),p(2),Y(e.title),p(1),h("ngIf",e.episodeid),p(2),pe(" ",zi(8,5,e.starttimeDate,"HH:mm")," "),p(3),pe(" ",e.description," ")}}let DK=(()=>{class t{constructor(e,i,r,o,s){this.service=e,this.broker=i,this.activatedRoute=r,this.srApiService=o,this.storage=s,this.totalHits=0,this.pageSize=1e3,this.unsubscribe$=new Oe,this.storageId="ChannelScheduleState",this.localState={showPrevious:!1}}ngOnInit(){var e=this;const i=this.storage.get(this.storageId);i&&(this.localState=i),this.activatedRoute.params.pipe(Ut(this.unsubscribe$),Se(r=>r.id)).subscribe(function(){var r=me(function*(o){const s=yield e.srApiService.getChannelFromId(parseInt(o));s&&(yield e.show(s))});return function(o){return r.apply(this,arguments)}}())}ngOnDestroy(){this.storage.set(this.storageId,this.localState),this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}ngAfterViewInit(){this.filterOnTime(this.tableComponent)}onFilterShowOnlyCurrentAndFutureClicked(e,i){this.localState.showPrevious=e.checked,this.filterOnTime(i)}filterOnTime(e){if(!e)return;const i=new Date;i.setHours(0,0,0,0),e.filter(this.localState.showPrevious?i:Date.now(),"endtimeDate","gt")}show(e){var i=this;return me(function*(){i.channel=e,yield i.fetch(i.channel.id,0)})()}fetch(e,i){var r=this;return me(function*(){if(!e)return;const o=i/r.pageSize+1,s=yield r.service.fetchChannelSchedule(e,o,r.pageSize);r.totalHits=s.pagination.totalhits,r.scheduledEpisodes=s.schedule.map(a=>({title:a.title,episodeid:a.episodeid,description:a.description,starttimeDate:xi(a?.starttimeutc),endtimeDate:xi(a?.endtimeutc),program:a.program,imageurltemplate:a.imageurltemplate,imageurl:a.imageurltemplate?a.imageurltemplate+Tn.DefaultImagePreset:r.srApiService.getProgramImageUrlFromId(a.program.id)}))})()}close(){this.broker.sendMessage(new vd)}onOpenDetails(e){this.broker.sendMessage(new Ms(e))}onOpenProgramDetails(e){this.broker.sendMessage(new Cd(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(wn),w(Ji),w(Tn),w(Rm))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-channel-schedule"]],viewQuery:function(i,r){if(1&i&&Fe(er,5),2&i){let o;ce(o=ue())&&(r.tableComponent=o.first)}},decls:12,vars:7,consts:[["class","details-header-text",4,"ngIf"],[1,"onlycurrentandfuture-chk",3,"ngModel","binary","label","onChange","ngModelChange"],["responsiveLayout","stack",3,"value"],["dt3",""],["pTemplate","header"],["pTemplate","body"],[1,"bottom-padding"],[1,"details-header-text"],[1,"pi","pi-chevron-left","close-button","clickable",3,"click"],[1,"image-thumb",3,"src"],[1,"min-title-column"],[1,"clickable",3,"click"],["class","right clickable",3,"click",4,"ngIf"],[1,"desc-col"],[1,"right","clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"]],template:function(i,r){if(1&i){const o=B();v(0,"div"),g(1,bK,5,5,"div",0),v(2,"div")(3,"span")(4,"p-checkbox",1),O("onChange",function(a){D(o);const l=Xe(8);return S(r.onFilterShowOnlyCurrentAndFutureClicked(a,l))})("ngModelChange",function(a){return r.localState.showPrevious=a}),U(5,"translate"),y()()(),x(6,"hr"),v(7,"p-table",2,3),g(9,CK,13,15,"ng-template",4),g(10,TK,11,8,"ng-template",5),y(),x(11,"div",6),y()}2&i&&(p(1),h("ngIf",r.channel),p(3),Mt("label",K(5,5,"Visa tidigare")),h("ngModel",r.localState.showPrevious)("binary",!0),p(3),h("value",r.scheduledEpisodes))},dependencies:[Je,er,Tt,Cu,gs,bm,ls,cs,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}"]})}return t})();class Pm extends tr{constructor(n){super(),this.channelId=n}get Type(){return"ShowChannelDetailsMessage"}}class eE extends tr{constructor(n){super(),this.channelId=n}get Type(){return"ShowChannelScheduleMessage"}}function SK(t,n){if(1&t){const e=B();v(0,"div",6)(1,"span",7),x(2,"i",8),v(3,"input",9),O("input",function(r){return D(e),f(),S(Xe(2).filterGlobal(r.target.value,"contains"))}),U(4,"uppercase"),U(5,"translate"),y()()()}2&t&&(p(3),Mt("placeholder",K(4,1,K(5,3,"SearchKeyword"))))}function EK(t,n){1&t&&(v(0,"tr")(1,"th",10),A(2),U(3,"uppercase"),U(4,"translate"),x(5,"p-sortIcon",11),y(),v(6,"th",12),A(7),U(8,"uppercase"),U(9,"translate"),x(10,"p-sortIcon",13),y(),v(11,"th"),A(12),U(13,"uppercase"),U(14,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"ChannelNameTitle"))),p(5),Y(K(8,7,K(9,9,"ChannelTypeTitle"))),p(5),Y(K(13,11,K(14,13,"ChannelTaglineTitle"))))}function IK(t,n){if(1&t){const e=B();v(0,"tr")(1,"td",14)(2,"div",15)(3,"span",16),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),x(4,"img",17),A(5),y(),v(6,"span",18)(7,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),x(8,"i",20),y(),v(9,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onOpenSchedule(o))}),x(10,"i",21),y(),v(11,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onPlayChannel(o))}),x(12,"i",22),y()()()(),v(13,"td",23),A(14),y(),v(15,"td",24),A(16),y()()}if(2&t){const e=n.$implicit,i=f();p(4),Mt("src",e.image,Hn),p(1),pe(" ",e.name," "),p(7),h("ngClass",i.isCurrentlyPlaying(null==e||null==e.liveaudio?null:e.liveaudio.url)?"pi pi-pause play-button":"pi pi-play play-button"),p(2),pe(" ",e.channeltype," "),p(2),pe(" ",e.tagline," ")}}const xK=function(){return["name","tagline"]};let MK=(()=>{class t{constructor(e,i){this.srApiService=e,this.broker=i,this.unsubscribe$=new Oe}ngOnInit(){var e=this;return me(function*(){e.srApiService.channels$.pipe(Ut(e.unsubscribe$)).subscribe(i=>{i&&(e.channels=i)})})()}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onPlayChannel(e){this.broker.sendMessage(new gl(e.name,e.liveaudio.url,void 0,e.id))}onOpenDetails(e){this.broker.sendMessage(new Pm(e.id))}onOpenSchedule(e){this.broker.sendMessage(new eE(e.id))}isCurrentlyPlaying(e){return!!e&&this.srApiService.isCurrentlyPlaying(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-channels-list"]],decls:6,vars:4,consts:[["id","channelslist",1,"channels-list"],["responsiveLayout","stack","styleClass","sr-table",3,"value","lazy","globalFilterFields"],["dt",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"p-d-flex"],[1,"p-input-icon-left","p-ml-auto"],[1,"pi","pi-search"],["pInputText","","type","text",1,"p-inputtext-sm",3,"placeholder","input"],["pSortableColumn","name"],["field","name"],["pSortableColumn","channeltype"],["field","channeltype"],[2,"min-width","320px"],[1,"p-grid",2,"width","100%"],[1,"p-col-7","clickable",3,"click"],["width","30",1,"image-thumb",2,"vertical-align","middle",3,"src"],[1,"p-col-5","clickable","right",2,"float","right","padding-top","0px"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"],[1,"pi","pi-list","details-btn"],[3,"ngClass"],[1,"channel-type"],[1,"channel-tag-line"]],template:function(i,r){1&i&&(v(0,"div",0)(1,"p-table",1,2),g(3,SK,6,5,"ng-template",3),g(4,EK,15,15,"ng-template",4),g(5,IK,17,5,"ng-template",5),y()()),2&i&&(p(1),h("value",r.channels)("lazy",!1)("globalFilterFields",$i(3,xK)))},dependencies:[pt,er,Tt,j2,G2,md,ls,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}"]})}return t})();var ks=function(t){return t[t.None=0]="None",t[t.Broadcast=1]="Broadcast",t[t.Podfile=2]="Podfile",t}(ks||{});class wd{constructor(n){this.title=n.title,this.id=n.id,this.description=n.description,this.publishDate=xi(n.publishdateutc),this.channelName=n.channelName,this.imageurl=n.imageurltemplate+Tn.DefaultImagePreset,this.imageurlLarge=n.imageurl,this.programName=n.program?.name,this.programId=n.program?.id,this.linkUrl=n.url,n.broadcast?.availablestoputc&&(this.availableTo=xi(n.broadcast.availablestoputc)),this.soundType=ks.None,n.listenpodfile?.duration?(this.soundType=ks.Podfile,this.url=n.listenpodfile.url,this.durationTime=Q2(n.listenpodfile.duration)):n.broadcast?.broadcastfiles?.length>0&&(this.soundType=ks.Broadcast,this.durationTime=Q2(n.broadcast.broadcastfiles[0].duration)),this.relatedEpisodes=n.relatedepisodes,this.episodeGroups=n.episodegroups}hasSound(){return!!this.url}}function kK(t,n){if(1&t){const e=B();v(0,"span",10),O("click",function(){return D(e),S(f(3).onAddToBookmarks())}),x(1,"i",13),y()}}function OK(t,n){if(1&t){const e=B();v(0,"span",10),O("click",function(){return D(e),S(f(3).onRemoveFromBookmarks())}),x(1,"i",14),y()}}function AK(t,n){if(1&t){const e=B();v(0,"span",15),O("click",function(){D(e);const r=f(3);return S(r.onPlayEpisode(r.episode))}),x(1,"i",16),y()}if(2&t){const e=f(3);p(1),h("ngClass",e.isCurrentlyPlaying?"pi pi-pause play-button":"pi pi-play play-button")}}const tE=function(t){return{width:t}};function RK(t,n){if(1&t){const e=B();v(0,"img",17),O("click",function(){return D(e),S(f(3).onToggleImageSize())}),y()}if(2&t){const e=f(3);Mt("src",e.episode.imageurlLarge,Hn),h("ngStyle",te(2,tE,e.largeImage?"100%":"100px"))}}function PK(t,n){if(1&t){const e=B();v(0,"img",17),O("click",function(){return D(e),S(f(3).onToggleImageSize())}),y()}if(2&t){const e=f(3);Mt("src",e.episode.imageurl,Hn),h("ngStyle",te(2,tE,e.largeImage?"100%":"100px"))}}function FK(t,n){if(1&t&&(v(0,"div",12)(1,"b"),A(2),U(3,"translate"),y(),A(4),U(5,"date"),y()),2&t){const e=f(3);p(2),Y(K(3,2,"PublishDate")),p(2),pe(": ",zi(5,4,e.episode.publishDate,"short")," ")}}function LK(t,n){if(1&t&&(v(0,"div")(1,"b"),A(2),U(3,"translate"),y(),A(4),U(5,"date"),y()),2&t){const e=f(3);p(2),Y(K(3,2,"AvailableTo")),p(2),pe(": ",zi(5,4,e.episode.availableTo,"short")," ")}}function NK(t,n){if(1&t&&(v(0,"div")(1,"b"),A(2),U(3,"translate"),y(),A(4),U(5,"date"),y()),2&t){const e=f(3);p(2),Y(K(3,2,"Duration")),p(2),pe(": ",zi(5,4,e.episode.durationTime,"HH:mm:ss")," ")}}function VK(t,n){if(1&t&&(v(0,"div")(1,"a",18),x(2,"i",19),A(3),y()()),2&t){const e=f(3);p(1),Mt("href",e.episode.linkUrl,Hn),p(2),Y(e.episode.linkUrl)}}function BK(t,n){if(1&t){const e=B();v(0,"div",10),O("click",function(){return D(e),S(f(3).share())}),A(1," Dela "),x(2,"i",20),y()}}function HK(t,n){if(1&t){const e=B();v(0,"ul")(1,"li",10),O("click",function(){const o=D(e).$implicit;return S(f(4).onShowEpisode(o.id))}),v(2,"i"),A(3),y()()()}if(2&t){const e=n.$implicit;p(3),Y(e.title)}}function $K(t,n){if(1&t&&(v(0,"div"),x(1,"p"),v(2,"b"),A(3,"Relaterade avsnitt:"),y(),g(4,HK,4,1,"ul",21),y()),2&t){const e=f(3);p(4),h("ngForOf",e.episode.relatedEpisodes)}}function zK(t,n){if(1&t){const e=B();v(0,"ul")(1,"li",10),O("click",function(){const o=D(e).$implicit;return S(f(5).onShowEpisode(o.id))}),v(2,"i"),A(3),y()()()}if(2&t){const e=n.$implicit;p(3),Y(e.title)}}function UK(t,n){if(1&t&&(v(0,"ul")(1,"li")(2,"i"),A(3),y(),g(4,zK,4,1,"ul",21),y()()),2&t){const e=n.$implicit;p(3),Y(e.name),p(1),h("ngForOf",e.episodes)}}function jK(t,n){if(1&t&&(v(0,"div"),x(1,"p"),g(2,UK,5,2,"ul",21),y()),2&t){const e=f(3);p(2),h("ngForOf",e.episode.episodeGroups)}}function GK(t,n){if(1&t&&(v(0,"div"),x(1,"app-song",22)(2,"hr"),y()),2&t){const e=n.$implicit;p(1),h("song",e)}}function WK(t,n){if(1&t&&(v(0,"div")(1,"h2"),A(2),U(3,"translate"),y(),g(4,GK,3,1,"div",21),y()),2&t){const e=f(3);p(2),pe("",K(3,2,"Songlist"),":"),p(2),h("ngForOf",e.songs)}}function qK(t,n){if(1&t){const e=B();v(0,"div")(1,"div",4)(2,"i",5),O("click",function(){return D(e),S(f(2).close())}),y(),A(3),y(),x(4,"hr"),v(5,"div")(6,"div")(7,"b"),A(8),y(),g(9,kK,2,0,"span",6),g(10,OK,2,0,"span",6),g(11,AK,2,1,"span",7),y(),v(12,"div"),g(13,RK,1,4,"img",8),g(14,PK,1,4,"img",8),v(15,"p"),A(16),y()(),g(17,FK,6,7,"div",9),g(18,LK,6,7,"div",2),v(19,"div")(20,"b"),A(21),U(22,"translate"),y(),A(23),y(),g(24,NK,6,7,"div",2),x(25,"p"),g(26,VK,4,2,"div",2),x(27,"p"),g(28,BK,3,0,"div",6),x(29,"p"),v(30,"div",10),O("click",function(){D(e);const r=f(2);return S(r.showProgramDetails(r.episode.programId))}),A(31),U(32,"translate"),v(33,"b"),A(34),y(),x(35,"i",11),y(),g(36,$K,5,1,"div",2),g(37,jK,3,1,"div",2),y(),x(38,"hr",12),g(39,WK,5,4,"div",2),y()}if(2&t){const e=f(2);p(3),pr(" ",e.episode.programName,": ",e.episode.title," "),p(5),pe("",e.episode.title,"\xa0"),p(1),h("ngIf",!e.isBookmarked),p(1),h("ngIf",e.isBookmarked),p(1),h("ngIf",e.episode.hasSound()),p(2),h("ngIf",e.largeImage),p(1),h("ngIf",!e.largeImage),p(2),pe(" ",e.episode.description," "),p(1),h("ngIf",e.episode.publishDate),p(1),h("ngIf",e.episode.availableTo),p(3),Y(K(22,21,"Soundtype")),p(2),pe(": ",e.getSoundType(e.episode)," "),p(1),h("ngIf",e.episode.durationTime),p(2),h("ngIf",e.episode.linkUrl),p(2),h("ngIf",e.canShare),p(3),pe(" ",K(32,23,"LinkToProgramDetailsText"),""),p(3),pe("",e.episode.programName," "),p(2),h("ngIf",e.episode.relatedEpisodes&&e.episode.relatedEpisodes.length>0),p(1),h("ngIf",e.episode.episodeGroups&&e.episode.episodeGroups.length>0),p(2),h("ngIf",e.songs&&e.songs.length>0)}}function KK(t,n){if(1&t){const e=B();v(0,"p-sidebar",1),O("visibleChange",function(r){return D(e),S(f().isVisible=r)}),g(1,qK,40,25,"div",2),x(2,"div",3),y()}if(2&t){const e=f();h("visible",e.isVisible)("blockScroll",!0)("showCloseIcon",!1)("transitionOptions","300ms ease-out"),p(1),h("ngIf",e.episode)}}let nE=(()=>{class t{constructor(e,i,r,o,s){this.episodesService=e,this.playlistsService=i,this.srApiService=r,this.broker=o,this.translate=s,this.isVisible=!1,this.unsubscribe$=new Oe,this.largeImage=!1}ngOnInit(){var e=this;this.isVisible=!1,this.broker.getMessage().pipe(Ut(this.unsubscribe$),wt(r=>r instanceof Ms)).subscribe(function(){var r=me(function*(o){if(o.episodeId){const s=yield e.episodesService.fetchEpisode(o.episodeId);if(s?.episode){const a=new wd(s.episode);e.show(a)}}});return function(o){return r.apply(this,arguments)}}())}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onToggleImageSize(){this.largeImage=!this.largeImage}getSoundType(e){let i="SoundTypeNone";switch(e.soundType){case ks.Broadcast:i="SoundTypeBroadcast";break;case ks.Podfile:i="SoundTypePodfile"}return this.translate.translateWithArgs(i)}show(e){var i=this;return me(function*(){i.largeImage=!1,i.soundUrl=null,i.episode=e,i.setSoundUrl(i.episode);try{const r=yield i.playlistsService.fetchSonglistForEpisode(e.id);i.songs=r.song}catch{}i.songs&&(i.songs.forEach(r=>i.convertDate(r)),i.songs.sort((r,o)=>r.starttimeutcDate.getTime()-o.starttimeutcDate.getTime())),i.isVisible=!0})()}convertDate(e){e&&(e.starttimeutc&&(e.starttimeutcDate=xi(e.starttimeutc)),e.stoptimeutc&&(e.stoptimeutcDate=xi(e.stoptimeutc)))}close(){this.isVisible=!1}onPlayEpisode(e){this.setSoundUrl(e),this.broker.sendMessage(new gl(e.title,this.soundUrl,e.id))}setSoundUrl(e){this.soundUrl=e.url}get isCurrentlyPlaying(){return this.srApiService.isCurrentlyPlaying(this.soundUrl)}onAddToBookmarks(){this.srApiService.addBookmarkForEpisode(this.episode.id)}onRemoveFromBookmarks(){this.srApiService.removeBookmarkForEpisode(this.episode.id)}get isBookmarked(){return this.srApiService.isEpisodeBookmarked(this.episode.id)}get canShare(){return!!navigator.share}share(){navigator.share&&navigator.share({title:this.episode.title,url:this.episode.linkUrl})}showProgramDetails(e){this.isVisible=!1,this.broker.sendMessage(new Cd(e))}onShowEpisode(e){this.broker.sendMessage(new Ms(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(J2),w(Tn),w(wn),w(Is))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episode-details"]],decls:1,vars:1,consts:[["position","bottom","styleClass","sr-sidebar-h",3,"visible","blockScroll","showCloseIcon","transitionOptions","visibleChange",4,"ngIf"],["position","bottom","styleClass","sr-sidebar-h",3,"visible","blockScroll","showCloseIcon","transitionOptions","visibleChange"],[4,"ngIf"],[1,"bottom-padding"],[1,"details-header-text"],[1,"pi","pi-chevron-down","close-button","clickable",3,"click"],["class","clickable",3,"click",4,"ngIf"],["class","clickable right",3,"click",4,"ngIf"],["class","episodes-img",3,"src","ngStyle","click",4,"ngIf"],["class","clear",4,"ngIf"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle"],[1,"clear"],[1,"pi","pi-bookmark"],[1,"pi","pi-bookmark-fill","yellow-fav"],[1,"clickable","right",3,"click"],[3,"ngClass"],[1,"episodes-img",3,"src","ngStyle","click"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"pi","pi-external-link","link-icon"],[1,"pi","pi-upload"],[4,"ngFor","ngForOf"],[3,"song"]],template:function(i,r){1&i&&g(0,KK,3,5,"p-sidebar",0),2&i&&h("ngIf",r.episode)},dependencies:[pt,Wi,Je,Bt,p$,X2,cs,pi],styles:[".episodes-img[_ngcontent-%COMP%]{float:left;margin:5px}"]})}return t})();const ZK=["addListener","removeListener"],YK=["addEventListener","removeEventListener"],QK=["on","off"];function Fm(t,n,e,i){if(De(e)&&(i=e,e=void 0),i)return Fm(t,n,e).pipe(ig(i));const[r,o]=function eZ(t){return De(t.addEventListener)&&De(t.removeEventListener)}(t)?YK.map(s=>a=>t[s](n,a,e)):function JK(t){return De(t.addListener)&&De(t.removeListener)}(t)?ZK.map(iE(t,n)):function XK(t){return De(t.on)&&De(t.off)}(t)?QK.map(iE(t,n)):[];if(!r&&Ad(t))return vt(s=>Fm(s,n,e))(qt(t));if(!r)throw new TypeError("Invalid event target");return new ot(s=>{const a=(...l)=>s.next(1o(a)})}function iE(t,n){return e=>i=>t[e](n,i)}class tZ extends hn{constructor(n,e){super()}schedule(n,e=0){return this}}const Td={setInterval(t,n,...e){const{delegate:i}=Td;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Td;return(n?.clearInterval||clearInterval)(t)},delegate:void 0},rE={now:()=>(rE.delegate||Date).now(),delegate:void 0};class ml{constructor(n,e=ml.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}ml.now=rE.now;const Lm=new class iZ extends ml{constructor(n,e=ml.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}(class nZ extends tZ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;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(n,e,i=0){return Td.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Td.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}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:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,co(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}),rZ=Lm,sZ=["search"];function aZ(t,n){1&t&&(v(0,"div",5)(1,"span",6),x(2,"i",7)(3,"input",8,9),U(5,"uppercase"),U(6,"translate"),y()()),2&t&&(p(3),Mt("placeholder",K(5,1,K(6,3,"SearchKeyword"))))}function lZ(t,n){1&t&&(v(0,"tr")(1,"th"),A(2),U(3,"uppercase"),U(4,"translate"),y(),v(5,"th"),A(6),U(7,"uppercase"),U(8,"translate"),y(),v(9,"th"),A(10),U(11,"uppercase"),U(12,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"EpisodeTitle"))),p(4),Y(K(7,7,K(8,9,"Date"))),p(4),Y(K(11,11,K(12,13,"Description"))))}function cZ(t,n){if(1&t&&(v(0,"span"),A(1),U(2,"translate"),y()),2&t){const e=f().$implicit;p(1),pr(" ",K(2,2,"Channel"),": ",e.channelName," ")}}function uZ(t,n){if(1&t&&(v(0,"span"),A(1),U(2,"translate"),y()),2&t){const e=f().$implicit;p(1),pr(" ",K(2,2,"Program"),": ",e.programName," ")}}function dZ(t,n){if(1&t){const e=B();v(0,"span",16),O("click",function(){D(e);const r=f().$implicit;return S(f().onAddToBookmarks(r.id))}),x(1,"i",21),y()}}function pZ(t,n){if(1&t){const e=B();v(0,"span",16),O("click",function(){D(e);const r=f().$implicit;return S(f().onRemoveFromBookmarks(r.id))}),x(1,"i",22),y()}}function hZ(t,n){if(1&t){const e=B();v(0,"span",16),O("click",function(){D(e);const r=f().$implicit;return S(f().onPlayEpisode(r))}),x(1,"i",23),y()}if(2&t){const e=f().$implicit,i=f();p(1),h("ngClass",i.isCurrentlyPlaying(e)?"pi pi-pause play-button":"pi pi-play play-button")}}function fZ(t,n){if(1&t){const e=B();v(0,"tr")(1,"td")(2,"div",10)(3,"span",11),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),v(4,"span",12)(5,"b"),A(6),y()(),g(7,cZ,3,4,"span",13),g(8,uZ,3,4,"span",13),y(),v(9,"span",14)(10,"span",15)(11,"span",16),O("click",function(){const o=D(e).$implicit;return S(f().onOpenDetails(o))}),x(12,"i",17),y(),g(13,dZ,2,0,"span",18),g(14,pZ,2,0,"span",18),g(15,hZ,2,1,"span",18),y()()()(),v(16,"td"),A(17),U(18,"date"),y(),v(19,"td",19)(20,"div",20),A(21),y()()()}if(2&t){const e=n.$implicit,i=f();p(6),pe(" ",e.title," "),p(1),h("ngIf",e.channelName),p(1),h("ngIf",i.showProgramName&&e.programName),p(5),h("ngIf",!i.isBookmarked(e.id)),p(1),h("ngIf",i.isBookmarked(e.id)),p(1),h("ngIf",e.hasSound()),p(2),pe(" ",zi(18,8,null==e?null:e.publishDate,"short")," "),p(4),pe(" ",e.description," ")}}let Nm=(()=>{class t{constructor(e,i){this.srApiService=e,this.broker=i,this.onLoadLazy=new F,this.query=""}ngOnInit(){}ngAfterViewInit(){var e=this;return me(function*(){Fm(e.search.nativeElement,"keyup").pipe(wt(Boolean),function oZ(t,n=Lm){return ut((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+t,u=n.now();if(u{o=c,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(800),h_(),zt(()=>{e.query=e.search.nativeElement.value,e.query.length>3&&e.onLoadLazy.emit({query:e.query,first:0})})).subscribe()})()}loadLazy(e){var i=this;return me(function*(){i.onLoadLazy.emit({query:i.query,first:e.first})})()}isCurrentlyPlaying(e){return this.srApiService.isCurrentlyPlaying(e.url)}onPlayEpisode(e){this.broker.sendMessage(new gl(e.title,e.url,e.id))}onOpenDetails(e){this.broker.sendMessage(new Ms(e.id))}onAddToBookmarks(e){this.srApiService.addBookmarkForEpisode(e)}onRemoveFromBookmarks(e){this.srApiService.removeBookmarkForEpisode(e)}isBookmarked(e){return this.srApiService.isEpisodeBookmarked(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episodes-table"]],viewQuery:function(i,r){if(1&i&&Fe(sZ,5),2&i){let o;ce(o=ue())&&(r.search=o.first)}},inputs:{episodes:"episodes",totalHits:"totalHits",pageSize:"pageSize",showSearch:"showSearch",showProgramName:"showProgramName"},outputs:{onLoadLazy:"onLoadLazy"},decls:5,vars:5,consts:[[1,"episodes-table"],["responsiveLayout","stack",3,"value","paginator","lazy","rows","totalRecords","onLazyLoad"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"p-d-flex"],[1,"p-input-icon-left","p-ml-auto"],[1,"pi","pi-search"],["pInputText","","type","text",1,"p-inputtext-sm",3,"placeholder"],["search",""],[1,"p-grid",2,"width","100%"],[1,"clickable","p-col-8",3,"click"],[1,"ep-title"],[4,"ngIf"],[1,"p-col-4",2,"float","right"],[1,"p-grid","p-flex-column"],[1,"p-col","clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"],["class","p-col clickable",3,"click",4,"ngIf"],[1,"desc-col"],[1,"ep-desc"],[1,"pi","pi-bookmark","fav-but"],[1,"pi","pi-bookmark-fill","yellow-fav","fav-but"],[3,"ngClass"]],template:function(i,r){1&i&&(v(0,"div",0)(1,"p-table",1),O("onLazyLoad",function(s){return r.loadLazy(s)}),g(2,aZ,7,5,"ng-template",2),g(3,lZ,13,15,"ng-template",3),g(4,fZ,22,11,"ng-template",4),y()()),2&i&&(p(1),h("value",r.episodes)("paginator",!0)("lazy",!0)("rows",r.pageSize)("totalRecords",r.totalHits))},dependencies:[pt,Je,er,Tt,md,ls,cs,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}","[_nghost-%COMP%] .ep-desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}[_nghost-%COMP%] .ep-title{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}"]})}return t})(),gZ=(()=>{class t{constructor(e,i,r){this.service=e,this.srApiService=i,this.broker=r,this.totalHits=0,this.pageSize=100,this.unsubscribe$=new Oe}ngOnInit(){this.broker.getMessage().pipe(Ut(this.unsubscribe$),wt(i=>i instanceof bd)).subscribe(i=>{this.fetch(0)})}loadLazy(e){var i=this;return me(function*(){yield i.fetch(e.first)})()}fetch(e){var i=this;return me(function*(){const r=i.srApiService.getBookmarkedEpisodes(),o=yield i.service.fetchEpisodes(r);i.totalHits=o.pagination.totalhits,i.episodes=[],o.episodes.forEach(s=>{const a=new wd(s);i.episodes.push(a)})})()}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(Tn),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episodes-bookmarks"]],decls:4,vars:7,consts:[[3,"header"],[3,"episodes","totalHits","pageSize","showProgramName","onLoadLazy"]],template:function(i,r){1&i&&(v(0,"p-accordion")(1,"p-accordionTab",0),U(2,"translate"),v(3,"app-episodes-table",1),O("onLoadLazy",function(s){return r.loadLazy(s)}),y()()()),2&i&&(p(1),Mt("header",K(2,5,"Bookmarks")),p(2),h("episodes",r.episodes)("totalHits",r.totalHits)("pageSize",r.pageSize)("showProgramName",!0))},dependencies:[p2,d2,Nm,pi],styles:[".category[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .p-datatable .p-datatable-header{display:none}[_nghost-%COMP%] .ep-desc{display:none!important}"]})}return t})();const mZ=["search"];let _Z=(()=>{class t{constructor(e,i){this.service=e,this.srApiService=i,this.totalHits=0,this.pageSize=5,this.query="",this.showBookmarked=!1}onShowBookmarkedChanged(e){var i=this;return me(function*(){i.showBookmarked=e})()}loadLazy(e){var i=this;return me(function*(){yield i.fetch(e.query,e.first)})()}fetch(e,i){var r=this;return me(function*(){if(!e)return;const o=i/r.pageSize+1,s=yield r.service.searchEpisodes(e,o,r.pageSize);r.totalHits=s.pagination.totalhits,r.episodes=[],s.episodes.forEach(a=>{const l=new wd(a);r.episodes.push(l)})})()}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(Tn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-episodes-list"]],viewQuery:function(i,r){if(1&i&&Fe(mZ,5),2&i){let o;ce(o=ue())&&(r.search=o.first)}},decls:3,vars:4,consts:[[3,"showProgramName","episodes","totalHits","pageSize","onLoadLazy"],[1,"bottom-padding"]],template:function(i,r){1&i&&(x(0,"app-episodes-bookmarks"),v(1,"app-episodes-table",0),O("onLoadLazy",function(s){return r.loadLazy(s)}),y(),x(2,"div",1)),2&i&&(p(1),h("showProgramName",!0)("episodes",r.episodes)("totalHits",r.totalHits)("pageSize",r.pageSize))},dependencies:[Nm,gZ],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}"]})}return t})();function yZ(t,n){if(1&t&&(v(0,"span",11)(1,"b"),A(2),U(3,"translate"),y(),A(4),y()),2&t){const e=f(2);p(2),Y(K(3,2,"Category")),p(2),pe(": ",e.getCategoryNameFromId(e.program.programcategory.id)," ")}}function vZ(t,n){if(1&t){const e=B();v(0,"span",12),O("click",function(){D(e);const r=f(2);return S(r.onAddToFavorites(r.program.id,r.program.name))}),x(1,"i",13),y()}}function bZ(t,n){if(1&t){const e=B();v(0,"span",12),O("click",function(){D(e);const r=f(2);return S(r.onRemoveFromFavorites(r.program.id,r.program.name))}),x(1,"i",14),y()}}function CZ(t,n){if(1&t){const e=B();v(0,"div")(1,"div",1)(2,"i",2),O("click",function(){return D(e),S(f().close())}),y(),x(3,"img",3),A(4),U(5,"translate"),y(),v(6,"div"),A(7),y(),v(8,"div",4)(9,"span",5),g(10,yZ,5,4,"span",6),y(),v(11,"span",7),g(12,vZ,2,0,"span",8),g(13,bZ,2,0,"span",8),y()(),x(14,"hr"),v(15,"app-episodes-table",9),O("onLoadLazy",function(r){return D(e),S(f().loadLazy(r))}),y(),x(16,"div",10),y()}if(2&t){const e=f();p(3),Mt("src",e.program.programimage,Hn),p(1),pr(" ",e.program.name,": ",K(5,10,"ProgramDetailsAndEpisodes")," "),p(3),pe(" ",e.program.description," "),p(3),h("ngIf",e.program.programcategory),p(2),h("ngIf",!e.program.fav),p(1),h("ngIf",e.program.fav),p(2),h("episodes",e.episodes)("totalHits",e.totalHits)("pageSize",e.pageSize)}}function TZ(t,n){if(1&t){const e=B();v(0,"span",6)(1,"span",7)(2,"p-checkbox",8),O("onChange",function(r){D(e);const o=f(),s=Xe(2);return S(o.onFilterFavClicked(r,s))})("ngModelChange",function(r){return D(e),S(f().localState.showOnlyFavs=r)}),U(3,"translate"),y()(),v(4,"span",9)(5,"p-dropdown",10),O("onChange",function(r){D(e);const o=f(),s=Xe(2);return S(o.onCategoryChanged(r,s))})("ngModelChange",function(r){return D(e),S(f().localState.selectedCategory=r)}),y()(),v(6,"span",11),x(7,"i",12),v(8,"input",13),O("ngModelChange",function(r){return D(e),S(f().localState.searchString=r)})("input",function(r){return D(e),f(),S(Xe(2).filterGlobal(r.target.value,"contains"))}),U(9,"uppercase"),U(10,"translate"),y()()()}if(2&t){const e=f();p(2),Mt("label",K(3,7,"OnlyFavs")),h("ngModel",e.localState.showOnlyFavs)("binary",!0),p(3),h("options",e.categoryOptions)("ngModel",e.localState.selectedCategory),p(3),Mt("placeholder",K(9,9,K(10,11,"SearchKeyword"))),h("ngModel",e.localState.searchString)}}function DZ(t,n){1&t&&(v(0,"tr")(1,"th",14),A(2),U(3,"uppercase"),U(4,"translate"),x(5,"p-sortIcon",15),y(),v(6,"th",16),A(7),U(8,"uppercase"),U(9,"translate"),x(10,"p-sortIcon",17),y(),v(11,"th"),A(12),U(13,"uppercase"),U(14,"translate"),y()()),2&t&&(p(2),Y(K(3,3,K(4,5,"ProgramNameTitle"))),p(5),Y(K(8,7,K(9,9,"ChannelNameTitle"))),p(5),Y(K(13,11,K(14,13,"Description"))))}function SZ(t,n){if(1&t&&(v(0,"span",30),A(1),y()),2&t){const e=f().$implicit;p(1),pe(" ",e.channel.name," ")}}function EZ(t,n){if(1&t){const e=B();v(0,"span",24),O("click",function(){D(e);const r=f().$implicit;return S(f().onAddToFavorites(r.id,r.name))}),x(1,"i",31),y()}}function IZ(t,n){if(1&t){const e=B();v(0,"span",24),O("click",function(){D(e);const r=f().$implicit;return S(f().onRemoveFromFavorites(r.id,r.name))}),x(1,"i",32),y()}}function xZ(t,n){if(1&t&&(v(0,"div"),A(1),y()),2&t){const e=f().$implicit;p(1),pe(" ",e.channel.name," ")}}function MZ(t,n){if(1&t){const e=B();v(0,"tr")(1,"td")(2,"div",18)(3,"span",19),O("click",function(){const o=D(e).$implicit;return S(f().onShowEpisodes(o))}),x(4,"img",20),g(5,SZ,2,1,"span",21),v(6,"span",22),A(7),y()(),v(8,"span",23)(9,"span",24),O("click",function(){const o=D(e).$implicit;return S(f().onShowEpisodes(o))}),x(10,"i",25),y(),g(11,EZ,2,0,"span",26),g(12,IZ,2,0,"span",26),y()()(),v(13,"td",27),g(14,xZ,2,1,"div",28),y(),v(15,"td",29),A(16),y()()}if(2&t){const e=n.$implicit;p(4),Mt("src",e.programimage,Hn),p(1),h("ngIf",null==e?null:e.channel),p(2),pe(" ",e.name," "),p(4),h("ngIf",!e.fav),p(1),h("ngIf",e.fav),p(2),h("ngIf",null==e?null:e.channel),p(2),pe(" ",e.description," ")}}const kZ=function(){return["name","channel.name","description"]},AZ=[{path:Yn.Channels,component:MK,data:{animation:"channels"}},{path:Yn.ChannelDetails,component:vK,data:{animation:"details"}},{path:Yn.ChannelSchedule,component:DK,data:{animation:"details"}},{path:Yn.ProgramDetails,component:(()=>{class t{constructor(e,i,r,o){this.service=e,this.srApiService=i,this.activatedRoute=r,this.broker=o,this.totalHits=0,this.pageSize=5,this.unsubscribe$=new Oe}ngOnInit(){var e=this;return me(function*(){e.activatedRoute.params.pipe(Ut(e.unsubscribe$),Se(i=>i.id)).subscribe(function(){var i=me(function*(r){const o=yield e.srApiService.getProgramFromId(parseInt(r));o&&(yield e.show(o))});return function(r){return i.apply(this,arguments)}}())})()}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}show(e){var i=this;return me(function*(){i.episodes=[],i.program=e,yield i.fetch(e.id,0)})()}close(){this.broker.sendMessage(new vd)}loadLazy(e){var i=this;return me(function*(){yield i.fetch(i.program.id,e.first)})()}fetch(e,i){var r=this;return me(function*(){if(!e)return;const o=i/r.pageSize+1,s=yield r.service.fetchEpisodesForProgram(e,o,r.pageSize);r.totalHits=s.pagination.totalhits,r.episodes=[],s.episodes.forEach(a=>{const l=new wd(a);r.episodes.push(l)})})()}getCategoryNameFromId(e){return this.srApiService.getCategoryNameFromId(e)}onAddToFavorites(e,i){this.srApiService.addProgramToFavorites(e,i)}onRemoveFromFavorites(e,i){this.srApiService.removeProgramFromFavorites(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(xs),w(Tn),w(Ji),w(wn))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-program-details"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"details-header-text"],[1,"pi","pi-chevron-left","close-button","clickable",3,"click"],["width","50",2,"vertical-align","middle",3,"src"],[1,"p-grid",2,"width","100%"],[1,"p-col-8"],["class","category",4,"ngIf"],[1,"p-col-4"],["class","clickable",3,"click",4,"ngIf"],[3,"episodes","totalHits","pageSize","onLoadLazy"],[1,"bottom-padding"],[1,"category"],[1,"clickable",3,"click"],[1,"pi","pi-star","fav-but"],[1,"pi","pi-star-fill","yellow-fav"]],template:function(i,r){1&i&&g(0,CZ,17,12,"div",0),2&i&&h("ngIf",r.program)},dependencies:[Je,Nm,pi],styles:[".category[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .p-datatable .p-datatable-header{display:none}"]})}return t})(),data:{animation:"details"}},{path:Yn.Programs,component:(()=>{class t{constructor(e,i,r,o){this.srApiService=e,this.translationService=i,this.broker=r,this.storage=o,this.unsubscribe$=new Oe,this.storageId="ProgramsListState",this.localState={showOnlyFavs:!1,selectedCategory:null,searchString:""}}ngOnInit(){var e=this;return me(function*(){const i=e.storage.get(e.storageId);i&&(e.localState=i),e.srApiService.programs$.pipe(Ut(e.unsubscribe$)).subscribe(r=>{r&&(e.programs=[],e.programs.push(...r))}),e.srApiService.programCategories$.pipe(Ut(e.unsubscribe$)).subscribe(r=>{if(r){e.categoryOptions=[],e.categoryOptions.push({label:e.translationService.translateWithArgs("AnyCategories"),value:null});const o=r.map(s=>({label:s.name,value:s.id}));e.categoryOptions.push(...o)}})})()}ngAfterViewInit(){this.tableComponent&&(this.localState.showOnlyFavs?this.tableComponent.filter(!0,"fav","equals"):this.tableComponent.filter([!0,!1],"fav","in"),this.localState.selectedCategory&&this.tableComponent.filter(this.localState.selectedCategory,"programcategory.id","equals"),this.localState.searchString&&this.tableComponent.filterGlobal(this.localState.searchString,"contains"))}ngOnDestroy(){this.storage.set(this.storageId,this.localState),this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onShowEpisodes(e){this.broker.sendMessage(new Cd(e.id))}onFilterFavClicked(e,i){this.localState.showOnlyFavs=e.checked,this.localState.showOnlyFavs?i.filter(!0,"fav","equals"):i.filter([!0,!1],"fav","in")}onAddToFavorites(e,i){this.srApiService.addProgramToFavorites(e,i)}onRemoveFromFavorites(e,i){this.srApiService.removeProgramFromFavorites(e,i)}onCategoryChanged(e,i){""!==e.value&&i.filter(e.value,"programcategory.id","equals")}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(Is),w(wn),w(Rm))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-programs-list"]],viewQuery:function(i,r){if(1&i&&Fe(er,5),2&i){let o;ce(o=ue())&&(r.tableComponent=o.first)}},decls:6,vars:5,consts:[[1,"programs-list"],["responsiveLayout","stack","styleClass","sr-table",3,"value","paginator","rows","globalFilterFields"],["dt2",""],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"p-d-flex"],[1,"fav-chk"],[1,"fav-checkbox",3,"ngModel","binary","label","onChange","ngModelChange"],[1,"cat-dd"],["placeholder","Category",3,"options","ngModel","onChange","ngModelChange"],[1,"p-input-icon-left","p-ml-auto"],[1,"pi","pi-search"],["pInputText","","type","text",1,"p-inputtext-sm","kw-input",3,"ngModel","placeholder","ngModelChange","input"],["pSortableColumn","name"],["field","name"],["pSortableColumn","channel.name"],["field","channel.name"],[1,"p-grid",2,"width","100%"],[1,"clickable","p-col-8",3,"click"],["height","50","width","50",2,"padding","4px","vertical-align","middle",3,"src"],["class","prg-chan",4,"ngIf"],[1,"prg-title"],[1,"p-col-4",2,"float","right","padding-top","0px"],[1,"clickable",3,"click"],[1,"pi","pi-info-circle","details-btn"],["class","clickable",3,"click",4,"ngIf"],[1,"prg-chan-td"],[4,"ngIf"],[1,"description-td",2,"border","none"],[1,"prg-chan"],[1,"pi","pi-star","fav-but","details-btn"],[1,"pi","pi-star-fill","yellow-fav","details-btn"]],template:function(i,r){1&i&&(v(0,"div",0)(1,"p-table",1,2),g(3,TZ,11,13,"ng-template",3),g(4,DZ,15,15,"ng-template",4),g(5,MZ,17,7,"ng-template",5),y()()),2&i&&(p(1),h("value",r.programs)("paginator",!0)("rows",10)("globalFilterFields",$i(4,kZ)))},dependencies:[Je,er,Tt,j2,G2,yu,Cu,gs,md,bm,Tm,ls,pi],styles:["[_nghost-%COMP%] .p-datatable .p-datatable-header{position:sticky;top:50px;z-index:100;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{border-width:0px;background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable-tbody tr:nth-child(2n){background-color:#f2f2f2}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{padding-top:6px;padding-bottom:2px;border-width:0px}[_nghost-%COMP%] .p-col-1, [_nghost-%COMP%] .p-col-2, [_nghost-%COMP%] .p-col-3, [_nghost-%COMP%] .p-col-4, [_nghost-%COMP%] .p-col-5, [_nghost-%COMP%] .p-col-6, [_nghost-%COMP%] .p-col-7, [_nghost-%COMP%] .p-col-8, [_nghost-%COMP%] .p-col-9, [_nghost-%COMP%] .p-col-10, [_nghost-%COMP%] .p-col-11, [_nghost-%COMP%] .p-col-12{padding-top:6px;padding-bottom:2px}[_nghost-%COMP%] .sr-table{margin-bottom:100px}",".description-td[_ngcontent-%COMP%]{overflow:hidden;white-space:wrap;text-overflow:ellipsis}.prg-title[_ngcontent-%COMP%]{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fav-checkbox[_ngcontent-%COMP%]{vertical-align:middle}"]})}return t})(),data:{animation:"programs"}},{path:Yn.EpisodeDetails,component:nE,data:{animation:"details"}},{path:Yn.Episodes,component:_Z,data:{animation:"episodes"}},{path:"**",redirectTo:Yn.Channels,pathMatch:"full"}];let RZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t});static#n=this.\u0275inj=Me({imports:[o2.forRoot(AZ,{scrollPositionRestoration:"enabled"}),o2]})}return t})();class Vm extends tr{constructor(n){super(),this.errorMessage=n}get Type(){return"ErrorOccurredMessage"}}const PZ=Yr("routeAnimations",[pn("* => details",[Ge({position:"relative"}),On(":enter, :leave",[Ge({paddingTop:"48px",position:"absolute",top:"-4px",left:0,width:"100%"})],{optional:!0}),On(":enter",[Ge({left:"-100%"})],{optional:!0}),On(":leave",ja(),{optional:!0}),gD([On(":leave",[Jt("300ms ease-out",Ge({left:"100%"}))],{optional:!0}),On(":enter",[Jt("300ms ease-out",Ge({left:"0%"}))],{optional:!0})]),On(":enter",ja(),{optional:!0})]),pn("details => *",[Ge({position:"relative"}),On(":enter, :leave",[Ge({paddingTop:"48px",position:"absolute",top:"-4px",right:0,width:"100%"})],{optional:!0}),On(":enter",[Ge({right:"-100%"})],{optional:!0}),On(":leave",ja(),{optional:!0}),gD([On(":leave",[Jt("300ms ease-out",Ge({right:"100%"}))],{optional:!0}),On(":enter",[Jt("300ms ease-out",Ge({right:"0%"}))],{optional:!0})]),On(":enter",ja(),{optional:!0})])]);let FZ=(()=>{class t{constructor(e,i){this.router=e,this.location=i,this.history=[],this.router.events.subscribe(r=>{r instanceof Yi&&this.history.push(r.urlAfterRedirects)})}back(){this.history.pop(),this.history.length>0?this.location.back():this.router.navigateByUrl("/")}static#e=this.\u0275fac=function(i){return new(i||t)(H(Cn),H(Xc))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),LZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=J({type:t,selectors:[["app-navigation-bar"]],decls:17,vars:15,consts:[["routerLink","/channels","routerLinkActive","active"],["routerLink","/programs","routerLinkActive","active"],["routerLink","/episodes","routerLinkActive","active"]],template:function(i,r){1&i&&(v(0,"nav")(1,"ul")(2,"li")(3,"a",0),A(4),U(5,"uppercase"),U(6,"translate"),y()(),v(7,"li")(8,"a",1),A(9),U(10,"uppercase"),U(11,"translate"),y()(),v(12,"li")(13,"a",2),A(14),U(15,"uppercase"),U(16,"translate"),y()()()()),2&i&&(p(4),Y(K(5,3,K(6,5,"LiveStreamsHeader"))),p(5),Y(K(10,7,K(11,9,"ProgramsHeader"))),p(5),Y(K(15,11,K(16,13,"EpisodesHeader"))))},dependencies:[pd,YS,ls,pi],styles:["ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}li[_ngcontent-%COMP%]{display:inline}a[_ngcontent-%COMP%]{padding:10px;font-weight:700;text-decoration:none}.active[_ngcontent-%COMP%]{background-color:#7b95a3;color:#fff;border-radius:5px}"]})}return t})();const NZ=function(t){return{"scroll-left":t}};function VZ(t,n){if(1&t){const e=B();v(0,"div",6),O("click",function(){return D(e),S(f().onOpenDetails())}),v(1,"span",7),A(2),v(3,"b"),A(4),y()()()}if(2&t){const e=f();h("ngClass",te(3,NZ,!0===e.isPlaying)),p(2),pe(" ",e.prefixText,""),p(2),Y(e.currentStation)}}function BZ(t,n){1&t&&(v(0,"div",8),A(1," \xa0 "),y())}let HZ=(()=>{class t{constructor(e,i,r){this.broker=e,this.srApiService=i,this.translate=r,this.currentUrlToPlay="",this.currentStation="",this.unsubscribe$=new Oe,this.episodeId=void 0,this.channelId=void 0,this.prefixText="",this.isPlaying=!1}ngOnInit(){var e=this;this.broker.getMessage().pipe(Ut(this.unsubscribe$),wt(r=>r instanceof gl)).subscribe(function(){var r=me(function*(o){if(!o)return;e.episodeId=o.episodeId,e.channelId=o.channelId,e.prefixText=e.episodeId?e.translate.translateWithArgs("AudioPrefixEpisode")+": ":e.channelId?e.translate.translateWithArgs("AudioPrefixChannel")+": ":"";const s=document.getElementById("audio");o.url===e.currentUrlToPlay?s?.paused?(s.load(),s.play(),e.isPlaying=!0):(s?.pause(),e.isPlaying=!1):(e.currentStation=o.title,e.currentUrlToPlay=o.url,s?.load(),s?.play(),e.isPlaying=!0)});return function(o){return r.apply(this,arguments)}}())}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}onPlay(){this.srApiService.setCurrentlyPlaying(this.currentUrlToPlay),this.isPlaying=!0}onPause(){this.srApiService.setCurrentlyPlaying(""),this.isPlaying=!1}onOpenDetails(){this.episodeId?this.broker.sendMessage(new Ms(this.episodeId)):this.channelId&&this.broker.sendMessage(new Pm(this.channelId))}static#e=this.\u0275fac=function(i){return new(i||t)(w(wn),w(Tn),w(Is))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-audio-player"]],decls:8,vars:3,consts:[[1,"audio-wrapper"],["class","now-playing",3,"ngClass","click",4,"ngIf","ngIfElse"],[1,"audio-ctl-wrapper"],["controls","","id","audio","preload","auto","autoplay","false",1,"audio-ctl",3,"play","pause"],["type","audio/mpeg",3,"src"],["empty",""],[1,"now-playing",3,"ngClass","click"],[1,"clickable"],[1,"now-playing"]],template:function(i,r){if(1&i&&(v(0,"div",0),g(1,VZ,5,5,"div",1),v(2,"div",2)(3,"audio",3),O("play",function(){return r.onPlay()})("pause",function(){return r.onPause()}),x(4,"source",4),A(5," Your browser does not support the audio element. "),y()()(),g(6,BZ,2,0,"ng-template",null,5,ai)),2&i){const o=Xe(7);p(1),h("ngIf",r.currentUrlToPlay)("ngIfElse",o),p(3),Mt("src",r.currentUrlToPlay,Hn)}},dependencies:[pt,Je],styles:[".audio-wrapper[_ngcontent-%COMP%]{width:calc(100% - 15px);position:fixed;bottom:0;z-index:10000;opacity:.9;background-color:#7b95a3;border-radius:5px;padding:5px}.audio-ctl[_ngcontent-%COMP%]{border-radius:10px;padding:5px;margin:auto;width:100%}.now-playing[_ngcontent-%COMP%]{margin-bottom:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1.3em;width:100%}.audio-ctl-wrapper[_ngcontent-%COMP%]{margin:0;width:100%;padding:0}@media only screen and (max-width: 640px){.scroll-left[_ngcontent-%COMP%]{height:1.3em;overflow:hidden;position:relative}.scroll-left[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;margin:0;line-height:1.3em;text-align:center;transform:translate(100%);animation:scroll-left 1 8s linear infinite}@keyframes scroll-left{0%{transform:translate(100%)}to{transform:translate(-100%)}}}"]})}return t})(),$Z=(()=>{class t{constructor(e,i,r,o,s,a){this.srApiService=e,this.broker=i,this.primeNGmessageService=r,this.translationService=o,this.router=s,this.backNavigationService=a,this.title="sr-app",this.isLoading=!1,this.unsubscribe$=new Oe}prepareRoute(e){return e&&e.activatedRouteData&&e.activatedRouteData.animation}ngOnInit(){var e=this;return me(function*(){e.translationService.defaultLangCode="en",e.translationService.currentLocale=navigator.language;const i=e.broker.getMessage();i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Am)).subscribe(r=>{e.primeNGmessageService.add({severity:"success",summary:"",detail:r.info})}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Vm)).subscribe(r=>{e.primeNGmessageService.add({severity:"error",summary:"",detail:r.errorMessage})}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof bd)).subscribe(r=>{e.primeNGmessageService.add({severity:"success",summary:"",detail:e.translationService.translateWithArgs(r.isBookmarked?"BookmarkAdded":"BookmarkRemoved")})}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Pm)).subscribe(r=>{r.channelId&&e.router.navigate(["channels/"+r.channelId])}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof eE)).subscribe(r=>{r.channelId&&e.router.navigate(["channels/schedule/"+r.channelId])}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof Cd)).subscribe(r=>{r.programId&&e.router.navigate(["programs/"+r.programId])}),i.pipe(Ut(e.unsubscribe$),wt(r=>r instanceof vd)).subscribe(r=>{e.backNavigationService.back()}),yield e.fetchBaseData()})()}fetchBaseData(){var e=this;return me(function*(){try{e.isLoading=!0,yield e.srApiService.fetchBaseData()}finally{e.isLoading=!1}})()}ngOnDestroy(){this.unsubscribe$.next(void 0),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(w(Tn),w(wn),w(_m),w(Is),w(Cn),w(FZ))};static#t=this.\u0275cmp=J({type:t,selectors:[["app-root"]],decls:8,vars:1,consts:[[1,"header"],[1,"content"],["outlet","outlet"],["position","top-center"]],template:function(i,r){if(1&i&&(v(0,"div",0),x(1,"app-navigation-bar"),y(),v(2,"div",1),x(3,"router-outlet",null,2),y(),x(5,"app-episode-details")(6,"app-audio-player")(7,"p-toast",3)),2&i){const o=Xe(4);p(2),h("@routeAnimations",r.prepareRoute(o))}},dependencies:[lm,tK,LZ,HZ,nE],styles:[".content[_ngcontent-%COMP%]{padding-top:44px}.header[_ngcontent-%COMP%]{overflow:hidden;position:fixed;top:-8px;width:100%;z-index:1000;margin-left:-8px;background-color:#fff;opacity:1;max-height:60px;min-height:60px;border-left-width:8px;border-right-width:8px;border-style:solid;border-color:#fff}[_nghost-%COMP%] .p-toast.p-component.p-toast-top-center{max-width:300px}"],data:{animation:[PZ]}})}return t})();class zZ{constructor(){this.storedRoutes=new Map}shouldDetach(n){return n.routeConfig.path===Yn.Episodes||n.routeConfig.path===Yn.Programs||n.routeConfig.path===Yn.Channels}store(n,e){this.storedRoutes.set(n.routeConfig.path,e)}shouldAttach(n){return!!n.routeConfig&&!!this.storedRoutes.get(n.routeConfig.path)}retrieve(n){return this.storedRoutes.get(n.routeConfig.path)}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}function oE(t,n){return n?e=>Ku(n.pipe(wr(1),function jZ(){return ut((t,n)=>{t.subscribe(nt(n,bl))})}()),e.pipe(oE(t))):vt((e,i)=>qt(t(e,i)).pipe(wr(1),tS(e)))}let Bm=(()=>{class t{constructor(){}logInfo(e){console.info(e)}logError(e){console.error(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function KZ(t,n){let e=n;return i=>i.pipe(function UZ(t){return ut((n,e)=>{let i,o,r=!1;const s=()=>{i=n.subscribe(nt(e,void 0,void 0,a=>{o||(o=new Oe,qt(t(o)).subscribe(nt(e,()=>i?s():r=!0))),o&&o.next(a)})),r&&(i.unsubscribe(),i=null,r=!1,s())};s()})}(r=>r.pipe(function qZ(t,n=Lm){const e=function WZ(t=0,n,e=rZ){let i=-1;return null!=n&&(a_(n)?e=n:i=n),new ot(r=>{let o=function GZ(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;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)})}(t,n);return oE(()=>e)}(t),vt(o=>e-- >0?oe(o):eo(()=>new Error("Network problem, try again."))))))}let ZZ=(()=>{class t{constructor(e,i){this.messageService=e,this.logging=i}intercept(e,i){return i.handle(e).pipe(KZ(1e3,3),Tr(r=>this.handleError(r,this.messageService)))}handleError(e,i){return e?(this.logging.logError(e.message),i.sendMessage(new Vm(e.message))):(this.logging.logError("An error has occurred."),i.sendMessage(new Vm("An error has occurred"))),eo(()=>new Error(e.message||"An error has occurred"))}static#e=this.\u0275fac=function(i){return new(i||t)(H(wn),H(Bm))};static#t=this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();!function vF(t,n,e){(function gA(t,n,e){"string"!=typeof n&&(e=n,n=t[Ye.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),ts[n]=t,e&&(ts[n][Ye.ExtraData]=e)})(t,n,e)}(TN);let YZ=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Re({type:t,bootstrap:[$Z]});static#n=this.\u0275inj=Me({providers:[{provide:Ti,useValue:"sv"},_m,Bm,{provide:eT,useClass:ZZ,multi:!0,deps:[wn,Bm]},{provide:qS,useClass:zZ}],imports:[$w,RZ,mN,Nq,sK,ku,I5,h$,nK,hl,Dm,WV,gd,wV]})}return t})();HL().bootstrapModule(YZ).catch(t=>console.error(t))}},De=>{De(De.s=431)}]); \ No newline at end of file